C Programming Quiz

C Programming Quiz

Professional Development

30 Qs

quiz-placeholder

Similar activities

UH - Teknologi WAN - XI TKJ

UH - Teknologi WAN - XI TKJ

Professional Development

25 Qs

Ice Breaker

Ice Breaker

University - Professional Development

25 Qs

ITS 101 14 Review

ITS 101 14 Review

10th Grade - Professional Development

25 Qs

pedagogik

pedagogik

Professional Development

25 Qs

crm

crm

Professional Development

25 Qs

Quiz Test 02

Quiz Test 02

Professional Development

26 Qs

420-W1S-IDF v.1A

420-W1S-IDF v.1A

Professional Development

25 Qs

Errors

Errors

University - Professional Development

34 Qs

C Programming Quiz

C Programming Quiz

Assessment

Quiz

Computers

Professional Development

Practice Problem

Hard

Created by

SI HACKATHON

FREE Resource

AI

Enhance your content in a minute

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

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid variable name in C?

int 1stVariable

firstVariable

first variable

None of the above

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the following code output? #include int main() { int a = 5, b = 10; printf("%d\n", a + b); return 0; }

5

10

15

Compilation Error

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you insert comments in C?

// comment

/* comment */

// comment /* comment */

All of the above

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to allocate memory dynamically in C?

malloc()

calloc()

realloc()

All of the above

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code? #include int main() { printf("%d\n", sizeof(char)); return 0; }

1

2

4

Undefined

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a data type in C?

int

float

real

char

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code? #include int main() { int x = 10; x += 5; printf("%d\n", x); } return 0;

10

15

5

Compilation Error

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?