Basic C++ Programming Questions

Basic C++ Programming Questions

Assessment

Flashcard

Computers

University

Medium

Created by

Wayground Content

Used 1+ times

FREE Resource

Student preview

quiz-placeholder

18 questions

Show all answers

1.

FLASHCARD QUESTION

Front

What is the output of this code?
int x = 8;
// x = 3;
cout<

Back

8

2.

FLASHCARD QUESTION

Front

What is the type of the temp variable? var temp = 14.55;

Back

Double

3.

FLASHCARD QUESTION

Front

What is the alternative for x = x + 5? Options: x += 5; x -= 4; x = y + 5; x=+5

Back

x += 5;

4.

FLASHCARD QUESTION

Front

iostream

Back

Displays output from the screen and input from the keyboard

5.

FLASHCARD QUESTION

Front

What is the only function that all C++ programs must contain?

Back

main ()

6.

FLASHCARD QUESTION

Front

C++ is a

Back

high-level language

7.

FLASHCARD QUESTION

Front

The process of creating a new variable without value

Back

declaration

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?