WorksheetsSLG IPC144 Week 10
Total questions: 12
Worksheet time: 8mins
To include a header file that is in the current directory, you write:
#include <filename>
#include "filename"
#include filename
#define "filename"
What is NOT a real scope?
Block scope
Global Scope
Function Scope
Local Scope
None of the above
A variable declared outside all function definitions has...
Global Scope
No Scope
Block Scope
Function Scope
A variable that we declare within a function header has...
Parameter Scope
360 No Scope
Function Scope
Header Scope
A variable that we declare within a function body has...
Function Scope
Local Scope
Global Scope
Block Scope
A variable that we declare within a code block has...
No Scope
Global Scope
Block Scope
Local Scope
Write a function prototype called display
that takes an int array called g, and an int called n,
and returns nothing
(a)
To make a parameter unmodifiable we add:
(a)
By default arrays pass by:
Address
Value
Structure
By default structures pass by:
Address
Value
None of the above
A function prototype ends with...
;
nothing
{
}
Write the code to get the value of the price member of a struct POINTER called product.
(a)
