Home Help & Support Search Tips Options: Case:



   Need A Tutor?    |   Need Homework Help?                                                                             Help and Support     | Join or Cancel

Computer Programming:     Final Exam 1

Exam  1     2     3     4     5     6     7    8     9    10     Midterm   1    2     Final Exam  1   2
Graded Program Assignment   
1   2    3    4    5    6    7    8    9           Python Compiler

The following assignment statement instructs the computer to initialize a variable with int data type.
howMany = 0;
             
Join Now For Answers & Help!!!
 

                       
To center an output statement, the ^ (caret) symbol will be used in the format specifier of the format function.
             
Join Now For Answers & Help!!!
 

           
Which of the following statement is used to divide one number by another and gives the result as a floating-point number?
 
Join Now For Answers & Help!!!
 

                       
The colon at the end of the for loop condition is optional.
             
Join Now For Answers & Help!!!
 

                       
Writing output to a text file can be accomplished using the following statement:
 
Join Now For Answers & Help!!!; 
 

                       
The body of a function / procedure is always written __________
 
Join Now For Answers & Help!!!
 

                       
Processing test averages for more than one student with more than one test grade can be implemented using:
Join Now For Answers & Help!!!
 

           
GUI stands for Graphical User Illustrations.
 
Join Now For Answers & Help!!!
 

                       
To include comments in a Python program you use the ____________ symbol(s).
 
Join Now For Answers & Help!!!
 

           
while (base < 5):
    print("base = ", base);
    base = base + 1;
The above Python statements yields /outputs which of the following?
 
Join Now For Answers & Help!!!
 

 
The color command / function can change:
 
Join Now For Answers & Help!!!
 

                       
Python is an example of a high level programming language.
             
Join Now For Answers & Help!!!

                       
Comments are used in RAPTOR PROGRAMS TO:
Join Now For Answers & Help!!!
 

           
A function is a collection of statements grouped together that performs an operation.
             
Join Now For Answers & Help!!!
 

           
The following statements are used to populate the values array / list.
howMany = 5;
for count in range(0, howMany, 1):
        values.append(float(input( "Please enter value #" + str(count + 1) + "==> ")));
             
Join Now For Answers & Help!!!
 

           
Which of the following symbols is used in a flowchart to represent a decision?
 
Join Now For Answers & Help!!!
 

 
Question 17               
What logical operator checks to see if both conditions are met?
 
Join Now For Answers & Help!!!
 

           
As a standard rule for naming variables, arrays and other identifiers:
 
Join Now For Answers & Help!!!
 

           
The ___________ library is imported to provide functions for drawing graphics on the screen.
 
Join Now For Answers & Help!!!
 

           
The \t and \n are examples of one of Python's escape characters.
             
Join Now For Answers & Help!!!
 

                       
A value-returning function:
 
Join Now For Answers & Help!!!
 

           
Arrays and Lists are especially useful in conjunction with:
 
None of the other options are correct.
Output statements
Loops.
If statements.
Input statements.

Join Now For Answers & Help!!!
 

           
grossPay = hours * rate;
where hours = 40
and rate = 35
grossPay is equal to:
 
35
75
40
1400

Join Now For Answers & Help!!!
 

           
The following Python statement  instructs the program to open a file for input.
inFile = open("grocerydataFinalPY.txt", "w");
             
Join Now For Answers & Help!!!
 

           
You save files containing Python source code using the file extension
 
Join Now For Answers & Help!!!
 

           
Breaking a problem into smaller parts is called:
 
Join Now For Answers & Help!!!
 

           
What is the function of the passCount index / loop control variable (lcv) in the following code?
for passCount in range(1, count - 1, 1):
    for swap in range(1, count - 1, 1):
        if values[swap] > values[swap + 1]:
            tempValue = values[swap];
            values[swap] = values[swap + 1];
            values[swap + 1] = tempValue;
            # end if
         # end for swap loop
     # end for passCount loop
 
Join Now For Answers & Help!!!
 

                       
Which symbol can sometimes be used when inputting a numeric value?
 
Join Now For Answers & Help!!!
 

           
The code below is an example of:
 
# initialize Variables
def initializeVariables():
    global count, howMany, grandTotal, subTotal, tax, totalPrice;
    count = 1;
    howMany = 0;
    grandTotal = 0.00;
    subTotal = 0.00;
    tax = 0.00;
    # end initialize global variables
 
 
Join Now For Answers & Help!!!
 

           
Named computer memory locations are called _____________.
 
Join Now For Answers & Help!!!
 

                       
What is the output of the following code?
count = 1;
while (count < 5):
    print(count);
    count = count + 1;
Join Now For Answers & Help!!!
 

                       
The following is an example of a method used to get data from a line.
line.getTheLine
             
Join Now For Answers & Help!!!
 

                       
The symbols (<, <=, >, >=, ==, !=) used for comparing data in Python are called comparison or relational operators.
             
Join Now For Answers & Help!!!

                       
What data type is this statement defined as in Python?
testAvg = 0.00;
 
Join Now For Answers & Help!!!
 

                       
outFile.write("=" *90 + "\n");
will write the equal sign 90 times inside a designated file
             
Join Now For Answers & Help!!!
 

                       
How many integers are in the following list
scores [0] *11
 
Join Now For Answers & Help!!!
 

                       
The following statement is true and will display Found the number:
if (10 > 17) and (10 < 11):
    print ("Found the number");
             
Join Now For Answers & Help!!!
 

                       
The RAPTOR program:
 
Join Now For Answers & Help!!!
 

           
print("-" *25);
When executed, the computer displays the value 25
             
Join Now For Answers & Help!!!
 

                       
The symbols used in Python to refer to an individual list element is:
 
Join Now For Answers & Help!!!
 

                       
In a bubble sort how many extra storage variables are needed to re-arrange the two target/adjacent numbers in a single array / list?
 
Join Now For Answers & Help!!!
 

                       
The following colors are used to represent comments in a Python program.
 
Join Now For Answers & Help!!!
 

                       
In RAPTOR, the Add ___________  option is used to create a procedure or function:
 
Join Now For Answers & Help!!!
 

           
How are statements associated with a function / procedure?
 
Join Now For Answers & Help!!!e
 

                       
Python integrates:
 
Join Now For Answers & Help!!!
 

 
A compound Boolean expression created with the _____ operator is true only if both of its subexpressions are true.
Join Now For Answers & Help!!!
 
A compound Boolean expression created with the ____ operator is true if either of its subexpressions is true.
Join Now For Answers & Help!!!
 
The _____ operator takes a Boolean expression as its operand and reverses its logical value.
Join Now For Answers & Help!!!
 
A _____ is a Boolean variable that signals when some condition exists in the program.
Join Now For Answers & Help!!!
 
You can write any program using only sequence structures.
Join Now For Answers & Help!!!
 
A program can be made of only one type of control structure. You cannot combine structures.
Join Now For Answers & Help!!!
 
one path if the condition is true, or another path if the condition is false.
Join Now For Answers & Help!!!
 
A decision structure can be nested inside another decision structure.
Join Now For Answers & Help!!!
 
A compound Boolean expression created with the "and" operator is true only when both subexpressions are true.
Join Now For Answers & Help!!!
 
A(n) _____ section of a Select Case statement is branched to if none of the case values match the expression listed after the Select statement.
Join Now For Answers & Help!!!
 
A _____ structure allows you to test the value of a variable or an expression and then use that value to determine which statement or set of statements to execute.
Join Now For Answers & Help!!!
 
a set of instructions that a computer follows to perform a task
Join Now For Answers & Help!!!
 
the physical devices that a computer is made of are referred to as
Join Now For Answers & Help!!!
 
the part of a computer that runs programs
Join Now For Answers & Help!!!
 
today, CPUs are small chips known as
Join Now For Answers & Help!!!
 
