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