MIS 315 Exam 2 Quizzes

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

A type of chart that depicts relationship between functions is usually called what?

hierarchy

An exception handler is a piece of code that is written using the try/except statement.

true

Closing a file disconnects the communication between the file and the program.

true

Different functions can have local variables with the same names

true

Null and 0 are not the same

true

Python allows you to pass multiple arguments to a function

true

Python function names follow the same rules as those for naming variables

true

A function that is said to simply execute the statements it contains and then terminates is called what?

void

Which mode specifier will erase the contents of a file if it already exists and create it if it does not exist?

'w'

What is the first negative index in a list?

-1

The index of the first element in an list is 1, the index of the second element is 2 and so on.

false

If a file with the specified name already exists when the file is opened and the file is opened in 'w' mode, then an alert will appear on the screen.

False

Parameters and arguments are the exact same thing.

False

What will the following code produce when executed? number = range(0,9,2)

[0,2,4,6,8]

What is a group of statements that exists within a program for the purpose of performing a specific task

a function

What are the data items in a list called?

elements

It's generally good practice in industry to use global variables

false

The primary difference between a tuple and a list is that

once a tuple is created, it cannot be changed

When a file has been opened using the 'r' mode specifier, which method will return the file's contents as a string?

read

The _______ of a local variable is the function in which that variable is created

scope


Set pelajaran terkait

AD1 HESI: Eyes, Ears, and Sensory

View Set

Live Virtual Machine Lab 11.2: Module 11 Troubleshooting Common Networking Issues

View Set

Chapter:Completing the Application,Underwriting,and delivering the policy

View Set

Hace, desde, hasta, de, a, después y durante

View Set