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

Question 3] Answer the following clearly, showing neat working: a) unsigned ?[3]

ID: 3904526 • Letter: Q

Question

Question 3] Answer the following clearly, showing neat working: a) unsigned ?[3][3] . {(42, 39, 18), {91,34,56), {2,17, 27): Y and Z are floating point type. .b)in C+ int and double square functions have been defined. Variables have been declared properly. In the functional c++ code, statement Q square(square(3.2)): What type is Q (int, double, char Unsigned, none of these (which)? What is the value of .b) Q type Q value -- .c) Can the class be declared after the sein progran in Cr (yes, no, some-Etnes): y not 6) Inline functions in cr, allou function code to be substituted in th tack e, no: sometnes) e) Using structures and bitwise binary representation, how many minimum number of bits needed to ----Q Reason .d Ans represent 104 cards consisting of two decks. [4 bits,5 bits,7 bits, none of these(how many)1 e Ans .f) In Java, variables can be declared anywhere in the program code [yes, no, sone-times, does not natter]? Why? .Question 4] Answer the following clearly: .a) Functional memory initialization C program for an SML system is as shown. SIZE-27 why -_--- for (k 40; k> SIZE; -k) memory [kj ((20*(k-4)+40)) printf ("Vn memory t%d]-vt %d", k, memory ; How many memory locations are initialized in the above for loop Ans .b) What are the contents of locations 40, 36, 32, 28,? Contents of locations 40 c) double A(321[1321/32)[32] has been declared. How many bytes of memory is occupied by the A array? d)Each pixel for a High Definition display uses 4 bytes consisting of RBGW [Red, Blue, Green, White). Display consists of 1200 x900 pixels per frame. How much memory is needed per frame in bytes? d Memory per frame__.... e) What is the minimum display rate in bits per second, under conditions of part (d) above e display rate_-- 1) Steganography uses least significant bit of each RBGW byte. In one frame, how many bytes of Steganography data is hidden? Can t Steganography data be hidden in the most significant bit ? lyes, no, does not matter) e Ans _Most significant bit?

Explanation / Answer

Answering your first question with sub-parts clearly:

3
a)
y = (27 + 91 + 39) * 2 = 157 * 2 = 314;
z = (2 + 39) * 42 = 1722;

b)
Q will be of type double, as 3.2 square is a double and then this double is again passed to the function.
Q = ((3.2)^2)^2 = 104.8576

c)
Yes, The class can be declared after the main program also, but main program should not be using it.

d)
Inline functions in c++, allow function code to be replaced on stack: True

e)
104 cards, they can be represented with next bigger number, which is power of 2.
That will be 128, which is 2^7=> so 7 bits should be sufficient.

f)
Yes, in java, variables can be declared anywhere in the program code. I assume, program code means inside the class, as variables can not be declared outside the class.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote