
Set - 2
Quiz
•
Computers
•
University
•
Hard
Vedadri Harith Nadupalle
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which Java collection class provides an ordered, index-based structure, but allows duplicate elements?
Vector
LinkedList
ArrayList
HashSet
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the 'transient' keyword in Java?
It indicates that a variable cannot be changed
It specifies that a variable is not part of the object's persistent state
It is used to declare an immutable class
It is used to define a variable that cannot be serialized
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code?
int x = 5;
System.out.println(x > 2 ? x < 4 ? 10 : 8 : 7);
7
It will not compile
8
10
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If PENCIL is coded as 742956, how is PAPER coded?
81594
87514
81754
85714
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A clock shows 3:45. What is the angle between the hour and minute hands?
120 degrees
112.5 degrees
150 degrees
135 degrees
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a correct way to declare a constant in Java?
static final int VALUE = 10;
constant int VALUE = 10;
final int VALUE = 10;
const int VALUE = 10;
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code snippet?
numbers = (4, 7, 19, 2, 89, 45, 72, 22)
sorted_numbers = sorted(numbers)
even = lambda a: a % 2 == 0
even_numbers = filter(even, sorted_numbers)
print(type(even_numbers))
list
tuple
int
filter
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Python introduction
Quiz
•
University
19 questions
Data Types Java Concepts
Quiz
•
University
15 questions
Java Programming
Quiz
•
University
20 questions
Pointers
Quiz
•
University
15 questions
C programming
Quiz
•
University
20 questions
Computer Fundamental and C Programming Concept
Quiz
•
University
15 questions
Milking Minds 2 17-01-24
Quiz
•
University
15 questions
FOP - RECAP CHAP 3
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
