
Cryptec Quiz Round 2

Quiz
•
Computers
•
University
•
Hard
Shashank Kukkaje
Used 3+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
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
.
2
3
5
Compilation error
3.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
.
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
.
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
Similar Resources on Wayground
17 questions
QUEUE

Quiz
•
University
20 questions
computer : CHAPTER-7: WORKING WITH ANIMATE CC

Quiz
•
6th Grade - Professio...
17 questions
Demo DS-A ASHV Quiz

Quiz
•
University
15 questions
Form Edublocks

Quiz
•
4th Grade - University
10 questions
PHP MySQL

Quiz
•
University
16 questions
HTML Tags

Quiz
•
University
20 questions
Code Junction III

Quiz
•
University
10 questions
DS UNIT-2 TEST-3

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University