Tìm kiếm:
TRANG NHÀ
Giới thiệu VNEDU.ORG
Điều khoản và bản quyền
Liên lạc VNEDU
TRẮC NGHIỆM TRỰC TUYẾN
---Công Cụ:---
Soạn Biểu thức
Bảng màu HTML
Ký hiệu đặc biệt 01
Ký hiệu đặc biệt 02
Ký hiệu đặc biệt 03
Ký hiệu đặc biệt 04
Ký hiệu đặc biệt 05
Ký hiệu đặc biệt 06
Ký hiệu đặc biệt 07
Ký hiệu đặc biệt [Toán]
Tin Học   ||  Căn Bản    Văn Phòng    Hệ Thống - Mạng    Phần Mềm Ứng Dụng    Kỹ thuật số    Lập trình    SQL  

Trắc nghiệm Ngôn Ngữ Lập Trình C++ - Bài 04
Ngày làm bài: Hôm nay lúc 11:49:25 (Server time)
Số câu hỏi: 10.   Tổng điểm: 10
Yêu cầu hoàn thành: 60 phút.
Thời gian còn lại: 
Cỡ chữ câu hỏi:  Cỡ chữ đáp án:


1-
After execution of the statement:
Char *p = "Stuff";
What would be printed by following statement?
printf ("%c", *p+2);
  A - 
uff
  B - 
tuff
  C - 
Suff
  D - 
ff
2-
After execution of the statement:
Char *p = "incoll4";
What would be printed by following statement?
printf ("%c", *p+3);
  A - 
inc
  B - 
II4
  C - 
k
  D - 
oII4
3-
After execution of the statement:
Char *p = "incoll4";
What would be printed by following statement?
printf ("%c", *p+2);
  A - 
c
  B - 
C
  C - 
n
  D - 
K
4-
An array is a way to reference a series of memory locations using the ____
  A - 
Multiple names
  B - 
Same name
  C - 
different name
  D - 
Unique name
5-
An Algorithm that:
Array is imaginary divided into two parts – sorted one and unsorted one. At the beginning, sorted part is empty, while unsorted one containts whole array. At every step, algorithm finds minimal element in the unsorted part and adds it to the end of the sorted one. When unsorted part becomes empty, algorithm stops.
That is a (an) ____
  A - 
Quick sort
  B - 
Selection Sort
  C - 
Insertion Sort
  D - 
Bubble sort
6-
An Algorithm that:
1. Compare each pair of adjacent elements from the beginning of an array and, if they are in reversed order, swap them. 2. If at least one swap has been done, repeat step 1
That is a (an) ____
  A - 
Selection Sort
  B - 
Bubble sort
  C - 
Insertion Sort
  D - 
Quick sort
7-
An Algorithm that:
Array is imaginary divided into two parts – sorted one and unsorted one. At the beginning, sorted part contains first element of the array and unsorted one contains the rest. At every, algorithm takes first element in the unsorted part and inserts it to the right place of the sorted one. When unsorted part becomes empty, algorithm stops.
That is a (an) ____
  A - 
Insertion Sort
  B - 
Quick sort
  C - 
Selection Sort
  D - 
Bubble sort
8-
An inorder traversal of this tree is:


  A - 
8 5 1 30 12 15 18 20 25 10 35
  B - 
8 5 1 30 12 18 20 25 10 35 15
  C - 
5 1 30 12 8 15 18 20 25 10 35
  D - 
8 5 1 12 15 18 20 30 25 10 35
9-
Arrange the following functions, often used to represent complexity of algorithms in order from slowest to fastest
O(1), O(n), O(n*log2 n), O(log2 n), O(n^2), O(2^n)
  A - 
2^n n*log n n^2 n log n 1
  B - 
n*2 2^n n*log n n log n 1
  C - 
n*log 2^n n^2 n n log n 1
  D - 
2^n n^2 n*log n n log n 1
10-
Assume that Algorithm Test has a time complexity O(n^3), and that Algorithm Compute has time complexity O(n^2). What is the time complexity of the following algorithm?
Execute Algorithm Test
For 5 trials, execute Algorithm Compute
Execute Algorithm Test
  A - 
O(n^18)
  B - 
O(n^3)
  C - 
O(n^16)
  D - 
O(n^2)
 
[Người đăng: Thành Lãm - ST]
Ghé thăm Kênh của Vị Sư "hai lần chết đi sống lại"
Tu Si Chau Soc Thon

https://www.youtube.com/channel/UCoyC9WTTVR-M3qpTKKEXGnQ

Chau Soc Thon Official Channel


Phong Bảo Official
Phong Bao Official
Xem Nhiều nhất
Trắc Nghiệm Pascal - Bài 20
Trắc Nghiệm ASP.NET - Bài 12
Trắc Nghiệm Ngôn Ngữ Lập Trình C - Bài 16
Trắc Nghiệm ASP.NET - Bài 01
Trắc Nghiệm ASP.NET - Bài 03
Trắc nghiệm C++ - Bài 18
Trắc Nghiệm C# - Bài 53
Trắc Nghiệm ASP.NET - Bài 02
Trắc Nghiệm C# - Bài 42
Trắc Nghiệm Java - Bài 01
Trắc Nghiệm ASP.NET - Bài 04
Trắc Nghiệm Pascal - Bài 22
Trắc Nghiệm ASP.NET - Bài 13
Trắc Nghiệm ASP.NET - Bài 09
Trắc Nghiệm ASP.NET - Bài 08
Trắc nghiệm PHP - Bài 01
Trắc Nghiệm ASP.NET - Bài 06
Trắc Nghiệm ASP.NET - Bài 11
Trắc Nghiệm ASP.NET - Bài 05
Trắc Nghiệm ASP.NET - Bài 23
Đề Xuất
Trắc Nghiệm Ngôn Ngữ Lập Trình C - Bài 01
Trắc Nghiệm C++ - Bài 07
Trắc Nghiệm Java - Bài 09
Trắc Nghiệm Ngôn Ngữ Lập Trình C ( English ) - Bài 02
Trắc Nghiệm C# - Bài 35
Trắc Nghiệm Thiết Kế Web Và Flash - Bài 15
Trắc Nghiệm Ngôn Ngữ Lập Trình C - Bài 17
Trắc Nghiệm Thiết Kế Web Và Flash - Bài 12
Trắc Nghiệm Java - Bài 54
Trắc Nghiệm Ngôn Ngữ Lập Trình C ( English ) - Bài 35
Trắc Nghiệm ASP.NET (English) - Bài 11
Trắc Nghiệm Thiết Kế Web (English) - Bài 06
Trắc Nghiệm Ngôn Ngữ Lập Trình C ( English ) - Bài 26
Trắc Nghiệm Pascal - Bài 21
Trắc Nghiệm C Sharp - Bài 05
Trắc Nghiệm Pascal - Bài 24
Trắc nghiệm C++ - Bài 11
Trắc nghiệm Linux - Bài 48
Trắc Nghiệm C++ - Bài 04
Trắc Nghiệm Ngôn Ngữ Lập Trình C ( English ) - Bài 55
Phát triển hệ thống: TRƯƠNG HỮU ĐỨC - Phiên bản 3.0 - © Copyright 2013 - 2024 - VNEDU.ORG

free counters