Search Header Logo

CSD201 FE Lý thuyết

Authored by Le HCM)

Instructional Technology

University

Used 17+ times

CSD201 FE Lý thuyết
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?