
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
10 questions
Html/Css Quiz Day 1

Quiz
•
University
20 questions
Multithreading in java

Quiz
•
University
10 questions
Object/Abstract/Final in JAVA

Quiz
•
University
15 questions
Teste Inicial PSD

Quiz
•
University
12 questions
Intro to Scratch 2

Quiz
•
KG - University
10 questions
OBJECT ORIENTED PROGRAMMING WITH JAVA

Quiz
•
University
15 questions
Шаблоны проектирования

Quiz
•
University
12 questions
UML-2020-158225-Week7-ClassDiagramObjectDiagram-NTY

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

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

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University