C Programming Quiz

C Programming Quiz

University

30 Qs

quiz-placeholder

Similar activities

Computer Science Quiz

Computer Science Quiz

University

25 Qs

CODE4KITSW

CODE4KITSW

University

30 Qs

C Programming

C Programming

12th Grade - University

25 Qs

round 2

round 2

University

25 Qs

SKEE1103 CT#11a: Pointers & Arrays

SKEE1103 CT#11a: Pointers & Arrays

University

29 Qs

Electroblitz---Software

Electroblitz---Software

University

25 Qs

C programming 2

C programming 2

University

25 Qs

Cuestionario 1

Cuestionario 1

University

27 Qs

C Programming Quiz

C Programming Quiz

Assessment

Quiz

Other

University

Hard

Created by

InfiTechLearn Team

FREE Resource

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid declaration in C?

int 2num;

float rate = 5.5.5;

char letter = 'A';

int long = 10;

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which format specifier is used for printing unsigned int in C?

%d

%c

%f

%u

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will sizeof('A') return in C?

2

1

4

8

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which loop is guaranteed to execute at least once?

for loop

do-while loop

while loop

goto

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of printf("%d", 5 + 'A');?

5

ASCII of 'A'

ASCII of 'A' + 5

Error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a correct way to declare a pointer to an integer?

int ptr;

int *ptr;

ptr int;

int &ptr;

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used to access the value at the address pointed by a pointer?

&

->

*

@

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?