Which of these selection statements test only for equality?
Java Questions & Answers

Quiz
•
Computers
•
University
•
Medium
Chaya Td
Used 40+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
if
switch
if & switch
none of the above mentioned
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these are selection statements in Java?
if()
for()
continue
break
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of this statement is incorrect?
switch statement is more efficient than a set of nested ifs
two case constants in the same switch can have identical values
switch statement can only test for equality, whereas if statement can evaluate any type of boolean expression
it is possible to create a nested switch statements
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will be the output of the following Java program?
1
2
3
4
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a valid jump statement?
break
goto
continue
return
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The while loop repeats a set of code while the condition is not met?
True
False
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is it called if an object has its own lifecycle and there is no owner?
Aggregation
Composition
Encapsulation
Association
Create a free account and access millions of resources
Similar Resources on Quizizz
15 questions
Just for fun

Quiz
•
University
10 questions
Introduction to Programming

Quiz
•
University
10 questions
BASIC PROGRAMMING QUIZ by Group 5

Quiz
•
University
10 questions
Day1 Quiz

Quiz
•
University
13 questions
Principles of Programming

Quiz
•
KG - University
14 questions
Programming Paradigms

Quiz
•
University
15 questions
code trivia

Quiz
•
University
11 questions
Java Programming

Quiz
•
University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade