c++ final

Ace your homework & exams now with Quizwiz!

of the following, which is a valid c++ identifier June1997 _employee_number _department myextralongvariablename

all of the above

the ____ causes the content of another file to be inserted into a program

#include directive

what is the modulus operator

%

character constant in c++ are always enclosed in ___

' ' single quotation marks

what is the output of the following statement? cout << 4 * (15 / (1+3)) << endl;

12

Look at the following program and answer the question that follows it. https://moodle2.uncc.edu/pluginfile.php/987254/question/questiontext/854651/34/1262887/f3g1q34g1.gif

14

what is the value of cookies after the execution of the following statements int number = 38, children = 4, cookies; cookies = number % children;

2

which one of the following would be an illegal variable name

3dGraph

which character signifies the beginning of an escape sequence?

\

which escape sequence causes the cursor to move to the beginning of the current line

\r

this control sequence is used to skip over to the next horizontal tab stop

\t

these are data items whose value do not change while the program is running

literals

if you use a c++ key word as an identifier, your program will

not complile

in memory, c++automatically places a _____ at the end of sting literals

null terminator

a statement that starts with a # symbol is callled a

preprocessor directive

this is used to mark the end of a complete c++ programming statement

semicolon (;)

a character literal is enclosed in ____ quotation marks, whereas a string literal is enclosed in ___ quotation marks

single ( ' ' )/double (" ")

the floating data type is considered ____ precision, and the double data type is considered ___ precision

single, double

this function in c++ allows you to identify how many btes of storage on your computer system an integer data value requires

sizeof

in programming terms, a group of characters inside a set of quotation marks is called a

string literal

in a c++ program, two // indicate what

the beginning of a comment

__________ must be included in any program that uses the cout object

the header file iostream

_____ represent storage locations in the computer memory

variables

a variable whose value can be either true or false is of the data type

bool

which data type typically requires only one byte of storage

char

for every opening brace in C++ there must be a

closing brace

the ___ is/are used to display information on the computer screen

cout object

you must have a _____ for every variable you intend to use in a program

definition

these are used to declare variables that can hold real numbers

floating point data types

every complete c++ program must have a ___

function named main

besides decimals, two othe rnumber systems you might encounter in c++ programs are

hexadecimal and octal

which of the following correctly consolidates the following declaration statements into one statement int x = 7; int y=16; int z=28;

int x = 7, y = 16, z=28;

the numeric data types in c++ can be broken into two general categories

integer and floating point


Related study sets

Bio-210: Exam 3 Chapter 7 Muscular System

View Set

Fundamentals Exam 2 Chapter 29 Medications

View Set

Pharm prepu 37: Peptic Ulcer Disease and Hyperacidity

View Set

cisco cyber security essentials 2

View Set

Policy Provisions and Contract Law Chapter 2

View Set