CS1 Pre/Mid/Post Test
Multiple Choice.  Choose the best answer for each.
Sign in to Google to save your progress. Learn more
FULL NAME (First Last) *
To add numbers together we use the symbol *
The symbol for modulo is *
To input data into a program we use which command? *
sum=sum+1 can also be represented by *
A for loop that is inside another for loop is called a ______ loop. *
This can be used to keep track of how many times an operation is performed in a program. *
<iostream>, <iomanip>, <cstdlib>, and <cmath> are all types of c++ *
One of the most common types of sorts is a _________ sort. *
In the line  r=rand()%5  the range of the random number gernerated is from *
To end a line or return in a program you can use *
The symbols <, >, <=, and >= are used when *
What is used to enter a long list of data into a generated list of variables? *
cout<<"Enter Grade<<endl; is missing what symbol? *
In order to increment, what is missing in  for(int i=0; i<=10; i) *
What is wrong with num2=num1; in this code?  temp=num1;  num2=num1;  num2=temp; *
Which type of variable is more precise with decimals? *
What does if( c != 6 ) mean? *
What should be corrected in the line     if ( x = 5 ) *
What is the value of x in this line?     int x = (25/2); *
What is the value of x in this line?  int x = 5%2; *
What is wrong with this line?  int num[5]={10,25,12,6}; *
In the line   int num[5];  what does the num part represent? *
In the line  r=rand()%6;  what does the %6 part represent? *
Which would not be a variable created for the elements of name[3]? *
We use cout and cin to output and input data to what? *
The setw() function always outputs in this justification. *
To end case 1:  , you must have ______ before the next case. *
pow(5,2) would output a value of ... *
To input data from a file, the C++ keyword is . . . *
The library for input/output of data to a file is #include ________. *
What is the value for len?   string a="tom";   int len=a.length();   cout<<len; *
When using if, else if, and else  which does not have a condition? *
Cases are most often used in programs to create a *
cout<<setprecision(3)<<fixed;  would output how many decimal places for a float or double variable? *
system("PAUSE"); and system("CLS"); use the library #include _______. *
What extension do we use for the input file when using <fstream>? *
When Code Blocks builds and runs a program, what is it doing? *
The following line    switch(choice)   is associated with *
The father of computers is *
A step by step problem solving process in which a solution is arrived at in a finite amount of time. *
Words built in to a programming language are called keywords or ______ words. *
DO is often followed by or paired with what other keyword? *
The character used at the end of an executable line in C++ is a _____. *
string a = "tom" creates an array.   Which of the following would NOT be true? *
Which of the following is NOT a valid variable or identifier? *
What types of values can the switch structure use in its control expression? *
The value of 3*4/(10%2) -18 would result in *
Which of the following is NOT a valid comparison for use in an if( ) statement? *
The command  infile.open("myfile.txt");  . . . *
Lines within a loop should have which symbols around them? *
What type of variable would give the following output specifically?    100 (no decimal) *
What type of variable would give the following output specifically?    3.14159 *
What type of variable would give the following output specifically?    10,54,-6.7,88.4 *
What type of variable would give the following output specifically?    28.3 *
What type of variable would give the following output specifically?    spiderman *
What type of variable would give the following output specifically?    A *
How many times will the loop run? *
(see handout - code 1)
What is the output on the 2nd run? *
(see handout - code 1)
What do these lines of code represent? *
(see handout - code 1)
Which variable represents the amount of numbers printed in the pattern? *
(see handout - code 2)
The lines with // in front of them are lines that are . . . *
(see handout - code 2)
How will the output of the pattern look? *
(see handout - code 2)
What is the for(int i=1; i<=n; i++) part of the program? *
(see handout - code 2)
The program's code is . . .
(see handout - code 2)
Clear selection
How much you know about a computer is called computer *
Each of the following are types of input devices except *
Which of the following is NOT related to the System Unit? *
I P O S are four letters that represent the 4 functions of a computer.  What does the P stand for? *
Jump drives, floppy disks, and hard drives are types of *
Information is the organization of *
1 byte of information is equal to how many bits? *
The following are challenges facing a digital society today.  Which one is NOT a challenge? *
Which of the following would be a representation of DATA? *
Intel, AMD, and Motorola are types of this on a computer platform. *
Microsoft Windows, IOS, Android are a examples of a computers what? *
CPU stands for Central Processing _______. What does the U represent? *
RAM stands for Random Access __________.  What does the M represent? *
Each are types of printers except *
A CRT monitor is a Cathode ______ Tube. What does the R represent? *
Printers, monitors, mice, and scanners are all type of computer *
QWERTY and DVORAK are types of *
The way you sit and type at a computer is called *
This can be added to a computer to enhance/upgrade graphics, sound, modems. *
The first virus that infected the boot sector of a floppy disk was named the *
The INTERNET was oringinally called this back in 1969. *
Submit
Clear form
Never submit passwords through Google Forms.
This form was created inside of Lafayette Parish School System. Report Abuse