Search Header Logo

C second module quiz

Authored by SHANIFA E

Computers

Professional Development

Used 1+ times

C second module quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which of the following is conditional statement in C

if

int

printf

scanf

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

a=4;

if(a%2==0)

printf("%d is even",a);

else

printf("%d is odd",a);

Write output of the above code

4 is even

a is even

4 is odd

a is odd

3.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

switch(expression)

{    

case value1:    

 //code to be executed;  break;  //optional  

case value2:  

//code to be executed;break;  //optional  

…..    

…… 

default:     

//code to be executed if all cases are not matched;    

}    

The above code is syntax of switch statement.True or false

False

True

4.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

..................... is an alternative to mulifiple if else if statement

for

if else

do while

switch

5.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Media Image

This is flowchart of

if

if else

switch

for

6.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

.................. is an entry controlled loop

while

do while

switch

7.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

................. is an exit controlled loop

while

do while

for

switch

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?