C Programming

C Programming

Professional Development

15 Qs

quiz-placeholder

Similar activities

KYC_OnePLus8/S1 Pro/Oppo A12

KYC_OnePLus8/S1 Pro/Oppo A12

Professional Development

10 Qs

Insurance Concepts

Insurance Concepts

Professional Development

10 Qs

Srimad Bhagawat GIta Quiz 21/12/2024

Srimad Bhagawat GIta Quiz 21/12/2024

Professional Development

16 Qs

Starbucks Quiz 5

Starbucks Quiz 5

University - Professional Development

20 Qs

Intro 7 Writing Exam

Intro 7 Writing Exam

Professional Development

20 Qs

AILET-01 (2020)

AILET-01 (2020)

11th Grade - Professional Development

15 Qs

Pressure "The Hidden Killer"

Pressure "The Hidden Killer"

University - Professional Development

10 Qs

Supply-PKT-June-1

Supply-PKT-June-1

Professional Development

20 Qs

C Programming

C Programming

Assessment

Quiz

Other

Professional Development

Practice Problem

Hard

Used 292+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

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?