Cryptec Quiz Round 2

Cryptec Quiz Round 2

University

15 Qs

quiz-placeholder

Similar activities

CIS2303 Week 4_5 Ch_3

CIS2303 Week 4_5 Ch_3

University

18 Qs

WML & WAP

WML & WAP

University

20 Qs

Software Engineering Quiz 1

Software Engineering Quiz 1

University

20 Qs

Arduino Loop

Arduino Loop

2nd Grade - University

20 Qs

Python List

Python List

4th Grade - University

15 Qs

Machine Learning (Introduction)

Machine Learning (Introduction)

University

10 Qs

Determining System Requirements

Determining System Requirements

University

11 Qs

1.1.1 The structure and function of the processor

1.1.1 The structure and function of the processor

11th Grade - University

15 Qs

Cryptec Quiz Round 2

Cryptec Quiz Round 2

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

Shashank Kukkaje

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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]

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?