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

Match the following options with the descriptions below. An option will be used

ID: 3854603 • Letter: M

Question

Match the following options with the descriptions below. An option will be used only once.

Question{14}: Used to store email addresses from the members of the class.

Answer{14}='';

Reason{14}='';

Question{15}: Best datatype for storing values from an inequality or equality operation such as a threshold comparison.

Answer{15}='';

Reason{15}='';

A. double

B. single

C. int8

D. int16

E. int32

F. int64

G. uint8

H. uint16

I. uint32

J. uint64

K. NaN

L. logical

M. char

N. datetime

O. table

P. cell

Q. struct

Y. class (function)

Z. None of the above

Explanation / Answer

Answer{14}: Y. class (functions)

Reason{14}: A class implemets encapsulation thus restricting the access of members of the class. While the functions of the same class can easily access those data members and so can be used to store/retireve values in/from them. Consider the following class:

public class Test{

private String email;

public setMail(mail){

email = mail;

}

}

See how the method setMail() can access the data member email. But this data member can not be accessed anywhere out of this class.

Answer{15} - L. Logical

Reason{15} - A comparison often outputs a logical result. For example, if we say "Is 23 greater than 20", then the answer would be a "yes". This is because the above statement can have only one of the two answers, either a yes or a no.

Similarly, if we consider the statement "Is threshold value 1 equal to threshold value 2?", the answer would again be either a yes or a no. In programming languages there is a specific datatype for such operations, named boolean or bool. But since it wasn't in the option, the best suites answer is logical data type.

Hope this helps...

BEST WISHES!

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