where the computer stores a program while the program is running as well as the data that the program is working with
Join Now For Answers & Help!!!
 
a volatile type of memory that is used only for temporary storage while a program is running
Join Now For Answers & Help!!!
 
a type of memory that can hold data for long periods of time
Join Now For Answers & Help!!!
 
a component that collects data from people or other devices and sends it to the computer (ex: keyboard, camera)
Join Now For Answers & Help!!!
 
enough memory to store a letter of the alphabet or a small number
Join Now For Answers & Help!!!
 
a byte is made up of eight ________
Join Now For Answers & Help!!!
 
a set of 128 numeric codes that represent the English letters, various punctuation marks, and other characters
Join Now For Answers & Help!!!
 
an extensive encoding scheme that can represent that characters of many of the languages of the world
Join Now For Answers & Help!!!
 
negative numbers are encoded using the ________ technique
Join Now For Answers & Help!!!
 
real numbers are encoded using the ________ technique
Join Now For Answers & Help!!!
 
the tiny dots of color that digital images are composed of
Join Now For Answers & Help!!!
 
if you were to look at a machine language program, you would see ________
Join Now For Answers & Help!!!
 
the CPU determines which operation it should perform in the ________ part of the fetch-decode cycle
Join Now For Answers & Help!!!
 
computers can only execute programs that are written in ________
Join Now For Answers & Help!!!
 
translates an assembly language program to a machine language program
Join Now For Answers & Help!!!
 
the words that make up a high-level programming language
Join Now For Answers & Help!!!
 
the rules that must be followed when writing a program
Join Now For Answers & Help!!!
 
translates a high-level language program into a separate machine language program
Join Now For Answers & Help!!!
 
today, CPUs are huge devices made of electrical and mechanical components such as vacuum tubes and switches. (T/F)
Join Now For Answers & Help!!!
 
Main memory is also known as RAM. (T/F)
Join Now For Answers & Help!!!
 
Any piece of data that is stored in a computer's memory must be stored as a binary number. (T/F)
Join Now For Answers & Help!!!
 
Images, like the ones you make with your digital camera, cannot be stored as binary numbers. (T/F)
Join Now For Answers & Help!!!
 
Machine language is the only language that a CPU understands. (T/F)
Join Now For Answers & Help!!!
 
Assembly language is considered a high-level language. (T/F)
Join Now For Answers & Help!!!
 
An interpreter is a program that both translates and executes the instructions in a high-level language program. (T/F)
Join Now For Answers & Help!!!
 
A syntax error does not prevent a program from being compiled and executed. (T/F)
Join Now For Answers & Help!!!
 
Windows Vista, Linux, UNIX, and Mac OS X are all examples of applications software. (T/F)
Join Now For Answers & Help!!!
 
Word processing programs, spreadsheet programs, email programs, Web browsers, and games are all examples of utility programs.
Join Now For Answers & Help!!!
 
transmits information across device
Join Now For Answers & Help!!!
 
all main processing power; brain of the computer
Join Now For Answers & Help!!!
 
creates a virtual copy of all programs and downloads
Join Now For Answers & Help!!!
 
stores memory forever
Join Now For Answers & Help!!!
 
does not permanently store info
Join Now For Answers & Help!!!
 
number of bits in a byte
Join Now For Answers & Help!!!
 
The number of bits in a nyble
Join Now For Answers & Help!!!
 
low level program
Join Now For Answers & Help!!!
 
high-level programs
Join Now For Answers & Help!!!
 
object-oriented programming
Join Now For Answers & Help!!!
 
value of each term (right to left) in binary
Join Now For Answers & Help!!!
 
data type
Join Now For Answers & Help!!!
 
list of data types
Join Now For Answers & Help!!!
 
Computer programs are also known as ______
Join Now For Answers & Help!!!
 
The major computer operations include ______
Join Now For Answers & Help!!!
 
