C Programming Quiz

C Programming Quiz

University

30 Qs

quiz-placeholder

Similar activities

Renal Physiology

Renal Physiology

University - Professional Development

25 Qs

Round 2- Syntax ShowDown

Round 2- Syntax ShowDown

University

25 Qs

Round1

Round1

University

25 Qs

DAA Tutorial-1

DAA Tutorial-1

University

32 Qs

SKEE1103 CT#11a: Pointers & Arrays

SKEE1103 CT#11a: Pointers & Arrays

University

29 Qs

JAVA QUIZ 2

JAVA QUIZ 2

University

25 Qs

Perci_Module 10.1

Perci_Module 10.1

University

25 Qs

ACM Bootcamp 7.0

ACM Bootcamp 7.0

University

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