CPP2

CPP2

University

11 Qs

quiz-placeholder

Similar activities

Pemrograman dasar

Pemrograman dasar

KG - Professional Development

10 Qs

UNIT1_PYTHON

UNIT1_PYTHON

University

10 Qs

Technoquiz..3

Technoquiz..3

University

15 Qs

Recuperación Lógica

Recuperación Lógica

University

10 Qs

POP QUIZ

POP QUIZ

University

6 Qs

Rectifier

Rectifier

University

13 Qs

Python

Python

University

15 Qs

PHP Beginners Quiz

PHP Beginners Quiz

University

15 Qs

CPP2

CPP2

Assessment

Quiz

Other

University

Easy

Created by

Fidaa Abed

Used 7+ times

FREE Resource

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is not a floating point data type in C++?

float

double

long double

long float

2.

FILL IN THE BLANK QUESTION

30 sec • 1 pt

If you want to use the string data type you need to write the following
#include <______>

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

bool x = true;

cout<<x;

//the output will be

true

false

1

0

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

cout<<sizeof(double);

the output will be

4

8

10

2

5.

FILL IN THE BLANK QUESTION

20 sec • 1 pt

Define a variable of type int and name x and give it an initial value 5.

6.

FILL IN THE BLANK QUESTION

30 sec • 1 pt

cout<< 7%3;
the output is

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

cout<<3/2;
the output will be

1

1.5

1 1/2

Error

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?