C Programming MCQ Quiz

C Programming MCQ Quiz

12th Grade

15 Qs

quiz-placeholder

Similar activities

Quizizz SIOTICS #2

Quizizz SIOTICS #2

10th Grade - University

20 Qs

12A and C version 1 Final Semester 1 Exam

12A and C version 1 Final Semester 1 Exam

12th Grade

20 Qs

Arrays in CQuiz

Arrays in CQuiz

1st Grade - University

10 Qs

9618 functions,procedures,string functions-recap

9618 functions,procedures,string functions-recap

12th Grade

20 Qs

Fungsi Input dan Output dalam C

Fungsi Input dan Output dalam C

12th Grade

15 Qs

C++: Control y Funciones

C++: Control y Funciones

12th Grade

20 Qs

Python Review - Class Mobil

Python Review - Class Mobil

7th Grade - University

10 Qs

Fundamentos da Linguagem C

Fundamentos da Linguagem C

12th Grade

10 Qs

C Programming MCQ Quiz

C Programming MCQ Quiz

Assessment

Quiz

Information Technology (IT)

12th Grade

Hard

Created by

Manjunatha M

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many times "ASOFTLAB" is get printed? #include int main() { int x; for(x=-1; x<=10; x++) { if(x < 5) continue; else break; printf("ASOFTLAB"); } return 0; }

Infinite times

11 times

0 times

10 times

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In mathematics and computer programming, which is the correct order of mathematical operators?

Addition, Subtraction, Multiplication, Division

Division, Multiplication, Addition, Subtraction

Multiplication, Addition, Division, Subtraction

Addition, Division, Modulus, Subtraction

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following C program? #include int main() { printf("%lu", sizeof(int)); return 0; }

2

4

8

16

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following program? #include main() { printf("\"); }

- \

- "

- "

- Compile error

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Compiler generates ___ file.

- Executable code

- Object code

- Assembly code

- None of the above.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The return keyword used to transfer control from a function back to the calling function.

- Yes

- Switch

- go back

- goto

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code snippet? #include main() { int const a = 5; a++; printf("%d",a); }

- 5

- 6

- Runtime error

- Compile error

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?