Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

C programming multiple choice Questions i just need the answers no explanations

ID: 3576629 • Letter: C

Question

C programming multiple choice Questions i just need the answers no explanations and a speedy response if possible

Preprocessor directives ________.

begin with include

are C statements

are ignored if whitespace characters before them on the same line

do not end in a semicolon

A node can only be inserted ________ in a binary search tree.

as the root node

as a leaf node

as a parent node

as an ancestor node

A(n) ________ pointer normally indicates the end of a data structure.

uninitialized

NULL

self

dereferenced

A label must ________.

be defined as a global constant prior to use

appear in the same function as the goto statement that refers to it

be of type int

All of these.

Which statement is false?

The result of shifting a value is undefined if the right operand is negative.

The result of shifting a value is undefined if the right operand has more bits than the number of bits in which the left operand is stored.

Left shifting is machine dependent.

Right shifting is machine dependent.

When calling a function with arguments that should be modified, the ________ of those arguments are passed.

memory

addresses

values

complements

Macros ________.

can help avoid the overhead of a function call

execute before a program is compiled

never add subtle bugs to programs

cannot be used to replace a function call with inline code

Which of the following is not true of pointers to functions?

They contain the starting address of the function code.

They are dereferenced in order to call the function.

They can be stored in arrays.

They can not be assigned to other function pointers.

A structure of arrays is automatically passed ________.

call by value

call by reference

call by aggregate

call by masking

Which of the following is a function which causes a program's file position pointer to be repositioned to the beginning of the file?

rescan

rewind

return

None of these.

begin with include

are C statements

Explanation / Answer

1) Preprocessor directives do not end with semicolon
2) A new node can be only inserted as a leaf node in binary search tree.
3) A null pointer indicated the end of data structure.
4) A label must be defined as global constant prior to use, appear in same function as goto statement that refers to it.