C Programming

C Programming

Professional Development

15 Qs

quiz-placeholder

Similar activities

Mastering Arrays in Go

Mastering Arrays in Go

Professional Development

17 Qs

REV CODE

REV CODE

Professional Development

15 Qs

Functions in C

Functions in C

Professional Development

10 Qs

IntroJavaFundamenta

IntroJavaFundamenta

Professional Development

20 Qs

Python & SQL

Python & SQL

Professional Development

15 Qs

TECHNICAL MCQ

TECHNICAL MCQ

Professional Development

15 Qs

P82 Invention and Robotic Club 06/21

P82 Invention and Robotic Club 06/21

KG - Professional Development

15 Qs

Knots

Knots

5th Grade - Professional Development

14 Qs

C Programming

C Programming

Assessment

Quiz

Other

Professional Development

Hard

Used 290+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

In the following loop construct, which one is executed only once always.

for(exp1; exp2; exp3)

exp1

exp3

exp1 and exp3

exp1,exp2 and exp3

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

The continue statment cannot be used with

for

while

do while

switch

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

goto can be used to jump from main to within a function?

true

false

-

-

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which loop is guaranteed to execute at least one time.

for

while

do while

none of the above

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

A labeled statement consist of an identifier followed by

:

;

?

=

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

c = (n) ? a : b; can be rewritten asexp1 ? exp2 : exp3;

if(n){c = a;}else{c = b;}

if(!n){c = a;}else{c = b;}

if(n){c = b;}else{c = a;}

None of the above

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What will be the output of the following C code?

#include <stdio.h>

int main()

{

while ()

printf("In while loop ");

printf("After loop\n");

}

In while loop after loop

After loop

Compile time error

Infinite loop

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?