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 13
Ngày làm bài: Hôm nay lúc 07:36:08 (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-
It is important to learn different sorting methods #
  A - 
depending on your teacher, you may have to use his/her favorite
  B - 
It isn’t important, they all get the same end result
  C - 
it’s fun to sort using different methods
  D - 
some ways of sorting are faster then others
2-
It would be most appropriate to use a recursive method to solve a problem that
  A - 
involes storing data in a two-dimensional vector
  B - 
requires a lot of memory
  C - 
involves a substantial number of conditionals and nested loops
  D - 
involves evaluation of the factorial method
3-
Jobs sent to a printer are generally placed on a
  A - 
binary search tree
  B - 
priority queue
  C - 
queue
  D - 
stack
4-
Let x and y be variables of type double with only positive values. Of the following, which best describes the condition under which the boolean expression, x + y = = x, can have the value true?
  A - 
only when x is much greater than y
  B - 
only when y > x
  C - 
only when the computer has 16-bit words
  D - 
it can never have the value true
5-
Let the following struct be used to create linked lists:
struct listnode {
int data;
listnode* next;
};
Let p point to the head of an existing linked list with more than one element. The following code segment is supposed insert the node pointed to by q at the end of the linked list pointed to by p?
listnode* temp;
temp = p;
while (temp != NULL)
while = temp ->next;
__________= q;
  A - 
temp->data
  B - 
q->next
  C - 
temp->next
  D - 
NULL
6-
Let C(X) be the number of leaves in a binary tree rooted at T. Assume that IsLeaf returns 1 if T is a leaf. Which of the following observations leads to a recursive implementation?
  A - 
C(T)=C(T.LEFT) + C(T.RIGHT)
  B - 
C(T)=C(T.LEFT) + C(T.RIGHT) + 1
  C - 
C(T)=C(T.LEFT) + C(T.RIGHT) + IsLeaf(T)+1
  D - 
C(T)=C(T.LEFT) + C(T.RIGHT) +IsLeaf(T)
7-
Let the following struct be used to create linked lists:
Struct treenode {
int data;
treenode* left;
treenode* right;
};
And function printNODE print all data in tree
void printNODE(treenode *top) {
if (top != ______) {
printNODE (top->right);
cout << top->data;
printNODE(top->left);
}
}
The missing word is:
  A - 
top
  B - 
top-right
  C - 
top->left
  D - 
NULL
8-
Linked list C++ application is organized into three files. They are ____, ____ and ____
  A - 
header file, source code file, application file
  B - 
header file, footer file, source code file
  C - 
Both a) and b)
  D - 
Neither a) nor b)
9-
New nodes are added to the ____ of the queue.
  A - 
back
  B - 
middle
  C - 
front
  D - 
None of the above
10-
One difference between a queue and a stack is:
  A - 
Queues require linked lists, but stacks do not
  B - 
Queues use two ends of the structure; stacks use only one
  C - 
Satcks use two ends of the structure, queues use only one
  D - 
Stacks require linked lists, but queues do not
 
[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 C++ - Bài 01
Trắc Nghiệm Thiết Kế Web (English) - Bài 37
Trắc Nghiệm ASP.NET (English) - Bài 05
Trắc nghiệm Linux - Bài 66
Trắc Nghiệm Thiết Kế Web - Bài 02
Trắc Nghiệm Thiết Kế Web Và Flash - Bài 18
Trắc Nghiệm Ngôn Ngữ Lập Trình C ( English ) - Bài 55
Trắc Nghiệm Java - Bài 32
Trắc Nghiệm Visual Basic - Bài 27
Trắc Nghiệm Ngôn Ngữ Lập Trình C - Bài 06
Trắc nghiệm XML - Bài 28
Trắc Nghiệm ASP.NET (English) - Bài 23
Trắc Nghiệm Thiết Kế Web Và Flash - Bài 30
Trắc Nghiệm Thiết Kế Web Và Flash - Bài 04
Trắc Nghiệm Thiết Kế Web Và Flash - Bài 13
Trắc nghiệm C++ - Bài 17
Trắc Nghiệm C# - Bài 50
Trắc Nghiệm C Sharp - Bài 27
Trắc Nghiệm Visual Basic - Bài 26
Trắc nghiệm Ngôn Ngữ Lập Trình C++ - Bài 23
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