CSC 417 PROGRAMMING WITH JAVA AND UML solve
CSC 417 PROGRAMMING WITH JAVA AND UML solve
AND UML
[email protected] Switch account
Section A
Which of the following control structures is most ideal for writing code to display *
the grades of students according to their corresponding marks
Switch case
One-way if statements
Two-way if statement
if-else ladder
the statement; int age[ ] = new int[21] means that we are assigning the value 21 to
the array age.
Java multitasking
Java tasking
Computer programming
a source code
a computer program
a Java program
a. MYCLASS
b. main
c. my_Class
d. MyClass
e. main_Class
f. a, b & e only
g. b, c, & e only
h. a, c, d , & e only
Rewrite the following two statements using one print method (note that the *
statements are separated by the symbol |• ) System.out.println(“Hi my age
is”); |• System.out.println(4);
error
true
false
6>3
2+4>3
2+4
b. int aValue = 9;
c. a computer mouse can have click, drag, and scroll as its OOP attributes
b and c only
b, c and d only
a, b, c only
Object
Encapsulation
instance
Polymorphism
Constructor
Which of the following is true about the following code (Select the best answer) *
i. Polymorphism
ii. Encapsulation
v. object oriented
a. i, iii, iv only
b. i, iii, vi only
c. i, iii, v only
an object
a constructor
a main method
How much memory in bytes can a Boolean value occupy. *
True
1 bit
False
True or False
1 byte
0.125 bytes
Which of the following is true from the code (Select the best answer) *
A. I,II,IV
B. I,II
C. II,III,IV
D. II, IV
static
public
String[ ] args
the variables in the method add( ) are not accessible by any other method
j is an instance of Java_basics
13
12
a and b
y and j
This content is neither created nor endorsed by Google. - Terms of Service - Privacy Policy
Forms