PREDICT THE OUTPUT

PREDICT THE OUTPUT

Assessment

Quiz

Computers

University

Hard

Created by

LE210 Sankara Nayaki K

Used 39+ times

FREE Resource

Student preview

quiz-placeholder

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Guess the output?

3

-4

4

Compile error

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of following program?

0

1

2

3

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following operator can be used to access value at address stored in a pointer variable?

*

&

->

.

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

To print a double value, which format specifier can be used?

%l

%ld

%d

%lf

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What is the output of the following code snippet?

Hi

HelloHi

Compile error

Compiler warning

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the below code snippet?

Infinite loop

Prints “Hello” once

No output

Compile error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the below code snippet?

Infinite loop

Prints “Hello” once

No output

Compile error

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?