(Week 1-9) BAED-PROG3112
(Week 1-9) BAED-PROG3112
(Week 1-9) BAED-PROG3112
Question 1
Complete
Mark 1.00 out of 1.00
A child class inherits all the methods of every other class.
Select one:
a. False
b. True
Question 2
Complete
Mark 0.00 out of 1.00
Flag question
Question text
Select one:
a. If statement
b. all of the choices
c. If-else-if statement
d. none of the choices
e. else-if statement
Question 3
Complete
Flag question
Question text
Select one:
a. True
b. False
Question 4
Complete
Flag question
Question text
Select one:
a. False
b. True
Question 5
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Select one:
a. True
b. False
Question 6
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Select one:
a. 0
b. 55555
c. error
d. 12345
Question 7
Complete
Flag question
Question text
Select one:
a. True
b. False
Question 8
Complete
Flag question
Question text
When polymorphism is used, the Java object can only take one form.
Subclasses should have the same function with the parent class.
Select one:
a. False
b. True
Question 9
Complete
Mark 0.00 out of 1.00
Flag question
Question text
Select one:
a. Error
b. 2
c. 5
d. 4
Question 10
Complete
Flag question
Question text
Select one:
a. True
b. False
“||” and “&&” can be used in conditional statements.
Select one:
a. False
b. True
All are methods of the array class except _______.
Select one:
a. substring( )
b. equals( )
c. toString( )
d. length( )
Question 3
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Select one:
b. True
Question 4
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Arrays are_______.
Select one:
a. Objects
Select one:
b. None of the choices
Question 6
Complete
Mark 1.00 out of 1.00
Flag question
Question text
The return value of the length( ) method is an integer
Select one:
a. True
Question 7
Complete
Mark 0.00 out of 1.00
Flag question
Question text
Select one:
b. True
Question 8
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Select one:
a. False
Question 9
Complete
Mark 0.00 out of 1.00
Flag question
Question text
Select one:
a. True
Inherited fields and methods can be used _______ by child classes.
Select one:
c. Directly
Question 1
Complete
Mark 0.00 out of 1.00
Flag question
Question text
Select one:
a. False
Please refer to figure 1 to answer the question below:
The output of println is _______
Select one:
c. 55555
The sort( ) method is always ascending.
Select one:
b. True
Switches are always used with if-else statements
Select one:
b. False
Variables must be declared as _______ for it to be fully hidden.
Select one:
b. Private
Select one:
d. Assigns memory for the array
Blocks can contain more blocks of code.
Select one:
a. True
Select one:
c. Blocks
String[ ][ ][ ] myArray is a declaration of ________ array.
Select one:
o. 3-d or 3-dimensional
Question 1
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Select one:
a. True
Question 2
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Select one:
b. True
Question 3
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Select one:
a. True
Question 4
Complete
Mark 1.00 out of 1.00
Flag question
Question text
number++; is a block
Select one:
a. False
Question 5
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Select one:
b. False
Question 6
Complete
Mark 1.00 out of 1.00
Flag question
Question text
The expression int[ ] myArray = new int[10] will ________ memory that
can contain 10 integers.
Select one:
o. Allocate
Question 7
Complete
Flag question
Question text
Select one:
a. True
Question 8
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Select one:
a. True
Question 9
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Select one:
b. “string1” + “string2”
Question 10
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Select one:
a. True
True or False: Netbeans is one of the IDEs or Integrated Development
Environment to run Java programs.
Answer:
Question 2
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Answer:
Question 3
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Read each statement carefully and decide whether it’s TRUE or FALSE.
Select one:
False
Question 4
Complete
Mark 1.00 out of 1.00
Flag question
Question text
True or False: When you run javac in a command line interface, it will
automatically create another file with a filename extension .class.
Answer:
Question 5
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Read each statement carefully and decide whether it’s TRUE or FALSE.
On line 6, average is equal to 0. But on line 9, average will be equal
to 100.
The last line of code, with a close brace { symbol, is properly
indented.
Select one:
False
Question 6
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Read each statement carefully and decide whether it’s TRUE or FALSE.
If you run this program, the second line of output will read Your
score is:
Select one:
True
Question 7
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Flag question
Question text
True or False: JDK or Java Design Kit is required to compile and run
Java apps and applets.
Answer:
Question 9
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Read each statement carefully and decide whether it’s TRUE or FALSE.
Select one:
True
Question 10
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Read each statement carefully and decide whether it’s TRUE or FALSE.
Select one:
False
Question 1
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Answer:
Question 2
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Refer to the block of codes below. Read each statement carefully and
decide whether it’s TRUE or FALSE.
The first line of the code should have either a yes or no value.
Answer:
Question 3
Complete
Mark 1.00 out of 1.00
Flag question
Question text
True or False: Public, static and void are sample of Java reserved
keywords.
Answer:
Question 4
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Refer to the block of codes below. Read each statement carefully and
decide whether it’s TRUE or FALSE.
Answer:
Question 5
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Refer to the block of codes below. Read each statement carefully and
decide whether it’s TRUE or FALSE.
Line 9 uses a traditional comment which uses double forward slash.
Answer:
Question 6
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Refer to the block of codes below. Read each statement carefully and
decide whether it’s TRUE or FALSE.
Answer:
Question 7
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Refer to the block of codes below. Read each statement carefully and
decide whether it’s TRUE or FALSE.
Answer:
Question 8
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Refer to the block of codes below. Read each statement carefully and
decide whether it’s TRUE or FALSE.
Answer:
Question 9
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Refer to the block of codes below. Read each statement carefully and
decide whether it’s TRUE or FALSE.
Answer:
Question 10
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Refer to the block of codes below. Read each statement carefully and
decide whether it’s TRUE or FALSE.
Assuming there are no errors in the code, line 13 would display When I
graduate, I’d be 18.
Answer:
Refer to the program below. Read each statement carefully and write
the output for each line specified.
Question 1
Complete
Mark 2.00 out of 2.00
Flag question
Question text
True or False: The conditional AND operator uses two ampersand (&&)
symbols.
Answer:
Question 2
Complete
Mark 2.00 out of 2.00
Flag question
Question text
Answer:
Observe the following statements and decide whether the variable
result’s value is TRUE or FALSE.
Given that:
int x = -77;
int z = 43;
result = (z < x && 1 != 10) ? true : false;
result = 90 < x || -1 < z;
Select one:
True
Flag question
Question text
Select one:
a. False
Question 3
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Select one:
d. More than one
Question 4
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Select one:
a. True
Question 5
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Select one:
b. True
Question 6
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Select one:
a. True
Question 7
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Select one:
a. False
Question 8
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Select one:
b. True
Question 9
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Select one:
a. False
Question 10
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Select one:
b. True
This type of declaration is discouraged.
Select one:
d. String myArray[ ];
Question 2
Complete
Flag question
Question text
________ is one of the four fundamental concepts, this is also known as data
hiding.
Select one:
b. Encapsulation
Question 3
Complete
Flag question
Question text
Select one:
a. False
Question 4
Complete
Flag question
Question text
Select one:
e. number++;
Question 5
Complete
Flag question
Question text
Select one:
f. 2-d or 2-dimensional
Question 6
Complete
Flag question
Question text
Select one:
a. True
Question 7
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Arrays are_______.
Select one:
d. Objects
Question 8
Complete
Flag question
Question text
Select one:
b. True
Select one:
b. False
Started on Thursday, 6 August 2020, 12:44 PM
State Finished
Completed on Thursday, 6 August 2020, 12:47 PM
Time taken 2 mins 19 secs
Grade 10.00 out of 10.00 (100%)
Question 1
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Select one:
b. True
Question 2
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Select one:
b. False
Question 3
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Select one:
b. False
Question 4
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Select one:
a. If-else-if nested in a switch
Question 5
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Select one:
a. False
Question 6
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Select one:
a. False
Question 7
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Select one:
a. False
Question 8
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Select one:
b. True
Question 9
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Select one:
c. tralse
Question 10
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Select one:
a. True