IS 210

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

In Python, the _______________ symbol is used as the not-equal-to operator

!=

Remainder - divides one number by another and gives the remainder (10 % 3 = 1)

%

Math operators: Addition - _______________ Subtraction - _______________ Multiplication - _______________ Division - _______________ Integer division - _______________ Remainder - _______________ Exponent - _______________

+ - * / // % **

Rules for naming variables: 1) 2) 3) 4) 5)

1) You can't use a python keyword 2) No spaces 3) first character must be letter or underscore 4) After first character, use letters, digits, underscores 5) case sensitive

ASCII has _______________ characters

128

In Python the _______________ symbol is used as the equality operator

==

Relational Operators Greater than - _______________ Less than - _______________ Greater than or equal to - _______________ Less than or equal to - _______________ Equal to - _______________ Not equal to - _______________

> < >= <= == !=

_______________ is a coding scheme that represents character in computer memory. This is a set of 128 numeric codes that represents the English letters, punctuation markers, and other characters.

ASCII

_______________ is a variable for true/false.

Boolean

The expression tested by the if statement to determine if it is true or false is known as a _______________

Boolean expression

Major components of computer hardware: _______________ _______________ _______________

CPU Main Memory Secondary storage devices

T/F Python allows you to compare strings, but it is not case sensitive.

False

T/F Python uses the same symbols for the assignment operator as the equality operator.

False

_______________ gives you all of the tools you need to *write, execute, and test* a program. IDLE stands for _______________. It is color coded.

IDLE, Integrated Development Environment

_______________ is the 0's and 1's. _______________ can only understand instructions written in _______________. Machine language always has an underlying _______________.

Machine language, CPU's, machine language, binary structure

The order of operations for Python is _______________.

PEMDAS

RAM stands for _______________. RAM is typically ___________ type of memory that is used only for *temporary storage* while a program is running. When the computer is turned off, the contents of RAM are _______________. RAM is main memory.

Random access memory, volatile, erased

T/F Expressions that are tested by the if statement are called Boolean expressions.

True

Escape operators: \n \t \' \" \\

\n (causes output to be advanced to new line) \t (causes output to skip over to tab over) \' (causes single quote to print) \" (causes double quote to print) \\ (causes backslash to print)

When using the _______________ logical operator, both of the subexpressions must be true for the compound expression to be true.

and

The data given to functions are known as _______________

arguments

A _______________ statement is used to create a variable

assignment (age = 29)

Computers use a _______________ numbering system. The byte size limit is _______________.

binary, 255

Each _______________ is divided into 8 _______________. One byte is enough to hold a letter of the alphabet or a small number. Bits are tiny _______________ that can either be on or off. Bits are represented with 0's and 1's and hold a positive or negative charge.

byte, bits, switches

The _______________________ (CPU) is the part of a computer that actually runs programs. It is the most important part of a computer because without it, the computer could not run _______________.

central processing unit, software

A _______________ is a program that translates a high-level language program into a *separate* machine language program.

compiler

'string' + 'string'

concatenation

In flowcharting, the _______________ symbol is used to represent a Boolean expression

diamond

Secondary storage devices: _______________ _______________ _______________

disk drive solid state drive flash drive

Boolean variables are commonly used as _______________ to indicate whether a specific condition exists.

flags

A _______________ graphically depicts steps in a program

flowchart

A piece of pre-written code that performs an operation is a _______________.

function (print, input, etc.)

The term _______________ refers to all of the physical devices, or components, of which a computer is made.

hardware

A _______________ allows simple creation of powerful and complex programs

high-level language Python, C++, etc.

The _______________ statements is used to create a decision structure

if

What built-in function gets input from the keyboard?

input

A _______________ data type means that the argument will return a whole number. A _______________ data types means there can be a decimal.

int, float

When you just enter statements on the keyboard and get a result, you're in _______________. When you save statements in Python, you're in _______________.

interactive mode, script mode

The Python language uses an _______________, which is a program that *both translates and executes* the instructions in a high-level language program.

interpeter

A _______________ is close in nature to machine language

low-level language

Although a CPU only understands _______________ language, it's impractical for people to write programs in machine language. _______________ was created as an alternative to machine language. Instead of binary instructions, assembly language uses mnemonics. Assembly language programs cannot be expected by the CPU, so an _______________ is used to translate an assembly language to a machine language program.

machine, assembly language, assembler

Secondary storage is a type of _______________ that can hold data for long periods of time, even when there is no _______________ to the computer. Programs are normally stored in secondary memory and loaded into the _______________ as needed. Examples include USB drives, flash drives, and disk drives.

memory, power, main memory

CPUs are small chips known as _______________. They are much smaller and much more powerful than early CPUS.

microprocessors

CPUs on small chips are known as _______________

microprocessors

An assembly language uses _______________

mnemonics

The logical _______________ operator reverse the truth of a Boolean expression.

not

A _______________ is a number written into a program

numeric literal

Values surrounding an operator are known as _______________.

operands

When using the _______________ logical operator, one or both of the subexpressions must be true for the compound expression to be true.

or

Which function displays output?

print

Fake code = _______________. You cannot run this code.

pseudocode

String must be enclosed in _______________ or _______________

single or double quotes

Everything a computer does is under the control of _______________. The two general categories of software are _______________ and _______________. _______________ control the computers hardware and manages all devices connected to the computer, while _______________ reforms a specialized task to enhance or safeguard the computer (virus scanners, etc.)

software, operating systems, utility programs, operating systems, utility programs

A sequence of characters used as data is known as a _______________

string

Input function returns data as a _______________

string

A _______________ error is caused when there is an error in the code such as a misspelling or other error. _______________ errors are caused when the code produces incorrect results. _______________ is used to correct logic errors.

syntax, logic, debugging

T/F The if statements causes one or more statements to execute only when a Boolean expression is true.

true

A _______________ is a name that represented a value stored in the computer's memory.

variable

Integer division - divides one number by another and hives the result as a _______________

whole number (//)


Set pelajaran terkait

Mass Percent and Molarity - Chemistry 280

View Set

Week. Female: endometrial cancer

View Set

Chapter 7: Economic Growth: Malthus and Solow

View Set

isu principles of management module 4 quiz

View Set

BFAR CHAPTER 5 DISCUSSION QUESTIONS

View Set

Using Reward Systems to Motivate Performance

View Set

Oceanography Midterm Study Guide

View Set