Quiz 1

Quiz 1

University

7 Qs

quiz-placeholder

Similar activities

DAA Quiz 1

DAA Quiz 1

University

10 Qs

C Program Array and strings

C Program Array and strings

University

10 Qs

C Basics

C Basics

University

12 Qs

pointers and structures

pointers and structures

University

10 Qs

C++ Array

C++ Array

University

10 Qs

Plot the Code

Plot the Code

University

10 Qs

Arrays in C (II yr 02.07.2020)

Arrays in C (II yr 02.07.2020)

University

10 Qs

Array

Array

University

11 Qs

Quiz 1

Quiz 1

Assessment

Quiz

Computers

University

Hard

Created by

Muhammad Arefin

Used 5+ times

FREE Resource

7 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

In C++, the natural logarithm function log ( ) can be accessed through the header file <cmath> ; which makes log ( ) function a :

Pre-defined function

User-defined function

Standard library function

None of the them

All of them

2.

FILL IN THE BLANK QUESTION

30 sec • 2 pts

How many parameters are declared in the following statement which contains the declaration of a function?

int Test (int x, double y, float z, char p, n)

*Type only the number as answer*

3.

MULTIPLE CHOICE QUESTION

3 mins • 3 pts

Media Image

What shall be the output of the program?

82

54.67

34.833

82.503

54.67

27.833

81

54.67

27.833

89.503

54.67

34.833

82

54.67 27.833

4.

OPEN ENDED QUESTION

2 mins • 2 pts

Differentiate between variable declaration and function declaration using an example.

Evaluate responses using AI:

OFF

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The argument passed by "value" to a function can be :

a variable

a constant

an expression

all of them

6.

MULTIPLE CHOICE QUESTION

3 mins • 2 pts

int module (int, int&);

int main()

{ int a = 80, b = 129, c = 144;

module(a, c);

cout << "a = " << a << ", b = " << c; }

int module (int x, int& y)

{ y = x; }

Choose the correct program output.

a = 80

b = 80

a = 80, b = 129

a = 80

b = 144

a = 80, b = 80

a = 80, c = 144

7.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

Media Image

Choose the correct program output.

6

bool

returns 7

7