C Programming MCQ Quiz

C Programming MCQ Quiz

12th Grade

15 Qs

quiz-placeholder

Similar activities

Fundamentos de Bases de Datos

Fundamentos de Bases de Datos

10th Grade - University

15 Qs

Quiz Array

Quiz Array

10th Grade - University

10 Qs

Quiz Berpikir Komputasional x

Quiz Berpikir Komputasional x

8th Grade - University

20 Qs

Quiz Perangkat Keras Komputer

Quiz Perangkat Keras Komputer

7th Grade - University

10 Qs

Latihan Soal Informatika : Berpikir Komputasional - 2

Latihan Soal Informatika : Berpikir Komputasional - 2

7th Grade - University

10 Qs

Interface Accessibility Quiz

Interface Accessibility Quiz

9th - 12th Grade

15 Qs

Decision-Making Process in Data Modelling

Decision-Making Process in Data Modelling

11th Grade - University

10 Qs

Sitem Komputer 7

Sitem Komputer 7

12th Grade

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?