CPP2

CPP2

University

11 Qs

quiz-placeholder

Similar activities

Array - C++ Programming

Array - C++ Programming

University

9 Qs

funciones en c++

funciones en c++

University

10 Qs

Lesson 3 Getting Started with C Programming

Lesson 3 Getting Started with C Programming

12th Grade - University

14 Qs

Three-phase Controlled Rectifiers (Part 11)

Three-phase Controlled Rectifiers (Part 11)

University

10 Qs

Java Programming Quiz

Java Programming Quiz

University

13 Qs

FMSS_Prelim Exam

FMSS_Prelim Exam

University

15 Qs

C++  quiz

C++ quiz

University

15 Qs

Intro C++

Intro C++

University

12 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?