CPP-TESTING

CPP-TESTING

University

9 Qs

quiz-placeholder

Similar activities

Web Programming Quiz in Portuguese

Web Programming Quiz in Portuguese

University

10 Qs

2025_PE_U4_act19

2025_PE_U4_act19

University

10 Qs

QUIZ 2 PLC

QUIZ 2 PLC

10th Grade - University

10 Qs

IMSD_Week-1_CSE-1

IMSD_Week-1_CSE-1

University

10 Qs

Responsi ELDIG - P5

Responsi ELDIG - P5

University

10 Qs

Tinklalapių kūrimo sąvokos

Tinklalapių kūrimo sąvokos

10th Grade - University

12 Qs

Data Structures and Algorithms Quiz

Data Structures and Algorithms Quiz

University

14 Qs

LD siskom SE

LD siskom SE

10th Grade - 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?

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?