C Programming Quiz

C Programming Quiz

12th Grade

50 Qs

quiz-placeholder

Similar activities

DNA 11 April 2024

DNA 11 April 2024

12th Grade

45 Qs

LATIHAN PTS BAB STRUKTUR DATA

LATIHAN PTS BAB STRUKTUR DATA

12th Grade

55 Qs

LATIHAN SOAL

LATIHAN SOAL

10th Grade - University

50 Qs

SAS Informatika Ganjil Kelas 8

SAS Informatika Ganjil Kelas 8

8th Grade - University

50 Qs

7517 03 Section Assessment

7517 03 Section Assessment

12th Grade

50 Qs

SAS Informatika Ganjil Kelas 9

SAS Informatika Ganjil Kelas 9

9th Grade - University

50 Qs

Data Structure Quiz 1

Data Structure Quiz 1

KG - 12th Grade

50 Qs

Assessment - Unit 1 Review

Assessment - Unit 1 Review

9th - 12th Grade

45 Qs

C Programming Quiz

C Programming Quiz

Assessment

Quiz

Computers

12th Grade

Hard

Created by

Bandaru Chharitha

Used 1+ times

FREE Resource

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

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?