C Programming Quiz

C Programming Quiz

University

30 Qs

quiz-placeholder

Similar activities

JavaScript

JavaScript

University

30 Qs

ThinkBots - Round 1

ThinkBots - Round 1

University

30 Qs

Conceptos básicos de C++

Conceptos básicos de C++

University

25 Qs

Arduino Coding

Arduino Coding

University

25 Qs

Java and C Programming Quiz

Java and C Programming Quiz

University

30 Qs

2.2mo

2.2mo

University

35 Qs

Modeule-I-C

Modeule-I-C

University

25 Qs

C Language

C Language

University

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