Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

When a function is called ________ are sent to a function. a. vegetables b. arguments c. paratroupers d. fractions A function named calc takes two

When a function is called ________ are sent to a function.

a. vegetables

b. arguments

c. paratroupers

d. fractions

A function named calc takes two integer arguments and returns the integer sum. Which of the following is the correct call to the function?

a. total=calc()

b. total=clac(2)

c. total=calc("2","3")

d. total=calc(2,3)

The readline method reads text until an ____.

a.

b. \t

c. """""

d.

Before reading data from a file you need to _____.

a. name the file.

b. read the file.

c. open the file.

d. close the file.

The return statement causes a function to exit whether a value is returned or not.

True or False

A stub function is a function that acts as a placeholder and returns a simple value so another function can be tested.

True or False

A commonly used program that uses regular expressions is grep.

True or False

In Python exception handling provides a mechanism for passing control from the point of the error detection to a handler that can deal with the error.

True or False.

Once a try block is entered, the finally clause is guaranteed to be executed.

True or False

The scope of a variable is the part of a program in which you can access that variable.

True or False

What two items do you need to specify when reading a file in Python?

a file name and file properities

a file name and mode

a file name and size

a file name and data type

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Database Management Systems

Authors: Mark L. Gillenson

3rd Edition

978-1119907466

More Books

Students also viewed these Databases questions

Question

=+4. What might explain any differences that you identify?

Answered: 1 week ago

Question

=+2. Is there a strong collective bargaining culture in evidence?

Answered: 1 week ago