True/False and Quiz #5

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

A structure chart should be created after your program has been written.

False

Each rectangle on a structure chart represents the user-defined and standard library functions used in a program.

False

Functional cohesion is a measure of how many times a user-defined function is called in a program.

False

In upward communication (passing by address) it is only a copy of the data that is sent from the calling function to the called function.

False

A function that does one and only one process is functionally cohesive.

True

A structure chart may show the data that is exchanged between functions.

True

A variable declared in the local declaration section of a function has a scope that extends until the end of that function.

True

Functional cohesion is a measure of how closely the processes in a function are related.

True

Given the address of a variable the called function can access and manipulate the value of that variable in the calling function.

True

In downward communication (passing by value) it is only a copy of the data that is sent from the calling function to the called function.

True

It is a good design practice to design a user-defined function such that it is testable apart from the rest of the program.

True

It is a good design practice to limit user-defined functions to only a single task.

True

It is a good design practice to not repeat the logic of one function in other functions of the program.

True

It is not possible to access a variable in the calling function by its identifier when inside the called function.

True

It is poor programming style to reuse identifiers within the same scope.

True

No code is contained in a structure chart and only demonstrates the function flow through the program.

True

Objects with a global scope are visible everywhere in the program.

True

The C language uses only pass by value and return to achieve communication of data between a calling and a called function.

True

The asterisk (*) in a variable declaration indicates that the variables are not data variables but address variables holding the addresses of other variables in the program.

True

The asterisk has two different uses, declaring an address variable (pointer) and indirectly accessing the data (in the memory location to which the variable points).

True

The called function must declare a special type of variable known as a pointer to store a memory address that is sent from the calling function.

True

The scope of an object determines the region of the program in which it is visible.

True

To obtain the address of a variable we use the address operator (&).

True

When only one data item needs to be returned we should use the standard return statement.

True


संबंधित स्टडी सेट्स

Othello Discussion Questions Act 3

View Set

Microbiology Final Quiz Questions

View Set

Real Estate - Chapter 1: Ownership

View Set