Control Statements - C

Control Statements - C

12th Grade

10 Qs

quiz-placeholder

Similar activities

Function & Scope of variable in Python

Function & Scope of variable in Python

12th Grade

10 Qs

Functions - C

Functions - C

12th Grade - University

10 Qs

Unit 5 Review

Unit 5 Review

9th - 12th Grade

12 Qs

C++ - Loops and Random Numbers

C++ - Loops and Random Numbers

9th - 12th Grade

14 Qs

python -intermediate level

python -intermediate level

7th - 12th Grade

10 Qs

Programming Constructs

Programming Constructs

12th Grade

10 Qs

Random in Python

Random in Python

12th Grade

9 Qs

7.9 Identifying and Correcting Errors Cambridge IGCSE 0478

7.9 Identifying and Correcting Errors Cambridge IGCSE 0478

10th Grade - University

10 Qs

Control Statements - C

Control Statements - C

Assessment

Quiz

Computers

12th Grade

Hard

Created by

Purushotham M

Used 17+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of the following C code?

Compile time error

Hello is printed thrice

Nothing

Varies

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of the following C code?

2.000000

4.000000

3.000000

Run time error

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of the following C code?

Hello

Infinite hello

Run time error

Nothing

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of the following C code?

Compile time error

Infinite loop

After loop

Undefined behaviour

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of the following C code?

In for loop After loop

After loop

Compile time error

Undefined behaviour

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of the following C code?

In while loop

In while loop

In while loop

In while loop

In while loop

Depends on the compiler

Compile time error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

How many times i value is checked in the following C code?

2

3

4

1

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?