23. Given the following declaration: public class Prog private float weight: //m
ID: 3917982 • Letter: 2
Question
23. Given the following declaration: public class Prog private float weight: //more code goes here Which of the following is a valid constructor? A. void public Frog (10) B. private int Frog (10.0) C. public Frog (10.0) D. private float Frog (10.0) 24. The concatenation operator is A. & 25. An algorithm is A. the part of the computer that does the processing B. the inputs and outputs of a program C. a complete computer program D. a finite set of steps to solve a problem 26. The anagram "CPU stands for A. Computer Paper User B. Central Program User C. Computer Programming Unit D. Central Processing Unit E. Common Programming Usage 27. A byte consists of how many bits? A. 1 B. 4 C. 8 D. 10 E. 16 28. What is wrong with the following statement? System. out.print ("Hello to everyoneln") A. print must be println B. It is missing a " C. It is missing a semicolon D. It is missing a ( E. nothing is wrong 29. What is the value of x after the following statements? float x; x=15 / 4; is tru atement A. 3 B. 3.0 C. 3.75 D. 4.0 E. 60Explanation / Answer
23 ->C
public Frog(10.0);
All others are wrong because it have return type where constructor should not have return type.
24 ->D
+
plus sign is use to concat first one is logical and and another two are shifting operator.
25 ->D
a finite set of steps to solve a probem.
algorithm basically used to solve the particular problem statement or design the software
26 ->D
central processing unit
27 ->C
8
a byte consist of 8 bits
28 ->C
It is missing semicolon
it is a jave statement to print and must end with ;
29 ->B
3.0
Beacause 15 and 4 are the integers and integer does not contains the fractions
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.