WorksheetsProgramming Language Quiz
Total questions: 10
Worksheet time: 5mins
Which of the following is considered a high-level programming language?
Assembly
Machine code
C++
Binary
What is the main purpose of a programming language?
To design websites
To communicate with other programmers
To give instructions to a computer
To edit images
What is an algorithm?
A software application
A graphical representation of a program
A step-by-step procedure to solve a problem
A type of data
In a flowchart, which shape is used to represent a decision?
Oval
Rectangle
Diamond
Parallelogram
Which of the following is a correct declaration of an integer variable in C?
int x;
integer x;
num x;
x int;
What data type should be used to store a character in C?
float
char
string
int
What does the printf() function do in C?
Reads input from the user
Outputs text to the screen
Declares a variable
None of the above
Which of the following is the correct way to read an integer input using scanf in C?
scanf("%d", x);
scanf("%d", &x);
scanf("%f", &x);
scanf(x, "%d");
Which keyword is used to declare a constant in C?
static
const
define
fixed
What will be the result of the expression 5 + 2 * 3 in C?
21
11
15
13
