CSCI Ch 6 T/F

Ace your homework & exams now with Quizwiz!

F

10) True/False: Local variables are initialized to zero by default.

T

11) True/False: It is not considered good programming practice to declare all of your variables globally.

T

12) True/False: You may use the exit() function to terminate a program, regardless of which control mechanism is executing.

T

2) True/False: A parameter is a special-purpose variable that is declared inside the parentheses of a function definition.

F

3) True/False: A local variable and a global variable may not have the same name within the same program.

T

4) True/False: A static variable that is defined within a function is initialized only once, the first time the function is called.

T

5) True/False: It is possible for a function to have some parameters with default arguments and some without.

F

6) True/False: A function's return data type must be the same as the function's parameter(s).

T

7) True/False: One reason for using functions is to break programs into manageable units, or modules.

F

8) True/False: You must furnish an argument with a function call.

T

9) True/False: Global variables are initialized to zero by default.

F

6.2 True/False Questions 1) True/False: When a function is called, flow of control moves to the function's prototype.


Related study sets

Special Linear Relationships: Assignment

View Set

Utah Life and Health Exam- Chapter 4: Life Insurance Policy Provisions, Options and Riders

View Set

Mgmt4330 - Compensation CH5 Job-Based Structures and Job Evaluation

View Set

ATI - Socialization into Professional Nursing Test

View Set

Nursing Care of Patients with Integumentary Diseases

View Set