C second module quiz

C second module quiz

Professional Development

25 Qs

quiz-placeholder

Similar activities

C

C

Professional Development

20 Qs

C Programming

C Programming

University - Professional Development

30 Qs

C Language Test 3

C Language Test 3

Professional Development

25 Qs

Basics of programming - Quiz - 01

Basics of programming - Quiz - 01

University - Professional Development

20 Qs

C-Quest

C-Quest

Professional Development

20 Qs

SPARK FIDDLE

SPARK FIDDLE

Professional Development

20 Qs

C Language Test - 2

C Language Test - 2

Professional Development

25 Qs

C Code Master

C Code Master

Professional Development

20 Qs

C second module quiz

C second module quiz

Assessment

Quiz

Computers

Professional Development

Hard

Created by

SHANIFA E

Used 1+ times

FREE Resource

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

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?