Project 2 - Basic Elements of C++

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

const int NUMBER = 12; //Line 3 Line 3 contains six basic elements of a C++ program. Type them below, in the order they appear in line 3 from left to right.

-reserved word -reserved word -variable -special symbol

int firstNum; //Line 6 Line 6 contains three basic elements of a C++ program. Type them below, in the order they appear in line 6 from left to right.

-reserved word -variable -special symbol

firstNum = firstNum + NUMBER; //Line 10 Line 10 contains six basic elements of a C++ program. Type them below, in the order they appear in line 10 from left to right.

-variable -assignment operator -variable -arithmetic operator -named constant -special symbol

{ //Line 5 Line 5 contains one basic element of a C++ program. Choose from one of the following and type your answer below exactly as shown:

-curly brace

} //Line 13 Line 13 contains one basic element of a C++ program. Choose from one of the following and type your answer below exactly as shown:

-curly brace

cin >> firstNum; //Line 7 Line 7 contains four basic elements of a C++ program. Type them below, in the order they appear in line 7 from left to right.

-object -stream extraction operator -variable -special symbol

cout << endl; //Line 8 Line 8 contains four basic elements of a C++ program. Type them below, in the order they appear in line 8 from left to right.

-object -stream insertion operator -manipulator -special symbol

cout << "Line 11: The new value of " //Line 11 << "firstNum = " << firstNum; Line 11 contains eight basic elements of a C++ program. Type them below, in the order they appear in line 11 from left to right.

-object -stream insertion operator -string -stream insertion operator -string -stream insertion operator -variable -special symbol

cout << "Line 9: firstNum = " << firstNum //Line 9 << endl; Line 9 contains eight basic elements of a C++ program. Type them below, in the order they appear in line 9 from left to right.

-object -stream insertion operator -string -stream insertion operator -variable -stream insertion operator -manipulator -special symbol

#include <iostream> //Line 1 Line 1 is a(n) ____________. Choose from one of the following and type your answer below exactly as shown:

-preprocessor directive

int main() //Line 4 Line 4 contains two basic elements of a C++ program. Type them below, in the order they appear in line 4 from left to right:

-reserved word -function

return 0; //Line 12 Line 12 contains three basic elements of a C++ program. Type them below, in the order they appear in line 12 from left to right.

-reserved word -integer -special symbol

using namespace std; //Line 2 Line 2 contains four basic elements of a C++ program. Type them below, in the order they appear in line 2 from left to right.

-reserved word -reserved word -named constant -assignment operator -integer -special symbol


Kaugnay na mga set ng pag-aaral

MKT 361 Social Media Marketing Quiz 1

View Set

Chapter 10: Drug Therapy in Pediatric Patients Lehne's Pharm 10ed

View Set

Intro to Experimental Psych Exam 2

View Set

ND Life and Health Chapter 7: Group Life Exam Questions

View Set

Foundations of Human Resource Management

View Set

Standards of practice day 1 and 2

View Set