C Programming Quiz

C Programming Quiz

University

16 Qs

quiz-placeholder

Similar activities

JAVA FUNDAMENTALS

JAVA FUNDAMENTALS

University

12 Qs

Week 3 Pass

Week 3 Pass

University

18 Qs

Orientation Quiz

Orientation Quiz

University

20 Qs

Mindzone Season-3

Mindzone Season-3

University

15 Qs

Temel C Programlama Eğitimi

Temel C Programlama Eğitimi

University

20 Qs

C Quiz

C Quiz

University

15 Qs

programming fundamental 1

programming fundamental 1

University

14 Qs

Java Lesson 9

Java Lesson 9

5th Grade - University

12 Qs

C Programming Quiz

C Programming Quiz

Assessment

Quiz

Other

University

Hard

Created by

Anamika Pandey

Used 1+ times

FREE Resource

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

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?