Data Programming I Quiz

Ace your homework & exams now with Quizwiz!

Which is not a low-level language?

source code

Building blocks of code include all of the following except what?

traceback

Where in the computer is a variable such as "x" stored after the following Python line finishes executing? x = 123

Main memory

An assignment statement consists of a variable on the left-hand side and an expression on the right-hand side of the equal sign.

True

Build a Better U is an online resource, accessible through Folio, with dozens of tutorials and videos that can help you in this class.

True

One of the many online resources you should use to help you in this class is the textbook website, www.py4e.com.

True

PEMDAS applies to mathematical operations in Python.

True

Semantics are the meaning of a program.

True

The output of these three python statements is 12. > a = 12 > b = 0 > print (a+b)

True

The plus sign, +, means addition when the operand types are numeric and means concatenation when the operands are strings

True

The plus sign, +, means addition when the operand types are numeric and means concatenation when the operands are strings.

True

The three types of errors that may occur in a program are semantic, syntax, and logic.

True

Type refers to the kind of data being stored in a variable, literal, or constant.

True

What is the mathematical operation of **?

power

Which of these statements will cause an error? Question options: print(z) y = 7 print('y'); z = y + 7

print('y');

What is the result of the following expression? 1 + 2 ** 3 / 4 * 5

11

What is the result of the following expression? 1 + 2 ** 3 / 4 * 5

11

What is the result of the following statement? print(23%5)

3

In order to get any Python statements to run, they must first be saved in a program file.

False

Languages like Java, PhP, and Python rely on compilers to run programs.

False

Programmers are not allowed to choose the names of variables and are not allowed to change the contents of a variable later in the program.

False

Reserved words can be used as variable names.

False

Reserved words in Python have pre-assigned special meanings, but they can be re-assigned if the programmer chooses.

False

The output function is an instruction that causes the Python interpreter to display a value on the screen.

False

When two mathematical operators have equal precedence they should be executed from right to left.

False

Which of the choices is not a reserved word in Python? True False help elif

Help

What will the following Python statement do when executed? > print('Hello, World!')

Puts the phrase Hello, World! on the screen.

What is the function of the secondary memory in a computer?

Store information for the long term, even beyond a power cycle.

Which of the following contains "machine code"?

The Python interpreter

What skills do you need to be a programmer?

To tell a story by combining words and sentences to convey an idea to the reader and to know the vocabulary and grammar of the language.

Which of these is not a type of error you may get when coding?

Traceback

A constant has fixed values that do not change.

True

A program is a set of instructions that specifies a computation.

True

A programming "best parctice" is to name variables using mnemonic identities so it i easier to remember what is stored in them.

True

A variable is a named location in memory where a programmer can store data.

True

A line of code can be also be called which of these?

both of these

Which of these is a not reason given in textbook for why you should learn to write programs?

conversing better with computers

What is the term for examining a program and analyzing its syntactic structure?

parsing


Related study sets

Psych Chapter 29 - Anxiety disorders

View Set

Hardware & Software Chapter 2 Quiz

View Set

MC101 - Ch 9 Online & Mobile Media

View Set

Pre-Assessment: Accounting Information Systems (QNO1) (PQNO)

View Set

Personality Psychology Chapter 11

View Set

position, velocity, acceleration

View Set