Cryptec Quiz Round 2

Cryptec Quiz Round 2

University

15 Qs

quiz-placeholder

Similar activities

Python Programming

Python Programming

University

20 Qs

JAVA FINAL QUIZ FOR ASSESSMENT

JAVA FINAL QUIZ FOR ASSESSMENT

University

15 Qs

Swift Collections

Swift Collections

University

10 Qs

Q1 - Comp Vision

Q1 - Comp Vision

University

10 Qs

Multithreading in java

Multithreading in java

University

20 Qs

PYTHON REVISION

PYTHON REVISION

University

20 Qs

RDBMS

RDBMS

University

11 Qs

DBMS Relational Algebra & Calculus Quiz 4

DBMS Relational Algebra & Calculus Quiz 4

University

20 Qs

Cryptec Quiz Round 2

Cryptec Quiz Round 2

Assessment

Quiz

Computers

University

Hard

Created by

Shashank Kukkaje

Used 3+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Media Image

Which of the following sequences of code could be used in the destructor ~List() to correctly delete all of the nodes in the list? (Which ones are legal, even if the style is atrocious?)

I. for (ListNode *n = head; head != NULL; head = n) { n = head->next; delete head; }

II. for (ListNode *n = head; n != NULL; n->next) { delete n; }

III. ListNode* n; while (head != NULL) { n = head->next; delete head; head = n; }

I and II only

II and III only

I and III only

III only

2.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Media Image

.

2

3

5

Compilation error

3.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Media Image

.

Compilation error

Runtime error

1

Exception

4.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Which of the following statements about Java Threads is correct?

Java threads guarantee that multiple threads will always execute in parallel, regardless of the underlying hardware.

Java threads are always preemptive, meaning that a running thread can never be interrupted by another thread.

Java threads always execute in the order in which they were created.

The "yield" method in Java threads guarantees that the current thread will always yield execution to another thread.

5.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Media Image

.

Employee joe

joe.id = 35

Employee joe

joe.aflcio = 35

Employee joe

aflcio = 35

Employee joe

joe.aflcio.id = 35

6.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Which one of the following is the overflow condition if a circular queue is implemented using array having size MAX?

rear= MAX-1

rear=MAX

front=(rear+1) mod max

None of the them

7.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

What will be the output of the following Python code?

list1 = [1, 3]

list2 = list1

list1[0] = 4

print(list2)

[1, 4]

[1, 3, 4]

[4, 3]

[1, 3]

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?