C Programming MCQ Quiz

C Programming MCQ Quiz

12th Grade

15 Qs

quiz-placeholder

Similar activities

1.4 Logic Gate and Simple Logic Circuit

1.4 Logic Gate and Simple Logic Circuit

12th Grade - University

13 Qs

Sistem Komputer- Fase E

Sistem Komputer- Fase E

10th Grade - University

17 Qs

Quiz Pemrograman dan Algoritma

Quiz Pemrograman dan Algoritma

1st Grade - University

10 Qs

Latsol

Latsol

10th Grade - University

10 Qs

HTML QUIZ

HTML QUIZ

6th Grade - University

13 Qs

Data Literacy Quizizz

Data Literacy Quizizz

6th Grade - University

15 Qs

Jaringan Komputer dan Internet (Sumatif)

Jaringan Komputer dan Internet (Sumatif)

7th Grade - University

20 Qs

Berpikir Komputasional Kelas 8

Berpikir Komputasional Kelas 8

8th Grade - University

20 Qs

C Programming MCQ Quiz

C Programming MCQ Quiz

Assessment

Quiz

Information Technology (IT)

12th Grade

Practice Problem

Hard

Created by

Manjunatha M

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

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

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?