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 11
Ngày làm bài: Hôm nay lúc 14:36:46 (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-
If the amout of data to be stored in a stack cannot be predicted, the best data structure to implement the stack is:
  A - 
linked list
  B - 
binary search tree
  C - 
unordered array
  D - 
None of the other answers
2-
If you want quick access to your data, a linked list will not be that helpful when the size of the collection is ____
  A - 
in file
  B - 
unknow
  C - 
big
  D - 
small
3-
If the depth of a tree is 3 levels, then what is the Size of the Tree?
  A - 
8
  B - 
6
  C - 
10
  D - 
None of the above
4-
If you have a node pointer named head, which is pointing to a valid node, how do you access the member variable in the node named item?
  A - 
head.item
  B - 
head->item
  C - 
(*head).item
  D - 
*head.item
5-
If there is a NodePtr named toDelete whose value points a valid node in the list, which of the following statements would remove the node that follows toDelete from the list and return that memory to the freestore?
  A - 
toDelete -> link = toDelete ->link ->link:
delete toDelete->link:
  B - 
tmp = toDelete – link:
toDelete -> link = tmp -> link:
delete tmp:
  C - 
tmp = toDelete – link:
toDelete -> link = toDelete->link->link:
delete tmp:
  D - 
All of the other answers
6-
If p a pointer to a node in a list (node contains value 31), provide the code that would remove this node (31) from the doubly linked list freeing up the memory that is currently held. (Assume next points to the right and prev points to the left). (3 lines of code)
  A - 
delete p:
p->prev->next = p->next:
p->next->prev = p->prev:
  B - 
p->prev->next = p->next:
p->next->prev = p->prev:
delete p:
  C - 
p->prev->next = p->next:
delete p:
p->next->prev = p->prev:
  D - 
p->next->prev = p->prev:
delete p:
p->prev->next = p->next:
7-
If 8 3 12 2 9 are stored in a binary search tree, the postorder traversal of that tree would be
  A - 
12 9 8 3 2
  B - 
2 3 9 12 8
  C - 
8 3 9 2 12
  D - 
2 3 8 9 12
8-
In a Binary Search Tree with root->element
  A - 
replace the root
  B - 
none of the other answers
  C - 
follow the right pointer
  D - 
follow the left lointer
9-
In the following code fragment, the programmer mistakenly placed a semicolon at the end of the For statement heading. What is the result?
cout << "A";
for (count = 1; count <= 3; count++);
count << "B";
count << ’C’;
  A - 
the output ABC
  B - 
the output ABBC
  C - 
the output ABBBC
  D - 
an infinite loop
10-
In a Binary Search Tree, the largest element must
  A - 
have at most one child
  B - 
be a leaf
  C - 
have no child
  D - 
be the root
 
[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 Linux ( English ) - Bài 22
Trắc nghiệm PHP - Bài 02
Trắc Nghiệm Pascal - Bài 12
Trắc Nghiệm Visual Basic - Bài 09
Trắc Nghiệm Ngôn Ngữ Lập Trình C ( English ) - Bài 74
Trắc Nghiệm Java - Bài 40
Trắc nghiệm Linux ( English ) - Bài 25
Trắc Nghiệm Ngôn Ngữ Lập Trình C ( English ) - Bài 21
Trắc nghiệm XML - Bài 11
Trắc Nghiệm Thiết Kế Web (English) - Bài 29
Trắc Nghiệm Visual Basic - Bài 05
Trắc Nghiệm Ngôn Ngữ Lập Trình C ( English ) - Bài 14
Trắc Nghiệm Visual Basic - Bài 14
Trắc Nghiệm C Sharp - Bài 02
Trắc Nghiệm Java - Bài 18
Trắc Nghiệm Thiết Kế Web Và Flash - Bài 32
Trắc Nghiệm Visual Basic - Bài 35
Trắc nghiệm Ngôn Ngữ Lập Trình C++ - Bài 35
Trắc Nghiệm Thiết Kế Web - Bài 10
Trắc Nghiệm Pascal - Bài 34
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