Computer languages designed to be used and understood by humans are
Front
High-level languages
Back
Which of the following is not an example of secondary memory?
Front
RAM
Back
Variables store information that always remain constant during program execution.
Front
False
Back
Random Access Memory or RAM is a type of secondary memory.
Front
False
Back
Use of a sentinel value (like requiring the user to press '0') is an example of a graceful way to exit a loop.
Front
True
Back
Which is the following is true about procedural and object-oriented programming (the best answer).
Front
Procedural programs concentrate on the actions performed with data; Object -oriented programs focus on objects and their behaviors and attributes.
Back
A rectangle in a flowchart diagram represents a program process.
Front
True
Back
What is the fundamental question of computer science?
Front
What can be computed?
Back
Since floating point numbers are more accurate, they are always better to use than ints.
Front
False
Back
The CPU is sometimes referred to as the "brain'' of the computer.
Front
True
Back
A function definition is a sequence of statements that defines a new command.
Front
True
Back
A variable is used to give a name to a value so it can be referred to in other places.
Front
True
Back
A program that endlessly loops is representative of good program design.
Front
False
Back
Evaluate: int(float(3))
Front
3
Back
An algorithm contains three parts:
Front
Input,Process,Output
Back
The sqrt function computes the squirt of a number.
Front
False
Back
What is the result of evaluating 3 + 4.0
Front
7.0
Back
A chaotic function can't be computed by a computer.
Front
False
Back
One difference between a compiler and an interpreter is
Front
A compiler is no longer needed after a program is translated.
Back
Which of the following is not true of comments?
Front
They make a program more efficient
Back
In Python 3 when the size of an integer grows beyond the size calculable by the CPU (like our in class example of 100!), what does Python 3 automatically do?
Front
uses more memory to store the integer
Back
What list is created when Python evaluates range(1,7,2)?
Front
[1,3,5]
Back
Logic errors are the result of incorrectly typing in a Python command or statement. Such are forgetting to type in a : after a function definition.
Front
False
Back
A syntax error is a?
Front
Misuse of a language's grammar rules.
Back
The syntax of a language is its meaning, and semantics is its form.
Front
False
Back
The Python data type that represents positive and negative whole numbers is
Front
int
Back
A programming environment refers to the office where programmers work.
Front
False
Back
The int data type in Python is identical to the mathematical concept of integer.
Front
False
Back
A loop is used to skip over a section of a program.
Front
False
Back
Evaluate: round(3.5)
Front
4.0
Back
Computer science refers only to the 'study of computers'.
Front
False
Back
A statement is
Front
a complete computer command
Back
Two tools often used to help plan and design the logic of a program are:
Front
Pseudocode and Flowcharts
Back
Evaluate: int(4.9)
Front
4
Back
Which of the following is not an example of a function from the Python math library?
Front
abs(number)
Back
Which of the following is not a built-in Python operation (which one requires an import of a library)?
Front
sqrt( )
Back
Pseudocode is often a precise but plain English description of the steps that a program will take to solve a problem.
Front
True
Back
Evaluate: float(int(4.5))
Front
4.0
Back
Information that is stored and manipulated by computers is generically referred to as data.
Front
True
Back
An algorithm is like a
Front
recipe
Back
In Python, 4+5 produces a result with the same data type as 4.0+5.0.
Front
False
Back
All information that a computer is currently working on is stored in main memory.
Front
True
Back
The best way to develop a new piece of software is to just start writing code.
Front
False
Back
The number of distinct values that can be represented using 5 bits is
Front
32
Back
To do addition and subtraction functions in Python, we have to import the Math library (import math)
Front
False
Back
The LOGIC of a piece of code is what?
Front
Sequence of specific instructions in a certain order.
Back
In the hardware of the computer itself, numbers are represented as binary numbers.
Front
True
Back
By convention, the statements of a program are often place in a function called
Front
main
Back
When used for calculations, the most appropriate data type for storing the value of pi is:
Front
float
Back
In a computer, an integer data type can represent infinitely large integers.
Front
False
Back
Section 2
(2 cards)
The items listed in the parentheses of a function definition are called