Search Header Logo

Programming and Data Structures Quiz

Authored by Richa Sharma

Other

Professional Development

Programming and Data Structures Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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?

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?