C Programming Quiz

C Programming Quiz

University

51 Qs

quiz-placeholder

Similar activities

CC 101 Final Exam

CC 101 Final Exam

University

50 Qs

Joy of Programming

Joy of Programming

University

50 Qs

2nd C Programming Quiz

2nd C Programming Quiz

University

50 Qs

C programming quiz

C programming quiz

University

55 Qs

Java Programming Quiz 2-6

Java Programming Quiz 2-6

University

50 Qs

Test 1

Test 1

University

49 Qs

Assignment Quiz

Assignment Quiz

University

47 Qs

first quiz ICT

first quiz ICT

University

48 Qs

C Programming Quiz

C Programming Quiz

Assessment

Quiz

Computers

University

Hard

Created by

Bader Saad

FREE Resource

51 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the common file extension for C language files?

.cpp

.c

.java

.py

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct way to declare a variable in C?

var x = 10;

int x = 10;

x = 10;

define x = 10;

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which symbol is used to indicate a single-line comment in C?

//

/*

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of printf(“%d”, 5/2); in C?

2.5

2

3

Error

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which header file is required to use the printf() function?

math.h

string.h

stdio.h

stdlib.h

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the size of the int data type in C (on most modern systems)?

1 byte

2 bytes

4 bytes

8 bytes

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

_variable

variable1

1variable

variable_name

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?