C Programming Quiz

C Programming Quiz

University

16 Qs

quiz-placeholder

Similar activities

Junk Genius

Junk Genius

University

11 Qs

python giber

python giber

University

21 Qs

BASICS OF JAVA-1

BASICS OF JAVA-1

University

20 Qs

C Programming Concepts

C Programming Concepts

University

13 Qs

Exploring the Basics of C Programming

Exploring the Basics of C Programming

11th Grade - University

20 Qs

QUIZERIA

QUIZERIA

University

20 Qs

Quiz on Object Oriented Programming and Java

Quiz on Object Oriented Programming and Java

University

15 Qs

SJIT ECE APTITUDE PRACTICE TEST-1@10-11-2023

SJIT ECE APTITUDE PRACTICE TEST-1@10-11-2023

University

20 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?