Search Header Logo

C++ Coding Problems

Authored by Makoto Goldfinger

Mathematics, Computers

4th Grade - Professional Development

CCSS covered

Used 2+ times

C++ Coding Problems
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Where is the problem in this Code? Not counting include <> or int main() // {}

1 string Push="I am doing Well";

2 cout << "Hello World"\n;

3 cout << "Are You Doing Well?\n";

4 cout << Push;

1

2

3

4

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Freebie: What's the function you must have?

1 #include

2 void

3 int main()

4 string Answer="This is Option 100";

1

2

3

4

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Think Hard: How many variables (least) would you need for a Basic Addition Calculator?

2

1

3

6

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Freebie: What does cout stand for?

Count Typescript

Copy Print

Copy Output

Console Output

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which Operator Does not Exist?

1 &

2 &&

3 >=

4 ==

1

2

3

4

Tags

CCSS.8.SP.A.1

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Freebie: Which is another name for C++

CPP

C

C Sharp

C #

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is wrong in this Function? Assuming it was called from int main()


1 void Softlock() {

2 string Softloc="Irrelevant";

3 cout << "Type 1 for Candy";

4 getline (cin, Softloc);

5 if (Softloc=="1") {

6 return 0;

7 } else {

8 cout << "I can't hear you!\n";

9 Softlock();

10 }

11 }

11

4

6

1

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?