CPP-TESTING

CPP-TESTING

University

9 Qs

quiz-placeholder

Similar activities

Algoritma

Algoritma

7th Grade - University

10 Qs

Embedded Sys - kelas 11

Embedded Sys - kelas 11

11th Grade - University

10 Qs

Ultrasonic Sensor - L1

Ultrasonic Sensor - L1

6th Grade - University

10 Qs

Informatika 2

Informatika 2

7th Grade - University

10 Qs

Contadores y Acumuladores

Contadores y Acumuladores

University

10 Qs

Parcial 1 Reparación y Soporte- 5to BACO - I Unidad Forma A

Parcial 1 Reparación y Soporte- 5to BACO - I Unidad Forma A

10th Grade - University

13 Qs

java2/67

java2/67

12th Grade - University

10 Qs

Quiz - Hardware & Software

Quiz - Hardware & Software

University

10 Qs

CPP-TESTING

CPP-TESTING

Assessment

Quiz

Information Technology (IT)

University

Practice Problem

Hard

Created by

John Oli

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

9 questions

Show all answers

1.

FILL IN THE BLANK QUESTION

1 min • 1 pt

FILL IN THE BLANK To declare a floating-point variable named "price" with value 10.50,

float _____ = 10.50;

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

MULTIPLE CHOICE What will be the output of:

cout << fixed << setprecision(2) << 5.678;

5.67

5.68

5.6

5.678

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

TRUE/FALSE The statement float total = price * quantity; performs addition.

True

False

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

MULTIPLE CHOICE Which data type would be most appropriate for storing the number of items sold?

float

int

char

string

5.

FILL IN THE BLANK QUESTION

1 min • 10 pts

Media Image

CODE COMPLETION Complete this code to calculate and display the total:

float apple = 5.50,

banana = 3.25;

float _______ = apple + banana;

cout << "Total: " << _______;

6.

FILL IN THE BLANK QUESTION

1 min • 10 pts

Media Image

OUTPUT PREDICTION

What will be the output / Display of this code?

int x = 25; int y = 4;

int result = x / y;

cout << "Answer: " << result;

7.

FILL IN THE BLANK QUESTION

1 min • 10 pts

Media Image

OUTPUT PREDICTION

What will this display?

8.

FILL IN THE BLANK QUESTION

1 min • 10 pts

Media Image

OUTPUT PREDICTION - INTEGER VS FLOAT

Predict the output:

9.

FILL IN THE BLANK QUESTION

1 min • 10 pts

Media Image

OUTPUT PREDICTION - COMPLEX

What's the complete output?