Computer Science practice test 9/7/2017

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

true

C++ does not have a built in data type for storing strings of characters

false

The C++ language requires that you give variables names that indicate what the variables are used for

Constants

These are the data types whose values do not change while the program is still running .

header file iostream

____ must be included in any program that used the cout object

preproccessor directive

a statement that starts with # is called a

99rass

an illegal variable can not have a number in front of it

none of these answers

besides decimal , two other number systems you might encounter in C++ programs are

true

escape sequences are always stored internally as a single character

function named main

every complete C++ program must have a

true

floating point constants are normally stored in memory as doubles

int x =12 , y =6 , z=2;

how would you consolidate the following declaration statement into one statement ?

string literal

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

#include directive

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

opening and closing quotation marks

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

\t

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

single , double

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

intenger and floating point

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

floating point data types

these are used to declare variables that can hold real numbers

semicolon

this used to mark the end of the complete C++ program

5

what will be the value of x be after the following statement execute ? int x; x = 23 % 6

3

what will the value of x be after the following statements execute ? int x; x = 23.0 / 6;

true

when typing in your source code into the computer , you must be very careful since most of your C++

\

which characther signifies the beginning of an escape sequence

char

which data type typically requires only one byte of storage ?

\r

which escape sequence causes the cursor to move to the beginning of the next line ?

double paycheck;

which of the following defines a double precision floating point variable named paycheck?

defintion

you must have a ____ for evert variable you intend to use in a program

Single , double

A character literal is enclosed in ___ quotation marks whereas a string literal is enclosed in _____ quotation marks .

bool

A variable whose value can only be either true or false is of this data type

semicolon

In memory . C++ automatically places a___ at the end of string literal

single quotation marks

character constants in c++ are always enclosed in____


संबंधित स्टडी सेट्स

anthropology Test 2 study guide (ch 4,5,6)

View Set

5.1 and 5.2 Evolution and Community Ecology

View Set

Chapter 15 Pregnancy at Risk: Gestational Onset

View Set

PATHOPHYSIOLOGY NEURO, RENAL, ENDOCRINE

View Set