Visual Basic, C++, and Java are all examples of computer ______
Join Now For Answers & Help!!!
 
A programming language's rules are its ______
Join Now For Answers & Help!!!
 
The most important task of a compiler or inerpreter is to ______
Join Now For Answers & Help!!!
 
Which of the following is temporary, internal storage?
Join Now For Answers & Help!!!
 
Which of the following pairs of steps in the programming process is in the correct order?
Join Now For Answers & Help!!!
 
The programmer's most important task before planning the logic of a program is to ______
Join Now For Answers & Help!!!
 
The two most commonly used tools for planning a program's logic are ______
Join Now For Answers & Help!!!
 
Writing a program in a language such as C++ or Java is known as ______ the program.
Join Now For Answers & Help!!!
 
An English-like programming language such as Java or Visual Basic is a ______ programming level
Join Now For Answers & Help!!!
 
Which of the following is an example of a syntax error?
Join Now For Answers & Help!!!
 
Which of the following is an example of a logical error?
Join Now For Answers & Help!!!
 
The parallelogram is the flowchart symbol representing ______
Join Now For Answers & Help!!!

In a flowchart, a rectangle represents ______
Join Now For Answers & Help!!!
 
In flowcharts, the decision symbol is a ______
Join Now For Answers & Help!!!
 
The term "eof" represents ______
Join Now For Answers & Help!!!
 
When you use an IDE instead of a simple text editor to develop a program,______
Join Now For Answers & Help!!!
 
When you write a program that will run in a GUI environment as opposed to a command-line environment, ______
Join Now For Answers & Help!!!
 
As compared to procedural programming, with objectoriented programming ______
Join Now For Answers & Help!!!
 
What does a declaration provide for a variable
Join Now For Answers & Help!!!
 
A variable's data type describes all of the following except _______?
Join Now For Answers & Help!!!
 
The value stored in an uninitialized variable is ______?
Join Now For Answers & Help!!!
 
The value 3 is a ______.
Join Now For Answers & Help!!!
 
The assignment operator _____.
Join Now For Answers & Help!!!
 
Which of the following is true about arithmetic precedence?
Join Now For Answers & Help!!!
 
The following are terms used as a synonym for module in some programming languages.
Join Now For Answers & Help!!!
 
Why use modularization?
Join Now For Answers & Help!!!
 
What is the name for the process of paying attention to important properties while ignoring nonessential details?
Join Now For Answers & Help!!!
 
Every module has all of the following except ________?
Join Now For Answers & Help!!!
 
Programmers say that one module can ______ another, meaning that the first module causes the second module to execute.
Join Now For Answers & Help!!!
 
The more that a module's statements contribute to the job, the greater the ________ of the module.
Join Now For Answers & Help!!!
 
In most modern programming languages, a variable or constant that is declared in a module is _______ in that module.
Join Now For Answers & Help!!!
 
Printing summaries is a typical housekeeping task. (T/F)
Join Now For Answers & Help!!!
 
The detail loop in a typical program will execute the most. (T/F)
Join Now For Answers & Help!!!
 
A hierarchy chart tells you ______.
Join Now For Answers & Help!!!
 
What are nonexecuting statements that programmers place within code to explain program statements in English?
Join Now For Answers & Help!!!
 
Are programmers comments required to create a runnable program or a form of external documentation? (T/F)
Join Now For Answers & Help!!!
 
What is valid advice for naming variables?
Join Now For Answers & Help!!!
 
A message that asks a user for input is a ______.
Join Now For Answers & Help!!!
 
A expression has one of two values: true or false.
Join Now For Answers & Help!!!


Exam  1     2     3     4     5     6     7    8     9    10     Midterm   1    2     Final Exam  1   2
Graded Program Assignment   
1   2    3    4    5    6    7    8    9           Python Compiler


Home
Accounting & Finance Business
Computer Science General Studies Math Sciences
Civics Exam
Everything Else
Help & Support
Join/Cancel
Contact Us
 Login / Log Out