You are on page 1of 18

8/9/2020 First Quarter Exam: Attempt review

Home / My courses / BAED-PROG3112-2012S / Week 10: First Quarter Exam / First Quarter Exam

Started on Saturday, 8 August 2020, 1:15 PM


State Finished
Completed on Saturday, 8 August 2020, 1:27 PM
Time taken 12 mins
Grade 49.00 out of 50.00 (98%)

Question 1

Complete True or False: After compiling a Java program through the CLI, run it using the java and press Enter.
Mark 1.00 out of
1.00

Answer: True

Question 2

Complete In programming, abstracting a problem means


Mark 0.00 out of hide
1.00
it.

Question 3

Complete Fill in the blank: Nonprocedural programming, on the other hand, are limited to small
Mark 1.00 out of application
1.00
and the scope of tasks they can do.

Question 4

Complete True or False: Non-procedural programming focuses on how a task is done rather than on what task
Mark 1.00 out of should be done.
1.00

Answer: False

https://shs.amaesonline.com/mod/quiz/review.php?attempt=781788&cmid=4977 1/18
8/9/2020 First Quarter Exam: Attempt review

Question 5

Complete ____________________ in the workplace protection of sensitive business information through precautionary
Mark 1.00 out of measures like confidentiality clauses or non-disclosure agreements.
1.00

Select one:
a. Secrecy

b. Integrity

c. Confidentiality

d. Curiosity

Question 6

Complete Procedural programming will be tricky for


Mark 1.00 out of large
1.00
applications.

Question 7

Complete True or False: If you are running a program through CLI, the class name and the file name should be
Mark 1.00 out of different.
1.00

Answer: false

Question 8

Complete Fill in the blank:


Mark 1.00 out of
1.00

Answer: 6

https://shs.amaesonline.com/mod/quiz/review.php?attempt=781788&cmid=4977 2/18
8/9/2020 First Quarter Exam: Attempt review

Question 9

Complete Fill in the blank:


Mark 1.00 out of
1.00

Answer: 200

Question 10

Complete

Mark 1.00 out of


1.00

TRUE OR FALSE: The assigned values of “val_1” & “val_2” are integers.

Select one:
True

False

https://shs.amaesonline.com/mod/quiz/review.php?attempt=781788&cmid=4977 3/18
8/9/2020 First Quarter Exam: Attempt review

Question 11

Complete Refer to the code snippet below. Determine whether the given is a local variable, instance variable,
Mark 1.00 out of access modifier or a class name.
1.00

GIVEN: int noOfEmployee

Answer: local variable

Question 12

Complete Fill in the blank:


Mark 1.00 out of
1.00

Answer: barfoo

https://shs.amaesonline.com/mod/quiz/review.php?attempt=781788&cmid=4977 4/18
8/9/2020 First Quarter Exam: Attempt review

Question 13

Complete Refer to the program below. Read each statement carefully and write the output for each line specified. 
Mark 1.00 out of
1.00

Line 22 will display

18
on the screen.

Question 14 result = (z < x && 1 != 10) ? true : false;


Complete
Observe the following statements and decide whether the variable result’s value is TRUE or FALSE.
Mark 1.00 out of
1.00 Given that:
    int x = -77;
    int z = 43;
result = (x * x > 0) && (z * z < 0);

Select one:
True

False

Question 15

Complete Strings can directly concatenated to an int.


Mark 1.00 out of
1.00

Select one:
True

False

https://shs.amaesonline.com/mod/quiz/review.php?attempt=781788&cmid=4977 5/18
8/9/2020 First Quarter Exam: Attempt review

Question 16

Complete The “indexOf( )” method returns the irst instance of the speci ied character.
Mark 1.00 out of
1.00

Select one:
True

False

Question 17

Complete True or False: In this expression – counter++ - a value of 1 is added to counter twice.
Mark 1.00 out of
1.00

Answer: false

Question 18

