How much memory is reserved for the following variables
in MS Visual C++?

``` int s,
int *s_ptr;
float q, *q_ptr;```
A. 10
B. 13
C. 16
D. 18


C

Computer Science & Information Technology

You might also like to view...

Why does this version of the swap function fail to work? Is there a fix?

``` void swap(int & lhs, int& rhs) { lhs = rhs; rhs = lhs; ``` a) Of course it works! Just look at it. It clearly swaps the two parameters! b) It fails because the programmer forgot to make the parameters call-by-reference. c) It fails OK, and we can fix it we can just reverse the order of the lines. d) It fails because the first line destroys the old value of lhs without saving it. Then both variables have the old value of rhs in them. e) To fix this, we must save the lhs value in a local variable before making the first assignment indicated, then instead of the second line, assign the rhs the value of the local variable:

Computer Science & Information Technology

Give three examples of Java reserved words.

What will be an ideal response?

Computer Science & Information Technology

Discuss the advantages of graphical information display and suggest four applications where it would be more appropriate to use graphical rather than digital displays of numeric information.

What will be an ideal response?

Computer Science & Information Technology

Identify the letters of the choices that best match the sentences or definitions.?

A. ?When assessing this, a systems analyst must consider the interaction between time and costs. B. ?It is a technology that is expected to overshadow bar code technology in the future. C. ?They provide automated responses to sales inquiries, online order processing, and inventory tracking. D. ?It typically starts with a systems request, followed by a preliminary investigation, which includes a feasibility study. E. ?With this application, a supplier can use radio frequency identification (RFID) tags on each crate, case, or shipping unit to create a digital shipping list. F. ?This might propose enhancements for an existing system, the correction of problems, or the development of an entirely new information system. G. ?It is a system that provides the right products at the right place at the right time. H. ?Its end product is a report to management. I. ?It shows formal reporting relationships of a group. J. ?It is a summary of a project request and a specific recommendation.

Computer Science & Information Technology