WorksheetsC Programming Quiz
Total questions: 19
Worksheet time: 10mins
What is the primary purpose of a computer?
To store data permanently
To run software applications
To connect to the internet
To accept information, process it, and provide results
Who is known as the 'father of the computer'?
Bill Gates
Charles Babbage
Alan Turing
Steve Jobs
What are the two major components of a computer system?
CPU and GPU
Hardware and Software
Input and Output
Memory and Storage
Which of the following is an example of an input device?
Printer
Keyboard
Speaker
Monitor
What does the term 'software' refer to?
Physical components of a computer
Data stored on a hard drive
Network connections
Programs that run on a computer
Which programming language was developed to write the UNIX operating system?
Python
Ruby
Java
C
What is the purpose of a flowchart?
To write code
To debug programs
To represent an algorithm graphically
To store data
What is an algorithm?
A hardware component
A programming language
A step-by-step procedure for solving a problem
A type of software
Which of the following is NOT a data type in C?
int
string
float
char
What does the 'printf' function do in C?
Reads input from the user
Declares variables
Compiles the program
Prints output to the console
Which operator is used for addition in C?
-
*
+
/
What is the output of the expression '5 % 2' in C?
5
1
0
2
What is the purpose of the 'scanf' function?
To compile code
To declare variables
To read input
To print output
Which of the following is a valid variable name in C?
variable-name
variable_name
float
1stVariable
What does the 'const' keyword do in C?
Allocates memory
Declares a variable
Defines a constant value
Creates a function
Which of the following is a logical operator in C?
&&
++
==
!=
What is the result of the expression '!(5 > 3)'?
False
1
0
True
What is the purpose of type casting in C?
To change the data type of a variable
To declare a variable
To read input
To print output
Which of the following is a unary operator?
All of the above
-
++
+
