Computer Science exam 1 (T/F)

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

A bit that is turned off is represented by the value -1

false

A computer is a single device that preforms different type of tasks for its users

false

According to the behavior of integer division , when an integer is divided by an integer the result will be float.

false

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

false

Computers are designed to do just one job.

false

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

false

In your Python program, you can used reserved words as variable names.

false

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

false

Python formats all floating-point numbers to two decimal places when outputting with the print statement.

false

Python used the same symbols for the assignment operator as for the equality operator.

false

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

false

The Python language is not sensitive to the block of structuring code.

false

The Python language uses a compiler which is a program that both translate and executes the intersections in a high level language.

false

The not operator is a unary operator which must be used in a compound.

false

What is the result of the following Boolean expression, given that x=5, y=3 and z=8 ? not (x<y or z>x) and y<z

false

What is the result of the following Boolean expression, given that x=5, y=3 and z=8 ? x < y and z>x

false

short circuit evaluation is only preformed with the not operator

false

A flowchart is a tool used by programmers to design programs

true

A software developer is the person with the training to design, create, and test computer programs.

true

An action is single alternative decision structure is preformed only when the condition is true

true

Comments in Python begin with the # character.

true

Computer programs typically preform three steps: input is received, some process is preformed on the input and output is produced.

true

Decision structures are also known as selection structures

true

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

true

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

true

In Python, print statements written on separate lines do not necessarily output on separate lines.

true

Nested decision statements are one way to test more than one condition.

true

Python allows programmers to break a statement into multiple lines

true

RAM is a volatile memory used for temporary storage while a program is running.

true

The CPU understands instructions written in a binary machine language.

true

The \t escape character causes the output to skip over the next horizontal tab.

true

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

true

The instruction set for a microprocessor is unique and is typically understood only by the microprocessors fo the same brand.

true

The main reason to use a secondary storage is to hold data for long periods of time, even when the power supply to the computer is turned off.

true

To place an entire block of statements within an if statement, you must indent the block.

true

Variables in Python must begin with a letter or underscore and include only letters, numbers, and no underscore, no punctuation characters or spaces allowed.

true

What is the result of the following Boolean expression, given that x=5, y=3 and z=8 ? x<y or z>x

true

When the addition (+) operator is used with two strings, it preforms string concatenation.

true

When using the camelCase naming convention, the first word of the variable name is written in lowercase and the first characters of all subsequent words are written in uppercase.

true


Ensembles d'études connexes

Vsim questions advanced fund final

View Set

Chapter 11: Home Visit - Opening the Doors for Family Health

View Set

Fundamentals of Nursing Chapter 40 Test Questions

View Set

Chapter 7 Summary & End of Chapter Questions

View Set

Med/Surg 2: Pediatrics Cystic Fibrosis

View Set