Professional Documents
Culture Documents
Home / My courses / BAED-PROG3112-2012S / Week 10: First Quarter Exam / First Quarter Exam
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
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
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
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
Answer: 200
Question 10
Complete
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
Question 12
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
18
on the screen.
Select one:
True
False
Question 15
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
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
Question 20
Answer: string
Question 21
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
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
https://shs.amaesonline.com/mod/quiz/review.php?attempt=781788&cmid=4977 8/18
8/9/2020 First Quarter Exam: Attempt review
Question 24
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
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
Question 27
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
https://shs.amaesonline.com/mod/quiz/review.php?attempt=781788&cmid=4977 10/18
8/9/2020 First Quarter Exam: Attempt review
Question 29
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
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
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
Select one:
True
False
Question 34
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
Question 37
Question 38
Complete Read each statement carefully and decide whether it’s TRUE or FALSE.
Mark 1.00 out of
1.00
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
Answer: true
Question 40
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
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
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
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
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
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
https://shs.amaesonline.com/mod/quiz/review.php?attempt=781788&cmid=4977 18/18