NEW
Font size
WorksheetsC Programming Quiz Bridge Course-2024
Total questions: 10
Worksheet time: 5mins
Who developed the C programming language?
Tim Berners-Lee
Bill Gates
Dennis Ritchie
Linus Torvalds
Which of the following is a feature of C programming?
Interpreted Language
Garbage Collection
Rich Library
Object-Oriented Programming
What is the basic structure of a C program?
Header Files, Main Function, Body, Return Statement
Variables, Loops, Functions, Arrays
Classes, Objects, Methods, Inheritance
HTML, CSS, JavaScript, PHP
Which data type is used for whole numbers in C?
int
double
float
char
What is the syntax for declaring variables in C?
data_type = variable_name;
variable_name = data_type;
data_type variable_name;
variable_name data_type;
What is the purpose of a function in C?
Assign values
Declare variables
Perform a specific task
Create arrays
What is an array in C?
A collection of variables of different types
A collection of functions
A collection of variables of the same type
A collection of loops
What is a pointer in C?
A variable that stores a value
A variable that stores the memory address of another variable
A variable that stores an array
A variable that stores a function
Which operator is used for logical 'AND' in C?
&&
||
!
=
What is the output of the following code snippet in C?
int x = 5;
int y = 3;
int result = x % y;
printf("%d", result);2
1
0
3
