CSD201 FE Lý thuyết

CSD201 FE Lý thuyết

University

129 Qs

quiz-placeholder

Similar activities

Đề 4: Chăm sóc sức khỏe người lớn 1

Đề 4: Chăm sóc sức khỏe người lớn 1

University

130 Qs

RCV số 3

RCV số 3

5th Grade - University

124 Qs

CSD201 FE Lý thuyết

CSD201 FE Lý thuyết

Assessment

Quiz

Instructional Technology

University

Medium

Created by

Le HCM)

Used 13+ times

FREE Resource

129 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Select the statement that is most correct.Which of the following applications may not use a stack?

A. Keeping track of local variables a trun time

B. Undo sequence in a text editor.

C. Multi-programming

D. Evaluating arithmetic expressions.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Select the statement that is most correct.Suppose we are considering a doubly linked list which is not empty. What does the java code snippet below do?Node q = new Node(x);q.prev=null;q.next = head;head.prev = q;head = q;

[A]It inserts new node with value x at the head of the list.

[B]It inserts new node with value x after the head of the list.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Select the statement that is most correct.Suppose we are considering a singly linked list and p is some node in the list which has both predecessor and successor nodes. What does the java code snippet below do?

Node f = head;

while(f.next != p)

f = f.next;

f.next = p.next;

[A]It does not make any change on the list.

[B]It deletes the node after p.

[C]It deletes the node p.

[D]It deletes the node before p.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Select the statement that is most correct.Which of the following applications may use a queue?

[A]Store all variables in a program.

[B]Store a waiting list of printing jobs.

[C]Keeping track of local variables at run time.

[D]Undo sequence in a text editor.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Binary search algorithm cannot be applied to

[A]sorted linear array

[B]Binary search tree

[C]sorted singly linked list

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Select the statement that is most correct. Suppose we are considering a doubly linked list and p is some node in the list which has successor node. What does the java code snippet below do? Node p1, p2; p1 = new Node(x); p2 = p.next; p.next = p1; p1.prev = p; p1.next = p2; p2.prev = p1;

[A] It creates new node with value x at the end of the list.

[B] It inserts new node with value x after the node p.

[C] It inserts new node with value x before the node p.

[D] It replaces the node p with new node with value x.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Fill in the blank of the statement to form the most correct one:In a ____ every element contains some data and a link to the next element, which allows to keep the structure.

[A]doubly linked list

[B]skip list

[C]singly linked list

[D]binary search tree

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?

Similar Resources on Wayground