Search Header Logo

oopm quiz 1

Authored by Ayesha Mandloi

Computers

Professional Development

Used 1+ times

oopm quiz 1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which header file is required for cout and cin in Turbo C++?

conio.h

iostream.h

stdio.h

iomanip.h

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

In Turbo C++, the return type of main() is usually written as:

void

int

char

float

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What will be the output of cout << "Hello World"; ?

hello world

hello world

Hello World

HELLO WORLD

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

#include <iostream.h>

#include <conio.h>

void main() {

int a = 5, b = 2;

cout << a / b;

getch();

}

What will be the output?

2.5

2

3

Error

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which function is used to pause the output window until a key is pressed?

delay()

stop()

getch()

exit()

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which control statement is used in C++ to choose one option from many?

if-else

switch

for loop

goto

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What will be the factorial of 5 calculated by the program?

25

100

120

60

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?