
Cryptec Quiz Round 2
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
Shashank Kukkaje
Used 3+ times
FREE Resource
Enhance your content in a minute
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]
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
computer Networks
Quiz
•
University
19 questions
DBMS - Fundamentals
Quiz
•
University
15 questions
PICMAKER
Quiz
•
University
15 questions
Vistacreate
Quiz
•
University
10 questions
Industry 4.0 Unit 1
Quiz
•
University
10 questions
Scratch
Quiz
•
KG - Professional Dev...
16 questions
E-Commerce
Quiz
•
University - Professi...
20 questions
Control Structures C#
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
