C Programming Quiz

C Programming Quiz

University

16 Qs

quiz-placeholder

Similar activities

Computer System Servicing: Occupational Health and Safety

Computer System Servicing: Occupational Health and Safety

10th Grade - University

15 Qs

Thương Hiệu

Thương Hiệu

University - Professional Development

15 Qs

Chayamana Quiz Competition

Chayamana Quiz Competition

1st Grade - University

15 Qs

Hospitality and Service Excellent

Hospitality and Service Excellent

University

14 Qs

Macro Economics 19.1 - 19.2

Macro Economics 19.1 - 19.2

University

14 Qs

Kuiz Kenali Ubat Anda (KUA) 2022

Kuiz Kenali Ubat Anda (KUA) 2022

KG - Professional Development

16 Qs

Session 3

Session 3

University

13 Qs

Safety Briefing Quiz

Safety Briefing Quiz

University

20 Qs

C Programming Quiz

C Programming Quiz

Assessment

Quiz

Other

University

Practice Problem

Hard

Created by

Anamika Pandey

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...

16 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct syntax to declare a variable in C?

int variable;

int variable:

var int variable;

integer variable;

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type is used to store a single character in C?

int

float

char

double

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code?int x = 5; printf("%d", x++);

4

5

6

Compilation error

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code? int a = 10, b = 5; printf("%d", a % b);

5

0

2

Compilation error

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used to access the address of a variable?

*

&

%

$

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid identifier in C?

2ndValue

first_value

float

#define

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which format specifier is used to print a floating-point number?

%d

%c

%f

%s

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?