C program MCQ contest

C program MCQ contest

University

•

50 Qs

quiz-placeholder

Similar activities

Pendahuluan Cisco Packet Tracer

Pendahuluan Cisco Packet Tracer

University

•

55 Qs

Introduction to Multimedia

Introduction to Multimedia

University

•

45 Qs

Relational Database Design

Relational Database Design

University

•

47 Qs

General Trivia Quiz 2025

General Trivia Quiz 2025

6th Grade - University

•

49 Qs

Lesson 1 Quiz: Spreadsheets using Excel

Lesson 1 Quiz: Spreadsheets using Excel

University

•

45 Qs

Data Communication and Network

Data Communication and Network

11th Grade - University

•

50 Qs

IP MIDTERM

IP MIDTERM

University

•

45 Qs

shell programing

shell programing

University - Professional Development

•

49 Qs

C program MCQ contest

C program MCQ contest

Assessment

Quiz

•

Computers

•

University

•

Practice Problem

•

Hard

Created by

Koushik T

Used 5+ times

FREE Resource

AI

Enhance your content in a minute

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

50 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the output of this statement "printf("%d", (a++))"?

The output is the value of 'a' multiplied by 2.

Garbage.

Error message.

The output is the current value of 'a'.

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

How many times will the following loop execute?

for(j = 1; j <= 10; j = j-1)

Forever

Never

0

1

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which one of the following is a loop construct that will always be executed once?

for

while

switch

do while

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the result after execution of the following code if a is 10, b is 5, and c is 10?

If ((a > b) && (a <= c))

a = a + 1;

else

c = c+1;

a = 10, c = 10

a = 11, c = 10

a = 10, c = 11

a = 11, c = 11

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

How many characters can a string hold when declared as follows?

char name[20]:

18

19

20

None of these

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Directives are translated by the

pre-processor

compiler

linker

editor

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

How many bytes does "int = D" use?

0

1

2 or 4

10

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?