Is idle an alternative method to using a text editor to write execute and test a Python program?

Show

T/F | Comments in Python begin with the # character.

T

T/F | All programs are normally stored in ROM and are loaded into RAM as needed for processing.

F

T/F | The CPU understands instructions written in a binary machine language.

T

T/F | RAM is a volatile memory used for temporary storage while a program is running.

T

T/F | The Python language uses a compiler which is a program that both translates and executes the instructions in a high-level language.

F

T/F | IDLE is an alternative method to using a text editor to write, execute, and test a Python program.

True **

T/F | According to the behavior of integer division, when an integer is divided by an integer, the result will be a float.

F

T/F | Python allows programmers to break a statement into multiple lines.

T

T/F | A flowchart is a tool used by programmers to design programs

T

T/F | In Python, math expressions are always evaluated from left to right, no matter what the operators are.

F

T/F | Computer programs typically perform three steps: input is received, some process is performed on the input, and output is produced.

T

T/F | In Python, print statements written on separate lines do not necessarily output on separate lines.

T

T/F | The \t escape character causes the output to skip over to the next horizontal tab.

T

T/F | Since a named constant is just a variable, it can change any time during a program's execution.

F

Where does a computer store a program and the data that the program is working with while the program is running?a. in main memoryb. in the CPUc. in secondary storaged. in the microprocessor

a. in main memory

What type of volatile memory is usually used only for temporary storage while running a program?a. ROMb. TMMc. RAMd. TVM

c. RAM

The smallest storage location in a computer's memory is known as a a. byteb. ketterc. switchd. bit

d. bit

What is the largest value that can be stored in one byte?a. 255b. 128c. 8d. 65535

a. 255

Which type of error prevents the program from running?a. syntaxb. humanc. grammaticald. logical

a. syntax

Select all that apply. To create a Python program you can usea. a text editorb. a word processor if you save your file as a .docxc. IDLE d. Excel

a. a text editorc. IDLE

What is the informal language, used by programmers use to create models of programs, that has no syntax rules and is not meant to be compiled or executed?a. flowchartb. algorithmc. source coded. pseudocode

d. pseudocode

A(n) __________ is a diagram that graphically depicts the steps that take place in a program?a. flowchartb. algorithmc. source coded. pseudocode

a. flowchart

The __________ function reads a piece of data that has been entered at the keyboard and returns that piece of data, as a string, back to the program.a. input()b. output()c. eval_input()d. str_input()

a. input()

Which mathematical operator is used to raise 5 to the second power in Python?a. /b. **c. ^d. ~

b. **

In a print statement, you can set the __________ argument to a space or empty string to stop the output from advancing to a new line.a. stopb. endc. separatord. newLine

b. end

After the execution of the following statement, the variable sold will reference the numeric literal value as (n) __________ data type.sold = 256.752a. intb. floatc. strd. currency

b. float

After the execution of the following statement, the variable price will reference the value __________.price = int(68.549)a. 68b. 69c. 68.55d. 68.6

a. 68

What is the output of the following print statement?print 'I\'m ready to begin'a. Im ready to beginb. I\'m ready to beginc. I'm ready to begind. 'I\'m ready to begin'

c. I'm ready to begin

What is the output of the following command, given that value1 = 2.0 and value2 = 12?print(value1 * value2)a. 24b. value1 * value2c. 24.0d. 2.0 * 12

c. 24.0

The __________ built-in function is used to read a number that has been typed on the keyboard.a. input()b. read()c. get()d. keyboard()

a. input()

Which of the following will display 20%?a. print(format(20, '.0%')) b. print(format(0.2, '.0%')) c. print(format(0.2 * 100, '.0%')) d. print(format(0.2, '%'))

b. print(format(0.2, '.0%'))

What symbol is used to mark the beginning and end of a string?a. a slash (/)b. an asterisk (*)c. a quote mark (")d. a comma (,)

c. a quote mark (")

To use Python's turtle graphics, you must include which of the following statements in your program?a. import turtle_moduleb. import turtle_graphicsc. import turtled. import Turtle

c. import turtle

What would the following display?num = 99num = 9print(num)

9

What would the following display? print('george', 'john', 'paul', sep= '@')

george@john@paul

Is a person with the training and skill needed to design create and test computer programs?

A programmer, or software developer, is a person with the training and skills necessary to design, create, and test computer programs. Computer programming is an exciting and rewarding career.

What is a program that can read Python programming statements and execute them?

interpreter. The Python ------ is a program that can read Python programming statements and execute them. flash. USB drives store data using ------ memory. program.

Which of the following translates and executes instructions in programming language?

A compiler does the translation all at once. It produces a complete machine language program that can then be executed. An interpreter, on the other hand, just translates one instruction at a time, and then executes that instruction immediately.

What type of volatile memory is usually used only for temporary storage while running a program quizlet?

RAM is a volatile memory used for temporary storage while a program is running. *A computer system consists of all of the following, exept___. You just studied 31 terms!