COP 3014- Chapter 6 T/F

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

A function's return data type must be the same as the function's parameters.

False

A local variable and a global variable may not have the same name within a program.

False

Local variables are initialized to zero by default.

False

When a function is called, flow of control moves to the function's prototype.

False

You must always furnish an argument with a function call.

False

A parameter is a special purpose variable that is declared inside the parentheses of a function definition.

True

A static variable that is defined within a function is initialized only once, the first time it is called.

True

Global variables are initialized to zero by default.

True

It is not considered good programming practice to declare all your variables globally.

True

It is possible for a function to have some parameters with default arguments and some without.

True

One reason for using functions is to break programs into manageable units or modules.

True

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

True


Set pelajaran terkait

Edmentum End of Semester Test: Civics A 2023 (24/26)

View Set

Exercise for Disaster Recovery and Incident Response

View Set

AP GOV UNIT 2 - PART 2 TEST BANK

View Set

The Central Processing Unit (CPU)

View Set