Complete Refer to the code snippet below. Identify what part of a method is shown in each number (the
Mark 1.00 out of underlined one).
1.00

GIVEN: System.out.printIn("Area = " + areaRect);

Answer: method body

https://shs.amaesonline.com/mod/quiz/review.php?attempt=781788&cmid=4977 6/18
8/9/2020 First Quarter Exam: Attempt review

Question 19

Complete Refer to the code snippet below. Determine whether the given is a local variable, instance variable,
Mark 1.00 out of access modifier or a class name.
1.00

GIVEN: private class EmployeeRecord

Answer: class name

Question 20

Complete Fill in the blank:


Mark 1.00 out of
1.00

Answer: string

Question 21

Complete Strings can readily accept int values.


Mark 1.00 out of
1.00

Select one:
True

False

https://shs.amaesonline.com/mod/quiz/review.php?attempt=781788&cmid=4977 7/18
8/9/2020 First Quarter Exam: Attempt review

Question 22

Complete Refer to the code snippet below. Identify what part of a method is shown in each number (the
Mark 1.00 out of underlined one).
1.00

GIVEN: areaRect = length * width;

Answer: method body

Question 23

Complete Refer to the code snippet below. Determine whether the given is a local variable, instance variable,
Mark 1.00 out of access modifier or a class name.
1.00

GIVEN: String bossName

Answer: local variable

https://shs.amaesonline.com/mod/quiz/review.php?attempt=781788&cmid=4977 8/18
8/9/2020 First Quarter Exam: Attempt review

Question 24

Complete Determine the output.


Mark 1.00 out of
1.00

Select one:
a. fudgee bar

b. chocolate bar

c. error

d. foo chocolate

Question 25

Complete Refer to the program below. Read each statement carefully and write the output for each line specified. 
Mark 1.00 out of
1.00

Line 20 will display

false
on the screen.

https://shs.amaesonline.com/mod/quiz/review.php?attempt=781788&cmid=4977 9/18
8/9/2020 First Quarter Exam: Attempt review

Question 26

Complete Refer to the code snippet below. Identify what part of a method is shown in each number (the
Mark 1.00 out of underlined one).
1.00

GIVEN: public int getArea

Answer: method name

Question 27

Complete True or False: A method could be declared without any parameters.


Mark 1.00 out of
1.00

Answer: true

Question 28

Complete Refer to the code snippet below. Determine whether the given is a local variable, instance variable,
Mark 1.00 out of access modifier or a class name.
1.00

GIVEN: public String welcomeNote

Answer: instance variable

https://shs.amaesonline.com/mod/quiz/review.php?attempt=781788&cmid=4977 10/18
8/9/2020 First Quarter Exam: Attempt review

Question 29

Complete Fill in the blank:


Mark 1.00 out of
1.00

Answer: fudgee bar

Question 30

Complete In ____________________, the trainee’s learning is focused on utilizing existing abilities and competencies,
Mark 1.00 out of with the coach interacting with the trainee in a professional way.
1.00

Select one:
a. Problem Solving

b. Meeting

c. Coaching

d. Mentoring

Question 31

Complete Fill in the blank:


Mark 1.00 out of
1.00

Answer: foo

https://shs.amaesonline.com/mod/quiz/review.php?attempt=781788&cmid=4977 11/18
8/9/2020 First Quarter Exam: Attempt review

Question 32

Complete Read each statement carefully and decide whether it’s TRUE or FALSE.
Mark 1.00 out of
1.00

There are no bugs and errors in the program.

Select one:
True

False

Question 33

