NEW
Font size
WorksheetsDAY 1 - C& C++ Assessment _10th June 24
Total questions: 10
Worksheet time: 5mins
Which of the following programming paradigms focuses on the concept of objects and classes?
Procedural Programming
Functional Programming
Object-Oriented Programming
. Logical Programming
In which programming paradigm are functions treated as first-class citizens, allowing them to be passed as arguments and returned from other functions?
Procedural Programming
Functional Programming
Object-Oriented Programming
Logical Programming
Which paradigm is characterized by the use of rules and facts to derive conclusions?
Procedural Programming
Functional Programming
Object-Oriented Programming
Logical Programming
Who is considered the father of the C programming language?
Bjarne Stroustrup
James Gosling
Dennis Ritchie
Guido van Rossum
Which of the following is a valid C identifier?
1variable
variable_1
variable-1
variable.1
Which of the following correctly describes the syntax to declare a variable in C?
int x;
declare int x;
int x := 0;
x : int;
Which of the following data types is used to store a single character in C?
int
char
float
double
What will be the output of the following C code snippet?
2.5
2
2.0
3
Which of the following operators is used to calculate the remainder of a division in C?
/
*
%
//
Which of the following statements correctly assigns the value 10 to a variable x in C?
x == 10;
x := 10;
x = 10;
int x = 10;
