Amaleaks Blogspotcom Prog113a Grade 12 Week1 20
Amaleaks Blogspotcom Prog113a Grade 12 Week1 20
1. Read the questions carefully and choose your answer from the word pool provided.
Mobile app XYZ, which is an RPG game, has been deployed and launched to the public six (6)
months ago. Some volunteers are testing XYZ in accordance with the ISO/IEC 25010:2011. Read
their feedback below and decide which product quality attribute is being described.
“So far, XYZ has 2 updates and it is working smoothly. Some bugs were fixed and there have been
improvements
ANSWER: – like additional characters and skills.”
Maintainability
2. One good practice is to use water filtration system instead of buying bottled water every time. ANSWER:
TRUE
3, Quality improvement process is conducted to avoid errors and faults from recurring in the future. ANSWER:
TRUE
4. Big business companies are the only ones responsible for enforcing environmental policies since they can
afford alternative cleaner technology.
ANSWER: FALSE
5. Presidential Decree No. 856 is an international treaty that imposes limitations on the greenhouse gas
emissions of several countries.
ANSWER: FALSE
7. Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product quality model and
write the letter that corresponds to your answer.
Testability
ANSWER: Maintainability
8. Pre-review activities in the review process includes review planning, preparation and individual review.
ANSWER: TRUE
ANSWER: Shitsuke
10. The Kyoto protocol requires the participation of both industrialized and developing nations in
reducing environmental harm.
ANSWER: FALSE
11. This body was tasked to implement the provisions of P.D. No. 856.
ANSWER: DEPARTMENT OF HEALTH
12. Every country, whether industrialized or still developing, must actively cooperate in enforcing
environmental measures.
ANSWER: TRUE
13. Read
“One the questions
good thing carefully
I find with XYZ andmy
as when choose yourdown
laptop shuts answer from themy
accidentally, word
gamepool
scoreprovided.
and status can
still be recovered. No need to repeat a level.”
Mobile app XYZ, which is an RPG game, has been deployed and launched to the public six (6)
months ago.
ANSWER: Some volunteers are testing XYZ in accordance with the ISO/IEC 25010:2011. Read
Reliability
their feedback below and decide which product quality attribute is being described.
14. Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product quality model and
write the letter that corresponds to your answer.
Accessibility
ANSWER: Usability
15. Seiri is making work easier by reducing unnecessary items to deal with.
ANSWER: TRUE
16. As long as the demands of the clients are met and the business is flourishing, there’s no more need to
bother about the effects of one’s business to the environment.
ANSWER: FALSE
“I17. Read
find the enjoying
it really questions carefully
to play andIchoose
XYZ since can inviteyour answer
my friends from
from themedia
social wordprofile.
pool provided.
It works well
with this social media app!”
Mobile app XYZ, which is an RPG game, has been deployed and launched to the public six (6)
months ago.
ANSWER: Some volunteers are testing XYZ in accordance with the ISO/IEC 25010:2011. Read
Compatibility
their feedback below and decide which product quality attribute is being described.
18. Read the questions carefully and choose your answer from the word pool provided.
ANSWER: Reliability
19.
ANSWER: Seiketsu is setting the best practices in the workplace as your work standards.
21. Companies can freely make their own set of environmental policies without consulting the
workers’ union, or any local or national laws about it.
ANSWER: FALSE
22. Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product quality model and
write the letter that corresponds to your answer.
Interoperability
ANSWER: Compatibility
23. ISO/IEC 25010:2011’s product quality model has eight (8) major characteristics.
ANSWER: TRUE
24. Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product quality model and
write the letter that corresponds to your answer.
Installability
ANSWER: Portability
25. According to Humphrey, a quality plan starts with product introduction where the product qualities and
target market are identified.
ANSWER: TRUE
26. Environmental policies won’t really make a difference, businesses will still strive and be
successful without giving a care for the environment.
ANSWER: FALSE
27. Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product quality model and
write the letter that corresponds to your answer.
Recoverability
ANSWER: Reliability
29. Critical thinking skills is an essential skill which includes listening effectively, adapting
communication skills and understanding underlying issues.
ANSWER: FALSE
30. Standards are based on untested concepts and theories that the company has yet to encounter. ANSWER:
FALSE
1. Observe the names of the following variables and routines and decide whether its format is
CORRECT or WRONG.
passingSCORE for a constant variable.
ANSWER: WRONG
2. Refer to the image below to answer the following question. What process is illustrated in the
diagram?
ANSWER Social media login limit
3. Jamie finished debugging her program. What is the next step she should do?
ANSWER: Formalize the Solution
4. The following are statements that describe milestones in the programming language. I.
FORTRAN, the first modern computer language, was developed.
II. Java was released by Sun Microsystems
III. C was developed based on some of B’s features.
IV.Ada Lovelace invented the first computer program for analytical engine application. V.
COBOL was created by the US Department of Defense
Which of the following shows the correct order of events?
ANSWER: IV, I, V, III, II
5. The set of rules that must be strictly followed when using a programming language is called
ANSWER: SYNTAX
6. Lizzy printed her reports in all the major subjects. She forgot if she has already printed her English report.
What can she do to avoid printing it twice?
ANSWER: Right click on the printer and choose See what’s printing.
7. Refer to the pseudocode below and answer the following question: If the calculated BMI results to 26, what
will the program do?
8. You will find running application programs and process in the Task Manager.
ANSWER: TRUE
9. We were playing games locally and I got disconnected. I think something’s wrong with this port.
11. To check if your operating system is up to date, click Start then click Control Panel and choose
.
ANSWER: Windows Update
12. C# was released by
ANSWER: MICROSOFT
14. .MPEG, .MP3 and .MOV are filename extensions for videos.
ANSWER: FALSE
15. is a type of programming language that is composed of symbols and words that follow some rules
similar to that of a natural language.
16. Programs written in high-level languages are translated into machine-readable form using
interpretersTRUE
ANSWER: or compilers.
18. A deleted file or folder found in the Recycle Bin can still be restored.
ANSWER: TRUE
19. Even when you close all running application programs, there are still process running in the
background.
ANSWER: TRUE
20. I found out that the keyboard is defective so I switched to the old keyboard which uses PS/2 port, where
should I plug it in?
ANSWER: A
21. Refer to the pseudocode below and answer the following question: What happens after weight is given?
22. A is the code or language that allows a user to instruct a computer to perform specific tasks.
23. Refer to the image below to answer the following question. What type of image is shown?
ANSWER: FLOWCHART
24. My headset is working but the microphone is not. Which port should I check?
Answer: F;
25. Refer to the image below to answer the following question. What type of flowchart symbol
contains the text “Limit >=3?”?
ANSWER: DECISION
27. Over time, man’s efforts to find better ways to communicate with computers resulted to the
evolution of programming languages.
ANSWER: TRUE
28. Observe the names of the following variables and routines and decide whether its format is
CORRECT or WRONG.
studentAge for a variable name.
ANSWER: CORRECT
29. Observe the names of the following variables and routines and decide whether its format is
CORRECT or WRONG.
Employees for a table name.
ANSWER: WRONG
30. Refer to the pseudocode below and answer the following question: What if the computed BMI equals
to 10, what will the program do?
ANSWER: PRINT UNDERWEIGHT
Question text
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 = (z != 43) ? true : false;
Select one:
False
Question text
Read each statement carefully and decide whether it’s TRUE or FALSE.
The last line of code, with a close brace { symbol, is properly indented.
Select one:
False
-false
There are three (3) separators found in line 13.
-True
result = 90 < x || -1 < z;
-True
The last line of code, with a close brace { symbol, is properly indented.
-False
Assuming there are no errors in the code, line 13 would display When I graduate, I’d be 18.
-True
Figure 2 shows the Netbeans Integrated Development Environment.
-True
-True
True or False: An exclamation point in Java means NOT. Therefore, != means not equal to.
-True
There are two types of comments used in the program above – end of line and Javadoc comments.
-True
result = (z < x && 1 != 10) ? true : false;
-False
-True
In line 11, the value of personage is 18.
-TRUE
If there are no errors in the program, the first line of output would read Hi, I’m a normal person.
-False
result = (x * z + (z += 7)) >= 100;
-False
True or False: Logical OR operator will result to false if one of the expressions is false.
-False
True or False: Semicolon (;) is a separator used to end a Java statement.
-True
-False
True or False: Single equal sign (=) is used for assigning values while double equal sign (==) is used in
comparing values.
-True
True or False: Java’s ternary operator is a short hand for the if-then-else statement which uses a question mark
and a colon.
-True
True or False: JDK or Java Design Kit is required to compile and run Java apps and applets.
-True
On line 6, average is equal to 0. But on line 9, average will be equal to 100.
-False
True or False: Identifiers in Java are, in simple words, name that you give to Java class, variables and
methods.
-True
True or False: When you run javac in a command line interface, it will automatically create another file with a
filename extension .class.
-True
Line 9 uses a traditional comment which uses double forward slash.
-FALSE
There are five (5) separators used in line 8.
-TRUE
There are no errors on line 8.
-FALSE
True or False: Syntax is basically the spelling and grammar errors compiled in a Java programming language. It
should be avoided in writing apps and applets.
-False
True or False: Operators, in Java programming language, use special symbols to call methods and their objects.
-False
If you run this program, the second line of output will read Your score is:.
-True
True or False: Java is a low level programming language.
-TRUE
If there are no errors and this simple program runs through CLI, the first line will display: Hi, students!
-False
True or False: Brackets [] are also separators used in declaring arrays.
-True
-bar
-False
True or False: Variable names in Java are not necessarily case sensitive.
-False
-36
True or False: Public, private and protected are some of the return types used in Java programming.
-False
If there are no errors in the program, line 9 would display I weigh 160.
-False
True or False: A boolean variable can only have two values; it is either true or false.
-True
True or False: If you get an error while running the javac command in the CLI, it could be resolved by editing
the Path value in Environment Variables.
-True
True or False: The subtraction assignment operator subtracts the left and right operand and assigns the
difference to the operand at the right.
-False
-False
x += x;
result
The = x ==
second line154;
of output will be: You are in Year 11.
-True
True or False: The conditional AND operator uses two ampersand (&&) symbols.
-True
result = 43 <= z;
-True
True or False: You’ll know that a variable is a class variable when you see that variable inside a class with
the word static.
-True
The string method “length( )” returns the number of characters within a string.
-True
-True
-f6
Languages which use procedural programming include C, (Answer) FORTRAN, Pascal and BASIC.
-C++
True or False: Local variables are declared inside the default method.
-False
True or False: Procedural programming involves instructing the system as to how to complete a task.
-True
TRUE OR FALSE: The output of this code is “The quick brown fox”
-False
Using a break; statement causes the loop to jump to the next iteration.
- is example of a statement.
x+1
-
number++; is a block
-
Arrays are
-Integers
The operator “new” allocates a memory block the size of what is declared.
-true
-
Statements can be expressions.
-
Integer arrays can be populated with characters.
-
Declaration clauses are declared as “number + 1”.
-
Loops can be stopped with a break; statement.
-True
When polymorphism is used, the Java object can only take one form. Subclasses should have the same function
with the parent class.
-Any
A class statement has three (3) major parts – declaration, initialization and instantiation.
-False
Declaring an object in Java uses the new keyword to create a new object.
-False
Please refer to Figure 2 to answer the question below: If the expression “num = 0” is changed to “num = 5”
the final output will be
-5
-boolean
True or False: The modulus operator returns the remainder of a division operation instead of the quotient.
-true
-5698
-4
-private
-Fills
-55555
The person’s weight is declared correctly with the correct data type (byte) and value (160).
-FALSE
System.out.println(val_1);
-bar
System.out.println(val_2);
-foo
Abstraction works by hiding the implementation details and showing only the functions necessary.
-True
True or False: Public, static and void are sample of Java reserved keywords.
-True
-True
-inner class
If you want some variables and methods hidden from other classes, you could implement encapsulation where
these variables and methods are wrapped in a single unit.
-True
All possible data types of an array can be retuned as a string by the toString( ) method.
-True
Abstraction shows the every bit of detail and implementation on how an application does something.
-False
An inner class can be constructed directly without reference to the outer class.
-False
-constructors
Subclasses or child classes could have different behaviors but still share the same functions from their parent
class.
-True
Parallelsorting utilizes
-arraycopy
1. Readtothe
“Thanks XYZ,questions
I can baby carefully
sit my littleand choose
brother. your
It’s so easyanswer from
to use that the
a 5-year
word
old canpool
play provided.
it as well.”
Mobile appUsability
ANSWER: XYZ, which is an RPG game, has been deployed and launched to
the public six (6) months ago. Some volunteers are testing XYZ in
2.accordance
Categorizewith
the following subcharacteristics
the ISO/IEC 25010:2011. Read of thetheir
ISO/IEC 25010:2011’s
feedback below and
product quality
decide which model quality
product and write the letter
attribute that corresponds
is being described. to your
answer. Maturity
ANSWER: Reliability
3. Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s
product quality model and write the letter that corresponds to your
answer. Reusability
ANSWER: Maintainability
4. ISO 9001 international standard for quality’s core processes are divided
into two (2) – product delivery process and support process.
ANSWER: TRUE
5. ISO/IEC 25010:2011’s SQuaRE stands for System Quality Assurance and
Requirements Evaluation. This standard is used in evaluating the quality
of software.
ANSWER: FALSE
6. Read the questions carefully and choose your answer from the word
pool provided.
Mobile app XYZ, which is an RPG game, has been deployed and launched to the
public six (6) months ago. Some volunteers are testing XYZ in accordance with
7. Readwethe
“Finally canquestions carefully enough,
play XYZ! Surprising and choose your and
all features answer fromare
functions the
word pool
present. provided.
It has all the controls a gamer needs.”
Mobile appFunctional
ANSWER: XYZ, whichStability
is an RPG game, has been deployed and launched to
the public six (6) months ago. Some volunteers are testing XYZ in
8.accordance
Categorizewith
the following subcharacteristics
the ISO/IEC 25010:2011. Read of thetheir
ISO/IEC 25010:2011’s
feedback below and
product quality
decide which model quality
product and write the letter
attribute that corresponds
is being described. to your
answer. Operability
ANSWER: Usability
9. Reading a lot can help improve you reading comprehension skills but
make sure you only read short articles.
ANSWER: FALSE
10. Categorize the following subcharacteristics of the ISO/IEC
25010:2011’s product quality model and write the letter that corresponds
to your answer. Functional Appropriateness
ANSWER: Functional Suitability
SHORT QUIZ 10
1. The mouse suddenly stopped working. Which port should I check?
ANSWER: B
SHORT QUIZ 11
SHORT QUIZ 12
JAVA II
True or False: Evaluating the options require determining the advantages and
disadvantages of each option. - TRUE
True or False: According to Hicks, the first step in an effective problem solving process is
clearly defining the problem. - TRUE
Who among the following can give feedback to an employee? - All of the choices
True or False: In identifying the problem, it should be specific and not broad or vague. -
TRUE
True or False: You should also look at the problem from a different point of view and listen to
others’ suggestion. This is the third step – listing all possible solutions. - FALSE
Which one of the following statements is FALSE? - Communication involves talking and
listening only.
Few programmers are complaining about slow Internet connection and this affects their work.
This cause is categorized in - EQUIPMENT
I’ve purchased a modern gaming mouse but it doesn’t have a PS/2 plug. Where I connect it? -
D
Windows is to Personal Computer (PC) while Mac OSX is to Mac laptops and computers. -
True
COBOL stands for Convenient Business Oriented Language. - False
C++, an extension of the C language, introduced object-oriented programming. - True
LISP and PROLOG are programming languages that are best used when dealing with Artificial
Intelligence. - True
FORTRAN was the first ever “modern” computer language. - true
I think I plugged the speakers wrong. The power is turned on but I can’t hear any sound Which
port should I check? - F
1. Read the questions carefully and choose your answer from the word pool provided.
Mobile app XYZ, which is an RPG game, has been deployed and launched to the public six (6)
months ago. Some volunteers are testing XYZ in accordance with the ISO/IEC 25010:2011. Read
their feedback below and decide which product quality attribute is being described.
“So far, XYZ has 2 updates and it is working smoothly. Some bugs were fixed and there have been
improvements
ANSWER: – like additional characters and skills.”
Maintainability
2. One good practice is to use water filtration system instead of buying bottled water every time. ANSWER:
TRUE
3, Quality improvement process is conducted to avoid errors and faults from recurring in the future. ANSWER:
TRUE
4. Big business companies are the only ones responsible for enforcing environmental policies since they can
afford alternative cleaner technology.
ANSWER: FALSE
5. Presidential Decree No. 856 is an international treaty that imposes limitations on the greenhouse gas
emissions of several countries.
ANSWER: FALSE
7. Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product quality model and
write the letter that corresponds to your answer.
Testability
ANSWER: Maintainability
8. Pre-review activities in the review process includes review planning, preparation and individual review.
ANSWER: TRUE
work
9. performance. is when you conduct regular audits and inspections to evaluate your
ANSWER: Shitsuke
10. The Kyoto protocol requires the participation of both industrialized and developing nations in
reducing environmental harm.
ANSWER: FALSE
11. This body was tasked to implement the provisions of P.D. No. 856.
ANSWER: DEPARTMENT OF HEALTH
12. Every country, whether industrialized or still developing, must actively cooperate in enforcing
environmental measures.
ANSWER: TRUE
13. Read
“One the questions
good thing carefully
I find with XYZ andmy
as when choose yourdown
laptop shuts answer from themy
accidentally, word
gamepool
scoreprovided.
and status can
still be recovered. No need to repeat a level.”
Mobile app XYZ, which is an RPG game, has been deployed and launched to the public six (6)
months ago.
ANSWER: Some volunteers are testing XYZ in accordance with the ISO/IEC 25010:2011. Read
Reliability
their feedback below and decide which product quality attribute is being described.
14. Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product quality model and
write the letter that corresponds to your answer.
Accessibility
ANSWER: Usability
15. Seiri is making work easier by reducing unnecessary items to deal with.
ANSWER: TRUE
16. As long as the demands of the clients are met and the business is flourishing, there’s no more need to
bother about the effects of one’s business to the environment.
“I17. Read
find the enjoying
it really questions carefully
to play andIchoose
XYZ since can inviteyour answer
my friends from
from themedia
social wordprofile.
pool provided.
It works well
with this social media app!”
Mobile app XYZ, which is an RPG game, has been deployed and launched to the public six (6)
months ago.
ANSWER: Some volunteers are testing XYZ in accordance with the ISO/IEC 25010:2011. Read
Compatibility
their feedback below and decide which product quality attribute is being described.
18. Read
“XYZ is so the
cool!questions carefully
I tried to install and
it in my oldchoose your
computer and answer from
it still runs the word
smoothly. pool
Given that provided.
the computer’s
video card is a bit faulty.“
Mobile app XYZ, which is an RPG game, has been deployed and launched to the public six (6)
months ago.
ANSWER: Some volunteers are testing XYZ in accordance with the ISO/IEC 25010:2011. Read
Reliability
their feedback below and decide which product quality attribute is being described.
19.
ANSWER: Seiketsu is setting the best practices in the workplace as your work standards.
21. Companies can freely make their own set of environmental policies without consulting the
workers’ union, or any local or national laws about it.
ANSWER: FALSE
22. Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product quality model and
write the letter that corresponds to your answer.
Interoperability
ANSWER: Compatibility
23. ISO/IEC 25010:2011’s product quality model has eight (8) major characteristics.
ANSWER: TRUE
24. Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product quality model and
write the letter that corresponds to your answer.
Installability
ANSWER: Portability
25. According to Humphrey, a quality plan starts with product introduction where the product qualities and
target market are identified.
ANSWER: TRUE
ANSWER: FALSE
27. Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product quality model and
write the letter that corresponds to your answer.
Recoverability
ANSWER: Reliability
29. Critical thinking skills is an essential skill which includes listening effectively, adapting
communication skills and understanding underlying issues.
ANSWER: FALSE
30. Standards are based on untested concepts and theories that the company has yet to encounter. ANSWER:
FALSE
1. Observe the names of the following variables and routines and decide whether its format is
CORRECT or WRONG.
passingSCORE for a constant variable.
ANSWER: WRONG
2. Refer to the image below to answer the following question. What process is illustrated in the
diagram?
ANSWER Social media login limit
3. Jamie finished debugging her program. What is the next step she should do?
ANSWER: Formalize the Solution
4. The following are statements that describe milestones in the programming language. I.
FORTRAN, the first modern computer language, was developed.
II. Java was released by Sun Microsystems
III. C was developed based on some of B’s features.
IV.Ada Lovelace invented the first computer program for analytical engine application. V.
COBOL was created by the US Department of Defense
Which of the following shows the correct order of events?
ANSWER: IV, I, V, III, II
5. The set of rules that must be strictly followed when using a programming language is called
ANSWER: SYNTAX
6. Lizzy printed her reports in all the major subjects. She forgot if she has already printed her English report.
What can she do to avoid printing it twice?
7. Refer to the pseudocode below and answer the following question: If the calculated BMI results to 26, what
will the program do?
8. You will find running application programs and process in the Task Manager.
ANSWER: TRUE
9. We were playing games locally and I got disconnected. I think something’s wrong with this port.
ANSWER: E
11. To check if your operating system is up to date, click Start then click Control Panel and choose
.
ANSWER: Windows Update
12. C# was released by
ANSWER: MICROSOFT
14. .MPEG, .MP3 and .MOV are filename extensions for videos.
ANSWER: FALSE
15. is a type of programming language that is composed of symbols and words that follow some rules
similar to that of a natural language.
ANSWER: High-level language
16. Programs written in high-level languages are translated into machine-readable form using
interpretersTRUE
ANSWER: or compilers.
18. A deleted file or folder found in the Recycle Bin can still be restored.
ANSWER: TRUE
19. Even when you close all running application programs, there are still process running in the
background.
ANSWER: TRUE
ANSWER: A
21. Refer to the pseudocode below and answer the following question: What happens after weight is given?
22. A is the code or language that allows a user to instruct a computer to perform specific tasks.
23. Refer to the image below to answer the following question. What type of image is shown?
ANSWER: FLOWCHART
24. My headset is working but the microphone is not. Which port should I check?
Answer: F;
25. Refer to the image below to answer the following question. What type of flowchart symbol
contains the text “Limit >=3?”?
ANSWER: DECISION
27. Over time, man’s efforts to find better ways to communicate with computers resulted to the
evolution of programming languages.
ANSWER: TRUE
28. Observe the names of the following variables and routines and decide whether its format is
CORRECT or WRONG.
studentAge for a variable name.
ANSWER: CORRECT
29. Observe the names of the following variables and routines and decide whether its format is
CORRECT or WRONG.
Employees for a table name.
ANSWER: WRONG
30. Refer to the pseudocode below and answer the following question: What if the computed BMI equals
to 10, what will the program do?
ANSWER: PRINT UNDERWEIGHT
You can use this procedure to issue user-defined error messages from stored subprograms.
Answer: RAISE_APPLICATION_ERROR
Which of the following syntax to declare EXCEPTION named
e_invalid_id? Answer: e_invalid_id EXCEPTION;
When an exception is predefined by Oracle server, the exception is raised .
Answer: Explicitly
When an exception is user defined, the exception is raised .
Answer: Explicitly
You can trap any error by including a corresponding handler within the exception-handling
section of the PL/SQL block.
Answer: True
3 BEGIN
v_employee_id; 5 END;
Answer: The PL/SQL will delete employee number 114.
Which of the following PL/SQL that will display the total number employees whose salary is
10000 and above?
Answer: DECLARE
v_salary employees.salary%TYPE := 10000;
BEGIN
SELECT COUNT(*) INTO v_salary FROM employees WHERE salary >= v_salary;
DBMS_OUTPUT.PUT_LINE(v_salary);
END;
This is a type of cursor which is created and managed internally by the Oracle server to process
SQL statements
Answer: Implicit
You have been tasked to update the database by creating a PL/SQL to increase the salary of all IT
Programmer employees by twice of their existing salary. Which of the following will execute
successfully?
Answer: DECLARE
v_job_id employees.job_id%TYPE := 'IT_PROG';
BEGIN
UPDATE employees SET salary = salary * 2 WHERE job_id =
v_job_id; END;
You want to display the department name the same with the location of the
Purchasing department.
Answer: SELECT department_name from departments where location_id = (SELECT
location_id from departments where department_name = 'Purchasing')
You want to display all records in the database whose salary is above the salary of Alexander
Hunold.
Answer: SELECT * from employees WHERE salary < (SELECT salary FROM employees
WHERE first_name = 'Alexander' AND last_name = 'Hunold')
You want to display all employee id, name, hired date and salary who are hired after employee
104 was hired.
Answer: SELECT employee_id, last_name, hire_date, salary FROM employees WHERE
TO_NUMBER(TO_CHAR(hire_date, 'YYYY')) >
(SELECT TO_NUMBER(TO_CHAR(hire_date, 'YYYY')) FROM employees WHERE
employee_id = 104)
True or False: Presentations must be interesting, lively and engaging. Answer: true
True or False: You can do as you please in the workplace, just remember to show
that you working hard only when the boss is around.
Answer: false
The first version of the risk management file should be named Risk Management V01.
A: true
PROG-113A / ► Week 20: Second Quarter Exam / ► Second Quarter Exam (50/50) (PS: Pabago bago ang
questions, pero same lang sa ibang short quizes or learning activity yung questions and sagot)
<3 :)
LA2
Display the name, jobs id and salary of the all the employees whose department id is 100 and salary is
below 8000. Arrange the output by salary in ascending order.
SELECT first_name, last_name, salary FROM employees WHERE department_id = 100 AND salary <
8000 ORDER BY salary
Display employee's name and id whose firstname starts with letter D and job id is SA_REP. Sort the
output by department.
SELECT employee_id, first_name, last_name FROM employees WHERE first_name LIKE 'D%' and job_id
= 'IT_PROG' ORDER BY department_id
List all the employee_id of all employees whose salary is 5000 and below and belong to department 60
or 100.
SELECT employee_id,salary, department_id FROM employees WHERE salary < 5000 AND
department_id IN (60,100)
----------------------------------------
SQ2
Display all the records sorted by price from most expensive to the cheapest parts.
SELECT * FROM parts ORDER BY price DESC
Display all the records whose stock is below 20 and in warehouse number 3.
SELECT * FROM parts WHERE onhand< 20 AND warehouse = 3;
Ronnie is the stockman in the warehouse of ATR Corporation. The General Manager wants to know
the parts whose price is above 10000 and above. Which of the following SQL command that Ronnie
will run to generate the list.
SELECT * FROM parts WHERE price >= 10000;
Which of the following SQL command will display all records with class code of AP?
SELECT * FROM parts WHERE class = ‘AP’;
LA3
Display the first 5 letter in the surname of all the employees whose firstname starts with letter 'D'
SELECT SUBSTR(last_name,1,5), first_name FROM employees WHERE SUBSTR(first_name,1,1) = 'D'
Display the employee id, number of years and the hiring date of every employee in the company.
SELECT employee_id, hire_date, ROUND((SYSDATE - hire_date) /365,0) FROM employees;
Every employee will get a bonus of 150% of his/her current salary. Display the employee id, salary and
the bonus of every employee. Label the computed bonus with Bonus
The correct answer is: SELECT employee_id, salary, salary * 1.5 AS Bonus FROM employees
----------------------------------------
SQ3
Display the montly salary of every employee. Round the salary in 2 decimal places.
SELECT ROUND( (salary/12),2 ) FROM employees;
Display the total number of characters of the last name of all the employees.
SELECT LENGTH(last_name) FROM employees;
Display the first 3 letter in the first name of all the employees.
SELECT SUBSTR(first_name,1,3) FROM employees;
Display the last day of the month and the hiring date when the employees are hired in the company.
SELECT LAST_DAY(hire_date), hire_date FROM employees;
----------------------------------------
LA4
You want to display the employee id and the year when an employee was hired.
Which SQL statement give the required output?
SELECT employee_id, TO_CHAR(hire_date,'YYYY') FROM employees;
You want to display the employee id and the month an employee was hired.
Which SQL statement give the required output?
You want to display the employee's last name whose salary is below 10,000.
Which SQL statement give the required output format of the salary?
Required output :
SELECT last_name, TO_CHAR(salary, '$999,999.99') AS "MONTHLY SALARY" FROM employees WHERE
salary < 10000
----------------------------------------
SQ4
You want to display the last name and the year when an employee was hired whose job id is IT_PROG.
Which SQL statement give the required output?
SELECT last_name, TO_CHAR(hire_date,'YYYY') FROM employees WHERE job_id = ‘IT_PROG’;
You want to display all the employee id and the month an employee was hired excluding employees
whose job id is AD_VP. Which SQL statement give the required output?
SELECT employee_id, hire_date, TO_CHAR(hire_date,'Month') AS "Hired Month", job_id FROM
employees WHERE job_id NOT IN ('AD_VP');
You want to display the employee's id and formatted date hired as shown below.
Which SQL statement give the required output?
Required output :
SELECT employee_id, TO_CHAR(hire_date, 'fmMonth DD, YYYY') AS "Hired Date" FROM employees;
----------------------------------------
LA5
The General Manager request to the Database Administrator to generate the total salary per month of
every department in the company.
SELECT department_id, SUM(salary) FROM employees GROUP BY department_id
Ms. Ella what to generate the average salary of all employees whose job function is IT_PROG.
Which of the following SQL command will produce the output.
SELECT AVG(salary) FROM employees WHERE job_id = 'IT_PROG';
Aldrin wants to know the highest salary in every department. Which of the following SQL command will
display the required output?
SELECT department_id, MAX(salary) FROM employees GROUP BY department_id
What is the SQL command to display the date of the first employee that was hired?
SELECT MIN(hire_date) FROM employees;
----------------------------------------
LQ1
John want to know how many part items are there in warehouse number 3.
What SQL command he need to run?
SELECT COUNT(*) FROM parts WHERE warehouse = 3;
Which of the following SQL command will display all records with part number contains the number 9?
SELECT * from parts WHERE partnum LIKE '%9%'
There was 10% price increase in the all the parts in warehouse number 3. The Store Manager asked the
Database Administrator to generate a report showing the part number, the old and new price.
Which of the following SQL statement would satisfy the requirement of the Store Manager.
SELECT partnum, price, price * 1.1 FROM parts WHERE warehouse = 3
Which of the following SQL command will display the summary table showing the total quantity on hand
per class.
SELECT class, sum(onhand) AS "QTY ON HAND" FROM parts GROUP BY class
Aldrin wants to know the outstanding total balance on hand on every class per warehouse.
SELECT warehouse, class, sum(onhand) FROM parts GROUP BY warehouse, class
----------------------------------------
LA6
The HR Manager instruct the Database Officer to display employee's name and the minimum and
maximum salary the employee can received. Which of the following SQL command will generate the
----------------------------------------
SQ6
Display the location id of all employee's name and salary whose salary is from 5000 to 10000.
SELECT first_name, last_name, salary FROM employees JOIN departments USING
(department_id) WHERE salary >= 5000 AND salary <= 10000
----------------------------------------
LA7
A new department name Training with department id 300 was created in the company. This will be
managed by a Manager with ID of 203 and will located at location id 2400.
Create a SQL command to add a new position Database Administrator with job id of DB_ADMIN whose
salary ranges from 10,000 to 18,000.
INSERT INTO jobs VALUES ('DB_ADMIN', 'Database Administrator', 10000, 18000)
SQ7
Create a SQL command to add a new position Java Developer with job id of JAVA_DEV whose salary
ranges from 7,000 to 8,000.
INSERT INTO jobs VALUES ('JAVA_DEV', 'Java Developer', 7000, 8000)
Add a 500 pesos increase in salary of all employees who have rendered services 10 years and above.
UPDATE employees SET salary = salary + 500 where TO_CHAR(sysdate,'YYYY') -
TO_CHAR(hire_date,'YYYY') >= 10
Which of the following DOES NOT describes the state of the data after the COMMIT command
None of the choices
Which of the following will erase all records in the departments table
TRUNCATE TABLE departments
Nathaniel had accidentally deleted all the records in the newly updated ORACLE database using the
DELETE SQL command. What is the best solution that he can do to restore all the deleted records in the
database.
Run the ROLLBACK command
LA8
Which of the following will grant a query privileges on the STUDENT table
GRANT select ON student TO matt
This has the highest level of privileges for task such as creating new users, removing users and tables and
backing up tables.
DBA
SQ8
TRUE OR FALSE.
An owner has all the privileges on the object.
True
Which of the following SQL command that the DBA will run to provide Matt to create a table in the
Oracle Database.
GRANT create table TO matt
1st Q Exam
What is the SQL command to count the number of records in the employees table?
SELECT COUNT(*) FROM employees
What will be the SQL command if every employee will be given a productivity bonus which is equivalent
to 3% of the monthly salary?
Display the employee id, salary and the productivity bonus.
SELECT employee_id, salary, salary * .03 FROM employees
Display the employee id, salary, number of years and the hiring date of every employee in the company.
SELECT employee_id, salary, hire_date, ROUND((SYSDATE - hire_date) /365,0) FROM employees;
You what to generate the average salary of all employees whose job function is FI_ACCOUNT.
Which of the following SQL command will produce the output.
SELECT AVG(salary) FROM employees WHERE job_id = 'FI_ACCOUNT';
You want to display all the job position titles whose salary is salary from 5,000 to 12,000 arrange from
highest to lowest
SELECT job_title FROM jobs WHERE min_salary >= 5000 AND max_salary<= 10000
Austin David was transferred to Purchasing Department. You are assigned to update the database.
Which of the following SQL command will satisfy the requirements?
UPDATE employees SET department_id = 30 WHERE first_name = ‘David’ AND last_name = ‘Austin’
Display the lastname of every employee in the company. Display the output in a single column and label
it as Fullname
Format: JuanReyes
SELECT CONCAT(first_name, last_name) AS Fullname FROM employees
Display all the records in the employee table. Arrange the output in by lastname from A-Z order.
SELECT * FROM employees ORDER BY lastname
You want to generate the total salary per month of every department in the company.
SELECT department_id, SUM(salary) FROM employees GROUP BY department_id
Display employee id, lastname, firstname, department name, annual salary, location id of employees
whose location id is 1700 and working in Finance Department. Label the annual salary to ANNUAL
SALARY.
Sort the output in from highest to lowest salary. (4 POINTS)
SELECT E.employee_id, E.last_name, E.first_name, D.department_name, E.salary*12 AS "ANNUAL
SALARY", D.location_id
FROM employees E
JOIN jobs J ON E.job_id = J.job_id
JOIN departments D ON E.department_id = D.department_id
WHERE D.location_id = 1700 AND D.department_name = 'Finance'
ORDER BY "ANNUAL SALARY" DESC
Question text
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 = (z != 43) ? true : false;
Select one:
False
Question text
Read each statement carefully and decide whether it’s TRUE or FALSE.
The last line of code, with a close brace { symbol, is properly indented.
Select one:
False
Question text
True or False: Brackets [] are also separators used in declaring arrays.
Answer:
True
Question text
Refer to the block of codes below. Read each statement carefully and decide whether
it’s TRUE or FALSE.
There is an error in line
9. Answer:
TRUE
-false
There are three (3) separators found in line 13.
-FALSE
There is an error in line 9.
-True
result = 90 < x || -1 < z;
-True
The last line of code, with a close brace { symbol, is properly indented.
-True
Figure 2 shows the Netbeans Integrated Development Environment.
-True
-True
True or False: An exclamation point in Java means NOT. Therefore, != means not equal to.
-True
There are two types of comments used in the program above – end of line and Javadoc comments.
-True
result = (z < x && 1 != 10) ? true : false;
-False
-True
In line 11, the value of personage is 18.
-TRUE
If there are no errors in the program, the first line of output would read Hi, I’m a normal person.
-False
result = (x * z + (z += 7)) >= 100;
-False
True or False: Logical OR operator will result to false if one of the expressions is false.
-False
True or False: Semicolon (;) is a separator used to end a Java statement.
-True
True or False: There are five types of integer data types – byte, short, int, long and float.
-False
True or False: Single equal sign (=) is used for assigning values while double equal sign (==) is used in
comparing values.
-True
-True
True or False: JDK or Java Design Kit is required to compile and run Java apps and applets.
-True
On line 6, average is equal to 0. But on line 9, average will be equal to 100.
-False
True or False: Identifiers in Java are, in simple words, name that you give to Java class, variables and
methods.
-True
True or False: When you run javac in a command line interface, it will automatically create another file with a
filename extension .class.
-True
Line 9 uses a traditional comment which uses double forward slash.
-FALSE
There are five (5) separators used in line 8.
-TRUE
There are no errors on line 8.
-FALSE
True or False: Syntax is basically the spelling and grammar errors compiled in a Java programming language. It
should be avoided in writing apps and applets.
-False
True or False: Operators, in Java programming language, use special symbols to call methods and their objects.
-False
If you run this program, the second line of output will read Your score is:.
-True
True or False: Java is a low level programming language.
-False
There are also punctuators used in line 10, in between System, out and println, the parentheses and semicolon.
-TRUE
If there are no errors and this simple program runs through CLI, the first line will display: Hi, students!
-True
-bar
-False
True or False: Variable names in Java are not necessarily case sensitive.
-False
-36
True or False: Public, private and protected are some of the return types used in Java programming.
-False
True or False: Divide and conquer strategy, in programming, is also known as the top-down design.
-True
If there are no errors in the program, line 9 would display I weigh 160.
-False
True or False: A boolean variable can only have two values; it is either true or false.
-True
True or False: If you get an error while running the javac command in the CLI, it could be resolved by editing
the Path value in Environment Variables.
-True
True or False: The subtraction assignment operator subtracts the left and right operand and assigns the
difference to the operand at the right.
-False
-False
x += x;
result
The = x ==
second line154;
of output will be: You are in Year 11.
-True
True or False: The conditional AND operator uses two ampersand (&&) symbols.
-True
result = 43 <= z;
-True
True or False: You’ll know that a variable is a class variable when you see that variable inside a class with
the word static.
-True
The string method “length( )” returns the number of characters within a string.
-True
-True
Languages which use procedural programming include C, (Answer) FORTRAN, Pascal and BASIC.
-C++
True or False: Local variables are declared inside the default method.
-False
True or False: Procedural programming involves instructing the system as to how to complete a task.
-True
TRUE OR FALSE: The output of this code is “The quick brown fox”
-False
number++; is an expression
-true
There are four (4) major features of an object-oriented programming language – encapsulation, inheritance,
polymorphism and abstraction.
-True
Using a break; statement causes the loop to jump to the next iteration.
-False
-Integers
The operator “new” allocates a memory block the size of what is declared.
-true
When polymorphism is used, the Java object can only take one form. Subclasses should have the same function
with the parent class.
-False
-Any
A class statement has three (3) major parts – declaration, initialization and instantiation.
-False
Declaring an object in Java uses the new keyword to create a new object.
Please refer to Figure 2 to answer the question below: If the expression “num = 0” is changed to “num = 5”
the final output will be
-5
-boolean
True or False: The modulus operator returns the remainder of a division operation instead of the quotient.
-true
-5698
-4
-private
-Fills
-55555
The person’s weight is declared correctly with the correct data type (byte) and value (160).
-FALSE
System.out.println(val_1);
-bar
System.out.println(val_2);
-foo
Abstraction works by hiding the implementation details and showing only the functions necessary.
-True
True or False: Public, static and void are sample of Java reserved keywords.
-True
-True
-inner class
If you want some variables and methods hidden from other classes, you could implement encapsulation where
these variables and methods are wrapped in a single unit.
All possible data types of an array can be retuned as a string by the toString( ) method.
-True
Abstraction shows the every bit of detail and implementation on how an application does something.
-False
An inner class can be constructed directly without reference to the outer class.
-False
-constructors
-one
Subclasses or child classes could have different behaviors but still share the same functions from their parent
class.
-True
Parallelsorting utilizes
-arraycopy()
Question text
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 = (z != 43) ? true : false;
Select one:
False
Question text
Read each statement carefully and decide whether it’s TRUE or FALSE.
The last line of code, with a close brace { symbol, is properly indented.
-FALSE
There is an error in line 9.
-True
result = 90 < x || -1 < z;
-True
The last line of code, with a close brace { symbol, is properly indented.
-False
Assuming there are no errors in the code, line 13 would display When I graduate, I’d be 18.
-True
Figure 2 shows the Netbeans Integrated Development Environment.
-True
-True
True or False: An exclamation point in Java means NOT. Therefore, != means not equal to.
-True
There are two types of comments used in the program above – end of line and Javadoc comments.
-True
result = (z < x && 1 != 10) ? true : false;
-False
-True
In line 11, the value of personage is 18.
-TRUE
If there are no errors in the program, the first line of output would read Hi, I’m a normal person.
-False
result = (x * z + (z += 7)) >= 100;
-False
True or False: Logical OR operator will result to false if one of the expressions is false.
-False
-True
True or False: There are five types of integer data types – byte, short, int, long and float.
-False
True or False: Single equal sign (=) is used for assigning values while double equal sign (==) is used in
comparing values.
-True
True or False: Java’s ternary operator is a short hand for the if-then-else statement which uses a question mark
and a colon.
-True
True or False: JDK or Java Design Kit is required to compile and run Java apps and applets.
-True
On line 6, average is equal to 0. But on line 9, average will be equal to 100.
-False
True or False: Identifiers in Java are, in simple words, name that you give to Java class, variables and
methods.
-True
True or False: When you run javac in a command line interface, it will automatically create another file with a
filename extension .class.
-True
Line 9 uses a traditional comment which uses double forward slash.
-FALSE
There are five (5) separators used in line 8.
-TRUE
There are no errors on line 8.
-FALSE
True or False: Syntax is basically the spelling and grammar errors compiled in a Java programming language. It
should be avoided in writing apps and applets.
-False
True or False: Operators, in Java programming language, use special symbols to call methods and their objects.
-False
If you run this program, the second line of output will read Your score is:.
-False
There are also punctuators used in line 10, in between System, out and println, the parentheses and semicolon.
-TRUE
If there are no errors and this simple program runs through CLI, the first line will display: Hi, students!
-False
True or False: Brackets [] are also separators used in declaring arrays.
-True
-bar
-False
True or False: Variable names in Java are not necessarily case sensitive.
-False
-36
True or False: Divide and conquer strategy, in programming, is also known as the top-down design.
-True
If there are no errors in the program, line 9 would display I weigh 160.
-False
True or False: A boolean variable can only have two values; it is either true or false.
-True
True or False: If you get an error while running the javac command in the CLI, it could be resolved by editing
the Path value in Environment Variables.
-True
True or False: The subtraction assignment operator subtracts the left and right operand and assigns the
difference to the operand at the right.
-False
-False
x += x;
result
The = x ==
second line154;
of output will be: You are in Year 11.
-True
True or False: The conditional AND operator uses two ampersand (&&) symbols.
-True
result = 43 <= z;
-True
True or False: You’ll know that a variable is a class variable when you see that variable inside a class with
the word static.
-True
The string method “length( )” returns the number of characters within a string.
-True
-f6
Languages which use procedural programming include C, (Answer) FORTRAN, Pascal and BASIC.
-C++
True or False: Local variables are declared inside the default method.
-False
True or False: Procedural programming involves instructing the system as to how to complete a task.
-True
TRUE OR FALSE: The output of this code is “The quick brown fox”
-False
number++; is an expression
-true
There are four (4) major features of an object-oriented programming language – encapsulation, inheritance,
polymorphism and abstraction.
-True
Using a break; statement causes the loop to jump to the next iteration.
- is example of a statement.
x+1
-
number++; is a block
-
Arrays are
-Integers
The operator “new” allocates a memory block the size of what is declared.
-true
-
Statements can be expressions.
-
Integer arrays can be populated with characters.
-
Declaration clauses are declared as “number + 1”.
-
Loops can be stopped with a break; statement.
-True
-Any
A class statement has three (3) major parts – declaration, initialization and instantiation.
-False
Declaring an object in Java uses the new keyword to create a new object.
-False
Please refer to Figure 2 to answer the question below: If the expression “num = 0” is changed to “num = 5”
the final output will be
-5
-boolean
True or False: The modulus operator returns the remainder of a division operation instead of the quotient.
-true
-5698
-4
-private
-Fills
-55555
The person’s weight is declared correctly with the correct data type (byte) and value (160).
-FALSE
System.out.println(val_1);
-bar
System.out.println(val_2);
-foo
Abstraction works by hiding the implementation details and showing only the functions necessary.
-True
True or False: Public, static and void are sample of Java reserved keywords.
-True
-True
-inner class
If you want some variables and methods hidden from other classes, you could implement encapsulation where
these variables and methods are wrapped in a single unit.
-True
All possible data types of an array can be retuned as a string by the toString( ) method.
-True
Abstraction shows the every bit of detail and implementation on how an application does something.
-False
An inner class can be constructed directly without reference to the outer class.
-False
-constructors
-one
Subclasses or child classes could have different behaviors but still share the same functions from their parent
class.
-True
Parallelsorting utilizes
-arraycopy()
-0
The else-if statement can be used alone.
- false
Abstract methods need sub-classes to contain their implementations.
-true
The method arraycopy( ) does what?
- Copies the contents of an array to a destination array.
An array can be infinitely long.
- False
7. Lizzy printed her reports in all the major subjects. She forgot if she has already printed her English report.
What can she do to avoid printing it twice?
Answer: Right click on the printer and choose See what’s printing.
8. Refer to the image below to answer the following question. What process is illustrated in the
diagram?
9. Quality improvement process is conducted to avoid errors and faults from recurring in the future.
Answer: True
10. Refer to the image below and write only the letter of the correct answer in the space provided.
Answer: D
11. Observe the names of the following variables and routines and decide whether its format is
CORRECT or WRONG.
ComputeTotalScore() for a routine to sum up the scores
Answer: CORRECT
12. In adding a new printer, the will guide you on the steps to be taken.
13. Big business companies are the only ones responsible for enforcing environmental policies since they can
afford alternative cleaner technology.
ANSWER: FALSE
15. Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product quality model and
write the letter that corresponds to your answer.
Adaptability
ANSWER; PORTABILITY
16. One good practice is to use water filtration system instead of buying bottled water every time.
ANSWER; TRUE
17. is a type of programming language that is composed of symbols and words that follow
some rules similar to that of a natural language.
18. The following are statements that describe milestones in the programming language. I.
FORTRAN, the first modern computer language, was developed.
II. Java was released by Sun Microsystems
III. C was developed based on some of B’s features.
IV.Ada Lovelace invented the first computer program for analytical engine application. V.
COBOL was created by the US Department of Defense
Which of the following shows the correct order of events?
19. The Kyoto protocol requires the participation of both industrialized and developing nations in
reducing environmental harm.
ANSWER: False
20. Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product quality model and
write the letter that corresponds to your answer.
Accessibility
ANSWER; USABILITY
22. Observe the names of the following variables and routines and decide whether its format is
CORRECT or WRONG.
Get_Average_Grade() for a routine to compute for average.
ANSWER: WRONG
24. What type of flowchart symbol contains the text “Limit >=3?”?
ANSWER:DECISION
My brother gave me an external hard drive as a present. I wanted to save my movies and pictures in
it, where should
ANSWER: D it be connected?
26. Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product quality model and
write the letter that corresponds to your answer.
Installability
ANSWER: PORTABILITY
27. Java can only be used for business purposes like processing records and employees.
ANSWER:FALSE
ANSWER: CORRECT
“I29. ead
find the questions
it really enjoying tocarefully
play XYZ and
sincechoose your
I can invite myanswer fromsocial
friends from the word
mediapool provided.
profile. It works well
with this social media app!”
Mobile app XYZ, which is an RPG game, has been deployed and launched to the public six (6)
months ago.
ANSWER: Some volunteers are testing XYZ in accordance with the ISO/IEC 25010:2011. Read
COMPATIBILITY
their feedback below and decide which product quality attribute is being described.
30. ISO/IEC 25010:2011’s product quality model has eight (8) major characteristics.
ANSWER:TRUE
31. Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product quality model and
write the letter that corresponds to your answer.
Recoverability
ANSWER: RELIABILITY
32. Read the questions carefully and choose your answer from the word pool provided.
ANSWER:
Mobile appSECURITY
XYZ, which is an RPG game, has been deployed and launched to the public six (6)
months ago. Some volunteers are testing XYZ in accordance with the ISO/IEC 25010:2011. Read
33. Categorize
their feedback thebelow
following
and subcharacteristics of the quality
decide which product ISO/IECattribute
25010:2011’s product
is being quality model and
described.
write the letter that corresponds to your answer.
“The XYZ has in-app purchases or micro transactions and asks for my credit card details. It’s safe so far and
Capacity
didn’t have any issues with information leak.”
ANSWER: PERFORMANCE EFFICIENCY
34. Refer to the pseudocode below and answer the following question: What
is the first thing that the program will do?
ANSWER: WRONG
ANSWER: 0
38. Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product quality model and
write the letter that corresponds to your answer.
Integrity
ANSWER: SECURITY
39. Seiri is making work easier by reducing unnecessary items to deal with.
ANSWER: TRUE
40. Even when you close all running application programs, there are still process running in the
background.
ANSWER: TRUE
41. Read
“XYZ is so the
cool!questions carefully
I tried to install and
it in my oldchoose your
computer and answer from
it still runs the word
smoothly. pool
Given that provided.
the computer’s
video card is a bit faulty.“
Mobile app XYZ, which is an RPG game, has been deployed and launched to the public six (6)
months ago.
ANSWER: Some volunteers are testing XYZ in accordance with the ISO/IEC 25010:2011. Read
Reliability
their feedback below and decide which product quality attribute is being described.
42. FORTRAN stands for .
ANSWER: FORmulaTRANslator
43. Monica accidentally unplugged the mouse PS/2 port. What will happen to the mouse connected thru the
universal serial bus port?
ANSWER: USABILITY
46. Refer to the pseudocode below and answer the following question: If the calculated BMI results to 26,
what will the program do?
48. Read
“One the questions
good thing carefully
I find with XYZ andmy
as when choose yourdown
laptop shuts answer from themy
accidentally, word
gamepool
scoreprovided.
and status can
still be recovered. No need to repeat a level.”
Mobile app XYZ, which is an RPG game, has been deployed and launched to the public six (6)
months ago.
ANSWER: Some volunteers are testing XYZ in accordance with the ISO/IEC 25010:2011. Read
Reliability
their feedback below and decide which product quality attribute is being described.
49.Battery level, Internet connection and date and time are usually located in the Notification Area.
ANSWER: TRUE
50.He is known as the father of the Java programming language.
ANSWER: JAMES GOSLING
Question text
Answer: accountable
Read the situation below as your basis for answering the following question:
Question text
True or False: Monitoring and evaluating means brainstorming.
Answer: False
Ricka is creating a student record system where the profile, educational attainment and
contact person of the students will be saved and restored. She is planning to implement it
during the second semester.
Identify whether the statement is a strength, weakness, opportunity or threat. Naughty students who might
try to hack the student record system and change the information saved.
Answer: threat
Question 2
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Read the situation below as your basis for answering the following question:
Ricka is creating a student record system where the profile, educational attainment and
contact person of the students will be saved and restored. She is planning to implement it
during the second semester.
Identify whether Ricka’s role is accountable, responsible, consult or inform: Ricka should finish conducting
unit and system testing.
Flag question
Question text
Question text
Axel is finally documenting his work. What could he be writing? Select
Machine language and assembly language are collectively referred to as
one: .
a. requirements of the program
Select one:
b. system analysis
c. bug
a. Average and
reviews levelerrors
language
d. instructions for the users
b. Low-level language
Question 6
c. Advanced language
Complete
Mark 1.00 out of 1.00
d. High-level language
Question 7
Question text
Complete
Mark 1.00 out of 1.00
Flag question
Flag question
Question 8
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Analyze the diagram below to answer. Fill in the blanks with the correct answer or categorize the causes if they are considered pr
When the software used was checked, the project manager discovered that some of the programmers are using an old version of J
Answer. Materials
Question 9
Complete
Mark 1.00 out of 1.00
Ricka is creating a student record system where the profile, educational attainment and contact person of th
Identify whether Ricka’s role is accountable, responsible, consult or inform: Ricka should be told about the students who volunte
Answer: inform
Question 10
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Machine language is also known as Binary language.
Question 11
Complete
Mark 1.00 out of 1.00
Flag question
Question text
The following can be used as a channel for conveying messages, EXCEPT: Select one:
email
social media
Question 12
Question text
Complete
Refer to the
Mark 1.00 outpseudocode
of 1.00 below and answer the following question: What
is the first thing that the program will do?
Select one:
Question 13
Question text
Complete
Mark 1.00 out of 1.00 in the workplace protection of sensitive business information through
precautionary measures like confidentiality clauses or non-disclosure agreements.
Select one:
a. Curiosity
b. Integrity Flag question
c. Secrecy
d. Confidentiality
Question 14
Complete
Mark 0.00 out of 1.00
a. Security
b. Reliability
c. Compatibility
d. Functional Suitability
e. Maintainability
f. Portability
g. Usability
h. Performance Efficiency
Question 15
Complete
Mark 1.00 out of 1.00
Flag question
Question text
FORTRAN stands for . Formula Translator
Question 16
Complete
Mark 1.00 out of 1.00
Flag question
Question text
True or False: Documenting the decision is the last action needed to be taken to solve the problem.
Question 17
Question text
Complete
InMark 1.00 out of 1.00 , the trainee’s learning is focused on utilizing existing abilities and
competencies, with the coach interacting with the trainee in a professional way.
Select one:
a. Coaching
b. Meeting Flag question
c. Problem Solving
d. Mentoring
Question 18
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Determine whether the stated person / group is an internal or external stakeholder. Students
Answer: internal
Question 19
Complete
Mark 1.00 out of 1.00
Flag question
Question text
True or False: Organizational policies and procedures are used as a guide in decision making and help
employees understand the company’s goals and values.
Question 20
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Java can only be used for business purposes like processing records and employees. Select one:
True
False
Question 21
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Battery level, Internet connection and date and time are usually located in the Notification Area. Select one:
True
False
Question 22
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Actions that you need to take to reach the goals you set are called. Select one:
a. Standard
Question 23
Question text
Complete
Categorize
Mark 1.00 outthe
of following
1.00 subcharacteristics of the ISO/IEC 25010:2011’s product quality model and write the
letter that corresponds to your answer.
Adaptability
Select one:
a. Usability
Flag question
b. Security
c. Compatibility
d. Reliability
e. Functional Suitability
f. Performance Efficiency
g. Maintainability
h. Portability
Question 24
Complete
Mark 1.00 out of 1.00
Flag question
Question text
True or False: To establish empathy means to interpret the message received. Answer: False
Question 25
Complete
Mark 1.00 out of 1.00
When the program was written, some team mates are talking too loud and distracted the others. This cause is categorized under:
Answer: Environment
Question 26
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Identify whether the following task should be listed as a milestone or be included in the Gantt chart. Create
the project charter for the student record system.
Answer: Gantt chart
Flag question
Question text
Refer to the image below to answer the following question. By
default, what is the value of limit?
Select one:
a. 0
b. 2
c. 1
d. 3
Question 28
Question
Complete text
Mark 1.00 out of 1.00
Flag question
Question text
Observe the names of the following variables and routines and decide whether its format is CORRECT or WRONG.
Get_Average_Grade() for a routine to compute for average.
Select one:
Correct
Wrong
Question 29
Complete
Mark 1.00 out of 1.00
Flag question
a. Printer Guide
b. Printer Affix
c. Printer Install
d. Printer Wizard
Question 30
Question
Complete text
Mark 1.00 out of 1.00
Flag question
Question text
True or False: Gantt chart is one of the tools used in identifying workloads. It states who is responsible or
accountable for one task or activity.
Answer: False
Question 31
Complete
Mark 1.00 out of 1.00
Flag question
My brother gave me an external hard drive as a present. I wanted to save my movies and pictures in it, where
should it be connected?
Answer: D
Question 32
Complete
Mark 1.00 out of 1.00
Flag question
Question 33
Question text
Complete
InMark
the1.00
correct
out oforder,
1.00 the essential parts of the communication process are: Select one:
Question 34
Question
Complete text
Mark 1.00 out of 1.00
Flag question
Question text
Determine whether the stated person / group is an internal or external stakeholder. Programmers
Answer: internal
Question 35
Complete
Mark 1.00 out of 1.00
Flag question
Question 36
Question
Complete text
Mark 1.00 out of 1.00
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product quality model and write the
letter that corresponds to your answer.
Learnability
Select one:
Question
b. Security text
True
c. or False: Listing down the issues related to the problem is second to the last step in an effective
Maintainability
problem solving process.
d. Functional Suitability
Answer: False
e. Usability
Question 37
f.Complete
Compatibility
Mark 1.00 out of 1.00
g. Performance Efficiency
h. Reliability
Question 38
Complete
Mark 1.00 out of 1.00Flag question
Question 39
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Read the situation below as your basis for answering the following question:
Ricka is creating a student record system where the profile, educational attainment and
contact person of the students will be saved and restored. She is planning to implement it
during the second semester.
Identify whether the statement is a strength, weakness, opportunity or threat. The student record system is
dependent on the Internet and will not function without Internet connection.
Answer: weakness
Question 40
Complete
Mark 1.00 out of 1.00
Answer: instrument
Question 41
Question text
Complete
AMark
product or ofservice
1.00 out 1.00 must go through this phase to ensure that it is fit to use and that its quality matches with
the company’s standards.
Select one:
a. Performance Appraisal
b. Quality ControlFlag question
c. Safety Programs
d. Reflective Behavior
Flag question
Question text
Observe the names of the following variables and routines and decide whether its format is CORRECT or WRONG.
ComputeTotalScore() for a routine to sum up the scores.
Select one:
Wrong
Correct
Question 43
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Identify whether the following task should be listed as a milestone or be included in the Gantt chart. The
record system has undergone the function testing successfully.
Answer: milestone
Question 44
Complete
Mark 1.00 out of 1.00
Flag question
Question text
True or False: Stakeholders are people or group who are directly or indirectly affected by a company’s
decision, policies and objectives.
Answer: True
Question 45
Complete
Flag question
Question text
True or False: Distributing the information to the involved staff and/or department is the last step in the
planning process.
Answer: True
Question 46
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Determine whether the stated person / group is an internal or external stakeholder. Programmers’ Adviser
Answer: internal
Question 47
Complete
Mark 1.00 out of 1.00
Flag question
Question text
True or False: Feedback is not needed in communication.
Answer: False
Question 48
Complete
Mark 1.00 out of 1.00
Flag question
a. COBOL
b. Analytical Engine
c. FORTRAN
d. PlanKalKul
Question 49
Question text
Complete
Read theoutquestions
Mark 1.00 of 1.00 carefully and choose your answer from the word pool provided.
Mobile app XYZ, which is an RPG game, has been deployed and launched to the public six (6)
months ago. Some volunteers are testing XYZ in accordance with the ISO/IEC 25010:2011. Read
their feedback below and decide which product quality attribute is being described.
“The XYZ has in-app purchases or micro transactions and asks for my credit card details. It’s safe so far and
didn’t have any issues with information leak.”
Flag question
Select one:
a. Portability
b. Performance Efficiency
c. Compatibility
d. Security
e. Maintainability
f. Reliability
g. Usability
h. Functional Stability
Question 50
Complete
Mark 0.00 out of 1.00
a. Compatibility
b. Maintainability
c. Usability
d. Functional Suitability
e. Reliability
f. Performance Efficiency
g. Security
h. Portability
PROG-113A / ► Week 20: Second Quarter Exam / ► Second Quarter Exam (50/50) (PS: Pabago bago ang
questions, pero same lang sa ibang short quizes or learning activity yung questions and sagot)<3 :)
Which of the following stored procedure to create a procedure to that will be used to display the
employee id and salary of Steven King?
Answer: CREATE OR REPLACE PROCEDURE
query_emp (p_last_name IN employees.last_name%TYPE,
p_first_name IN employees.first_name%TYPE,
p_employee_id OUT employees.employee_id%TYPE,
p_salary OUT employees.salary%TYPE) IS
BEGIN
SELECT employee_id, salary INTO p_employee_id,
p_salary FROM employees
WHERE last_name = p_last_name AND first_name =
p_first_name; END query_emp;
What is the default parameter mode when no mode is specified?
Answer: IN
You can use this procedure to issue user-defined error messages from stored subprograms.
Answer: RAISE_APPLICATION_ERROR
Which of the following syntax to declare EXCEPTION named
e_invalid_id? Answer: e_invalid_id EXCEPTION;
When an exception is predefined by Oracle server, the exception is raised .
Answer: Explicitly
When an exception is user defined, the exception is raised .
Answer: Explicitly
You can trap any error by including a corresponding handler within the exception-handling
3 BEGIN
v_employee_id; 5 END;
Answer: The PL/SQL will delete employee number 114.
Which of the following PL/SQL that will display the total number employees whose salary is
10000 and above?
Answer: DECLARE
v_salary employees.salary%TYPE := 10000;
BEGIN
SELECT COUNT(*) INTO v_salary FROM employees WHERE salary >= v_salary;
DBMS_OUTPUT.PUT_LINE(v_salary);
END;
This is a type of cursor which is created and managed internally by the Oracle server to process
SQL statements
Answer: Implicit
You have been tasked to update the database by creating a PL/SQL to increase the salary of all IT
Programmer employees by twice of their existing salary. Which of the following will execute
successfully?
Answer: DECLARE
v_job_id employees.job_id%TYPE := 'IT_PROG';
BEGIN
UPDATE employees SET salary = salary * 2 WHERE job_id =
v_job_id; END;
You want to display the department name the same with the location of the
Purchasing department.
Answer: SELECT department_name from departments where location_id = (SELECT
location_id from departments where department_name = 'Purchasing')
You want to display all records in the database whose salary is above the salary of Alexander
Hunold.
Answer: SELECT * from employees WHERE salary < (SELECT salary FROM employees
WHERE first_name = 'Alexander' AND last_name = 'Hunold')
You want to display all employee id, name, hired date and salary who are hired after employee
104 was hired.
Answer: SELECT employee_id, last_name, hire_date, salary FROM employees WHERE
TO_NUMBER(TO_CHAR(hire_date, 'YYYY')) >
(SELECT TO_NUMBER(TO_CHAR(hire_date, 'YYYY')) FROM employees WHERE
employee_id = 104)
Display the employee's name, job title, job_id and the department name of employees with department id of
100.
Display
-SELECTthe part number whose J.job_title,
E.employee_id, class is not HW, AG or SG.
e.job_id,
D.department_name FROM employees E
-SELECT
JOIN jobs partnum FROM parts
J ON E.job_id WHERE NOT IN class ('HW', 'AG', SG')
= J.job_id
JOIN of
Which departments
the followingDSELECT
ON E.department_id = D.department_id
statement is the correct report that will rename the column DESCRIPTION to
WHERE E.department_id = 100
TITLE, PARTNUM to ID and ONHAND to STOCK?
-. SELECT DESCRIPTION
-FULL OUTER JOIN RENAME AS TITLE, PARTNUM RENAME AS ID, ONHAND RENAME
AS STOCK FROM PARTS;
Which of the following is NOT a task of a Database Administrator
A join between two tables that returns the results of an INNER join as well as the results of a left and right
-None
join is of
a the choices .
SELECT employee_id, min_salary, max_salary FROM employees, departments WHERE salary>=
10000 && salary <= 20000
Display the first 5 letter in the surname of all the employees whose firstname starts with letter 'N'
Which of the following SELECT statement is the correct PL/SQL that will display all rows and columns?
-SELECT FROM TABLE PARTS;
-foreign key
Which of the following SELECT statement is the correct report that will display the unique value for
WAREHOUSE renames the column as "No. of Available Warehouse".
- SELECT DISTINCT COLUMN WAREHOUSE AS "No. of available warehouse" FROM PARTS;
Display the employee id and the last name of every employee in the company whose salary is between 5000 to
10000. Display the output in a single column with the format 100 : King Label the column as Employee
- SELECT CONCAT(CONCAT(employee_id, ':'), last_name) AS Employee, salary
FROM employees WHERE salary >= 5000 AND salary <= 10000
You want to display the employee's last name and date hired in year 2000 to2006 whose salary is above 5000.
Which SQL statement give the required output?
- SELECT last_name, hire_date FROM employees WHERE hire_date>=
TO_DATE('01-Jan-2000', 'DD-Mon-YYYYY') AND hire_date<= TO_DATE('31-Dec-2006', 'DD-
Mon-YYYY') AND salary ABOVE 5000;
PROG-113A / ► Week 20: Second Quarter Exam / ► Second Quarter Exam (50/50) (PS: Pabago bago ang
questions, pero same lang sa ibang short quizes or learning activity yung questions and sagot) <3 :)
JAVA II
True or False: Evaluating the options require determining the advantages and
disadvantages of each option. - TRUE
True or False: According to Hicks, the first step in an effective problem solving process is
clearly defining the problem. - TRUE
Who among the following can give feedback to an employee? - All of the choices
True or False: In identifying the problem, it should be specific and not broad or vague. -
TRUE
True or False: You should also look at the problem from a different point of view and listen to
others’ suggestion. This is the third step – listing all possible solutions. - FALSE
Which one of the following statements is FALSE? - Communication involves talking and
listening only.
Few programmers are complaining about slow Internet connection and this affects their work.
This cause is categorized in - EQUIPMENT
I’ve purchased a modern gaming mouse but it doesn’t have a PS/2 plug. Where I connect it? -
D
Windows is to Personal Computer (PC) while Mac OSX is to Mac laptops and computers. -
True
Question 1
Complete
Mark 3.00 out of 3.00
Flag question
Question text
Given the answer in item, which of the folllowing stored procedure will display the employee id and salary of Steven King?
Select one:
a. DECLARE
v_employee_id employees.employee_id%TYPE; v_emp_sal employees.salary%TYPE;
Question 2
Question text
Complete
The
MarkPL/SQL code
1.00 out of 1.00 block helps modularize code by using:
Select one:
Question 3
Question text
Complete
Which of out
Mark 1.00 theoffollowing
1.00 rules is INCORRECT about cursor variables?
Select one:
Question 4
Question text
Complete
Which of out
Mark 1.00 theoffollowing
1.00 is the syntax to close a cursor? Select
one:
a. SET cursor_variable_nameCLOSE;
b. CLOSE cursor_variable_name;
Flag question
c. EXIT cursor_variable_name;
d. QUIT cursor_variable_name;
Question 5
Complete
Mark 1.00 out of 1.00
Question 6
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Use column aliases in cursors for calculated columns fetched into records declared with
%COLUMNTYPE.
Select one:
True False
Question 7
Complete
Mark 1.00 out of 1.00
Flag question
Question text
This is a subset of an existing data type that may place a constraint on its base type. Select one:
a. Subtype
Question 8
Question text
Complete
What is the
Mark 1.00 outdefault
of 1.00 parameter mode when no mode is specified? Select
one:
a. IN
b. DEFAULT
Flag question
c. OUT
d. IN OUT
Question 9
Question text
Complete
When an exception
Mark 1.00 out of 1.00 is predefined by Oracle server, the exception is raised .
Select one:
a. Implicitly
b. Interactively
Flag question
c. Exclusively
d. Explicitly
e. None of the choices
Question 10
Flag question
Question text
Evaluate the following PL/SQL. Which of the following will line creates an error?
Select one:
a. Line 1
b. Line 5
c. Line 9
d. Line 3
e. No error
f. Line 11
Question 11
Question text
Complete
Mark 1.00 out of 1.00
Flag question
a. Formal parameter
b. Actual arguments
c. Passing parameter
d. Actual parameter
Question 12
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Which of the following is the syntax to open a cursor varial Select one:
a. SET cursor_variable_name
FOR select_statement;
b. GET cursor_variable_name
FOR select_statement;
c. OPEN cursor_variable_name
FOR select_statement;
d. LOAD cursor_variable_name
FOR select_statement;
Question 13
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Which if the following is NOT a benefits of using modular program constructs? Select one:
Question 14
Question text
Complete
Which of out
Mark 1.00 theoffollowing
1.00 command is used to create a stand-alone procedure that is stored in the Oracle
database?
Select one:
a. PROCEDURE
b. BUILD PROCEDURE
Flag question
c. CREATE
d. DO PROCEDURE
e. CREATE PROCEDURE
Question 15
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Weak REF CURSOR is very flexible. Select one:
True False
Question 16
Complete
Mark 1.00 out of 1.00
Question 17
Question text
Complete
PL/SQL stands for
Mark 1.00 out of 1.00
Select one:
Question 18
Complete
Mark 1.00 out of 1.00
Flag question
Question 19
Question text
Complete
What is the
Mark 1.00 outerror trapping function that returns the numeric value of the error code? Select one:
of 1.00
a. SQLCODE
b. ERRORCODE
Flag question
c. SQL_ERRORCODE
d. ERROR_CODE
Question 20
Complete
Mark 1.00 out of 1.00
Flag question
Question text
What are the three PL/SQL block types? Select one:
Question 21
Question text
Complete
Evaluate
Mark 1.00the following
out of 1.00 PL/SQL.
1. DECLARE
2. v_employee_id employees.employee_id%TYPE := 114;
3. BEGIN
4.
Flag question DELETE employees WHERE employee_id = v_employee_id;
5. END;
Select one:
a. To execute successfully delete line 1,2,3,5.
b. The PL/SQL will produce an error in line 4.
c. The PL/SQL will delete employee number 114.
d. The PL/SQL will produce an error in line 2.
Question 22
Complete
Mark 1.00 out of 1.00
Flag question
Question text
You have been tasked to update the database by creating a PL/SQL to increase the salary of all IT
Programmer employees by 100% of their existing salary. Which of the following will execute successfully?
Select one:
Question 23
Question text
Complete
This
Markis1.00
a type
out ofof1.00
cursor which is created and managed internally by the Oracle server to process SQL
statements
Select one:
a. Interactive
b. Implicit Flag question
c. Explicit
d. Exclusive
e. Coded
Question 24
Complete
Mark 1.00 out of 1.00
a. Restrictive
b. All of the choices
c. Is not flexible
d. Associates with any query
Question 25
Question text
Complete
Evaluate
Mark 1.00the following
out of 1.00 PL/SQL.
1. DECLARE
2. v_employee_id employees.employee_id%TYPE := 114;
3. BEGIN
4.
Flag question DELETE employees WHERE employee_id = v_employee_id;
5. END;
Select one:
a. To execute successfully delete line 1,2,3,5.
b. The PL/SQL will produce an error in line 4.
c. The PL/SQL will delete employee number 114.
d. The PL/SQL will produce an error in line 2.
Question 26
Complete
Mark 1.00 out of 1.00
a. ERROR_MSG
b. EXECUTION_ERROR
c. RUNTIME_ERROR
d. PROGRAM_ERROR
Question 27
Question text
Complete
Which of out
Mark 1.00 theoffolllowing
1.00 does NOT describes subprogram?
i. Compiled only once
ii. Stored in the database
iii. Do not return values
iv. Can take parameters
v. Unnamed PL/SQL blocks
Flag question
Select one:
a. iii & v
b. iii & iv
c. ii & v
d. iii & v
e. i & iii
Question 28
Complete
Mark 1.00 out of 1.00
1. DECLARE
2. SUBTYPE Accumulator IS NUMBER (4,2);
3. v_amount accumulator;
4. v_num1 NUMBER;
5. v_num2 NUMBER;
6. v_num3 NUMBER;
7. BEGIN
8. v_amount := 10.50;
9. v_num1 := 1;
10. v_num2 := 2;
11. v_num3 := 3;
12. v_num1 := v_amount;
13. v_num2 := v_num1 + v_amount;
14. v_num2 := v_num2 - v_num3;
15.
16. dbms_output.put_line('Total is: ' || v_num2); 17.
18. END;
Select one:
a. None of the choices
b. -1
c. 8.5
d. 18
Question 1
Complete
Mark 2.00 out of 2.00
Flag question
SELECT job_title FROM jobs WHERE min_salary >= 5000 AND max_salary<= 10000
SELECT job_title FROM employees WHERE salary >= 5000 AND salary <= 10000
SELECT employees_id, job_title FROM employees WHERE salary >= 5000 AND salary <=
10000
d. SELECT job_title FROM jobs WHERE salary >= 5000 AND salary <= 10000
Question 2
Question text
Complete
What is the
Mark 2.00 outSQL command to count the number of records in the employees table? Select one:
of 2.00
Question 3
Complete
Mark 2.00 out of 2.00
Flag question
Question text
True or False. The AND, OR, NOT are comparison operators. Select one:
True False
Flag question
Question text
Evaluate the following SQL command
SELECT * FROM jobs WHERE job_title LIKE 'Manager%'
Select one:
Question 5
Complete
Mark 2.00 out of 2.00
Flag question
Question text
You want to display all the employee id and the month an employee was hired. Which SQL statement give the required output?
Select one:
Question 6
Complete
Mark 2.00 out of 2.00
department_id
Question 7
Complete
Mark 2.00 out of 2.00
Flag question
Question text
You want to display the employee's last name whose salary is below 10,000 and whose lastname starts with letter D.
Which SQL statement give the required output format of the salary?
Select one:
Question 8
Complete
Mark 2.00 out of 2.00
Question 9
Complete
Mark 0.00 out of 2.00
Flag question
Question text
Display the first 5 letter in the surname of all the employees whose firstname starts with letter 'N' Select one:
Question 10
Complete
Mark 2.00 out of 2.00
a. UPDATE first_name = ‘David’ AND last_name = ‘Austin’ FROM employees SET department_id =
30
b. UPDATE department_id = 30 WHERE first_name = ‘David’ AND last_name = ‘Austin’
c. UPDATE employees WHERE department_id = 30 SET first_name = ‘David’ AND last_name =
‘Austin’
Question 11
Question text
Complete
John
Mark want to ofknow
2.00 out 2.00 how many employees receiving salary below 10,000. What
SQL command he need to run?
Select one:
Question 12
Complete
Mark 2.00 out of 2.00
Question 13
Complete
Mark 2.00 out of 2.00
Flag question
Question text
You want to display the employee's last name and date hired in year 2000 to2006 whose salary is above 5000. Which SQL statement
Select one:
Question 14
Complete
Mark 2.00 out of 2.00
Question 15
Complete
Mark 2.00 out of 2.00
Flag question
Question text
Evaluate the following SQL command
SELECT employee_id, min_salary, max_salary FROM employees, departments WHERE salary>= 10000 && salary <= 20000
Select one:
Question 16
Complete
Mark 2.00 out of 2.00
Flag question
Question text
Question 17
Complete
Mark 2.00 out of 2.00
Flag question
Question text
Display employee's name and id whose firstname starts with letter D and job id is IT_PROG. Sort the output by department.
Select one:
b. SELECT employees FROM employee_id, first_name, last_name WHERE first_name LIKE ‘D%’
and job_id = ‘IT_PROG’ ORDER BY department_id
d. SELECT employee_id, first_name, last_name FROM employees WHERE first_name LIKE 'D%'
and job_id = 'IT_PROG' ORDER BY department_id
Question 18
Complete
Mark 2.00 out of 2.00
Flag question
Question text
You what to generate the average salary of all employees whose job function is FI_ACCOUNT. Which of the following SQL comma
Select one:
Question 19
Question text
Complete
Display
Mark 2.00all
outlocation
of 2.00 id between 1000 to 2000.
Select one:
Question 20
Question text
Complete
What willout
Mark 2.00 beofthe SQL command if every employee will be given a productivity bonus which is equivalent to
2.00
3% of the monthly salary?
Display the employee id, salary and the productivity bonus.
Select one:
Question 21
Flag question
Question text
Display the employee id, salary, number of years and the hiring date of every employee in the company.
Select one:
Question 22
Complete
Mark 2.00 out of 2.00
Flag question
Question text
Display the employee's name, job title, job_id and the department name of employees with department id of 100.
Select one:
Question 23
Question text
Complete
InMark
creating Joins,the
2.00 out of 2.00 NATURALJOIN and USING clauses are
Select one:
a. Mutually Inclusive
b. Limited to 2 relational tables
Flag question
c. Opposite
d. Mutually Exclusive
Question 24
Complete
Mark 4.00 out of 4.00
Flag question
Question text
Display employee id, lastname, firstname, department name, annual salary, location id of employees whose location id is 1700 and w
Sort the output in from highest to lowest salary. (4 POINTS)
Select one:
9/10
Position :IT
Programmer Salary :
10000
Department of assignment : 60
Add a 500 pesos increase in salary of all employees who have rendered services 10 years and above.
Create a SQL command to add a new position Java Developer with job id of JAVA_DEV whose salary
ranges from 7,000 to 8,000.
answer: INSERT INTO jobs VALUES ('JAVA_DEV', 'Java Developer', 7000, 8000)
Update the Treasury department to Cash department. And this will be managed by the Manager of
Finance department.
Which of the following will erase all records in the departments table
Nathaniel had accidentally deleted all the records in the newly updated ORACLE database using the
DELETE SQL command. What is the best solution that he can do to restore all the deleted records in the
database.
Which of the following DOES NOT describes the state of the data after the COMMIT command
answer: SAVEPOINT
YOu want to display the employee's id and formatted date hired as shown below
Required output:
You want to display all the employee id and the month an employee was hired excluding employees
whose job id is AD_VP. Which SQL Statement give the required output?
IT_PROG
You want to display the employee’s last name whose salary is below 10,000 and whose lastname starts
with letter K.
You want to display the employee's last name and date hired in year 2002 whose salary is above 5000.
Answer: SELECT last_name, hire_date FROM employees WHERE hire_date >= TO_DATE('01-
Jan-2002', 'DD-Mon-RR') AND hire_date <= TO_DATE('31-Dec-2002', 'DD-Mon-RR') AND
salary
> 5000;
Display all the records sorted by price from most expensive to the cheapest parts.
Display all the records whose stock is below 20 and in warehouse number 3.
Display part number description and warehouse number whose part number starts with letter K.
Answer: SELECT partnum, description, warehouse FROM parts WHERE partnum LIKE 'K%';
Roonie is the stockman in the warehouse of ATR Corporation. The General Manager wants to know the
parts whose price is above 10000 and above.
Which of the following SQL command will display all records with class code of AP?
Which of the following SQL commands will display all stocks whole class is HW or AP.
Which of the following SQL commands will display all the stocks on hand from 10 to 30?
Which of the following SELECT statement is the correctreport that will combine the column PARTNUM
and description put a literal character string "belongs to" in between the two columns then rename the
column as "NUMBER TITLE"
Answer: SELECT (PARTNUM ll' THAT BELONGS TO' ll DESCRIPTION) AS "NUMBER TITLE" FROM PARTS;
Which of the following SELECT statement is the correct report that will deduct 5 from ONHAND, multiply 5 in
WAREHOUSE, after getting the value on both ONHAND and WAREHOUSE add their data: as shown below:
ONHAND - 5 + 5 * WAREHOUSE
Note that you have to force the Oracle to prioritize first the Subtraction over Multiplication. List only the
column DESCRIPTION, ONHAND and WAREHOUSE.
Which of the following is the correct report that will display the class from table PARTS.
Which of the following SELECT statement is the correct PL/SQL that will display all rows and columns?
Which of the following Select statement is the correct report that will display the unique value for
WAREHOUSE renames the column as "No. of Available Warehouse"
Which of the following select statement is the correct report that will rename the column description to
title,partnum to id and onhand to stock?
A new department name training with department id 300 was created in the company.
Create a SQL command to add a new position database administrator with job id of DB_ADMIN whose
salary ranges from 10,000 to 18,000
John want to know how many employees receiving salary below 10,000
What is the SQL command to display the date of the first employee that was hired?
Aldrin wants to know the highest salary in every department. which of the following sql will display the
required output?
The general manager request to the database administrator to generate the total salary per month of
every department in the company.
Ms. Ella what to generate the average salary of all employees whose job function is
Aldrin wants to know the outstanding total balance on hand on every class per warehouse
Which of the following SQL command will display all records with part number contains the number 9?
Which of the following SQL command will display the summary table showing the total quantity on hand
per class.
Answer: SELECT class, sum(onhand) AS "QTY ON HAND" FROM parts GROUP BY class
Display a summary table of the total quantity on hand above 50 very class per warehouse
There was 10% price increase in the all the parts in warehouse number 3.
SELECT SUM(onhand) FROM PARTS where class = 'HW' OR class = 'AP' and warehouse = 1;
answer: 137
John want to know how many part items are there in warehouse number 3.
Which of the following will erase all records in the departments table
answer: DML
Which of the following DOES NOT describes the state of the data after the commit command
Nathaniel had accidentally deleted all the records in the newly updated oracle database using the
DELETE SQL command.
Answer: Unmatched
VALUES (value1,value2,value3,...)
WHERE Condition.
A join between two tables that returns the results of an INNER join as well as the results of a left and
right join is a
ANswer: Transaction
INDEX Object
Answer: is an example of
ANSWER: TRUE
GRANT select
ON user1
TO departments;
GRANT isDCL
ANSWER: a
Which of the following command will delete all records in the table employees.
Update all minumum salary of the it programmer position with twice of the existing minumum salary the
position.
answer: UPDATE from jobs SET min_salary = min_salary * 2 WHERE job_id = 'IT_PROG';
Add a 1200 increase in salary of all employees who have rendered services 10 years and above
Answer: UPDATE employees SET manager_id = 200, department_id = 10 WHERE last_name = 'Lorentz'
AND first_NAME = 'Diana';
Angelica is the Oracle Database Administrator. She was been assigned to create an access for the newly hired
employee named Matt to the Oracle Database.
Which of the following SQL command Angelica will execute?
-INSERT
EmployeeINTO employees
id : 200
(employee_id,first_name,last_name,hire_date,job_id,salary,manager_id,department_id)
Name : Mr. Gary Park
VALUES (200,'Gary','Park',TO_DATE('Jul 1, 2017', 'MON DD, YYYY'), 'IT_PROG', 10000, 103, 60)
Date hired : July 1, 2017
Which of the following is NOT a Data Manipulation Language?
Position :IT Programmer
-SELECT
Salary : 10000
SQL stands for
Department Structured
of assignment : 60 Query Language
Reporting
Which to manager
of the : 103
following is an Oracle Proprietary Commands ANSI SQL
ANSI SQL commands cannot be abbreviated. FALSE
Display all employees id and remainder of the his/her salary after it is divided by 3,000 for all
employees with the job id of IT_PROG.
a. SELECT employee_id, job_id, salary FROM employees WHERE job_id = 'IT_PROG' AND
salary/3000