Complete
The last line of code, with a close brace { symbol, is properly
indented.
Mark 1.00 out of
1.00

TRUE OR FALSE: The value of “val_3” is 3

Select one:
True

False

Question 34

Complete Fill in the blank:


Mark 1.00 out of
1.00

Answer: foo

https://shs.amaesonline.com/mod/quiz/review.php?attempt=781788&cmid=4977 12/18
8/9/2020 First Quarter Exam: Attempt review

Question 35

Complete True or False: There are standard naming convention for Java classes, methods, variables and constants.
Mark 1.00 out of
1.00

Answer: true

Question 36

Complete Fill in the blanks with the correct answer.


Mark 1.00 out of
1.00

Answer: val_1 + val_2

Question 37

Complete Fill in the blank: Procedural programming is done because


Mark 1.00 out of computers
1.00
cannot decide on their own what sequence of tasks should be followed.

Question 38

Complete Read each statement carefully and decide whether it’s TRUE or FALSE.
Mark 1.00 out of
1.00

The filename of the Java file above is computesum.java.

Select one:
True

False

https://shs.amaesonline.com/mod/quiz/review.php?attempt=781788&cmid=4977 13/18
8/9/2020 First Quarter Exam: Attempt review

The last line of code, with a close brace { symbol, is properly


Question 39 indented.
Complete Refer to the block of codes below. Read each statement carefully and decide whether it’s TRUE or FALSE. 
Mark 1.00 out of
1.00

There are no errors in line 11.

Answer: true

Question 40

Complete Determine the output.


Mark 1.00 out of
1.00

Select one:
a. hodog

b. dogehot

c. hotdog

d. error

https://shs.amaesonline.com/mod/quiz/review.php?attempt=781788&cmid=4977 14/18
8/9/2020 First Quarter Exam: Attempt review

Question 41

Complete Refer to the block of codes below. Read each statement carefully and decide whether it’s TRUE or FALSE. 
Mark 1.00 out of
1.00

Line 9 comment can also be changed to another type of comment by replacing // with /* and it will
function the same.

Answer: false

Question 42

Complete True or False: Keywords are Java reserved words which are used as identifier for interface, constants and
Mark 1.00 out of constructs.
1.00

Answer: false

Question 43

Complete Refer to the code snippet below. Identify what part of a method is shown in each number (the
Mark 1.00 out of underlined one).
1.00

GIVEN: public int getArea

Answer: modifier

https://shs.amaesonline.com/mod/quiz/review.php?attempt=781788&cmid=4977 15/18
8/9/2020 First Quarter Exam: Attempt review

Question 44

Complete Refer to the code snippet below. Identify what part of a method is shown in each number (the
Mark 1.00 out of underlined one).
1.00

GIVEN: int getArea

Answer: return type

Question 45

Complete True or False: An asterisk is used instead of a small letter x to depict multiplication operation in Java.
Mark 1.00 out of
1.00

Answer: true

Question 46

Complete Fill in the blank:


Mark 1.00 out of
1.00

Answer: 6

Question 47

Complete True or False: Comments are considered part of Java’s internal documentation and it is therefore read
Mark 1.00 out of and executed by the compiler.
1.00

Answer: false

https://shs.amaesonline.com/mod/quiz/review.php?attempt=781788&cmid=4977 16/18
8/9/2020 First Quarter Exam: Attempt review

Question 48

Complete Determine the output.


Mark 1.00 out of
1.00

Select one:
a. error

b. f o

c. o f

d. o o

Question 49

Complete Refer to the code snippet below. Determine whether the given is a local variable, instance variable,
Mark 1.00 out of access modifier or a class name.
1.00

GIVEN: private class EmployeeRecord

Answer: access modifier

https://shs.amaesonline.com/mod/quiz/review.php?attempt=781788&cmid=4977 17/18
8/9/2020 First Quarter Exam: Attempt review

Question 50

Complete Refer to the block of codes below. Read each statement carefully and decide whether it’s TRUE or FALSE. 
Mark 1.00 out of
1.00

There are no errors on line 11 but the variable ageFuture is not used in the program.

Answer: true

◄ Learning Activity 2 Jump to... Strings ►

https://shs.amaesonline.com/mod/quiz/review.php?attempt=781788&cmid=4977 18/18

You might also like