Day 4 C Programming Quiz

Day 4 C Programming Quiz

Professional Development

10 Qs

quiz-placeholder

Similar activities

5. Control statement

5. Control statement

Professional Development

10 Qs

Java Fundamentals

Java Fundamentals

Professional Development

11 Qs

Java Programming RBVRRIT

Java Programming RBVRRIT

University - Professional Development

10 Qs

Javascript

Javascript

KG - Professional Development

13 Qs

Arrays & Strings using C

Arrays & Strings using C

Professional Development

15 Qs

Digital Electronics Weekend Assignment 5

Digital Electronics Weekend Assignment 5

University - Professional Development

10 Qs

Excel Básico [02]

Excel Básico [02]

7th Grade - Professional Development

15 Qs

Evaluación de Resultados - JUNIO 2024

Evaluación de Resultados - JUNIO 2024

Professional Development

14 Qs

Day 4 C Programming Quiz

Day 4 C Programming Quiz

Assessment

Quiz

Computers

Professional Development

Practice Problem

Hard

Created by

Phantom Techlogics

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

#include <stdio.h>

int main()

{

double k = 0;

for (k = 0.0; k < 3.0; k++)

printf("Hello");

}

What will be the output of the above C code?

Run time error

Hello

Hello

Hello

Hello

Hello

Hello is printed infinitely

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

int main()

{

int a=10, b, c;

b=a++;

c=++a;

printf("%d %d %d", a, b, c);


return 0;

}

What is the output of the C Program.?

12 10 12

10 11 12

12 11 12

12 12 12

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

We can have any number of case statements within a switch

True

False

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many times is a do-while loop guaranteed to loop?

Infinitely

It varies

1

0

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

int main()

{

int a=22;

do

{

printf("%d ", a);

a++;

}while(a <= 20);


return 0;

}

What is the output of above C Program.?

23

20

22

No Output

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

int main()

{

int k, j;

for(k=1, j=10; k <= 5; k++)

{

printf("%d ", (k+j));

}


return 0;

}

What is the output of the above C Program.?

11

12

13

14

15

10

10

10

10

10

Compiler error

None of above

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When does the code block following,

while(y<100)

execute?

When y is greater than one hundred

When y is less than one hundred

When y is equal to one hundred

None of the above

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?