wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

DAY 1 - C& C++ Assessment _10th June 24

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

Which of the following programming paradigms focuses on the concept of objects and classes?

a)

Procedural Programming

b)

Functional Programming

c)

Object-Oriented Programming

d)

. Logical Programming

2.

In which programming paradigm are functions treated as first-class citizens, allowing them to be passed as arguments and returned from other functions?

a)

Procedural Programming

b)

Functional Programming

c)

Object-Oriented Programming

d)

Logical Programming

3.

Which paradigm is characterized by the use of rules and facts to derive conclusions?

a)

Procedural Programming

b)

Functional Programming

c)

Object-Oriented Programming

d)

Logical Programming

4.

Who is considered the father of the C programming language?

a)

Bjarne Stroustrup

b)

James Gosling

c)

Dennis Ritchie

d)

Guido van Rossum

5.

Which of the following is a valid C identifier?

a)

1variable

b)

variable_1

c)

variable-1

d)

variable.1

6.

Which of the following correctly describes the syntax to declare a variable in C?

a)

int x;

b)

declare int x;

c)

int x := 0;

d)

x : int;

7.

Which of the following data types is used to store a single character in C?

a)

int

b)

char

c)

float

d)

double

8.

What will be the output of the following C code snippet?

a)

2.5

b)

2

c)

2.0

d)

3

9.

Which of the following operators is used to calculate the remainder of a division in C?

a)

/

b)

*

c)

%

d)

//

10.

Which of the following statements correctly assigns the value 10 to a variable x in C?

a)

x == 10;

b)

x := 10;

c)

x = 10;

d)

int x = 10;