Programming and Data Structures Quiz

Programming and Data Structures Quiz

Professional Development

15 Qs

quiz-placeholder

Similar activities

Python Basics

Python Basics

Professional Development

10 Qs

Python Dictionary

Python Dictionary

Professional Development

14 Qs

Python Week 1

Python Week 1

Professional Development

15 Qs

REV CODE

REV CODE

Professional Development

15 Qs

Python & SQL

Python & SQL

Professional Development

15 Qs

SANDY

SANDY

Professional Development

20 Qs

PRE-LAB QUIZ 1

PRE-LAB QUIZ 1

Professional Development

15 Qs

Lists and operators

Lists and operators

Professional Development

15 Qs

Programming and Data Structures Quiz

Programming and Data Structures Quiz

Assessment

Quiz

Other

Professional Development

Hard

Created by

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?