Exercise: Object Oriented Programming Using Cpp

Questions for: Object Oriented Programming Using Cpp

In the expression p --> val,p is a(n)
A:
address
B:
pointer
C:
structure
D:
header
Answer: B
No answer description is available. Let's discuss.
Variables that are known only to the function in which they are declared are called _____ variables
A:
global
B:
local
C:
main
D:
separate
Answer: B
No answer description is available. Let's discuss.
The main() function is always
A:
a called function
B:
a calling function
C:
recursive function
D:
used at the end of the program
Answer: B
No answer description is available. Let's discuss.
Which of the following statements declares a one-dimensional Character array named item that consists of five elements?
A:
char item[0 to 4] = "";
B:
char item[0 to 5] = "";
C:
char item[4] = "";
D:
char item[5] = "";
Answer: D
No answer description is available. Let's discuss.
In the C language, a string is assigned to the
A:
char type of variable
B:
string type of variable
C:
conversion specification %s
D:
All of the above
Answer: A
No answer description is available. Let's discuss.
Ad Slot (Above Pagination)
Quiz