C Programming Quiz

C Programming Quiz

12th Grade

50 Qs

quiz-placeholder

Similar activities

SAINS KOMPUTER TINGKATAN 4

SAINS KOMPUTER TINGKATAN 4

12th Grade - University

55 Qs

functions in python class 12  vaishali

functions in python class 12 vaishali

11th - 12th Grade

50 Qs

Basic Java with CodeHS

Basic Java with CodeHS

9th - 12th Grade

50 Qs

Computer Basics Test

Computer Basics Test

9th - 12th Grade

50 Qs

OCR GCSE Computer Science Keywords Set 1

OCR GCSE Computer Science Keywords Set 1

9th - 12th Grade

45 Qs

Matpil_TKJ-Arduino Dasar

Matpil_TKJ-Arduino Dasar

9th - 12th Grade

45 Qs

Coding Units 5-10

Coding Units 5-10

9th - 12th Grade

46 Qs

PBO (String) XII

PBO (String) XII

12th Grade

45 Qs

C Programming Quiz

C Programming Quiz

Assessment

Quiz

Computers

12th Grade

Practice Problem

Hard

Created by

Bandaru Chharitha

Used 1+ 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

What will be the output of printf("%d", sizeof('A'));?

1

2

4

8

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used to prevent modification of a variable?

static

const

volatile

register

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

11

12

10

Undefined behavior

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator has the highest precedence in C?

*

++

()

[]

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is used to dynamically allocate memory in C?

alloc()

calloc()

malloc()

Both B and C

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does this code output? int a = 10; int b = a++ + ++a; printf("%d", b);

21

22

23

24

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a storage class in C?

auto

extern

volatile

static

Access all questions and much more by creating a free account

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

Already have an account?