What will be the output of the following code snippet? int x = 5; int y = 3; int result = x + y * 2; System.out.println(result);

Programming and Data Structures Quiz

Quiz
•
Other
•
Professional Development
•
Hard
Richa Sharma
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
10
11
13
16
2.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
What is the output of the following code? int i = 10; while (i > 0) { System.out.println(i); i -= 2; }
10, 8, 6, 4, 2
10, 9, 8, 7, 6, 5, 4, 3, 2, 1
10, 7, 4, 1
Infinite loop
3.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
What is the value of x after executing the following code? int x = 5; x = x++ + ++x;
10
11
12
13
4.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
What will be the output of the following program (intermediate) x = 10 y = 20 x = x + y x = x * 10 x = y print(x)
20
30
300
100
5.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
In a certain code “SAND” is written as “UCPF”. How is “STONE” is written in that code?
SRLFE
UNSOP
UVQPG
UDLPQ
6.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
The prefix form of P-Q/ (R * S ^ T) is?
-P/Q*R^ST
-P/QR*^ST
-PQRS*^ST
-/*^PQRST
7.
FILL IN THE BLANK QUESTION
10 sec • 1 pt
A recipe calls for 1 cup of flour for every 2 eggs. If you use 4 eggs, how many cups of flour do you need?
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
Bahasa dan Software Compiler Pemrograman Mikrokontroler

Quiz
•
Professional Development
15 questions
Python & SQL

Quiz
•
Professional Development
20 questions
VIVANTA 23

Quiz
•
Professional Development
15 questions
We - THE DATA SCIENTISTS !

Quiz
•
Professional Development
20 questions
SANDY

Quiz
•
Professional Development
18 questions
Pruwugalap - hibakeresés

Quiz
•
Professional Development
15 questions
Lists and operators

Quiz
•
Professional Development
10 questions
Python Basics

Quiz
•
Professional Development
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