
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
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);
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 Wayground
20 questions
SANDY

Quiz
•
Professional Development
20 questions
Season 5 #Spaic Python Weekly Quiz

Quiz
•
KG - Professional Dev...
10 questions
Python Loop Statements

Quiz
•
Professional Development
15 questions
Lists and operators

Quiz
•
Professional Development
10 questions
Python Basics

Quiz
•
Professional Development
15 questions
REV CODE

Quiz
•
Professional Development
15 questions
Python & SQL

Quiz
•
Professional Development
20 questions
Quiz-1

Quiz
•
University - Professi...
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade