C Programming Quiz

C Programming Quiz

University

50 Qs

quiz-placeholder

Similar activities

Ha Hoon Chang & Harari

Ha Hoon Chang & Harari

University

47 Qs

PED 3 EXAM

PED 3 EXAM

University

50 Qs

Driving TEST

Driving TEST

University

50 Qs

COM/NAV SYSTEMS — 50 QUESTION QUIZ

COM/NAV SYSTEMS — 50 QUESTION QUIZ

12th Grade - University

50 Qs

Strategy Management for Enterprise Final Exam

Strategy Management for Enterprise Final Exam

University

50 Qs

Road to MQBC #7

Road to MQBC #7

University - Professional Development

50 Qs

Cosmetology 1

Cosmetology 1

11th Grade - University

52 Qs

Curriculum Development

Curriculum Development

University

50 Qs

C Programming Quiz

C Programming Quiz

Assessment

Quiz

Professional Development

University

Practice Problem

Hard

Created by

Suresh Kumar

Used 7+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

50 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following statements about pointers is correct?

A pointer stores the value of a variable.

A pointer stores the memory address of a variable.

A pointer stores the size of a variable.

A pointer is used to add two values.

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which of the following is true about sizeof() operator?

It can be used on any data type.

It returns the size in bits.

It can only be used on variables.

It returns the size in bytes.

3.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What will printf("%d", 5 + 3); output?

53

8

35

5 + 3

4.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What is the format specifier for printing an integer in C?

%c

%s

%d

%f

5.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which of the following is used to clear memory allocated by malloc()?

clear()

free()

delete()

reset()

6.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What is the output of the following code? int a = 5, b = 3; printf("%d", a % b);

1

2

3

5

7.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which function is used to dynamically allocate memory in C?

malloc()

free()

sizeof()

realloc()

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?

Similar Resources on Wayground