Emailing PROG PINAGSAMA 3112 AT 3113 NAND2 EIN PERIODICAL PDF

You might also like

You are on page 1of 2600

ICT-2300 WORK IMMERSION

Graded Items for College Success


AMALEAKS.BLOGSPOT.COM
Question 1

Correct

Mark 1.00 out of 1.00

Flag question

Question text

If you are concerned about not having enough time to work during school, you may find
________ to be the best solution.

Select one:

a. a summer job

Correct

b. a work-study program

c. an on-campus job

Question 2

Correct

Mark 1.00 out of 1.00

Flag question

Question text
Presenting someone else’s ideas as your own is best defined as
Select one:

a. cheating.

b. attributing.

c. plagiarism.

Correct

Question 3

Correct

Mark 1.00 out of 1.00

Flag question

Question text
If you include quotes in your paper, they

Select one:

a. always need to be cited.

Correct

b. only need to be cited if you use more than 3-4 sentences.

c. should be rewritten in your own words.

Question 4

Correct

Mark 1.00 out of 1.00

Flag question

Question text
A person with good mental health will realize his or her own abilities, can cope with the
normal stresses of life, and

Select one:
a. can maintain a happy countenance.

b. can see the good in every situation.

c. can work productively and fruitfully.

Correct

Question 5

Correct

Mark 1.00 out of 1.00

Flag question

Question text
Using web applications and tools to help you keep track of your sources and create your
citations is

Select one:

a. a good idea.

Correct

b. acceptable as long as you mention the tool in your works cited list.

c. frowned upon by most professors.

Question 6

Correct

Mark 1.00 out of 1.00

Flag question

Question text
Eating a healthy diet can reduce your risk of which of the following?

Select one:

a. heart disease
b. both heart disease and cancer

Correct

c. cancer

Question 7

Correct

Mark 1.00 out of 1.00

Flag question

Question text
Budgets should include

Select one:

a. all of your spending habits.

Correct

b. all expenses that would be considered “wants.”

c. all expenses that are considered “needs.”

Question 8

Correct

Mark 1.00 out of 1.00

Flag question

Question text
What are common signs of depression?

Select one:

a. anger, doubt, resentment, and feelings of disorganization

b. moving slowly, difficulty sleeping, feelings of pessimism. aches and pains

Correct
c. excessive cleaning, excessive exercise, feelings of panic, and feelings of euphoria

Question 9

Correct

Mark 1.00 out of 1.00

Flag question

Question text
If you rewrite a quote in your own words, it

Select one:

a. no longer needs to be cited

b. always need to be cited.

Correct

c. should be cited with you as the author of the new quote.

Question 10

Correct

Mark 1.00 out of 1.00

Flag question

Question text
Taking tests is valuable for which of the following reasons?

Select one:

a. Test taking creates optimal body chemistry which ensures a good grade.

b. Tests apply real-world decision-making skills to the course material.

c. The more often you retrieve information, the more likely you are to retain it for the long
term.

Correct
Question 1

Correct

Mark 1.00 out of 1.00

Flag question

Question text
What are the five steps for choosing a career?

Select one:

a. get to know your goals, get to know your personality, get to know your feelings, get to know
your ambitions, get to know your calling in life

b. get to know your coworkers, get to know your field, make a preliminary career decision,
achieve your career goal, retire

c. get to know yourself, get to know your field, prioritize your “deal makers” and rule out your
“deal breakers,” make a preliminary career decision and create a plan of action, go out and
achieve your career goal

Correct

Question 2

Correct

Mark 1.00 out of 1.00

Flag question

Question text
If you are looking for more information on choosing a major or career path from others who
can best relate to your current situation, you should talk to

Select one:

a. faculty and academic advisors.

b. fellow students and graduating seniors.

Correct
c. professionals in a career center.

Question 3

Correct

Mark 1.00 out of 1.00

Flag question

Question text
Katie is nervous about her upcoming job opportunities and wants to make sure that her
résumé is perfect. What is the best advice for her?

Select one:

a. Use action verbs and phrases.

Correct

b. Let typos remain to show that you’re not too picky or uptight.

c. Put in as many details as possible.

Question 4

Correct

Mark 1.00 out of 1.00

Flag question

Question text
What is the difference between a panel interview and a group interview?

Select one:

a. In a panel interview, the interview takes place over the phone. In a group interview, the
interview takes place in person.

b. In a panel interview, several interviewers meet with one interviewee. In a group interview, one
interviewer presents to several interviewees.

Correct
c. In a panel interview, one interviewer presents to several interviewees. In a group interview,
several interviewers meet with one interviewee.

Question 5

Correct

Mark 1.00 out of 1.00

Flag question

Question text
You are a college-ready student if you have the necessary knowledge, skills, and
professional behaviors to do which of the following?

Select one:

a. earn a certificate or degree in college

Correct

b. write a convincing cover letter and résumé

c. win a debate against your professor

Question 6

Correct

Mark 1.00 out of 1.00

Flag question

Question text
Which of the following are “soft skills”?

Select one:

a. being a good listener, demonstrating common sense, having the ability to work under
pressure

Correct

b. using Adobe Photoshop, operating a buzzsaw, speaking Chinese


c. changing a tire, being detail-oriented, piloting an airplane

Question 7

Correct

Mark 1.00 out of 1.00

Flag question

Question text
Bert works as a cashier in a bookstore for an hourly wage. He likes his work, but he doesn’t
want to be doing the same thing five years from now. On the other hand, Ernie works in a
different bookstore. He started as a cashier and was promoted to a manager. Ernie has been
learning about marketing, and five years from now he hopes to be working on marketing
projects for his current bookstore or perhaps a different bookstore. Which of the following
statements best fits this scenario?

Select one:

a. Both Bert and Ernie have careers.

b. Bert has a career; Ernie has a job.

c. Bert has a job; Ernie has a career.

Correct

Question 8

Correct

Mark 1.00 out of 1.00

Flag question

Question text
Which of the following are transferable skills?

Select one:

a. identifying specific organisms under a microscope

b. accepting constructive criticism


Correct

c. operating a forklift

Question 9

Correct

Mark 1.00 out of 1.00

Flag question

Question text
To be a career-ready person, which of the following must you have?

Select one:

a. a glowing recommendation from your teacher

b. a college degree in a major that applies to your desired field

c. the necessary knowledge and technical skills needed to be employed in your desired field

Correct

Question 10

Correct

Mark 1.00 out of 1.00

Flag question

Question text
Which of the following are examples of “hard skills”?

Select one:

a. sewing a dart in a dress, writing Python code, operating an x-ray machine

Correct

b. working well in a group, exuding confidence, treating others with respect

c. identifying a type of rock, having a good bedside manner, being able to encourage others

BL-HUMSS-2300-LEC-1922S WORK IMMERSION

 Dashboard
 My courses
 BL-HUMSS-2300-LEC-1922S
 Graded Items for College Success
 Q2WW1

Started on Monday, 27
January 2020,
1:13 PM

State Finished

Completed on Monday, 27
January 2020,
1:14 PM

Time taken 56 secs

Grade 10.00 out of 10.00


(100%)

Question 1

Correct

Mark 1.00 out of 1.00

Flag question

Question text
Isabella needs to create a mini-presentation with her group for an advertising campaign
project in her marketing class. What type of learning is she doing?

Select one:
a. active learning

Correct

b. 3 passive learning

c. discussion based learning

Question 2

Correct

Mark 1.00 out of 1.00

Flag question

Question text
Why are academic print resources generally more credible than online sources?

Select one:

a. Print resources include graphics and images instead of hyperlinks, audio, and video.

b. Print resources have been vetted by multiple authors and editors in order to reach
publication.

Correct

c. Print resources are sequentially organized.

Question 3

Correct

Mark 1.00 out of 1.00

Flag question

Question text
Which of the following are diversity and multicultural organizations?

Select one:

a. student government associations, leadership courses and retreats, and social change projects
b. philanthropy, activism, social entrepreneurship, advocacy, and direct service organizations

c. clubs focused on creating diverse, multicultural, and inclusive communities

Correct

Question 4

Correct

Mark 1.00 out of 1.00

Flag question

Question text
Which of the following is a positive effect of participating in diverse groups in an
educational setting?

Select one:

a. You can be comfortable working only with people like yourself.

b. You can perceive in new ways, seeing issues and problems from new angles.

Correct

c. You can be prevented from hearing differing opinions.

Question 5

Correct

Mark 1.00 out of 1.00

Flag question

Question text
Which resource below probably contains the most effective information to to help you write
your paper on death penalty laws in California?

Select one:

a. "How to Stop a Heart" blog post

b. "Polls Show Preference for Death Penalty Alternatives" news article


Correct

c. "Former DA Michael Millman accepts 'Lifetime Achievement Award'" news article

Question 6

Correct

Mark 1.00 out of 1.00

Flag question

Question text
Just one day after computer programming class, Suzanne was surprised to find that, like
most people, she forgot roughly ________ of what she learned in that class session.

Select one:

a. 30%

b. 20%

c. 80%

Correct

Question 7

Correct

Mark 1.00 out of 1.00

Flag question

Question text
What best defines “critical thinking”?

Select one:

a. spending significant amounts of time considering behavior

b. skepticism and examining assumptions

Correct
c. memorizing and repeating information

Question 8

Correct

Mark 1.00 out of 1.00

Flag question

Question text
When studying to remember things, it’s best to think about ________ rather than facts.

Select one:

a. concepts

Correct

b. notecards

c. textbook summaries

Question 9

Correct

Mark 1.00 out of 1.00

Flag question

Question text
Which tool can best enable students to observe and analyze the world or reimagine it in a
way that appeals to them?

Select one:

a. digital camcorders

Correct

b. interactive whiteboards

c. blogs
Question 10

Correct

Mark 1.00 out of 1.00

Flag question

Question text
What type of situation best inspires creativity?

Select one:

a. when there is an invention ahead

b. when there is a problem to solve

Correct

c. when there is a client requesting help

What is meant by the study tip “keep your studying bite-sized”?

Select one:

a. organize your readings and tasks into small chunks that are easy to accomplish

Correct

b. sandwich each big task with two smaller tasks

c. always have some food nearby while studying

Question 2

Correct

Mark 1.00 out of 1.00

Flag question

Question text
Multitasking is best defined as

Select one:
a. performing two or more tasks at the same time

b. taking fifteen-minute breaks between two tasks

c. switching back and forth between two or more tasks quickly

Correct

Question 3

Correct

Mark 1.00 out of 1.00

Flag question

Question text
Good goals should be

Select one:

a. selective, middling, achievable, relaxing, and tenacious.

b. spectacular, magnificent, awe-inspiring, redefining, and tantalizing.

c. specific, measurable, attainable, relevant, and time-bound.

Correct

Question 4

Correct

Mark 1.00 out of 1.00

Flag question

Question text
If you encounter a setback in your academic goals, which of the following should you do?

Select one:

a. keep working hard, try to pay better attention in class, do extra homework
b. define the problem, see how others are dealing with the problem, determine what solutions
exist and what is needed to implement those solutions

Correct

c. ignore the setback and deal with it later

Question 5

Correct

Mark 1.00 out of 1.00

Flag question

Question text
Diane has a goal of becoming fluent in Chinese by the time she graduates with a degree in
linguistics. She has been taking Chinese classes and reading Chinese news websites for two
years in preparation for a study abroad program in Beijing. However, the semester before
she is scheduled to start her study abroad program, the program’s funding is cut, resulting
in the program’s cancellation. Which of the following is the best way for Diane to deal with
this setback?

Select one:

a. She should go on a study abroad program to Japan instead.

b. She should continue her Chinese classes and reading Chinese news sites.

c. She should find a native Chinese speaker to tutor her or possibly even be her roommate.

Correct

Question 6

Correct

Mark 1.00 out of 1.00

Flag question

Question text
Which of the following definitions most closely describes a goal?

Select one:
a. a general ambition for the future

b. a desired result that you envision and then plan and commit to achieve

Correct

c. a hope and dream that is unrealistic

Question 7

Correct

Mark 1.00 out of 1.00

Flag question

Question text
Ideally, family members and friends will help you through college by

Select one:

a. providing distractions from challenging homework.

b. offering support and encouragement to reach your goals.

Correct

c. giving you test answers.

Question 8

Correct

Mark 1.00 out of 1.00

Flag question

Question text
How can students with an “improvisor” time management style overcome their tendency to
procrastinate?

Select one:

a. make plans to organize their time and ask their teachers for help before they fall behind

Correct
b. stop making excuses and pay more attention in class

c. ask their teachers for help and cut out all other activities to focus on class

Question 9

Correct

Mark 1.00 out of 1.00

Flag question

Question text
If your schedule varies from week to week, which of the following is the best option for
managing your time?

Select one:

a. keep track of everything in your head instead of making a schedule

b. create a new schedule each day to account for changes

c. leave space in your schedule to adjust events and reminders as needed

Correct

Question 10

Correct

Mark 1.00 out of 1.00

Flag question

Question text
Which is the best way to become more productive when you are tempted to multitask and
check your social media account while studying?

Select one:

a. Reward yourself with a social media break after every 5-10 minutes of studying.

b. Prioritize your day and focus on getting the least important tasks out of the way in the
beginning.

c. Have set times during the day for checking and responding to online messages.
Correct

Which of the following types of class delivery formats meets in-person the least amount of
time?

Select one:

a. hybrid/blended

Correct

b. web enhanced

c. face-to-face/traditional

Question 2

Correct

Mark 1.00 out of 1.00

Flag question

Question text
Which of the following traits is associated with a successful student?

Select one:

a. avoids socializing

b. stays up late and doesn’t get enough sleep

c. joins a study group or campus organization

Correct

Question 3

Correct

Mark 1.00 out of 1.00

Flag question
Question text
What would you least expect to find in school-wide policies?

Select one:

a. information about degree types and requirements

b. information about admissions and enrollment

c. information about your class reading assignments

Correct

Question 4

Correct

Mark 1.00 out of 1.00

Flag question

Question text
Which of the following is a strategy for achieving success in the classroom?

Select one:

a. attend class without reading the assigned text

b. avoid studying in groups

c. go to office hours and ask your instructor questions

Correct

Question 5

Correct

Mark 1.00 out of 1.00

Flag question

Question text
Which of the following is recommended as a good study habit?
Select one:

a. Keep a regular study schedule.

Correct

b. Copy homework answers from a fellow student.

c. Study in a loud, distracting place.

Question 6

Correct

Mark 1.00 out of 1.00

Flag question

Question text
Self-assessment surveys are useful in helping you evaluate your personal identity and can
help to recommend which of the following?

Select one:

a. roommate compatibility

b. potential career paths

Correct

c. potential life partners

Question 7

Correct

Mark 1.00 out of 1.00

Flag question

Question text
Which term describes your core beliefs and guiding principles that shape the roles you play
in daily life?

Select one:
a. personal values

Correct

b. personality traits

c. self-assessments

Question 8

Correct

Mark 1.00 out of 1.00

Flag question

Question text
Which of the life values self-assessment survey instruments allows you to arrange life values
in order of importance?

Select one:

a. Life Values Assessment

Correct

b. ISEEK Career Cluster Interest Survey

c. Values Clarification Questionnaire

Question 9

Correct

Mark 1.00 out of 1.00

Flag question

Question text
You are interested in identifying careers that might be a good fit for your interests, values,
and skills. Who would you contact?

Select one:

a. a faculty member
b. a transfer counselor

c. a career counselor

Correct

Question 10

Correct

Mark 1.00 out of 1.00

Flag question

Question text
If you need to find resources for your English paper, where should you go for help?

Select one:

a. the tutoring center

b. the reference librarian

Correct

c. the career services center

Which of the following should NOT be included on a résumé?

Select one:

a. volunteer experience

b. job-related skills

c. childhood hobbies

Correct

Question 2

Correct

Mark 1.00 out of 1.00

Flag question
Question text
Which of the following is the first step to preparing for an interview?

Select one:

a. send a thank-you note

b. reread the job posting or description

Correct

c. look up average pay for the position

Question 3

Correct

Mark 1.00 out of 1.00

Flag question

Question text
Which of the following is the most effective response to the interview question “What is
your greatest weakness?”

Select one:

a. “My biggest flaw is that I am a workaholic. I just get really involved in a task and can’t stop
until it is done. I just work, work, work.”

b. “Well, my last boss said I had a problem showing up on time to work.”

c. “In the past I haven’t been great at planning and prioritizing tasks. However, I am taking steps
to fix that by using a planning app and marking deadlines on my calendar.”

Correct

Question 4

Correct

Mark 1.00 out of 1.00

Flag question
Question text
Which of the following will be most beneficial to help you grow your professional network?

Select one:

a. consider getting business cards

b. connect with your parents’ friends as network contacts

Correct

c. update your LinkedIn profile picture every day

Question 5

Correct

Mark 1.00 out of 1.00

Flag question

Question text
Which of the following should a cover letter accomplish?

Select one:

a. explain what you did wrong in your last position that you would like to fix if you get this
position

b. give prospective employers an autobiography, listing every accomplishment from childhood


to the present

c. get the reader’s attention, reflect genuine interest in the position, and explain why you are the
best person for the position

Correct

Question 6

Correct

Mark 1.00 out of 1.00

Flag question
Question text
“Why should we hire you?” “What are your strengths and weaknesses?” “What attracted you
to this company?” These are all examples of

Select one:

a. brainteaser interview questions.

b. basic interview questions.

Correct

c. behavioral interview questions.

Question 7

Correct

Mark 1.00 out of 1.00

Flag question

Question text
Which of the following is the best technique to win a face-to-face interview from a
screening interview?

Select one:

a. compliment the interviewer

b. suggest unfavorable things about the other interviewees

c. try to stand out from the competition

Correct

Question 8

Correct

Mark 1.00 out of 1.00

Flag question
Question text
Which of the following should you AVOID in your cover letter?

Select one:

a. highlights of your skills or accomplishments

b. reasons why you left your last position

Correct

c. information about how you learned about the position or company

Question 9

Correct

Mark 1.00 out of 1.00

Flag question

Question text
Which traits are typical of the exploringstage of career development?

Select one:

a. selecting or entering a field and looking for upward growth

b. identifying your interests and aptitudes and trying out jobs

Correct

c. feeling stagnant and taking stock of where you are and where you want to go

Question 10

Correct

Mark 1.00 out of 1.00

Flag question

Question text
Which of the following should you include on a résumé?
Select one:

a. wage/salary expectations, what you expect from the position

b. education, work experience, relevant skills, contact information

Correct

c. social security number, date of birth, medical conditions

MAHAL KITA KAHIT BAOG KA 😂 -Michyy


AMALEAKS.BLOGSPOT.COM
ICT-2300 GRADE 12 WEEK1-10

1ST QUARTER EXAM ICT2300

1. Defined as “the place where work immersion of students is done".


Workplace Immersion Venue
Answer:

2. A behavior of a single individual or a group that has led to a systematic lack of


productivity, reliability, accountability and a growing sphere of unprofessional/unhealthy
relationships.
Negative work ethic
Answer:

3. The date where Labor Code of the Philippines took effect.


November 1, 1974
Answer:

4. A belief that work, hard work and diligence has a moral benefit and an inherent ability,
virtue or value to strengthen character.
Work ethic
Answer:

5. He states that "what was once understood as the work ethic—not just hard work but also
a set of accompanying virtues, whose crucial role in the development and sustaining of
free markets too few now recall".
Steven Malanga
Answer:

6. He revised the notion of work ethic as a means of management control that delude
workers about the actual reality for accumulated advantage, which is a form of avarice.
Frederick Winslow Taylor
Answer:

7. The normal hours of work of any employee.


Eight
Answer:

8. A written statement of
Resume
your educational and work
experience.
Answer:

9. It is a set of pictures by someone, or photographs of examples of their work, which they


use when entering competitions or applying for work.
Portfolio
Answer:

10. This is the more traditional format of a resume and is flexible and can be used for
applicants with any level of experience.
Reverse-Chronological
Answer:

Production portfolio

11. can also include budget sheets, idea pitches and marketing materials.

Labor Code of the Philippines

12. The governs employment practices and labor relations in the


Philippines.

13. When Labor Code of the Philippines was promulgated?


May 1, 1974
Answer:

14. As for overseas employment of Filipinos, foreign employers are not allowed to directly
hire Philippine nationals except through board and entities authorized by the
Secretary of Labor

15. Under whose regime the Labor Code of the Philippines does took effect?
Ferdinand Marcos
Answer:

1. On job interview, it is important to be aware of any inappropriate slang words or


references to age, race, religion, politics or sexual orientation—these topics could send
you out the door very
T
quickly.
Answer:

2. Functional format is flexible and can be used for applicants with any level of experience.
Chronological
Answer:

4. Negative work ethic is a behavior of a single individual or a group that has led to a
systematic lack of productivity, reliability, accountability and a growing sphere of
unprofessional/unhealthy relationships.
T
Answer:

3. Place the best and most relevant work first and start and finish with strong pieces of work
on your portfolio.

Answer: T

5. During interview, asking question is not wrong because it also gives you the opportunity
to find out if this is the right place for you.
T
Answer:

6. Only include your GPA below 3.0, round up to the first decimal place, and use this
format: GPA: 3.5/4.0.
above
Answer:

7. Having a solid education section doesn’t help you to display the foundation of your
knowledge and expertise.
does
Answer:
8. A portfolio is a set of pictures by someone, or photographs of examples of their work,
which they use when entering competitions or applying for work.
T
Answer:

9. Put your portfolio on a web site if possible as it is so easy to access.


T
Answer:

10. If you are putting on a performance to demonstrate your ability, overconfidence is bad.
T
Answer:

Choose five (5) job interview skills that a person should have.

Select one or more:

a. Appear desperate

b. Use appropriate language

c. Take care to answer the questions

d. Don't talk too much

e. Dress for the job or company


f. Don't be too familiar

g. Don't ask questions

What should the portfolio include? Choose at least 5 from the choices.

Select one or more:

a. Examples of your work with good documentation

b. An index of the contents

c. Your drafts for your report

d. Your key achievements and skills

e. Include a uniform examples of work you have done

f. Curriculum Vitae

g. A profile or personal statement

1. Workplace safety is important.


Select one:

True

False
2. The employer have the right to terminate an employee.

Select one:

True

False
3. The maximum age for employment is 18 years old.

Select one:

True

False
4. Absenteeism increases when effective safety programs are introduced.

Select one:

True

False

5. An employee needs to give respect to the company. That means honesty and integrity.

Select one:

True

False

LONG QUIZ 1 ICT2300

IDENTIFICATION
1.Defined as “the place where work immersion of students is done".
Workplace Immersion Venue
Answer:

IDENTIFICATION
2. A behavior of a single individual or a group that has led to a systematic lack of
productivity, reliability, accountability and a growing sphere of unprofessional/unhealthy
relationships.
Negative work ethic
Answer:

IDENTIFICATION
3. The date where Labor Code of the Philippines took effect.
November 1, 1974
Answer:

IDENTIFICATION
4. A belief that work, hard work and diligence has a moral benefit and an inherent ability,
virtue or value to strengthen character.
Work ethic
Answer:

IDENTIFICATION
5. He states that "what was once understood as the work ethic—not just hard work but also
a set of accompanying virtues, whose crucial role in the development and sustaining of
free markets too few now recall".
Steven Malanga
Answer:

He revised the notion of work ethic as a means of management control that delude workers
about the actual reality for accumulated advantage, which is a form of avarice.
Frederick Winslow Taylor
Answer:

The normal hours of work of any employee.


Eight
Answer:
A written statement of your educational and work experience.
Resume
Answer:

It is a set of pictures by someone, or photographs of examples of their work, which they use
when entering competitions or applying for work.
Portfolio
Answer:

This is the more traditional format of a resume and is flexible and can be used for applicants
with any level of experience.
Reverse-Chronological
Answer:

Under whose regime does the Labor Code of the Philippines took effect?

Select one:

a. Gloria Macapagal-Arroyo

b. Ninoy Aquino

c. Rodrigo Roa Duterte

d. Ferdinand Marcos

The Php 426 combined rate is locally referred to in the Philippines as "____________" due to
this regional disparity.

Select one:

a. Private Rate

b. Manila Rate

c. Public Rate

d. Province Rate
The duty of every employer to give his employees not less than ______ minutes time-off for
their regular meals.

Select one:

a. 40

b. 30

c. 50

d. 60

All employees have the right to have a __________ consecutive hours of rest day after every 6
days of work.

Select one:

a. 48

b. 12

c. 24

d. 6

________________ focuses on your abilities and skills and is more suitable for those with an
expert level of experience.

Select one:

a. Chronological

b. Functional

c. Combination

d. Reverse-Chronological
What should the portfolio include? Choose at least 5 from the choices.

Select one or more:

a. A profile or personal statement

b. Your drafts for your report

c. An index of the contents

d. Your key achievements and skills

e. Include a uniform examples of work you have done

f. Examples of your work with good documentation

g. Curriculum Vitae

QUIZ 1 ICT 2300

A belief that work, hard work and diligence has a moral benefit and an inherent ability,
virtue or value to strengthen character.
= Work ethic

A behavior of a single individual or a group that has led to a systematic lack of productivity,
reliability, accountability and a growing sphere of unprofessional/unhealthy relationships.

= Negative work ethic

He states that "what was once understood as the work ethic—not just hard work but also a
set of accompanying virtues, whose crucial role in the development and sustaining of free
markets too few now recall".

= Steven Malanga

Workplace safety is important.


Select one:

True

False

Absenteeism increases when effective safety programs are introduced.

Select one:

True

False

When does the Labor Code of the Philippines took effect?

= November 1, 1974

An employee needs to give respect to the company. That means honesty and integrity.

Select one:
True

False

Defined as “the place where work immersion of students is done".

= Workplace Immersion Venue

The employer have the right to terminate an employee.

Select one:

True

False

The maximum age for employment is 18 years old and above that age is not allowed.

Select one:

True

False
AMALEAKS.BLOGSPOT.COM
ICT-2300 GRADE 12 WEEK1-10

1ST QUARTER EXAM ICT2300

1. Defined as “the place where work immersion of students is done".


Workplace Immersion Venue
Answer:

2. A behavior of a single individual or a group that has led to a systematic lack of


productivity, reliability, accountability and a growing sphere of unprofessional/unhealthy
relationships.
Negative work ethic
Answer:

3. The date where Labor Code of the Philippines took effect.


November 1, 1974
Answer:

4. A belief that work, hard work and diligence has a moral benefit and an inherent ability,
virtue or value to strengthen character.
Work ethic
Answer:

5. He states that "what was once understood as the work ethic—not just hard work but also
a set of accompanying virtues, whose crucial role in the development and sustaining of
free markets too few now recall".
Steven Malanga
Answer:

6. He revised the notion of work ethic as a means of management control that delude
workers about the actual reality for accumulated advantage, which is a form of avarice.
Frederick Winslow Taylor
Answer:

7. The normal hours of work of any employee.


Eight
Answer:

8. A written statement of
Resume
your educational and work
experience.
Answer:

9. It is a set of pictures by someone, or photographs of examples of their work, which they


use when entering competitions or applying for work.
Portfolio
Answer:

10. This is the more traditional format of a resume and is flexible and can be used for
applicants with any level of experience.
Reverse-Chronological
Answer:

Production portfolio

11. can also include budget sheets, idea pitches and marketing materials.

Labor Code of the Philippines

12. The governs employment practices and labor relations in the


Philippines.

13. When Labor Code of the Philippines was promulgated?


May 1, 1974
Answer:

14. As for overseas employment of Filipinos, foreign employers are not allowed to directly
hire Philippine nationals except through board and entities authorized by the
Secretary of Labor

15. Under whose regime the Labor Code of the Philippines does took effect?
Ferdinand Marcos
Answer:

1. On job interview, it is important to be aware of any inappropriate slang words or


references to age, race, religion, politics or sexual orientation—these topics could send
you out the door very
T
quickly.
Answer:

2. Functional format is flexible and can be used for applicants with any level of experience.
Chronological
Answer:

4. Negative work ethic is a behavior of a single individual or a group that has led to a
systematic lack of productivity, reliability, accountability and a growing sphere of
unprofessional/unhealthy relationships.
T
Answer:

3. Place the best and most relevant work first and start and finish with strong pieces of work
on your portfolio.

Answer: T

5. During interview, asking question is not wrong because it also gives you the opportunity
to find out if this is the right place for you.
T
Answer:

6. Only include your GPA below 3.0, round up to the first decimal place, and use this
format: GPA: 3.5/4.0.
above
Answer:

7. Having a solid education section doesn’t help you to display the foundation of your
knowledge and expertise.
does
Answer:
8. A portfolio is a set of pictures by someone, or photographs of examples of their work,
which they use when entering competitions or applying for work.
T
Answer:

9. Put your portfolio on a web site if possible as it is so easy to access.


T
Answer:

10. If you are putting on a performance to demonstrate your ability, overconfidence is bad.
T
Answer:

Choose five (5) job interview skills that a person should have.

Select one or more:

a. Appear desperate

b. Use appropriate language

c. Take care to answer the questions

d. Don't talk too much

e. Dress for the job or company


f. Don't be too familiar

g. Don't ask questions

What should the portfolio include? Choose at least 5 from the choices.

Select one or more:

a. Examples of your work with good documentation

b. An index of the contents

c. Your drafts for your report

d. Your key achievements and skills

e. Include a uniform examples of work you have done

f. Curriculum Vitae

g. A profile or personal statement

1. Workplace safety is important.


Select one:

True

False
2. The employer have the right to terminate an employee.

Select one:

True

False
3. The maximum age for employment is 18 years old.

Select one:

True

False
4. Absenteeism increases when effective safety programs are introduced.

Select one:

True

False

5. An employee needs to give respect to the company. That means honesty and integrity.

Select one:

True

False

LONG QUIZ 1 ICT2300

IDENTIFICATION
1.Defined as “the place where work immersion of students is done".
Workplace Immersion Venue
Answer:

IDENTIFICATION
2. A behavior of a single individual or a group that has led to a systematic lack of
productivity, reliability, accountability and a growing sphere of unprofessional/unhealthy
relationships.
Negative work ethic
Answer:

IDENTIFICATION
3. The date where Labor Code of the Philippines took effect.
November 1, 1974
Answer:

IDENTIFICATION
4. A belief that work, hard work and diligence has a moral benefit and an inherent ability,
virtue or value to strengthen character.
Work ethic
Answer:

IDENTIFICATION
5. He states that "what was once understood as the work ethic—not just hard work but also
a set of accompanying virtues, whose crucial role in the development and sustaining of
free markets too few now recall".
Steven Malanga
Answer:

He revised the notion of work ethic as a means of management control that delude workers
about the actual reality for accumulated advantage, which is a form of avarice.
Frederick Winslow Taylor
Answer:

The normal hours of work of any employee.


Eight
Answer:
A written statement of your educational and work experience.
Resume
Answer:

It is a set of pictures by someone, or photographs of examples of their work, which they use
when entering competitions or applying for work.
Portfolio
Answer:

This is the more traditional format of a resume and is flexible and can be used for applicants
with any level of experience.
Reverse-Chronological
Answer:

Under whose regime does the Labor Code of the Philippines took effect?

Select one:

a. Gloria Macapagal-Arroyo

b. Ninoy Aquino

c. Rodrigo Roa Duterte

d. Ferdinand Marcos

The Php 426 combined rate is locally referred to in the Philippines as "____________" due to
this regional disparity.

Select one:

a. Private Rate

b. Manila Rate

c. Public Rate

d. Province Rate
The duty of every employer to give his employees not less than ______ minutes time-off for
their regular meals.

Select one:

a. 40

b. 30

c. 50

d. 60

All employees have the right to have a __________ consecutive hours of rest day after every 6
days of work.

Select one:

a. 48

b. 12

c. 24

d. 6

________________ focuses on your abilities and skills and is more suitable for those with an
expert level of experience.

Select one:

a. Chronological

b. Functional

c. Combination

d. Reverse-Chronological
What should the portfolio include? Choose at least 5 from the choices.

Select one or more:

a. A profile or personal statement

b. Your drafts for your report

c. An index of the contents

d. Your key achievements and skills

e. Include a uniform examples of work you have done

f. Examples of your work with good documentation

g. Curriculum Vitae

QUIZ 1 ICT 2300

A belief that work, hard work and diligence has a moral benefit and an inherent ability,
virtue or value to strengthen character.
= Work ethic

A behavior of a single individual or a group that has led to a systematic lack of productivity,
reliability, accountability and a growing sphere of unprofessional/unhealthy relationships.

= Negative work ethic

He states that "what was once understood as the work ethic—not just hard work but also a
set of accompanying virtues, whose crucial role in the development and sustaining of free
markets too few now recall".

= Steven Malanga

Workplace safety is important.


Select one:

True

False

Absenteeism increases when effective safety programs are introduced.

Select one:

True

False

When does the Labor Code of the Philippines took effect?

= November 1, 1974

An employee needs to give respect to the company. That means honesty and integrity.

Select one:
True

False

Defined as “the place where work immersion of students is done".

= Workplace Immersion Venue

The employer have the right to terminate an employee.

Select one:

True

False

The maximum age for employment is 18 years old and above that age is not allowed.

Select one:

True

False
BL-ICT-2300 SECOND
QUARTERLY EXAM
AMALEAKS.BLOGSPOT.COM
Started on Monday, 13 January 2020, 2:10 PM
State Finished
Completed on Monday, 13 January 2020, 2:33 PM
Time taken 23 mins 44 secs
Grade 50.00 out of 50.00 (100%)
Question 1
Correct
Mark 1.00 out of 1.00

Flag question

Question text

He states that "what was once understood as the work ethic—not just hard work but also a
set of accompanying virtues, whose crucial role in the development and sustaining of free
markets too few now recall".

Steven Malanga
Answer:

Question 2
Correct
Mark 1.00 out of 1.00

Flag question

Question text

The normal hours of work of any employee.


eight
Answer:

Question 3
Correct
Mark 1.00 out of 1.00

Flag question

Question text

During interview, asking question is not wrong because it also gives you the opportunity to
find out if this is the right place for you.

Select one:
True
False
ANSWER: TRUE

Question 4
Correct
Mark 1.00 out of 1.00

Flag question

Question text

On job interview, it is important to be aware of any inappropriate slang words or references


to age, race, religion, politics or sexual orientation—these topics could send you out the
door very quickly.

Select one:
True
False
ANSWER: TRUE

Question 5
Correct
Mark 1.00 out of 1.00
Flag question

Question text

Labor Code of the Philippines


The governs employment practices and labor relations in the
Philippines.

Question 6
Correct
Mark 1.00 out of 1.00

Flag question

Question text

The qualifications summary is a bullet point list (ranging from 4 to 6 points) of your most
outstanding career achievements.

Select one:
True
False
ANSWER: TRUE

Question 7
Correct
Mark 1.00 out of 1.00

Flag question

Question text

24
All employees have the right to have a consecutive hours of rest day after every
6 days of work.
Question 8
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Having a solid education section doesn’t helps to display the foundation of your knowledge
and expertise.

Select one:
True
False
ANSWER: FALSE

Question 9
Correct
Mark 1.00 out of 1.00

Flag question

Question text
60
The duty of every employer to give his employees not less than minutes time-off for
their regular meals.

Question 10
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Credentials are documents that state the abilities and experience of a person and show that
the person is qualified for a particular job or activity.
Select one:
True
False
ANSWER: TRUE

Question 11
Correct
Mark 1.00 out of 1.00

Flag question

Question text

A good portfolio should have an index of the contents.

Select one:
True
False
ANSWER: TRUE

Question 12
Correct
Mark 1.00 out of 1.00

Flag question

Question text

A portfolio is a set of pictures by someone, or photographs of examples of their work, which


they use when entering competitions or applying for work.

Select one:
True
False
ANSWER: TRUE
Question 13
Correct
Mark 1.00 out of 1.00

Flag question

Question text

manila rate
The Php 426 combined rate is locally referred to in the Philippines as "Answer "
due to this regional disparity.

Question 14
Correct
Mark 1.00 out of 1.00

Flag question

Question text

A resume is a written statement of your educational and work experience.

Select one:
True
False
ANSWER: TRUE

Question 15
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Production Portfolio
Answer can also include budget sheets, idea pitches and marketing
materials.
Question 16
Correct
Mark 1.00 out of 1.00

Flag question

Question text

A written statement of your educational and work experience.

Resume
Answer:

Question 17
Correct
Mark 1.00 out of 1.00

Flag question

Question text

When Labor Code of the Philippines was promulgated?

May 1, 1974
Answer:

Question 18
Correct
Mark 1.00 out of 1.00

Flag question

Question text

All items need to be clear and easy to understand.

Select one:
True
False
ANSWER: TRUE

Question 19
Correct
Mark 1.00 out of 1.00

Flag question

Question text

It is important to know what to wear to an interview and to be well-groomed.

Select one:
True
False
ANSWER: TRUE

Question 20
Correct
Mark 1.00 out of 1.00

Flag question

Question text

A resume is a means of not advertising yourself to get a job that you want and will give a
short impression about you to the employers whether you attain their standards or not.

Select one:
True
False
ANSWER: FALSE
Question 21
Correct
Mark 1.00 out of 1.00

Flag question

Question text

The curriculum vitae including your interests and any evidence of project management skills
can be included in a portfolio.

Select one:
True
False
ANSWER: TRUE

Question 22
Correct
Mark 1.00 out of 1.00

Flag question

Question text

It is a set of pictures by someone, or photographs of examples of their work, which they use
when entering competitions or applying for work.

Portfolio
Answer:

Question 23
Correct
Mark 1.00 out of 1.00

Flag question

Question text
As for overseas employment of Filipinos, foreign employers are not allowed to directly hire
Secretary of L
Philippine nationals except through board and entities authorized by theAnswer .
ANSWER: SECRETARY OF LABOR

Question 24
Correct
Mark 1.00 out of 1.00

Flag question

Question text

When creating a portfolio, go for quantity not quality.

Select one:
True
False
ANSWER: FALSE

Question 25
Correct
Mark 1.00 out of 1.00

Flag question

Question text

It is important to bring energy and enthusiasm to the interview and to ask questions and it
is about making a new friend.

Select one:
True
False
ANSWER: FALSE

Question 26
Correct
Mark 1.00 out of 1.00
Flag question

Question text

Personal experience can also be referred as a career objective.

Select one:
True
False
ANSWER: FALSE

Question 27
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Functional format is more suitable for those with an expert level of experience.

Select one:
True
False
ANSWER: TRUE

Question 28
Correct
Mark 1.00 out of 1.00

Flag question

Question text
Combination format is generally reserved for beginners with less experience in a particular
industry.

Select one:
True
False
ANSWER: FALSE

Question 29
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Place the best and most relevant work first and start and finish with strong pieces of work
on your portfolio.

Select one:
True
False
ANSWER: TRUE

Question 30
Correct
Mark 1.00 out of 1.00

Flag question

Question text

A belief that work, hard work and diligence has a moral benefit and an inherent ability,
virtue or value to strengthen character.

Work Ethic
Answer:
Question 31
Correct
Mark 1.00 out of 1.00

Flag question

Question text

He revised the notion of work ethic as a means of management control that delude workers
about the actual reality for accumulated advantage, which is a form of avarice.

Frederick Winslow Taylor


Answer:

Question 32
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Functional format is flexible and can be used for applicants with any level of experience.

Select one:
True
False
ANSWER: FALSE

Question 33
Correct
Mark 1.00 out of 1.00

Flag question

Question text
Overconfidence is not bad if you are putting on a performance to demonstrate your ability.

Select one:
True
False
ANSWER: FALSE

Question 34
Correct
Mark 1.00 out of 1.00

Flag question

Question text

While chronological places emphasis on career progression, a functional format focuses on


your abilities and skills.

Select one:
True
False
ANSWER: TRUE

Question 35
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Remember to list your work experiences in reverse chronological order and only list
experience that is relevant to the job you are applying for.

Select one:
True
False
ANSWER: TRUE
Question 36
Correct
Mark 1.00 out of 1.00

Flag question

Question text

If an item is too large to take to the interview you can bring it to show with close ups to
elicit details.

Select one:
True
False
ANSWER: FALSE

Question 37
Correct
Mark 1.00 out of 1.00

Flag question

Question text

This is the more traditional format of a resume and is flexible and can be used for applicants
with any level of experience.

Reverse-Chronological
Answer:

Question 38
Correct
Mark 1.00 out of 1.00

Flag question

Question text
Chronological format is more of traditional format and is what you are most likely to come
across.

Select one:
True
False
ANSWER: FALSE

Question 39
Correct
Mark 1.00 out of 1.00

Flag question

Question text

The date where Labor Code of the Philippines took effect.

November 1, 1974
Answer:

Question 40
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Include your GPA from 5.0, round up to the first decimal place, and use this format: GPA:
3.5/4.0.

Select one:
True
False
ANSWER: FALSE
Question 41
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Practice good nonverbal communication is one of the necessary skills on job interview.

Select one:
True
False
ANSWER: TRUE

Question 42
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Production portfolios cannot be included such as budget sheets, idea pitches and marketing
materials.

Select one:
True
False
ANSWER: FALSE

Question 43
Correct
Mark 1.00 out of 1.00

Flag question
Question text

Defined as “the place where work immersion of students is done".

Workplace Immersion Venue


Answer:

Question 44
Correct
Mark 1.00 out of 1.00

Flag question

Question text

A combination of both the career objective and qualifications summary.

Professional Profile
Answer:

Question 45
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Professional Profile is also the most flexible of the three styles as it can be formatted as
short paragraph of bullet-point list.

Select one:
True
False
ANSWER: TRUE

Question 46
Correct
Mark 1.00 out of 1.00
Flag question

Question text

Make sure that the portfolio is carefully laid out and in the correct order.

Select one:
True
False
ANSWER: TRUE

Question 47
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Functional Format
focuses on your abilities and skills and is more suitable for those with an
expert level of experience.

Question 48
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Under whose regime the Labor Code of the Philippines does took effect?

Ferdinand Marcos
Answer:

Question 49
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Don’t put your portfolio on a web site if possible as it is so easy to access.

Select one:
True
False
ANSWER: FALSE

Question 50
Correct
Mark 1.00 out of 1.00

Flag question

Question text

A behavior of a single individual or a group that has led to a systematic lack of productivity,
reliability, accountability and a growing sphere of unprofessional/unhealthy relationships.

Negative Work Ethic


Answer:
AMALEAKS.BLOGSPOT.COM
PROG ORACLE 113 GRADE
12 WEEK 1-10
Question 1
Complete
Mark 2.00 out of 2.00

Flag question

Question text
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 one:
a. SELECT job_title FROM jobs WHERE min_salary >= 5000 AND max_salary<= 10000
b. SELECT job_title FROM employees WHERE salary >= 5000 AND salary <= 10000
c. 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
Complete
Mark 2.00 out of 2.00

Flag question

Question text
What is the SQL command to count the number of records in the employees table?

Select one:
a. SELECT ALL FROM employees
b. SELECT * FROM employees;
c. SELECT COUNT(*) FROM employees
d. SELECT SUM(*) FROM employees;

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

Question 4
Complete
Mark 2.00 out of 2.00

Flag question

Question text
Evaluate the following SQL command
SELECT * FROM jobs WHERE job_title LIKE 'Manager%'

Select one:
a. The SQL command will produce an error.
b. The SQL command will display all employees with Manager position
c. The SQL command will display all records in the database
d. No records will be displayed

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:
a. SELECT employee_id, hire_date, TO_DATE(hire_date,'Month') AS "Hired Month", job_id FROM
b. SELECT employee_id, hire_date, MONTH(hire_date,'Month') AS "Hired Month", job_id FROM
employees
c. SELECT employee_id, hire_date, TO_CHAR(hire_date,'Month') AS "Hired Month", job_id FROM
employees
d. SELECT employee_id, hire_date, TO_MONTH(hire_date,'Month') AS "Hired Month", job_id
FROM employees

Question 6
Complete
Mark 2.00 out of 2.00

Flag question

Question text
You want to generate the total salary per month of every department in the company.

Select one:
a. SELECT department_id, salary FROM employees ORDER BY SUM(salary)
b. SELECT department_id, TOTAL(salary) FROM employees GROUP BY department_id
c. SELECT department_id, salary FROM employees GROUP BY SUM(salary) ORDER BY
department_id
d. SELECT department_id, SUM(salary) FROM employees GROUP BY 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:
a. SELECT last_name, TO_INT(salary, '$999,999.99') AS "MONTHLY SALARY" FROM employees
WHERE salary < 10,000 WHERE last_name STARTS 'D%'
b. SELECT last_name, TO_CHAR(salary, '$999,999.99') AS "MONTHLY SALARY" FROM
employees WHERE salary < 10000 WHERE last_name LIKE 'D%'
c. SELECT last_name, TO_INTEGER(salary, $999,999.99) AS "MONTHLY SALARY" FROM
employees WHERE salary < 10000 WHERE last_name IN 'D%'
d. SELECT last_name, TO_NUMBER(salary, '$999,999.99') AS "MONTHLY SALARY" FROM
employees WHERE salary < 10,000 WHERE last_name = ‘D%’

Question 8
Complete
Mark 2.00 out of 2.00

Flag question

Question text
Display the lastname of every employee in the company. Display the output in a single column and
label it as Fullname
Format: JuanReyes

Select one:
a. None of the choices
b. SELECT CONCATENATE(first_name, last_name) AS Fullname FROM employees
c. SELECT CONCAT(first_name, last_name) FROM employees
d. SELECT CONCAT(first_name, last_name) AS Fullname FROM employees

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:
a. SELECT SUBSTR(last_name,1,5), first_name FROM employees WHERE first_name IN 'N'
b. SELECT SUBSTR(last_name,1,5), first_name FROM employees WHERE
SUBSTR(first_name,1,1) = 'N'
c. SELECT SUBSTR(surname,1,5), first_name FROM employees WHERE SUBSTR(first_name,1,1)
IN 'N'
d. SELECT SUBSTR(surname,1,5), first_name FROM employees WHERE first_name = 'N'
e. SELECT SUBSTR(last_name,1,5), first_name FROM employees WHERE
SUBSTR(first_name,1,1) IN 'N'

Question 10
Complete
Mark 2.00 out of 2.00

Flag question

Question text
Austin David was transferred to Purchasing Department. You are assigned to update the database.
Which of the following SQL command will satisfy the requirements?

Select one:
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’
d. UPDATE employees SET department_id = 30 WHERE first_name = ‘David’ AND last_name =
‘Austin’

Question 11
Complete
Mark 2.00 out of 2.00
Flag question

Question text
John want to know how many employees receiving salary below 10,000.
What SQL command he need to run?

Select one:
a. SELECT COUNT(*) FROM employees WHERE salary < 10000;
b. SELECT COUNT(salary) FROM employees WHERE salary < 10,000;
c. SELECT COUNT(emp_id) FROM employees WHERE salary <= 10000;
d. SELECT salary FROM COUNT(employees)WHERE salary < 10000;

Question 12
Complete
Mark 2.00 out of 2.00

Flag question

Question text
Evaluate the following SQL command
SELECT employee_id, salary, department_id FROM employees WHERE department_id IN (60,70)

Select one:
a. The SQL command will produce an error.
b. The SQL command will display employees with department id 60 and 70.
c. The SQL command will give an incorrect output.
d. The SQL command will display employees with department id 60 or 70.

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 give the required output?

Select one:
a. SELECT last_name, hire_date FROM employees WHERE hire_date>=
TO_DATE('01-Jan-2006', 'DD-Mon-RR') AND hire_date<= TO_DATE('31-Dec-2006', 'DD-Mon-RR')
AND salary > 5000;
b. SELECT last_name, hire_date FROM employees WHERE hire_date>=
TO_DATE('Jan-2000', 'Month-YYYY') AND hire_date<= TO_DATE('Dec-2006', 'Month-‘YYYY') AND
salary > 5,000;
c. 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;
d. SELECT last_name, hire_date FROM employees WHERE hire_date>=
TO_DATE('2000', 'YYYY') AND hire_date<= TO_DATE('2006', 'YYYY') OR salary > 5000;

Question 14
Complete
Mark 2.00 out of 2.00

Flag question

Question text
List all employees except for IT_PROG job id.

Select one:
a. SELECT *FROM employees EXCEPT JOB_ID != 'IT_PROG'
b. SELECT *FROM employees WHERE JOB_ID NOT IN ('IT_PROG')
c. SELECT *FROM employees WHERE JOB_ID <> 'IT_PROG'
d. All of the choices

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:
a. The SQL will produce Cartesian Product
b. The SQL will display the employee id, department id and the minimum and maximum salary
whose salary is between 10000 and 20000.
c. The SQL command will produce an error.
d. The SQL command will give an incorrect output.

Question 16
Complete
Mark 2.00 out of 2.00

Flag question

Question text
Display all the records in the employee table. Arrange the output in by lastname from A-Z order.

Select one:
a. SELECT * FROM employees SORT BY lastname
b. SELECT * FROM employees ORDER BY lastname
c. SELECT * FROM employees ORDER BY lastname AZ
d. SELECT * FROM employees SORT BY lastname ascending

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:
a. SELECT employee_id, first_name, last_name FROM employees ORDER BY department_id
WHERE first_name LIKE 'D%' and job_id = 'IT_PROG'
b. SELECT employees FROM employee_id, first_name, last_name WHERE first_name LIKE ‘D%’
and job_id = ‘IT_PROG’ ORDER BY department_id
c. SELECT employee_id, first_name, last_name FROM employees WHERE job_id = 'IT_PROG' OR
first_name LIKE 'D%' and 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 command will produce the output.

Select one:
a. SELECT AVERAGE(salary) FROM employees WHERE job_id = 'FI_ACCOUNT';
b. SELECT AVG(salary) FROM employees WHERE job_id = 'FI_ACCOUNT';
c. SELECT AVE(salary) FROM employees WHERE job_id = 'FI_ACCOUNT';
d. SELECT COUNT AVG(salary) FROM employees WHERE job_id = 'FI_ACCOUNT';

Question 19
Complete
Mark 2.00 out of 2.00

Flag question

Question text
Display all location id between 1000 to 2000.

Select one:
a. DISPLAY location_id FROM departments WHERE location_id LING 1000 UP TO 2000
b. DISPLAY location_id FROM departments WHERE location_id BETWEEN 1000 TO 2000
c. SELECT location_id FROM departments WHERE location_id IN 1000 AND 2000
d. SELECT location_id FROM departments WHERE location_id BETWEEN 1000 AND 2000
Question 20
Complete
Mark 2.00 out of 2.00

Flag question

Question text
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 one:
a. SELECT employee_id, salary, salary + (salary .03) FROM employees
b. SELECT employee_id, salary, salary * .03 FROM employees
c. SELECT employee_id, salary, salary * 1.03 FROM employees
d. SELECT employee_id, salary FROM employees WHERE salary)
e. SELECT employee_id, salary, salary * .30 FROM employees

Question 21
Complete
Mark 2.00 out of 2.00

Flag question

Question text
Display the employee id, salary, number of years and the hiring date of every employee in the
company.

Select one:
a. SELECT employee_id,salary, hire_date, hire_date- SYSDATE /365 FROM employees;
b. SELECT employee_id, salary, hire_date, ROUND((SYSDATE - hire_date) /365,0) FROM
employees;
c. SELECT employee_id, salary, hire_date, hire_date /365 FROM employees;

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:
a. SELECT E.employee_id, J.job_title, e.job_id, D.department_name
FROM employees E
JOIN jobs J ON E.job_id = J.job_id
JOIN departments D ON E.department_id = D.department_id
WHERE E.department_id = 100
b. SELECT E.employee_id, J.job_title, e.job_id, D.department_name
FROM employees E
JOIN department D ON E.job_id = J.job_id
JOIN jobs J ON E.department_id = D.department_id
WHERE E.department_id = 100
c. SELECT E.employee_id, J.job_title, e.job_id, D.department_name
FROM jobs J
INNER JOIN department D ON E.job_id = J.job_id
INNER JOIN employees EON E.department_id = D.department_id
WHERE E.department_id = 100
d. SELECT E.employee_id, J.job_title, e.job_id, D.department_name
FROM jobs J
NATURAL JOIN department D ON E.job_id = J.job_id
NATURAL JOIN employees E ON E.department_id = D.department_id
WHERE E.department_id = 100

Question 23
Complete
Mark 2.00 out of 2.00

Flag question

Question text
In creating Joins,the NATURALJOIN and USING clauses are____________

Select one:
a. Mutually Inclusive
b. Limited to 2 relational tables
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 working in Finance Department. Label the annual salary to ANNUAL
SALARY.
Sort the output in from highest to lowest salary. (4 POINTS)

Select one:
a. 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
NATURAL JOIN jobs J ON E.job_id = J.job_id
NATURAL JOIN departments D ON E.department_id = D.department_id
ORDER BY "ANNUAL SALARY" DESC
WHERE D.location_id = 1700 AND D.department_name = 'Finance'
b. 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
JOINemployees E ON E.department_id = D.department_id
WHERE D.location_id = 1700 AND D.department_name = 'Finance'
ORDER BY "ANNUAL SALARY" DESC
c. 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
d. 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
OUTER JOIN jobs J ON E.job_id = J.job_id
OUTER 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
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’;

Which of the following SQL commands will display all stocks whose class is HW or AP.
SELECT * FROM parts WHERE IN class ('HW', '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?
SELECT employee_id, hire_date, TO_CHAR(hire_date,'Month') AS "Hired Month" FROM employees;

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;

John want to know how many employees receiving salary below 10,000. What SQL command he need to
run?
SELECT COUNT(*) FROM employees WHERE salary < 10000;
----------------------------------------
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%'

What will be the output of the following SQL?


SELECT * FROM parts WHERE (warehouse = 1 or warehouse = 2) AND class IN ('HW', 'AP') AND (price >
200 AND price < 500);
2 rows returned

What will be the output of the SQL command?


SELECT SUM(onhand) FROM PARTS where class = 'HW' OR class = 'AP' AND warehouse = 1;
137

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
output?
SELECT first_name, last_name, job_id, min_salary, max_salary FROM employees JOIN jobs USING
(job_id);
What will be the output of the SQL command below?
SELECT first_name, last_name, job_title FROM employees CROSS JOIN jobs ORDER BY last_name;
A Cartesian product

What will be the output of the SQL command below?


SELECT last_name, job_id, job_title FROM employees NATURAL JOIN jobs
List of names and job title of matched records from the employees and jobs table

----------------------------------------
SQ6

Given the SQL command


SELECT * FROM employees JOIN departments USING (department_id)
Which of the following describes the SQL command?
Joined table from the employees and department table

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

Display the manager id and employee id of every employee


SELECT E.employee_id, D.manager_id FROM employees E JOIN departments D ON E.department_id =
D.department_id

Given the SQL command


SELECT employees.first_name, employees.last_name, employees.salary,departments.department_name
FROM employees, departments
WHERE employees.department_id = departments.department_id;
Which of the following describes the SQL command?
List of employees name, salary and department name

----------------------------------------
LA7

Remove the Shareholder Services department in the department table


DELETE FROM departments WHERE department_name = ‘Shareholder Services’

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 update the information in the department table.
INSERT INTO departments VALUES (300, 'Training', 203, 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)

Remove all Manager positions in the department table.


DELETE FROM jobs WHERE job_title LIKE '%Manager%';
----------------------------------------
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 describes the command below?


SELECT * FROM employees WHERE department = 60 FOR UPDATE
Locks the rows in the EMPLOYEES table with department id is 60.

Which of the following will erase all records in the departments table
TRUNCATE TABLE departments

SQL command to create a marker in the current transaction.


SAVEPOINT

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

You want to cancel the privilege of matt to add records from the employees table.
REVOKE insert ON employees FROM 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 provide privilege to update the employees table?


GRANT update (salary) ON employees TO matt

Which of the following will is the correct command to create a role.


CREATE ROLE gen_manager

Matt wants to change his password from 1234 to abcd.


Which of the following will perform the task?
ALTER USER matt IDENTIFIED abcd;

The DBA will create a new user name sales.


Which of the following SQL command will perform the creation?
CREATE sales ACCESS 1234

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

What privileges that manipulates the content of the database objects.


Object Privileges

----------------------------------------
1st Q Exam

Evaluate the following SQL command


SELECT employee_id, salary, department_id FROM employees WHERE department_id IN (60,70)
The SQL command will display employees with department id 60 or 70.

True or False. The AND, OR, NOT are comparison operators.


False
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

List all employees except for IT_PROG job id.


All of the choices

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

Evaluate the following SQL command


SELECT * FROM jobs WHERE job_title LIKE 'Manager%'
No records will be displayed

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

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 last_name, TO_INTEGER(salary, $999,999.99) AS "MONTHLY SALARY" FROM employees
WHERE salary < 10000 WHERE last_name IN 'D%'

In creating Joins,the NATURALJOIN and USING clauses are____________


Mutually Exclusive

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

Which of the following does NOT describes SELECT Statement in a PL/SQL.


Answer: Queries must return only one column.
You want to display all the records of employee the same with the salary employee number 103.
Answer: SELECT * FROM employees WHERE salary = (SELECT salary from employees where
employee_id= 103)
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;
Which of the folllowing is TRUE?
Answer: SQL code are embedded within PL/SQL statements
When an exception is user defined, the exception is raised ____________ .
Answer: Explicitly
Which of the folllowing is TRUE?
Answer: SQL code are embedded withing PL/SQL statements
Weak REF CURSOR is very flexible.
Answer: True
How do you test the output of a PL/SQL block?
Answer: Use a predefined Oracle package and its procedure
Restrictive, specifies a RETURN type, associates only with type-compatible queries are description
of a ________________.
Answer: Strong REF CURSOR
Which of the following DOES NOT describes an exception?
Answer: Exception is a PL/SQL error that is raised before program execution.
These are local variables declared in the parameter list of a subprogram specification.
Answer: Formal parameter
Which of the following rules is INCORRECT about cursor variables?
Answer: None of the choices.
When an exception is predefined by Oracle server, the exception is raised ____________ .
Answer: Explicitly
Which of the following DOES NOT describes an exception?
Answer: Exception is a PL/SQL error that is raised before program execution.
Evaluate the following PL/SQL.
CREATE OR REPLACE PROCEDURE query_employee
(p_id IN employees.employee_id%TYPE,
p_name OUT employees.last_name%TYPE,
p_salary OUT employees.salary%TYPE) IS
BEGIN SELECT last_name, salary INTO p_name, p_salary
FROM employeesWHERE employee_id = p_id;
END query_employee
Answer: No error
You want to know the total number of employees whose firstname starts with letter D.
Which of the folllowing PLS/SQL executes successfully?
Answer: DECLARE
v_first_name employees.first_name%TYPE := 'D%';
BEGIN
SELECT COUNT(*) INTO v_first_name FROM employees WHERE first_name LIKE v_first_name;
DBMS_OUTPUT.PUT_LINE(v_first_name);
END;
What is the error trapping function that returns the numeric value of the error code?
Answer: SQLCODE
You want to display the name, salary and tax of employee #150. Which of the PL/SQL will execute
successfully? Note tax is computed as 2% of the salary.
Answer: DECLARE
v_first_name VARCHAR2(50);
v_last_name VARCHAR2(50);
v_salary INTEGER(20);
v_tax INTEGER(10);
BEGIN
SELECT first_name, last_name, salary, salary * 0.02 INTO v_first_name, v_last_name, v_salary,
v_tax FROM employees WHERE employee_id = 150;
DBMS_OUTPUT.PUT_LINE('Firstname : '|| v_first_name);
DBMS_OUTPUT.PUT_LINE('Lastname : '|| v_last_name);
DBMS_OUTPUT.PUT_LINE('Salary : '|| v_salary);
DBMS_OUTPUT.PUT_LINE('Tax : '|| v_tax);
END;
Which of the following is the syntax to close a cursor?
Answer: CLOSE cursor_variable_name;
Which of the following rules is INCORRECT about cursor variables?
Answer: None of the choices.
What are the three PL/SQL block types?
Answer: Anonymous, Procedure, Function
You can trap any error by including a corresponding handler within the exception-handling section of
the PL/SQL block.
Answer: True
Which of the following describes weak REF CURSOR?
Answer: Associates with any query
Given the answer in item __________, which of the folllowing stored procedure will display the
employee id and salary of Steven King?
Answer: DECLARE
v_employee_id employees.employee_id%TYPE;
v_emp_sal employees.salary%TYPE;
BEGIN
query_emp('King', 'Steven', v_employee_id, v_emp_sal);
DBMS_OUTPUT.PUT_LINE('Employee ID ' || v_employee_id ||' earns '|| to_char(v_emp_sal,
'$999,999.00'));
END;
You have been tasked to update the database by creating a PL/SQL to increase the salary of all IT
Programmer employees by 50% 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 *0.50 WHERE job_id = v_job_id;
END;
Which of the folllowing is required in a subquery?
Answer: SELECT
What is the exception name when PL/SQL has an internal problem
Answer: PROGRAM_ERROR
In the DECLARE section of the PL/SQL block,
Answer: All of the choices
Actions are being performed when error occurs during PL/SQL execution in the
Answer: EXCEPTION
What is the exception name when PL/SQL has an internal problem
Answer: PROGRAM_ERROR
Which of the folllowing statement describes PL/SQL?
Answer: PL/SQL is an Oracle proprietary, procedural, 3GL programming language
Evaluate the following PL/SQL.
DECLARE
v_employee_id employees.employee_id%TYPE := 114;
BEGIN
DELETE employees WHERE employee_id = v_employee_id;
END;
Answer: The PL/SQL will delete employee number 114.
Which of the following command is used to create a stand-alone procedure that is stored in the
Oracle database?
Answer: CREATE PROCEDURE
Evaluate the following PL/SQL.
DECLARE
v_email VARCHAR(20);
BEGIN
SELECT email INTO v_email FROM EMPLOYEES WHERE email like 'D%';
DBMS_OUTPUT.PUT_LINE ('Employees whose email address starts with letter D :'
|| v_email);
EXCEPTION
WHEN TOO_MANY_ROWS THEN
DBMS_OUTPUT.PUT_LINE (' Your select statement retrieved multiple rows.');
END;
Answer: The PL/SQL block will run successfully.
Which of the following is the syntax to define a REF CURSOR type?
Answer: TYPE ref_type_name IS REF CURSOR
[RETURN return_type];
The PL/SQL code block helps modularize code by using:
Answer: All of the choices
Which of the following is the syntax to fetch from a cursor variable?
Answer: FETCH cursor_variable_name INTO variable_name1
[,variable_name2,. . .] | record_name;
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')
Procedure can be stored in the database as a schema object.
Answer: True
In PL/SQL Block Structure, which of the following are mandatory?
Answer: BEGIN and END
PL/SQL stands for
Answer: Procedural Language extension to SQL
Which of the following is CORRECT about sub-queries?
Answer: Subquery execute before the main query executes.
Which of the following does NOT describes SELECT Statement in a PL/SQL.
Answer: Queries must return only one column.
PL/SQL Provides a block structure for executable units of ________________.
Answer: Code
Evaluate the SQL command
SELECT employee_id, salary from employees where salary = ANY (SELECT salary FROM
employees WHERE job_id = 'IT_PROG') AND job_id = 'ST_CLERK'
Answer: This has no error.
Which of the following PL/SQL will execute successfully?
Answer: DECLARE
v_salary INTEGER(20);
BEGIN
SELECT salary INTO v_salary FROM employees WHERE employee_id = 150;
END;
In PL/SQL Block Structure, which of the following are OPTIONAL?
Answer: None of the choices
Evaluate the following PL/SQL. At what line number is the error of the PL/SQL?
DECLARE
v_deptno NUMBER := 800;
e_invalid EXCEPTION;
BEGIN
DELETE FROM departments
WHERE department_id = v_deptno;
IF SQL % NOT_FOUND THEN
RAISE e_invalid;
END IF;
COMMIT;
EXCEPTION
WHEN e_invalid THEN
DBMS_OUTPUT.PUT_LINE('No such department id.');
END;
Answer: 7
What is the error trapping function that returns the numeric value of the error code?
Answer: SQLCODE
Fetch into a record when fetching from a cursor.
Answer: True

Which of the following is the syntax to open a cursor varial


Answer: OPEN cursor_variable_name
FOR select_statement;
Which of the following is the syntax to define a REF CURSOR type?
Answer: TYPE ref_type_name IS REF CURSOR
[RETURN return_type];
Weak REF CURSOR is very flexible.
Answer: True
Evaluate the following. What will be the output?
DECLARE
SUBTYPE Accumulator IS NUMBER (4,2);
v_amount accumulator;
v_num1 NUMBER;
v_num2 NUMBER;
v_num3 NUMBER;
BEGIN
v_amount := 10.50;
v_num1 := 1;
v_num2 := 2;
v_num3 := 3;
v_num1 := v_amount;
v_num2 := v_num1 + v_amount;
v_num2 := v_num2 - v_num3;
dbms_output.put_line('Total is: ' || v_num2);
END;
Answer: 18
Which of the following is the syntax to fetch from a cursor variable?
Answer: FETCH cursor_variable_name INTO variable_name1
[,variable_name2,. . .] | record_name;
Fetch into a record when fetching from a cursor.
Answer: True
Which of the following is the syntax to close a cursor?
Answer: CLOSE cursor_variable_name;
This is a subset of an existing data type that may place a constraint on its base type.
Answer: Subtype
Which of the following rules is INCORRECT about cursor variables?
Answer: None of the choices.
Use column aliases in cursors for calculated columns fetched into records declared with %COLUMNTYPE.
Answer: False
PROG-113A / ► Week 18: Designing PL/SQL / ► Learning Activity 14

Which of the following rules is INCORRECT about cursor variables?


Answer: None of the choices.
Which of the following describes weak REF CURSOR?
Answer: Associates with any query
Restrictive, specifies a RETURN type, associates only with type-compatible queries are
description of a ________________.
Answer: Strong REF CURSOR
Which of the following is INCORRECT about the guidelines for cursor design?
Answer: Use column aliases in cursors for calculated columns fetched into records declared with
%COLUMNTYPE.
This is a subset of an existing data type that may place a constraint on its base type.
Answer: Subtype

PROG-113A / ► Week 17: / ► Short Quiz 13


Evaluate the following PL/SQL.
CREATE OR REPLACE PROCEDURE query_employee
(p_id IN employees.employee_id%TYPE,
p_name OUT employees.last_name%TYPE,
p_salary OUT employees.salary%TYPE) IS
BEGIN SELECT last_name, salary INTO p_name, p_salary
FROM employeesWHERE employee_id = p_id;
END query_employee
Answer: No error
Evaluate the following PL/SQL. Which of the following will line creates an error?
CREATE OR REPLACE PROCEDURE query_emp
(
p_department_id IN employees.department_id%TYPE,
p_name OUT employees.last_name%TYPE,
p_salary OUT employees.salary%TYPE
)
IS
BEGIN
SELECT last_name, salary, department_id INTO p_name, p_salary, p_department_id
FROM employees
WHERE salary >= p_salary AND department_id = p_department_id ;
END query_emp;
Answer: Line 3
These are local variables declared in the parameter list of a subprogram specification.
Answer: Formal parameter
Given the answer in item __________, which of the folllowing stored procedure will display the
employee id and salary of Steven King?
Answer: DECLARE
v_employee_id employees.employee_id%TYPE;
v_emp_sal employees.salary%TYPE;
BEGIN
query_emp('King', 'Steven', v_employee_id, v_emp_sal);
DBMS_OUTPUT.PUT_LINE('Employee ID ' || v_employee_id ||' earns '|| to_char(v_emp_sal,
'$999,999.00'));
END;

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

PROG-113A / ► Week 16: Creating Procedures / ► Learning Activity 13


Procedure can be stored in the database as a schema object.
Answer: True
The PL/SQL code block helps modularize code by using:
Answer: All of the choices
Which of the following command is used to create a stand-alone procedure that is stored in the Oracle
database?
Answer: CREATE PROCEDURE
Which of the folllowing 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
Answer: iii & v
Which if the following is NOT a benefits of using modular program constructs?
Answer: None of the choices

PROG-113A / ► Week 18: Designing PL/SQL / ► Short Quiz 14


Which of the following is the syntax to open a cursor varial
Answer: OPEN cursor_variable_name
FOR select_statement;
Which of the following is the syntax to define a REF CURSOR type?
Answer: TYPE ref_type_name IS REF CURSOR
[RETURN return_type];
Weak REF CURSOR is very flexible.
Answer: True
Evaluate the following. What will be the output?
DECLARE
SUBTYPE Accumulator IS NUMBER (4,2);
v_amount accumulator;
v_num1 NUMBER;
v_num2 NUMBER;
v_num3 NUMBER;
BEGIN
v_amount := 10.50;
v_num1 := 1;
v_num2 := 2;
v_num3 := 3;
v_num1 := v_amount;
v_num2 := v_num1 + v_amount;
v_num2 := v_num2 - v_num3;
dbms_output.put_line('Total is: ' || v_num2);
END;
Answer: 18
Which of the following is the syntax to fetch from a cursor variable?
Answer: FETCH cursor_variable_name INTO variable_name1
[,variable_name2,. . .] | record_name;
Fetch into a record when fetching from a cursor.
Answer: True
Which of the following is the syntax to close a cursor?
Answer: CLOSE cursor_variable_name;
This is a subset of an existing data type that may place a constraint on its base type.
Answer: Subtype
Which of the following rules is INCORRECT about cursor variables?
Answer: None of the choices.
Use column aliases in cursors for calculated columns fetched into records declared with %COLUMNTYPE.
Answer: False

PROG-113A / ► Week 18: Designing PL/SQL / ► Learning Activity 14

Which of the following rules is INCORRECT about cursor variables?


Answer: None of the choices.
Which of the following describes weak REF CURSOR?
Answer: Associates with any query
Restrictive, specifies a RETURN type, associates only with type-compatible queries are
description of a ________________.
Answer: Strong REF CURSOR
Which of the following is INCORRECT about the guidelines for cursor design?
Answer: Use column aliases in cursors for calculated columns fetched into records declared with
%COLUMNTYPE.
This is a subset of an existing data type that may place a constraint on its base type.
Answer: Subtype

PROG-113A / ► Week 15: Long Quiz / ► Long Quiz 3 (30/30)


(Correction)
How do you test the output of a PL/SQL block?
Answer: Use a predefined Oracle package and its procedure
Which of the folllowing statement describes PL/SQL?
Answer: PL/SQL is an Oracle proprietary, procedural, 3GL programming language
Which of the following syntax to declare EXCEPTION named e_invalid_id?
Answer: e_invalid_id EXCEPTION;
In PL/SQL Block Structure, which of the following are mandatory?
Answer: BEGIN and END
This is a type of cursor which is created and managed internally by the Oracle server to process
SQL statements
Answer: Implicit
PL/SQL stands for
Answer: Procedural Language extension to SQL
Which of the following PL/SQL will execute successfully?
Answer: DECLARE
v_salary INTEGER(20);
BEGIN
SELECT salary INTO v_salary FROM employees WHERE employee_id = 150;
END;
What is the last clause in trapping exceptions?
Answer: WHEN OTHERS
PL/SQL Provides a block structure for executable units of ________________.
Answer: Code
Evaluate the following PL/SQL.
DECLARE
v_email VARCHAR(20);
BEGIN
SELECT email INTO v_email FROM EMPLOYEES WHERE email like 'D%';
DBMS_OUTPUT.PUT_LINE ('Employees whose email address starts with letter D :'
|| v_email);
EXCEPTION
WHEN TOO_MANY_ROWS THEN
DBMS_OUTPUT.PUT_LINE (' Your select statement retrieved multiple rows.');
END;
Answer: The PL/SQL block will run successfully.
Which of the folllowing is TRUE?
Answer: SQL code are embedded within PL/SQL statements
You can trap any error by including a corresponding handler within the exception-handling
section of the PL/SQL block.
Answer: True
When an exception is user defined, the exception is raised ____________ .
Answer: Explicitly
Evaluate the PL/SQL
DECLARE
v_first_name VARCHAR2(50);
v_last_name VARCHAR2(50);
v_salary INTEGER(20);
BEGIN
SELECT first_name, last_name, salary INTO v_first_name, v_last_name, v_salary FROM
employees WHERE department_id = 60;
DBMS_OUTPUT.PUT_LINE('Firstname : '|| v_first_name);
DBMS_OUTPUT.PUT_LINE('Lastname : '|| v_last_name);
DBMS_OUTPUT.PUT_LINE('Salary : '|| v_salary);
END;
Answer: Error in Line 6.
Evaluate the following PL/SQL.
DECLARE
v_employee_id employees.employee_id%TYPE := 114;
BEGIN
DELETE employees WHERE employee_id = v_employee_id;
END;
Answer: The PL/SQL will delete employee number 114.
Which of the following does NOT describes SELECT Statement in a PL/SQL.
Answer: Queries must return only one column.
What are the three PL/SQL block types?
Answer: Anonymous, Procedure, Function
What is the exception name when PL/SQL has an internal problem
Answer: PROGRAM_ERROR
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?
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;
What is the error trapping function that returns the numeric value of the error code?
Answer: SQLCODE
What is the exception name when single row SELECT returned no data.
Answer: NO_DATA_FOUND
Which of the following DOES NOT describes an exception?
Answer: Exception is a PL/SQL error that is raised before program execution.
Evaluate the following PL/SQL.
DECLARE
v_employee_id employees.employee_id%TYPE := 114;
BEGIN
DELETE employees WHERE employee_id = v_employee_id;
END;
Answer: The PL/SQL will delete employee number 114.
In the DECLARE section of the PL/SQL block,
Answer: All of the choices
When an exception is predefined by Oracle server, the exception is raised ____________ .
Answer: Explicitly
Which of the will display the Employee ID and number of years in service with employee ID
150?
Answer: DECLARE
v_salaryemployees.salary%TYPE := 10000;
v_employee_idemployees.employee_id%TYPE := 150;
v_years INTEGER(10);
BEGIN
SELECT employee_id, ROUND((SYSDATE - hire_date) /365,0) INTO v_employee_id, v_years
FROM employees WHERE employee_id = v_employee_id ;
DBMS_OUTPUT.PUT_LINE('Employee ID:' || v_employee_id);
DBMS_OUTPUT.PUT_LINE('Number of years : ' || v_years);
END;
Actions are being performed when error occurs during PL/SQL execution in the
Answer: EXCEPTION
You can use this procedure to issue user-defined error messages from stored subprograms.
Answer: RAISE_APPLICATION_ERROR

PROG-113A / ► Week 14: Handling Exceptions / ► Short Quiz 12

Evaluate the following PL/SQL.


DECLARE
v_email VARCHAR(20);
BEGIN
SELECT email INTO v_email FROM EMPLOYEES WHERE email like 'D%';
DBMS_OUTPUT.PUT_LINE ('Employees whose email address starts with letter D :'
|| v_email);
EXCEPTION
WHEN TOO_MANY_ROWS THEN
DBMS_OUTPUT.PUT_LINE (' Your select statement retrieved multiple rows.');
END;
Answer: The PL/SQL block will run successfully.
Which of the following DOES NOT describes an exception?
Answer: Exception is a PL/SQL error that is raised before program execution.
What is the exception name when single row SELECT returned no data.
Answer: NO_DATA_FOUND
RAISE_APPLICATION_ERROR is used in two different places. These are
___________________.
Answer: Executable and exceptions section
What is the error trapping function that returns the numeric value of the error code?
Answer: SQLCODE
What is the exception name when PL/SQL has an internal problem
Answer: PROGRAM_ERROR
Evaluate the following PL/SQL. At what line number is the error of the PL/SQL?
DECLARE
v_deptno NUMBER := 800;
e_invalid EXCEPTION;
BEGIN
DELETE FROM departments
WHERE department_id = v_deptno;
IF SQL % NOT_FOUND THEN
RAISE e_invalid;
END IF;
COMMIT;
EXCEPTION
WHEN e_invalid THEN
DBMS_OUTPUT.PUT_LINE('No such department id.');
END;
Answer: 7
What is the last clause in trapping exceptions?
Answer: WHEN OTHERS
Complete the diagram in Trapping Non-Predefined Oracle Server Errors.
Answer: Declare, Associate, Reference

PROG-113A / ► Week 14: Handling Exceptions / ► Learning Activity 12

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

PROG-113A / ► Week 13: Interacting with Oracle Server / ► Learning Activity 11

Which of the following does NOT describes SELECT Statement in a PL/SQL.


Answer: Queries must return only one column.
Evaluate the following PL/SQL.
1 DECLARE

2 v_employee_id employees.employee_id%TYPE := 114;

3 BEGIN

4 DELETE employees WHERE employee_id = 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;

PROG-113A / ► Week 12: Introduction to PLSQL / ► Short Quiz 10

Which of the folllowing is TRUE?


Answer: SQL code are embedded withing PL/SQL statements
In the DECLARE section of the PL/SQL block
Answer: All of the choices
In PL/SQL Block Structure, which of the following are OPTIONAL?
Answer: None of the choices
What are the three PL/SQL block types?
Answer: Anonymous, Procedure, Function
How do you test the output of a PL/SQL block?
Answer: Use a predefined Oracle package and its procedure
You want to display the name, salary and tax of employee #150. Which of the PL/SQL will
execute successfully? Note tax is computed as 2% of the salary.
Answer: DECLARE
v_first_name VARCHAR2(50);
v_last_name VARCHAR2(50);
v_salary INTEGER(20);
v_tax INTEGER(10);
BEGIN
SELECT first_name, last_name, salary, salary * 0.02 INTO v_first_name, v_last_name,
v_salary, v_tax FROM employees WHERE employee_id = 150;
DBMS_OUTPUT.PUT_LINE('Firstname : '|| v_first_name);
DBMS_OUTPUT.PUT_LINE('Lastname : '|| v_last_name);
DBMS_OUTPUT.PUT_LINE('Salary : '|| v_salary);
DBMS_OUTPUT.PUT_LINE('Tax : '|| v_tax);
END;
Which of the folllowing statement describes PL/SQL?
Answer: PL/SQL is an Oracle proprietary, procedural, 3GL programming language

PROG-113A / ► Week 12: Introduction to PLSQL / ► Learning Activity 10


PL/SQL stands for
Answer: Procedural Language extension to SQL
PL/SQL Provides a block structure for executable units of ________________.
Answer: Code
In PL/SQL Block Structure, which of the following are mandatory?
Answer: BEGIN and END
Which of the following PL/SQL will execute successfully?
Answer: DECLARE
v_salary INTEGER(20);
BEGIN
SELECT salary INTO v_salary FROM employees WHERE employee_id = 150;
END;
Actions are being performed when error occurs during PL/SQL execution in the
Answer: EXCEPTION

PROG-113A / ► Week 11: Using Subqueries to Solve Queries / ► Short Quiz 9


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')

Evaluate the SQL command


SELECT employee_id, job_id, salary from employees where salary < ALL (SELECT salary
FROM employees WHERE job_id = 'FI_ACCOUNT') AND job_id = 'IT_PROG'
Answer: This has no error.

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')

Evaluate the SQL command


SELECT employee_id, last_name, first_name, job_id FROM employees WHERE department_id
= (SELECT max(department_id) FROM employees GROUP BY department_id)
Answer: This will return an error. Single-row subquery returns more than one row.

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)

PROG-113A / ► Week 11: Using Subqueries to Solve Queries / ► Learning Activity 9


Which of the following is INCORRECT?
Answer: Use single-row operators with multiple-row subqueries
Which of the folllowing is required in a subquery?
Answer: SELECT
Which of the following is CORRECT about sub-queries?
Answer: Subquery execute before the main query executes.
Evaluate the SQL Command
SELECT job_id, job_title FROM jobs J WHERE INCLUDES
(SELECT * FROM employees WHERE J.job_id = e.job_id );
Answer: The SQL will return an error. Invalid "INCLUDES" parameter.
Evaluate the SQL command
SELECT employee_id, salary from employees where salary = ANY (SELECT salary FROM employees
WHERE job_id = 'IT_PROG') AND job_id = 'ST_CLERK'
Answer: This has no error.

Question 1
Complete
Mark 2.00 out of 2.00

Flag question

Question text
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 one:
a. SELECT job_title FROM jobs WHERE min_salary >= 5000 AND max_salary<= 10000
b. SELECT job_title FROM employees WHERE salary >= 5000 AND salary <= 10000
c. 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
Complete
Mark 2.00 out of 2.00

Flag question

Question text
What is the SQL command to count the number of records in the employees table?

Select one:
a. SELECT ALL FROM employees
b. SELECT * FROM employees;
c. SELECT COUNT(*) FROM employees
d. SELECT SUM(*) FROM employees;

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

Question 4
Complete
Mark 2.00 out of 2.00

Flag question

Question text
Evaluate the following SQL command
SELECT * FROM jobs WHERE job_title LIKE 'Manager%'

Select one:
a. The SQL command will produce an error.
b. The SQL command will display all employees with Manager position
c. The SQL command will display all records in the database
d. No records will be displayed

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:
a. SELECT employee_id, hire_date, TO_DATE(hire_date,'Month') AS "Hired Month", job_id FROM
b. SELECT employee_id, hire_date, MONTH(hire_date,'Month') AS "Hired Month", job_id FROM
employees
c. SELECT employee_id, hire_date, TO_CHAR(hire_date,'Month') AS "Hired Month", job_id FROM
employees
d. SELECT employee_id, hire_date, TO_MONTH(hire_date,'Month') AS "Hired Month", job_id
FROM employees

Question 6
Complete
Mark 2.00 out of 2.00

Flag question

Question text
You want to generate the total salary per month of every department in the company.

Select one:
a. SELECT department_id, salary FROM employees ORDER BY SUM(salary)
b. SELECT department_id, TOTAL(salary) FROM employees GROUP BY department_id
c. SELECT department_id, salary FROM employees GROUP BY SUM(salary) ORDER BY
department_id
d. SELECT department_id, SUM(salary) FROM employees GROUP BY 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:
a. SELECT last_name, TO_INT(salary, '$999,999.99') AS "MONTHLY SALARY" FROM employees
WHERE salary < 10,000 WHERE last_name STARTS 'D%'
b. SELECT last_name, TO_CHAR(salary, '$999,999.99') AS "MONTHLY SALARY" FROM
employees WHERE salary < 10000 WHERE last_name LIKE 'D%'
c. SELECT last_name, TO_INTEGER(salary, $999,999.99) AS "MONTHLY SALARY" FROM
employees WHERE salary < 10000 WHERE last_name IN 'D%'
d. SELECT last_name, TO_NUMBER(salary, '$999,999.99') AS "MONTHLY SALARY" FROM
employees WHERE salary < 10,000 WHERE last_name = ‘D%’

Question 8
Complete
Mark 2.00 out of 2.00

Flag question

Question text
Display the lastname of every employee in the company. Display the output in a single column and
label it as Fullname
Format: JuanReyes

Select one:
a. None of the choices
b. SELECT CONCATENATE(first_name, last_name) AS Fullname FROM employees
c. SELECT CONCAT(first_name, last_name) FROM employees
d. SELECT CONCAT(first_name, last_name) AS Fullname FROM employees

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:
a. SELECT SUBSTR(last_name,1,5), first_name FROM employees WHERE first_name IN 'N'
b. SELECT SUBSTR(last_name,1,5), first_name FROM employees WHERE
SUBSTR(first_name,1,1) = 'N'
c. SELECT SUBSTR(surname,1,5), first_name FROM employees WHERE SUBSTR(first_name,1,1)
IN 'N'
d. SELECT SUBSTR(surname,1,5), first_name FROM employees WHERE first_name = 'N'
e. SELECT SUBSTR(last_name,1,5), first_name FROM employees WHERE
SUBSTR(first_name,1,1) IN 'N'

Question 10
Complete
Mark 2.00 out of 2.00

Flag question

Question text
Austin David was transferred to Purchasing Department. You are assigned to update the database.
Which of the following SQL command will satisfy the requirements?

Select one:
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’
d. UPDATE employees SET department_id = 30 WHERE first_name = ‘David’ AND last_name =
‘Austin’

Question 11
Complete
Mark 2.00 out of 2.00

Flag question

Question text
John want to know how many employees receiving salary below 10,000.
What SQL command he need to run?

Select one:
a. SELECT COUNT(*) FROM employees WHERE salary < 10000;
b. SELECT COUNT(salary) FROM employees WHERE salary < 10,000;
c. SELECT COUNT(emp_id) FROM employees WHERE salary <= 10000;
d. SELECT salary FROM COUNT(employees)WHERE salary < 10000;

Question 12
Complete
Mark 2.00 out of 2.00

Flag question

Question text
Evaluate the following SQL command
SELECT employee_id, salary, department_id FROM employees WHERE department_id IN (60,70)

Select one:
a. The SQL command will produce an error.
b. The SQL command will display employees with department id 60 and 70.
c. The SQL command will give an incorrect output.
d. The SQL command will display employees with department id 60 or 70.

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 give the required output?

Select one:
a. SELECT last_name, hire_date FROM employees WHERE hire_date>=
TO_DATE('01-Jan-2006', 'DD-Mon-RR') AND hire_date<= TO_DATE('31-Dec-2006', 'DD-Mon-RR')
AND salary > 5000;
b. SELECT last_name, hire_date FROM employees WHERE hire_date>=
TO_DATE('Jan-2000', 'Month-YYYY') AND hire_date<= TO_DATE('Dec-2006', 'Month-‘YYYY') AND
salary > 5,000;
c. 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;
d. SELECT last_name, hire_date FROM employees WHERE hire_date>=
TO_DATE('2000', 'YYYY') AND hire_date<= TO_DATE('2006', 'YYYY') OR salary > 5000;

Question 14
Complete
Mark 2.00 out of 2.00

Flag question

Question text
List all employees except for IT_PROG job id.

Select one:
a. SELECT *FROM employees EXCEPT JOB_ID != 'IT_PROG'
b. SELECT *FROM employees WHERE JOB_ID NOT IN ('IT_PROG')
c. SELECT *FROM employees WHERE JOB_ID <> 'IT_PROG'
d. All of the choices

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:
a. The SQL will produce Cartesian Product
b. The SQL will display the employee id, department id and the minimum and maximum salary
whose salary is between 10000 and 20000.
c. The SQL command will produce an error.
d. The SQL command will give an incorrect output.

Question 16
Complete
Mark 2.00 out of 2.00
Flag question

Question text
Display all the records in the employee table. Arrange the output in by lastname from A-Z order.

Select one:
a. SELECT * FROM employees SORT BY lastname
b. SELECT * FROM employees ORDER BY lastname
c. SELECT * FROM employees ORDER BY lastname AZ
d. SELECT * FROM employees SORT BY lastname ascending

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:
a. SELECT employee_id, first_name, last_name FROM employees ORDER BY department_id
WHERE first_name LIKE 'D%' and job_id = 'IT_PROG'
b. SELECT employees FROM employee_id, first_name, last_name WHERE first_name LIKE ‘D%’
and job_id = ‘IT_PROG’ ORDER BY department_id
c. SELECT employee_id, first_name, last_name FROM employees WHERE job_id = 'IT_PROG' OR
first_name LIKE 'D%' and 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 command will produce the output.

Select one:
a. SELECT AVERAGE(salary) FROM employees WHERE job_id = 'FI_ACCOUNT';
b. SELECT AVG(salary) FROM employees WHERE job_id = 'FI_ACCOUNT';
c. SELECT AVE(salary) FROM employees WHERE job_id = 'FI_ACCOUNT';
d. SELECT COUNT AVG(salary) FROM employees WHERE job_id = 'FI_ACCOUNT';

Question 19
Complete
Mark 2.00 out of 2.00

Flag question

Question text
Display all location id between 1000 to 2000.

Select one:
a. DISPLAY location_id FROM departments WHERE location_id LING 1000 UP TO 2000
b. DISPLAY location_id FROM departments WHERE location_id BETWEEN 1000 TO 2000
c. SELECT location_id FROM departments WHERE location_id IN 1000 AND 2000
d. SELECT location_id FROM departments WHERE location_id BETWEEN 1000 AND 2000

Question 20
Complete
Mark 2.00 out of 2.00

Flag question

Question text
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 one:
a. SELECT employee_id, salary, salary + (salary .03) FROM employees
b. SELECT employee_id, salary, salary * .03 FROM employees
c. SELECT employee_id, salary, salary * 1.03 FROM employees
d. SELECT employee_id, salary FROM employees WHERE salary)
e. SELECT employee_id, salary, salary * .30 FROM employees

Question 21
Complete
Mark 2.00 out of 2.00

Flag question

Question text
Display the employee id, salary, number of years and the hiring date of every employee in the
company.

Select one:
a. SELECT employee_id,salary, hire_date, hire_date- SYSDATE /365 FROM employees;
b. SELECT employee_id, salary, hire_date, ROUND((SYSDATE - hire_date) /365,0) FROM
employees;
c. SELECT employee_id, salary, hire_date, hire_date /365 FROM employees;

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:
a. SELECT E.employee_id, J.job_title, e.job_id, D.department_name
FROM employees E
JOIN jobs J ON E.job_id = J.job_id
JOIN departments D ON E.department_id = D.department_id
WHERE E.department_id = 100
b. SELECT E.employee_id, J.job_title, e.job_id, D.department_name
FROM employees E
JOIN department D ON E.job_id = J.job_id
JOIN jobs J ON E.department_id = D.department_id
WHERE E.department_id = 100
c. SELECT E.employee_id, J.job_title, e.job_id, D.department_name
FROM jobs J
INNER JOIN department D ON E.job_id = J.job_id
INNER JOIN employees EON E.department_id = D.department_id
WHERE E.department_id = 100
d. SELECT E.employee_id, J.job_title, e.job_id, D.department_name
FROM jobs J
NATURAL JOIN department D ON E.job_id = J.job_id
NATURAL JOIN employees E ON E.department_id = D.department_id
WHERE E.department_id = 100

Question 23
Complete
Mark 2.00 out of 2.00

Flag question

Question text
In creating Joins,the NATURALJOIN and USING clauses are____________

Select one:
a. Mutually Inclusive
b. Limited to 2 relational tables
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 working in Finance Department. Label the annual salary to ANNUAL
SALARY.
Sort the output in from highest to lowest salary. (4 POINTS)

Select one:
a. 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
NATURAL JOIN jobs J ON E.job_id = J.job_id
NATURAL JOIN departments D ON E.department_id = D.department_id
ORDER BY "ANNUAL SALARY" DESC
WHERE D.location_id = 1700 AND D.department_name = 'Finance'
b. 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
JOINemployees E ON E.department_id = D.department_id
WHERE D.location_id = 1700 AND D.department_name = 'Finance'
ORDER BY "ANNUAL SALARY" DESC
c. 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
d. 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
OUTER JOIN jobs J ON E.job_id = J.job_id
OUTER 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
PROG-113A-LAB-1812S / (47/50)► Week 10: Quarterly Examination / ► First
Quarter Exam

Question 1
Answer saved
Marked out of 1.00

Remove flag

Question text
You can relate data to multiple tables using a foreign key.

Select one:
True
False

Question 2
Answer saved
Marked out of 1.00

Remove flag

Question text
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.

Select one:
a. SELECT (ONHAND-5) + 5(* WAREHOUSE), DESCRIPTION FROM PARTS;
b. SELECT ONHAND-5 + 5 * WAREHOUSE, DESCRIPTION FROM PARTS;
c. SELECT (ONHAND-5) + 5 * WAREHOUSE, DESCRIPTION FROM PARTS;
d. SELECT ONHAND-5 + 5 (* WAREHOUSE), DESCRIPTION FROM PARTS;

Question 3
Answer saved
Marked out of 1.00
Flag question

Question text
INSERT, DELETE, UPDATE are ________________ commands

Select one:
a. DCL
b. DML
c. DDL
d. All of the choices

Question 4
Answer saved
Marked out of 1.00

Flag question

Question text
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 one:
a. SELECT employee_id, salary, salary * .03 FROM employees
b. SELECT employee_id, salary, salary * .30 FROM employees
c. SELECT employee_id, salary, salary * 1.03 FROM employees
d. SELECT employee_id, salary, salary + (salary .03) FROM employees
e. SELECT employee_id, salary FROM employees WHERE salary)

Question 5
Answer saved
Marked out of 1.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 K.
Which SQL statement give the required output format of the salary?
Select one:
a. SELECT last_name, TO_CHAR(salary, '$999,999.99') AS "MONTHLY SALARY" FROM
employees WHERE salary < 10000WHERE last_name LIKE ‘K%’
b. SELECT last_name, TO_NUMBER(salary, '$999,999.99') AS "MONTHLY SALARY" FROM
employees WHERE salary < 10,000WHERE last_name = ‘K%’
c. SELECT last_name, TO_INTEGER(salary, $999,999.99) AS "MONTHLY SALARY" FROM
employees WHERE salary < 10000 WHERE last_name IN 'K%'
d. SELECT last_name, TO_INT(salary, '$999,999.99') AS "MONTHLY SALARY" FROM
employees WHERE salary < 10,000 WHERE last_name STARTS 'K%'

Question 6
Answer saved
Marked out of 1.00

Remove flag

Question text
Which of the following is the correct report that will display the CLASS from table PARTS.

Select one:
a. SELECT * CLASS FROM PARTS;
b. SELECT CLASS AS CLASS FROM PARTS;
c. SELECT 'CLASS' FROM PARTS;
d. SELECT CLASS FROM PARTS;

Question 7
Answer saved
Marked out of 1.00

Remove flag

Question text
Evaluate the following SQL command
SELECT employee_id, salary, department_id FROM employees WHERE department_id IN (60,70)
Select one:
a. The SQL command will display employees with department id 60 or 70.
b. The SQL command will give an incorrect output.
c. The SQL command will produce an error.
d. The SQL command will display employees with department id 60 and 70.

Question 8
Answer saved
Marked out of 1.00

Remove flag

Question text
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 one:
a. SELECT AVG(salary) FROM employees WHERE job_id = 'FI_ACCOUNT';
b. SELECT AVE(salary) FROM employees WHERE job_id = 'FI_ACCOUNT';
c. SELECT AVERAGE(salary) FROM employees WHERE job_id = 'FI_ACCOUNT';
d. SELECT COUNT AVG(salary) FROM employees WHERE job_id = 'FI_ACCOUNT';

Question 9
Answer saved
Marked out of 1.00

Remove flag

Question text
Evaluate the following SQL command
SELECT employee_id, min_salary, max_salary FROM employees, departments WHERE
salary>= 10000 && salary <= 20000

Select one:
a. The SQL will produce Cartesian Product
b. The SQL will display the employee id, department id and the minimum and maximum salary
whose salary is between 10000 and 20000.
c. The SQL command will give an incorrect output.
d. The SQL command will produce an error.

Question 10
Answer saved
Marked out of 1.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:
a. SELECT last_name, TO_INTEGER(salary, $999,999.99) AS "MONTHLY SALARY" FROM
employees WHERE salary < 10000 WHERE last_name IN 'D%'
b. SELECT last_name, TO_INT(salary, '$999,999.99') AS "MONTHLY SALARY" FROM
employees WHERE salary < 10,000 WHERE last_name STARTS 'D%'
c. SELECT last_name, TO_CHAR(salary, '$999,999.99') AS "MONTHLY SALARY" FROM
employees WHERE salary < 10000 WHERE last_name LIKE 'D%'
d. SELECT last_name, TO_NUMBER(salary, '$999,999.99') AS "MONTHLY SALARY" FROM
employees WHERE salary < 10,000 WHERE last_name = ‘D%’

Question 11
Answer saved
Marked out of 1.00

Flag question

Question text
Which of the following will is the correct command to create a role.

Select one:
a. CREATE ROLE gen_manager
b. None of the choices
c. GRANT ROLE gen_manager
d. CREATE gen_manager ROLE

Question 12
Answer saved
Marked out of 1.00

Flag question

Question text
What is the SQL command to display the date of the first employee that was hired?

Select one:
a. SELECT FIRST(hire_date) FROM employees;
b. SELECT hire_date FROM employees WHERE TO_CHAR(hire_date) = ‘FIRST’;
c. SELECT MIN(hire_date) FROM employees;
d. SELECT hire_date FROM employees WHERE FIRST(hire_date );

Question 13
Answer saved
Marked out of 1.00

Flag question

Question text
You want to display the employee id and the year when an employee was hired.
Which SQL statement give the required output?

Select one:
a. SELECT employee_id, YEAR(hire_date,'YYYY') FROM employees;
b. SELECT employee_id, YEAR(hire_date') FROM employees;
c. SELECT employee_id, TO_YEAR(hire_date,'YYYY') FROM employees;
d. SELECT employee_id, TO_CHAR(hire_date,'YYYY') FROM employees;

Question 14
Answer saved
Marked out of 1.00

Remove flag

Question text
Evaluate the following SQL command
SELECT employee_id, hire_date, department_name FROM employees, departments
WHERE departments.department_id = employees.department_id

Select one:
a. The SQL command will produce an error.
b. The SQL command will give an incorrect output.
c. The SQL command should have ALIAS for the table to produce a correct output.
d. The SQL command will produce a correct output.

Question 15
Answer saved
Marked out of 1.00

Remove flag

Question text
Display all the records whose stock is below 20 and in warehouse number 3.

Select one:
a. SELECT * FROM parts WHERE onhand< 20 OR warehouse = 3;
b. SELECT * FROM parts WHERE onhand> 20 OR warehouse = 3;
c. SELECT * FROM parts WHERE onhand< 20 AND warehouse = 3;
d. SELECT * FROM parts WHERE onhand<= 20 AND warehouse = 3;
e. SELECT ALL FROM parts WHERE onhand< 20 AND warehouse = 3;
f. SELECT ALL FROM parts WHERE onhand<= 20 AND warehouse = 3;

Question 16
Answer saved
Marked out of 1.00

Flag question

Question text
TRUE OR FALSE.
A FOREIGN KEY is a field in one table that refers to the PRIMARY KEY in another table.

Select one:
True
False

Question 17
Answer saved
Marked out of 1.00

Flag question

Question text
INDEX is an example of _____________________ privilege.

Select one:
a. System
b. None of the choices
c. Object
d. Data

Question 18
Answer saved
Marked out of 1.00

Flag question

Question text
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 one:
a. SELECT AVERAGE(salary) FROM employees WHERE job_id = 'IT_PROG';
b. SELECT AVE(salary) FROM employees WHERE job_id = 'IT_PROG';
c. SELECT AVG(salary) FROM employees WHERE job_id = 'IT_PROG';
d. SELECT COUNT AVG(salary) FROM employees WHERE job_id = 'IT_PROG';

Question 19
Answer saved
Marked out of 1.00
Flag question

Question text
A _______________ consists of a collection of DML statements that form a logical unit of work.

Select one:
a. All of the choices
b. Transaction
c. SQL command
d. Database

Question 20
Answer saved
Marked out of 1.00

Remove flag

Question text
Which of the following SELECT statement is the correct PL/SQL that will display all rows and
columns?

Select one:
a. SELECT TABLE PARTS;
b. SELECT FROM TABLE PARTS;
c. SELECT * FROM PARTS;
d. SELECT ALL FROM PARTS;

Question 21
Answer saved
Marked out of 1.00

Remove flag

Question text
Display all the records in the employee table. Arrange the output in by lastname from A-Z order.
Select one:
a. SELECT * FROM employees SORT BY lastname
b. SELECT * FROM employees ORDER BY lastname AZ
c. SELECT * FROM employees ORDER BY lastname
d. SELECT * FROM employees SORT BY lastname ascending

Question 22
Answer saved
Marked out of 1.00

Flag question

Question text
Austin David was transferred to Purchasing Department. You are assigned to update the database.
Which of the following SQL command will satisfy the requirements?

Select one:
a. UPDATE first_name = ‘David’ AND last_name = ‘Austin’ FROM employees SET
department_id = 30
b. UPDATE employees SET department_id = 30 WHERE first_name = ‘David’ AND last_name
= ‘Austin’
c. UPDATE department_id = 30 WHERE first_name = ‘David’ AND last_name = ‘Austin’
d. UPDATE employees WHERE department_id = 30 SET first_name = ‘David’ AND last_name
= ‘Austin’

Question 23
Answer saved
Marked out of 1.00

Flag question

Question text
The General Manager request to the Database Administrator to generate the total number of parts
and total outstanding balance on hand of every class in warehouse number 1&2.
Which of the following SQL command will generate the required output.

Select one:
a. SELECT warehouse, class, count(partnum), sum(onhand) GROUP BY warehouse,class
HAVING warehouse = 1 or warehouse = 2 FROM parts;
b. SELECT warehouse, class, count(partnum), sum(onhand) GROUP BY warehouse,class
WHERE warehouse = 1 or warehouse = 2 FROM parts;
c. SELECT warehouse, class, SUM(partnum), SUM(onhand) FROM parts GROUP BY
warehouse,class HAVING warehouse = 1 AND warehouse = 2;
d. SELECT warehouse, class, COUNT(partnum), SUM(onhand) FROM parts GROUP BY
warehouse,class HAVING warehouse = 1 OR warehouse = 2;

Question 24
Answer saved
Marked out of 1.00

Flag question

Question text
John want to know how many employees receiving salary below 10,000.
What SQL command he need to run?

Select one:
a. SELECT COUNT(salary) FROM employees WHERE salary < 10,000;
b. SELECT COUNT(*) FROM employees WHERE salary < 10000;
c. SELECT salary FROM COUNT(employees)WHERE salary < 10000;
d. SELECT COUNT(emp_id) FROM employees WHERE salary <= 10000;

Question 25
Answer saved
Marked out of 1.00

Flag question

Question text
What privileges that manipulates the content of the database objects.

Select one:
a. Object Privileges
b. Connection Privileges
c. Network Privileges
d. System Privileges
Question 26
Answer saved
Marked out of 1.00

Remove flag

Question text
Each row of data in a table can be uniquely identified by a

Select one:
a. foreign key
b. primary key
c. local key
d. relational key
e. index key

Question 27
Answer saved
Marked out of 1.00

Flag question

Question text
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 one:
a. SELECT job_title FROM employees WHERE salary >= 5000 AND salary <= 10000
b. SELECT employees_id, job_title FROM employees WHERE salary >= 5000 AND salary <=
10000
c. SELECT job_title FROM jobs WHERE salary >= 5000 AND salary <= 10000
d. SELECT job_title FROM jobs WHERE min_salary >= 5000 AND max_salary<= 10000

Question 28
Answer saved
Marked out of 1.00
Remove flag

Question text
Display all location id between 1000 to 2000.

Select one:
a. DISPLAY location_id FROM departments WHERE location_id LING 1000 UP TO 2000
b. SELECT location_id FROM departments WHERE location_id IN 1000 AND 2000
c. DISPLAY location_id FROM departments WHERE location_id BETWEEN 1000 TO 2000
d. SELECT location_id FROM departments WHERE location_id BETWEEN 1000 AND 2000

Question 29
Answer saved
Marked out of 1.00

Flag question

Question text
You want to display the employee's last name and date hired in year 2002 whose salary is above
5000.
Which SQL statement give the required output?

Select one:
a. 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-2002', 'DD-Mon-YYYY')AND salary
ABOVE 5000;
b. 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;
c. SELECT last_name, hire_date FROM employees WHERE hire_date >= TO_DATE('2000',
'YYYY') AND hire_date <= TO_DATE('2002', 'YYYY') OR salary > 5000;
d. SELECT last_name, hire_date FROM employees WHERE hire_date >= TO_DATE('Jan-
2000', 'Month-YYYY') AND hire_date <= TO_DATE('Dec-2002', 'Month-‘YYYY') AND salary > 5,000;

Question 30
Answer saved
Marked out of 1.00
Flag question

Question text
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 one:
a. SELECT partnum, price, price * 0.1 FROM parts WHERE warehouse = 3
b. SELECT partnum, price, price * 10% FROM parts WHERE warehouse = 3
c. SELECT partnum, price, price * 1.1 FROM parts WHERE warehouse = 3
d. SELECT partnum, price, price * 1.10% FROM parts WHERE warehouse = 3

Question 31
Answer saved
Marked out of 1.00

Remove flag

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 give the required output?

Select one:
a. 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;
b. SELECT last_name, hire_date FROM employees WHERE hire_date>=
TO_DATE('01-Jan-2006', 'DD-Mon-RR') AND hire_date<= TO_DATE('31-Dec-2006', 'DD-Mon-RR')
AND salary > 5000;
c. SELECT last_name, hire_date FROM employees WHERE hire_date>=
TO_DATE('Jan-2000', 'Month-YYYY') AND hire_date<= TO_DATE('Dec-2006', 'Month-‘YYYY') AND
salary > 5,000;
d. SELECT last_name, hire_date FROM employees WHERE hire_date>=
TO_DATE('2000', 'YYYY') AND hire_date<= TO_DATE('2006', 'YYYY') OR salary > 5000;

Question 32
Answer saved
Marked out of 1.00
Remove flag

Question text
Which of the following SQL commands will display all the stocks on hand from 10 to 30?

Select one:
a. SELECT * FROM parts WHERE BETWEEN onhand = 10 AND onhand = 30;
b. SELECT * FROM parts WHERE onhand BETWEEN 10 to 30;
c. SELECT * FROM onhand WHERE parts BETWEEN onhand = 10 AND onhand = 30;
d. SELECT * FROM parts WHERE onhand BETWEEN 10 AND 30;
e. SELECT * FROM parts WHERE BETWEEN onhand>=10 to onhand<=30;

Question 33
Answer saved
Marked out of 1.00

Flag question

Question text
ANSI SQL commands cannot be abbreviated.

Select one:
True
False

Question 34
Answer saved
Marked out of 1.00

Remove flag

Question text
Display the lastname of every employee in the company. Display the output in a single column and
label it as Fullname
Format: JuanReyes
Select one:
a. SELECT CONCATENATE(first_name, last_name) AS Fullname FROM employees
b. None of the choices
c. SELECT CONCAT(first_name, last_name) FROM employees
d. SELECT CONCAT(first_name, last_name) AS Fullname FROM employees

Question 35
Answer saved
Marked out of 1.00

Remove flag

Question text
Evaluate the following SQL command
SELECT * FROM jobs WHERE job_title LIKE 'Manager%'

Select one:
a. The SQL command will display all records in the database
b. The SQL command will display all employees with Manager position
c. No records will be displayed
d. The SQL command will produce an error.

Question 36
Answer saved
Marked out of 1.00

Flag question

Question text
Aldrin wants to know the highest salary in every department. Which of the following SQL command
will display the required output?

Select one:
a. SELECT department_id, HIGH(salary) FROM employees GROUP BY department_id AND
salary;
b. SELECT department_id, HIGHEST(salary) FROM employees GROUP BY salary;
c. SELECT department_id, MAX(salary) FROM employees GROUP BY department_id
d. SELECT department_id, MAXIMUM(salary) FROM employees GROUP BY department_id;
Question 37
Answer saved
Marked out of 1.00

Remove flag

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:
a. SELECT employee_id, hire_date, TO_MONTH(hire_date,'Month') AS "Hired Month", job_id
FROM employees
b. SELECT employee_id, hire_date, TO_DATE(hire_date,'Month') AS "Hired Month", job_id
FROM
c. SELECT employee_id, hire_date, MONTH(hire_date,'Month') AS "Hired Month", job_id FROM
employees
d. SELECT employee_id, hire_date, TO_CHAR(hire_date,'Month') AS "Hired Month", job_id
FROM employees

Question 38
Answer saved
Marked out of 1.00

Flag question

Question text
Which of the following describes the command below?
SELECT * FROM employees WHERE department = 60 FOR UPDATE

Select one:
a. Locks the rows in the EMPLOYEES table with department id is 60.
b. Unlock all records with department id = 60
c. All users accessing the department id 60 can accept UPDATE command simultaneously.
d. Creates a temporary table with department = 60

Question 39
Answer saved
Marked out of 1.00
Flag question

Question text
Display the employee id, number of years and the hiring date of every employee in the company.

Select one:
a. SELECT employee_id, hire_date, ROUND((SYSDATE - hire_date),0 /365,0) FROM
employees;
b. SELECT employee_id, hire_date, ROUND((SYSDATE - hire_date) /365,0) FROM employees;
c. SELECT employee_id, hire_date, hire_date /365 FROM employees;
d. SELECT employee_id, hire_date, hire_date- SYSDATE /365 FROM employees;

Question 40
Answer saved
Marked out of 1.00

Flag question

Question text
The DBA will create a new user name sales.
Which of the following SQL command will perform the creation?

Select one:
a. CREATE USER FR0M DB_USER SET user=’sales’ password=NULL
b. None of the choices
c. CREATE USERNAME sales SET PASSWORD default
d. CREATE sales ACCESS 1234
e. CREATE USER sales IDENTIFIED BY 1234

Question 41
Answer saved
Marked out of 1.00

Flag question
Question text
Which of the following SQL command will display the summary table showing the total quantity on
hand per class.

Select one:
a. SELECT class, TOTAL(onhand) AS "QTY ON HAND" FROM parts GROUP BY class, onhand
b. SELECT class, onhand AS "QTY ON HAND" FROM parts GROUP BY sum(onhand)
c. SELECT class, sum(onhand) AS "QTY ON HAND" FROM parts GROUP BY onhand
d. SELECT class, sum(onhand) AS "QTY ON HAND" FROM parts GROUP BY class

Question 42
Answer saved
Marked out of 1.00

Remove flag

Question text
Display the first 5 letter in the surname of all the employees whose firstname starts with letter 'N'

Select one:
a. SELECT SUBSTR(last_name,1,5), first_name FROM employees WHERE
SUBSTR(first_name,1,1) IN 'N'
b. SELECT SUBSTR(last_name,1,5), first_name FROM employees WHERE
SUBSTR(first_name,1,1) = 'N'
c. SELECT SUBSTR(surname,1,5), first_name FROM employees WHERE first_name = 'N'
d. SELECT SUBSTR(surname,1,5), first_name FROM employees WHERE
SUBSTR(first_name,1,1) IN 'N'
e. SELECT SUBSTR(last_name,1,5), first_name FROM employees WHERE first_name IN 'N'

Question 43
Answer saved
Marked out of 1.00

Flag question

Question text
Display the employee id, salary, number of years and the hiring date of every employee in the
company.
Select one:
a. SELECT employee_id,salary, hire_date, hire_date- SYSDATE /365 FROM employees;
b. SELECT employee_id, salary, hire_date, hire_date /365 FROM employees;
c. SELECT employee_id, salary, hire_date, ROUND((SYSDATE - hire_date) /365,0) FROM
employees;

Question 44
Answer saved
Marked out of 1.00

Flag question

Question text
True or False. The AND, OR, NOT are comparison operators.

Select one:
True
False

Question 45
Answer saved
Marked out of 1.00

Flag question

Question text
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 one:
a. SELECT employee_id, hire_date, MONTH(hire_date,'Month') AS "Hired Month",
job_id FROM employees WHERE job_id EXCLUDE ('AD_VP');
b. SELECT employee_id, hire_date, TO_CHAR(hire_date,'Month') AS "Hired Month", job_id
FROM employees WHERE job_id NOT IN ('AD_VP');
c. SELECT employee_id, hire_date, TO_MONTH(hire_date,'Month') AS "Hired Month", job_id
FROM employees WHERE job_id NOT ('AD_VP');
d. SELECT employee_id, hire_date, TO_DATE(hire_date,'Month') AS "Hired Month", job_id
FROM employees WHERE job_id NOT = 'AD_VP';
Question 46
Answer saved
Marked out of 1.00

Remove flag

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:
a. SELECT employees FROM employee_id, first_name, last_name WHERE first_name LIKE
‘D%’ and job_id = ‘IT_PROG’ ORDER BY department_id
b. SELECT employee_id, first_name, last_name FROM employees WHERE job_id = 'IT_PROG'
OR first_name LIKE 'D%' and ORDER BY department_id
c. SELECT employee_id, first_name, last_name FROM employees ORDER BY department_id
WHERE first_name LIKE 'D%' and job_id = 'IT_PROG'
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 47
Answer saved
Marked out of 1.00

Flag question

Question text
TRUE OR FALSE.
An owner has all the privileges on the object.

Select one:
True
False

Question 48
Answer saved
Marked out of 1.00
Flag question

Question text
You want to generate the total salary per month of every department in the company.

Select one:
a. SELECT department_id, SUM(salary) FROM employees GROUP BY department_id
b. SELECT department_id, salary FROM employees ORDER BY SUM(salary)
c. SELECT department_id, salary FROM employees GROUP BY SUM(salary) ORDER BY
department_id
d. SELECT department_id, TOTAL(salary) FROM employees GROUP BY department_id

Question 49
Answer saved
Marked out of 1.00

Flag question

Question text
Which of the following SQL commands will display all stocks whose class is HW or AP.

Select one:
a. SELECT * FROM parts WHERE IN (class = ‘HW’, class= ‘AP’);
b. SELECT ALL FROM class WHERE parts IN = (‘HW’, ‘AP’);
c. SELECT * FROM parts WHERE IN class ('HW', 'AP');
d. SELECT ALL FROM parts WHERE IN class = (‘HW’, ‘AP’);
e. SELECT * FROM parts WHERE class IN ('HW', 'AP');

Question 50
Answer saved
Marked out of 1.00

Flag question

Question text
What is the SQL command to count the number of records in the employees table?

Select one:
a. SELECT ALL FROM employees
b. SELECT * FROM employees;
c. SELECT COUNT(*) FROM employees
d. SELECT SUM(*) FROM employees;
AMALEAKS.BLOGSPOT.COM
PROG-3114 GRADE 12

LONG QUIZ NO. 4

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 – like additional characters and skills.”
ANSWER: 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
6. Kyoto protocol addresses environmental issues through the campaign of
____________________.
ANSWER: reducing greenhouse gas emissions

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
9. ____________________ is when you conduct regular audits and inspections to evaluate your
work performance.
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 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.
“One good thing I find with XYZ as when my laptop shuts down accidentally, my game score and
status can still be recovered. No need to repeat a level.”
ANSWER: Reliability
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

17. 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.
“I find it really enjoying to play XYZ since I can invite my friends from social media profile. It works
well with this social media app!”
ANSWER: Compatibility
18. 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.
“XYZ is so cool! I tried to install it in my old computer and it still runs smoothly. Given that the
computer’s video card is a bit faulty.“
ANSWER: Reliability

19. ____________________ is setting the best practices in the workplace as your work standards.
ANSWER: Seiketsu
20. The 5S Method is a Japanese perspective technique developed by Eiichiro Oda.
ANSWER: FALSER

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
28. Montreal protocol protects the ozone layer by ____________________.
ANSWER: phasing out harmful substances
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
LONG QUIZ NO. 6
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?

ANSWER: display Overweight


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
10. Java is an example of
ANSWER: HIGH-LEVEL LANGUAGE

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
13. He is known as the father of the Java programming language.

ANSWER: JAMES GOSLING


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
interpreters or compilers.
ANSWER: TRUE
17. was the first language implemented for BINAC.

ANSWER: Short Code


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?
ANSWER: ASK FOR HEIGHT

22. A_________is the code or language that allows a user to instruct a computer to perform specific
tasks.
ANSWER: Programming Language
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
26. Who is considered as a user (component of an operating system)?

ANSWER: ALL OF THE CHOICES


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
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
Question text
True or False: Operators, in Java programming language, use special symbols to call methods and their
objects.
Answer:
False
Question text
Read each statement carefully and decide whether it’s TRUE or FALSE.
There are no errors in the program.
Select one:
False
Question text
Refer to the block of codes below. Read each statement carefully and decide whether it’s TRUE or FALSE.
Line 9 uses a traditional comment which uses double forward slash.
Answer: False
Question text
True or False: Many programmers can be literate with Java programming language for it is intended to be that
way.
Answer:
True
Question text
True or False: You’ll know there’s an error if you see a red circle with an exclamation point in Netbeans IDE.
Answer:
True
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 = (x = 100) >= z;
Select one:
True
The file is accurately named – Students.java.
-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.
-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
The last line of code will output 100.0.
-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
There are keywords found in line 7.
-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 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.
-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

Substrings can contain 1 or 2 arguments.


-true
Determine the output.

-bar

The index of the letter “y” in string “Doggy” is 5.


-False
Determine the output.
-foo
TRUE OR FALSE: The value “val_3” is a white space “ “.
-False
True or False: Variable 1st_num is a good variable name in Java programming.
-False

TRUE OR FALSE: “val_2” contains “The”


-True
True or False: Instance variables are declared inside a method but outside a class.
-False
True or False: Variable names in Java are not necessarily case sensitive.
-False
Determine the output

-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
result = !((x * 10) < z);
-False

result = -(-z) == 43;


-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
x += x;
result = x == 154;
-False
The second line 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
A string can contain numbers.
-True

TRUE OR FALSE: This is an example of concatenation.


-True

TRUE OR FALSE: The value of “val_4” is “fox”


-False
TRUE OR FALSE: “val_2” contains “The”.
-True
Determine the output.
-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

Strings can be declared with str.


-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
Among the expressions below which is a statement?
-True

Expressions can be long and complex.


-true
number++; is an expression
-true

For-loops has a set number of iterations before starting.


-True
The equals( ) method can compare more than 2 arrays.
-False
While loops can use Booleans at test expressions.
-True
The test expression of the if statement is _______
-less than or equal to
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
x+1 is example of a statement.
-False
number++; is a block
-False

Arrays are
-Integers
The operator “new” allocates a memory block the size of what is declared.
-true
A class block can be an expression
-False
Statements can be expressions.
-False

Integer arrays can be populated with characters.


-False
Declaration clauses are declared as “number + 1”.
-False

Loops can be stopped with a break; statement.


-True
The equivalent of Paragraphs in coding is?
-Expressions
If statements cannot be nested in switches
-true
The length( ) method returns the size (number of indices) has.
-True
When polymorphism is used, the Java object can only take one form. Subclasses should have the
same function with the parent class.
-False
Arrays can contain (Answer) number of elements.
-Any
“||” and “&&” can be used in conditional statements.
-True
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
Expressions can be statements.
-True
Blocks can contain more blocks of code.
-True
If-else statements can be nested in?
-All of the choices
Statements are equivalent to paragraphs.
-False

A (answer) array is an array containing true or false values.


-boolean
Switches are always used with if-else statements
-False
True or False: The modulus operator returns the remainder of a division operation instead of the
quotient.
-true
Determine the output.
String val_1 = “564298”;

-5698
Determine the output.
String val_1 = “35”;
-4
The return value of the length( ) method is an integer
-true
A superclass is also known as a parent class.
-true
For-loops can be nested in while loops.
-true
In instantiating an object, the keyword instance is used.
-False
Object oriented programming utilizes the top down method
-False
Expressions are like clauses.
-true
The sort( ) method is always ascending.
-true
Arrays are data types.
-False
Variables must be declared as (Answer) for it to be fully hidden.

-private
While statements check the test expression at the end.
-False
The else statement can be used alone.
-False
The fill( ) method (Answer) the array with specific values.
-Fills
The output of println is

-55555
The person’s weight is declared correctly with the correct data type (byte) and value (160).
-FALSE

Determine the output.


String val_1 = “foo”
String val_2 = “bar”

val_2 = val_1;
val_1 = val_3;
System.out.println(val_1);
-bar
Determine the output.
String val_1 = “foo”
String val_2 = “bar”
val_2 = val_1;

val_1 = val_3;
System.out.println(val_2);
-foo
Switches can work properly even without the “break” expression.
-True
Blocks can be one liner or huge classes.
-True
The test expressions in conditional statements can be left empty.
-False
Abstraction works by hiding the implementation details and showing only the functions necessary.
-True
A single array can hold multiple data types
-False
A polymorphic object can pass more than one Is-a test.
-True
Another loop can be used as test expression.
-False
True or False: Public, static and void are sample of Java reserved keywords.
-True

The value of “pStr” in line 24 is


-True
The default syntax of a constructor is <class_name>(parameter, parameter){ }
-False

A nested class is not an inner class.


-False
Nested classes causes them to become abstracted
-False
A nested class is also called
-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
A constructor can only have 1-2 overloads or parameters.
-False
All possible data types of an array can be retuned as a string by the toString( ) method.
-True
Abstracted classes can contain 1 or more abstract methods.
-True
Abstraction shows the every bit of detail and implementation on how an application does something.
-False
Initialization is a process where the constructor is called for.
-True

The default syntax of a constructor is <class_name>( ){ }


-True
Classes cannot be nested.
-False

Abstract classes cannot have nested classes.


-False
The parent class of a nested class is called an outer class
-True

An inner class can be constructed directly without reference to the outer class.
-False
Arrays can be read backwards
-True

A single array can hold


-One data type
Abstracted methods already have implementations inside.
-False
are special methods to initialize objects.
-constructors
Constructors have 3 basic rules to follow.
-False
Nesting classes increases encapsulation.
-True

Each index can only contain (Answer) element.


-one
The sort( ) method can be set to sort only a part of an array.
-False

Subclasses or child classes could have different behaviors but still share the same functions from
their parent class.
-True

Abstract methods must have an explicit return value


-False
An abstract class must not contain abstract methods.
-False
Abstracted classes can be nested.
-True
A subclass constructor cannot invoke a superclass constructor.
-False
A class acquiring fields and methods of another class is called inheritance.
-True
Parallelsorting utilizes

-More cpu processing cores


method can copy one array to another.
-arraycopy

SHORT QUIZ PROG 111- PROG111 - Programming (Java) NC II Part 1


SHORT QUIZ 8.
1. The 5s method is based on the ____________________.
ANSWER: Toyota Production Sytem
2. Environmental issues have no relation to the workplace
ANSWER: FALSE
3. Protecting the environment and natural resources also means protecting
stable employment.
ANSWER: TRUE
4. In the 5S method, this stage refers to arranging items in a way that they are
easy to find and pick up.
ANSWER: SEITON
5. Seiso refers to cleaning your workplace on a regular basis.
ANSWER: TRUE
6. Humans rely on natural resources for survival.
ANSWER: TRUE
7. These are developed by industries as a guide for establishments and
business enterprises to conduct their operations in a way that prevents or
reduces environmental harm.
ANSWER: Environmental codes of practice
8. Business industries will not be affected by the environmental crisis.
ANSWER: FALSE
9. Presidential Decree No. 856, one of the Philippine environmental laws, is
also known as ____________________.
ANSWER: Code on Sanitation of the Philippines
10. The protection of the natural resources is possible through the collective
efforts of each group in the society.
ANSWER: TRUE
SHORT QUIZ 9
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.
“Thanks to XYZ, I can baby sit my little brother. It’s so easy to use that a 5-year
old can play it as well.”
ANSWER: Usability
2. Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s
product quality model and write the letter that corresponds 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
the ISO/IEC 25010:2011. Read their feedback below and decide which product
quality attribute is being described.
“XYZ is so cool I can play it with my phone, laptop, Xbox and PS4!”
ANSWER: Portability
7. 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.
“Finally we can play XYZ! Surprising enough, all features and functions are
present. It has all the controls a gamer needs.”
ANSWER: Functional Stability
8. Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s
product quality model and write the letter that corresponds 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
2. Ctrl + S is the shortcut key for Save while Ctrl + S + A is the shortcut key for
Save As.
ANSWER: FALSE
3. The earphones is an example of a _______________, while Internet Explorer is
an example of _______________.
ANSWER: peripheral device, application program
4. I’ve purchased a modern gaming mouse but it doesn’t have a PS/2 plug.
Where I connect it?
ANSWER: D
5. Arlan right clicked on his taskbar and unchecked the Lock Taskbar. What
will happen if he drags his taskbar to the right side of his screen?
ANSWER: Taskbar will display vertically at the right.
6. Something’s wrong with the serial port. Which port should I investigate?
ANSWER: C
7. Windows is to Personal Computer (PC) while Mac OSX is to Mac laptops and
computers.
ANSWER: TRUE
8. An operating system has three major components – hardware, application
program or software and the user.
ANSWER: FALSE
9. Which of the following is not a default margin options when setting up the
page for printing?
ANSWER: REGULAR
10. If you are confused on what to do, press F2 on your keyboard and the
Windows Help feature will open.
ANSWER: FALSE

SHORT QUIZ 11
1. This type of programming language uses series of 0s and 1s to represent
data.
ANSWER: Machine language
2. C++, an extension of the C language, introduced object-oriented
programming.
ANSWER: True
3. C# has features that are directly based on the Short Code.
ANSWER: FALSE
4. COBOL stands for Convenient Business Oriented Language.
ANSWER: FALSE
5. Which of the following statements is TRUE?
ANSWER: A programming language may have its own area of
specialization.

6. Using the language, you can write windowed applications, build


databases, as well as control handheld devices.
ANSWER: Java

7. is the father of computer.


ANSWER: CHARLES BABBAGE
8. Since natural languages are vaguely structured, they cannot be used for
programming.
ANSWER: TRUE
9. COBOL is the programming language ideally used for _________________________
purposes.
ANSWER: Business
10. PASCAL is an example of a low-level language.
ANSWER: FALSE

SHORT QUIZ 12
1. Refer to the image below to answer the following question. What happens
every time the given username and password is incorrect?
ANSWER: 1 IS ADDED TO THE LIMIT
2. Refer to the image below to answer the following question. What symbol is
used to begin and end the program?
ANSWER: Terminal
3. Observe the names of the following variables and routines and decide
whether its format is CORRECT or WRONG. limitIsReached for a Boolean
variable.
ANSWER: CORRECT
4. Refer to the image below to answer the following question. When will the
program end?
ANSWER: When home page is loaded.
5. Jet is writing the pseudocode for his program. Which phase of program
development life cycle is he in?
ANSWER: Design the Program.
6. Ana is working on a new project and she was asking for the program’s
purpose, processes, algorithm, restrictions and some notes. According to the
program development life cycle, in which phase is Ana working on?
ANSWER: ANALYZE THE PROBLEM
7. Observe the names of the following variables and routines and decide
whether its format is CORRECT or WRONG.
ContactNumber for a column name in the table “Student”.
ANSWER: CORRECT
8. Observe the names of the following variables and routines and decide
whether its format is CORRECT or WRONG.
PresentAdress for a column name in the table “Student”
ANSWER: WRONG
9. Refer to the image below to answer the following question. What will
happen if the username is incorrect but the password given is correct?
ANSWER: 3
10. Refer to the image below to answer the following question. What happens
when Limit is equal to 3?
ANSWER: Program goes back to login page

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
Enforcing environmental policies is one of the major causes of job loss and
unemployment. - False
True or False: Dates in file names should be written in YYYY-MM-DD format. - False
Big business companies are the only ones responsible for enforcing environmental
policies since they can afford alternative cleaner technology. - False
Pre-review activities in the review process includes review planning, preparation and
individual review. - true
Increase work productivity by arranging items in such a way that they are easy to find
and pick up. - true
Montreal protocol protects the ozone layer by ____________________. - phasing out
harmful substances
Business industries will not be affected by the environmental crisis. - False
True or False: Protocols are set of standards rules which describes how something
should be done and different companies have different protocols as well. - true
Presidential Decree No. 856 is an international treaty that imposes limitations on the
greenhouse gas emissions of several countries. - True
True or False: Organizational aims are different from the mission statement; they refer
to the results an organization is aspiring for. - true
The cost / benefit analysis document is appropriately named. - False
A printed progress report to be submitted to the adviser. - purpose
True or False: Statutory requirements are identified by the vendors or suppliers and
they include value, stability, diversity and capacity. - False
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. - False
Identify whether the statement is a strength, weakness, opportunity or threat: The
student record system could be used by other schools other than Ricka’s school. -
opportunity
True or False: Reviewing the related literature includes review of concepts, theories and
previous research findings. - true
Companies can freely make their own set of environmental policies without consulting
the workers’ union, or any local or national laws about it. - False
Kyoto protocol addresses environmental issues through the campaign of
____________________. - reducing greenhouse gas emissions
Humans rely on natural resources for survival. - true
Quantitative research, compared to qualitative research, uses measurable - Data
ISO/IEC 25010:2011’s product quality model has eight (8) major characteristics. - true
True or False: Usually, the summary of the report is the first thing that’s being read. -
true
____________________ is when you conduct regular audits and inspections to
evaluate your work performance. - Shitsuke
“XYZ is so cool! I tried to install it in my old computer and it still runs smoothly. Given
that the computer’s video card is a bit faulty.“ - Reliability
True or False: There are five main elements of a written report – topic, style, structure,
facts and contents. - false
True or False: To gather data, you can either conduct an interview, survey, observation,
mail questionnaire, coding and tabulation. - false

LONG QUIZ PROG-111

LONG QUIZ NO. 4

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 – like additional characters and skills.”
ANSWER: 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
6. Kyoto protocol addresses environmental issues through the campaign of
____________________.
ANSWER: reducing greenhouse gas emissions
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
9. ____________________ is when you conduct regular audits and inspections to evaluate your
work performance.
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 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.
“One good thing I find with XYZ as when my laptop shuts down accidentally, my game score and
status can still be recovered. No need to repeat a level.”
ANSWER: Reliability
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
17. 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.
“I find it really enjoying to play XYZ since I can invite my friends from social media profile. It works
well with this social media app!”
ANSWER: Compatibility
18. 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.
“XYZ is so cool! I tried to install it in my old computer and it still runs smoothly. Given that the
computer’s video card is a bit faulty.“

ANSWER: Reliability

19. ____________________ is setting the best practices in the workplace as your work standards.
ANSWER: Seiketsu

20. The 5S Method is a Japanese perspective technique developed by Eiichiro Oda.


ANSWER: FALSER
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
28. Montreal protocol protects the ozone layer by ____________________.
ANSWER: phasing out harmful substances
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
LONG QUIZ NO. 6
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?
ANSWER: display Overweight
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
10. Java is an example of
ANSWER: HIGH-LEVEL LANGUAGE

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
13. He is known as the father of the Java programming language.
ANSWER: JAMES GOSLING

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
interpreters or compilers.
ANSWER: TRUE
17. was the first language implemented for BINAC.

ANSWER: Short Code


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?
ANSWER: ASK FOR HEIGHT
22. A_________is the code or language that allows a user to instruct a computer to perform specific
tasks.
ANSWER: Programming Language
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
26. Who is considered as a user (component of an operating system)?
ANSWER: ALL OF THE CHOICES
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

PROG-113A / ► Week 18: Designing PL/SQL / ► Short Quiz 14


Which of the following is the syntax to open a cursor varial
Answer: OPEN cursor_variable_name
FOR select_statement;
Which of the following is the syntax to define a REF CURSOR type?
Answer: TYPE ref_type_name IS REF CURSOR
[RETURN return_type];
Weak REF CURSOR is very flexible.
Answer: True
Evaluate the following. What will be the output?
DECLARE
SUBTYPE Accumulator IS NUMBER (4,2);
v_amount accumulator;
v_num1 NUMBER;
v_num2 NUMBER;
v_num3 NUMBER;
BEGIN
v_amount := 10.50;
v_num1 := 1;
v_num2 := 2;
v_num3 := 3;
v_num1 := v_amount;
v_num2 := v_num1 + v_amount;
v_num2 := v_num2 - v_num3;
dbms_output.put_line('Total is: ' || v_num2);
END;
Answer: 18
Which of the following is the syntax to fetch from a cursor variable?
Answer: FETCH cursor_variable_name INTO variable_name1
[,variable_name2,. . .] | record_name;
Fetch into a record when fetching from a cursor.
Answer: True
Which of the following is the syntax to close a cursor?
Answer: CLOSE cursor_variable_name;
This is a subset of an existing data type that may place a constraint on its base type.
Answer: Subtype
Which of the following rules is INCORRECT about cursor variables?
Answer: None of the choices.
Use column aliases in cursors for calculated columns fetched into records declared with %COLUMNTYPE.
Answer: False

PROG-113A / ► Week 18: Designing PL/SQL / ► Learning Activity 14

Which of the following rules is INCORRECT about cursor variables?


Answer: None of the choices.
Which of the following describes weak REF CURSOR?
Answer: Associates with any query
Restrictive, specifies a RETURN type, associates only with type-compatible queries are
description of a ________________.
Answer: Strong REF CURSOR
Which of the following is INCORRECT about the guidelines for cursor design?
Answer: Use column aliases in cursors for calculated columns fetched into records declared with
%COLUMNTYPE.
This is a subset of an existing data type that may place a constraint on its base type.
Answer: Subtype

PROG-113A / ► Week 17: / ► Short Quiz 13


Evaluate the following PL/SQL.
CREATE OR REPLACE PROCEDURE query_employee
(p_id IN employees.employee_id%TYPE,
p_name OUT employees.last_name%TYPE,
p_salary OUT employees.salary%TYPE) IS
BEGIN SELECT last_name, salary INTO p_name, p_salary
FROM employeesWHERE employee_id = p_id;
END query_employee
Answer: No error
Evaluate the following PL/SQL. Which of the following will line creates an error?
CREATE OR REPLACE PROCEDURE query_emp
(
p_department_id IN employees.department_id%TYPE,
p_name OUT employees.last_name%TYPE,
p_salary OUT employees.salary%TYPE
)
IS
BEGIN
SELECT last_name, salary, department_id INTO p_name, p_salary, p_department_id
FROM employees
WHERE salary >= p_salary AND department_id = p_department_id ;
END query_emp;
Answer: Line 3
These are local variables declared in the parameter list of a subprogram specification.
Answer: Formal parameter
Given the answer in item __________, which of the folllowing stored procedure will display the
employee id and salary of Steven King?
Answer: DECLARE
v_employee_id employees.employee_id%TYPE;
v_emp_sal employees.salary%TYPE;
BEGIN
query_emp('King', 'Steven', v_employee_id, v_emp_sal);
DBMS_OUTPUT.PUT_LINE('Employee ID ' || v_employee_id ||' earns '|| to_char(v_emp_sal,
'$999,999.00'));
END;

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

PROG-113A / ► Week 16: Creating Procedures / ► Learning Activity 13


Procedure can be stored in the database as a schema object.
Answer: True
The PL/SQL code block helps modularize code by using:
Answer: All of the choices
Which of the following command is used to create a stand-alone procedure that is stored in the Oracle
database?
Answer: CREATE PROCEDURE
Which of the folllowing 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
Answer: iii & v
Which if the following is NOT a benefits of using modular program constructs?
Answer: None of the choices

PROG-113A / ► Week 18: Designing PL/SQL / ► Short Quiz 14


Which of the following is the syntax to open a cursor varial
Answer: OPEN cursor_variable_name
FOR select_statement;
Which of the following is the syntax to define a REF CURSOR type?
Answer: TYPE ref_type_name IS REF CURSOR
[RETURN return_type];
Weak REF CURSOR is very flexible.
Answer: True
Evaluate the following. What will be the output?
DECLARE
SUBTYPE Accumulator IS NUMBER (4,2);
v_amount accumulator;
v_num1 NUMBER;
v_num2 NUMBER;
v_num3 NUMBER;
BEGIN
v_amount := 10.50;
v_num1 := 1;
v_num2 := 2;
v_num3 := 3;
v_num1 := v_amount;
v_num2 := v_num1 + v_amount;
v_num2 := v_num2 - v_num3;
dbms_output.put_line('Total is: ' || v_num2);
END;
Answer: 18
Which of the following is the syntax to fetch from a cursor variable?
Answer: FETCH cursor_variable_name INTO variable_name1
[,variable_name2,. . .] | record_name;
Fetch into a record when fetching from a cursor.
Answer: True
Which of the following is the syntax to close a cursor?
Answer: CLOSE cursor_variable_name;
This is a subset of an existing data type that may place a constraint on its base type.
Answer: Subtype
Which of the following rules is INCORRECT about cursor variables?
Answer: None of the choices.
Use column aliases in cursors for calculated columns fetched into records declared with %COLUMNTYPE.
Answer: False

PROG-113A / ► Week 18: Designing PL/SQL / ► Learning Activity 14

Which of the following rules is INCORRECT about cursor variables?


Answer: None of the choices.
Which of the following describes weak REF CURSOR?
Answer: Associates with any query
Restrictive, specifies a RETURN type, associates only with type-compatible queries are
description of a ________________.
Answer: Strong REF CURSOR
Which of the following is INCORRECT about the guidelines for cursor design?
Answer: Use column aliases in cursors for calculated columns fetched into records declared with
%COLUMNTYPE.
This is a subset of an existing data type that may place a constraint on its base type.
Answer: Subtype

PROG-113A / ► Week 15: Long Quiz / ► Long Quiz 3 (30/30)


(Correction)
How do you test the output of a PL/SQL block?
Answer: Use a predefined Oracle package and its procedure
Which of the folllowing statement describes PL/SQL?
Answer: PL/SQL is an Oracle proprietary, procedural, 3GL programming language
Which of the following syntax to declare EXCEPTION named e_invalid_id?
Answer: e_invalid_id EXCEPTION;
In PL/SQL Block Structure, which of the following are mandatory?
Answer: BEGIN and END
This is a type of cursor which is created and managed internally by the Oracle server to process
SQL statements
Answer: Implicit
PL/SQL stands for
Answer: Procedural Language extension to SQL
Which of the following PL/SQL will execute successfully?
Answer: DECLARE
v_salary INTEGER(20);
BEGIN
SELECT salary INTO v_salary FROM employees WHERE employee_id = 150;
END;
What is the last clause in trapping exceptions?
Answer: WHEN OTHERS
PL/SQL Provides a block structure for executable units of ________________.
Answer: Code
Evaluate the following PL/SQL.
DECLARE
v_email VARCHAR(20);
BEGIN
SELECT email INTO v_email FROM EMPLOYEES WHERE email like 'D%';
DBMS_OUTPUT.PUT_LINE ('Employees whose email address starts with letter D :'
|| v_email);
EXCEPTION
WHEN TOO_MANY_ROWS THEN
DBMS_OUTPUT.PUT_LINE (' Your select statement retrieved multiple rows.');
END;
Answer: The PL/SQL block will run successfully.
Which of the folllowing is TRUE?
Answer: SQL code are embedded within PL/SQL statements
You can trap any error by including a corresponding handler within the exception-handling
section of the PL/SQL block.
Answer: True
When an exception is user defined, the exception is raised ____________ .
Answer: Explicitly
Evaluate the PL/SQL
DECLARE
v_first_name VARCHAR2(50);
v_last_name VARCHAR2(50);
v_salary INTEGER(20);
BEGIN
SELECT first_name, last_name, salary INTO v_first_name, v_last_name, v_salary FROM
employees WHERE department_id = 60;
DBMS_OUTPUT.PUT_LINE('Firstname : '|| v_first_name);
DBMS_OUTPUT.PUT_LINE('Lastname : '|| v_last_name);
DBMS_OUTPUT.PUT_LINE('Salary : '|| v_salary);
END;
Answer: Error in Line 6.
Evaluate the following PL/SQL.
DECLARE
v_employee_id employees.employee_id%TYPE := 114;
BEGIN
DELETE employees WHERE employee_id = v_employee_id;
END;
Answer: The PL/SQL will delete employee number 114.
Which of the following does NOT describes SELECT Statement in a PL/SQL.
Answer: Queries must return only one column.
What are the three PL/SQL block types?
Answer: Anonymous, Procedure, Function
What is the exception name when PL/SQL has an internal problem
Answer: PROGRAM_ERROR
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?
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;
What is the error trapping function that returns the numeric value of the error code?
Answer: SQLCODE
What is the exception name when single row SELECT returned no data.
Answer: NO_DATA_FOUND
Which of the following DOES NOT describes an exception?
Answer: Exception is a PL/SQL error that is raised before program execution.
Evaluate the following PL/SQL.
DECLARE
v_employee_id employees.employee_id%TYPE := 114;
BEGIN
DELETE employees WHERE employee_id = v_employee_id;
END;
Answer: The PL/SQL will delete employee number 114.
In the DECLARE section of the PL/SQL block,
Answer: All of the choices
When an exception is predefined by Oracle server, the exception is raised ____________ .
Answer: Explicitly
Which of the will display the Employee ID and number of years in service with employee ID
150?
Answer: DECLARE
v_salaryemployees.salary%TYPE := 10000;
v_employee_idemployees.employee_id%TYPE := 150;
v_years INTEGER(10);
BEGIN
SELECT employee_id, ROUND((SYSDATE - hire_date) /365,0) INTO v_employee_id, v_years
FROM employees WHERE employee_id = v_employee_id ;
DBMS_OUTPUT.PUT_LINE('Employee ID:' || v_employee_id);
DBMS_OUTPUT.PUT_LINE('Number of years : ' || v_years);
END;
Actions are being performed when error occurs during PL/SQL execution in the
Answer: EXCEPTION
You can use this procedure to issue user-defined error messages from stored subprograms.
Answer: RAISE_APPLICATION_ERROR

PROG-113A / ► Week 14: Handling Exceptions / ► Short Quiz 12

Evaluate the following PL/SQL.


DECLARE
v_email VARCHAR(20);
BEGIN
SELECT email INTO v_email FROM EMPLOYEES WHERE email like 'D%';
DBMS_OUTPUT.PUT_LINE ('Employees whose email address starts with letter D :'
|| v_email);
EXCEPTION
WHEN TOO_MANY_ROWS THEN
DBMS_OUTPUT.PUT_LINE (' Your select statement retrieved multiple rows.');
END;
Answer: The PL/SQL block will run successfully.
Which of the following DOES NOT describes an exception?
Answer: Exception is a PL/SQL error that is raised before program execution.
What is the exception name when single row SELECT returned no data.
Answer: NO_DATA_FOUND
RAISE_APPLICATION_ERROR is used in two different places. These are
___________________.
Answer: Executable and exceptions section
What is the error trapping function that returns the numeric value of the error code?
Answer: SQLCODE
What is the exception name when PL/SQL has an internal problem
Answer: PROGRAM_ERROR
Evaluate the following PL/SQL. At what line number is the error of the PL/SQL?
DECLARE
v_deptno NUMBER := 800;
e_invalid EXCEPTION;
BEGIN
DELETE FROM departments
WHERE department_id = v_deptno;
IF SQL % NOT_FOUND THEN
RAISE e_invalid;
END IF;
COMMIT;
EXCEPTION
WHEN e_invalid THEN
DBMS_OUTPUT.PUT_LINE('No such department id.');
END;
Answer: 7
What is the last clause in trapping exceptions?
Answer: WHEN OTHERS
Complete the diagram in Trapping Non-Predefined Oracle Server Errors.
Answer: Declare, Associate, Reference

PROG-113A / ► Week 14: Handling Exceptions / ► Learning Activity 12

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

PROG-113A / ► Week 13: Interacting with Oracle Server / ► Learning Activity 11

Which of the following does NOT describes SELECT Statement in a PL/SQL.


Answer: Queries must return only one column.
Evaluate the following PL/SQL.
1 DECLARE

2 v_employee_id employees.employee_id%TYPE := 114;

3 BEGIN
4 DELETE employees WHERE employee_id = 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;

PROG-113A / ► Week 12: Introduction to PLSQL / ► Short Quiz 10

Which of the folllowing is TRUE?


Answer: SQL code are embedded withing PL/SQL statements
In the DECLARE section of the PL/SQL block
Answer: All of the choices
In PL/SQL Block Structure, which of the following are OPTIONAL?
Answer: None of the choices
What are the three PL/SQL block types?
Answer: Anonymous, Procedure, Function
How do you test the output of a PL/SQL block?
Answer: Use a predefined Oracle package and its procedure
You want to display the name, salary and tax of employee #150. Which of the PL/SQL will
execute successfully? Note tax is computed as 2% of the salary.
Answer: DECLARE
v_first_name VARCHAR2(50);
v_last_name VARCHAR2(50);
v_salary INTEGER(20);
v_tax INTEGER(10);
BEGIN
SELECT first_name, last_name, salary, salary * 0.02 INTO v_first_name, v_last_name,
v_salary, v_tax FROM employees WHERE employee_id = 150;
DBMS_OUTPUT.PUT_LINE('Firstname : '|| v_first_name);
DBMS_OUTPUT.PUT_LINE('Lastname : '|| v_last_name);
DBMS_OUTPUT.PUT_LINE('Salary : '|| v_salary);
DBMS_OUTPUT.PUT_LINE('Tax : '|| v_tax);
END;
Which of the folllowing statement describes PL/SQL?
Answer: PL/SQL is an Oracle proprietary, procedural, 3GL programming language

PROG-113A / ► Week 12: Introduction to PLSQL / ► Learning Activity 10


PL/SQL stands for
Answer: Procedural Language extension to SQL
PL/SQL Provides a block structure for executable units of ________________.
Answer: Code
In PL/SQL Block Structure, which of the following are mandatory?
Answer: BEGIN and END
Which of the following PL/SQL will execute successfully?
Answer: DECLARE
v_salary INTEGER(20);
BEGIN
SELECT salary INTO v_salary FROM employees WHERE employee_id = 150;
END;
Actions are being performed when error occurs during PL/SQL execution in the
Answer: EXCEPTION

PROG-113A / ► Week 11: Using Subqueries to Solve Queries / ► Short Quiz 9

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')

Evaluate the SQL command


SELECT employee_id, job_id, salary from employees where salary < ALL (SELECT salary
FROM employees WHERE job_id = 'FI_ACCOUNT') AND job_id = 'IT_PROG'
Answer: This has no error.

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')

Evaluate the SQL command


SELECT employee_id, last_name, first_name, job_id FROM employees WHERE department_id
= (SELECT max(department_id) FROM employees GROUP BY department_id)
Answer: This will return an error. Single-row subquery returns more than one row.

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)

PROG-113A / ► Week 11: Using Subqueries to Solve Queries / ► Learning Activity 9


Which of the following is INCORRECT?
Answer: Use single-row operators with multiple-row subqueries
Which of the folllowing is required in a subquery?
Answer: SELECT
Which of the following is CORRECT about sub-queries?
Answer: Subquery execute before the main query executes.
Evaluate the SQL Command
SELECT job_id, job_title FROM jobs J WHERE INCLUDES
(SELECT * FROM employees WHERE J.job_id = e.job_id );
Answer: The SQL will return an error. Invalid "INCLUDES" parameter.
Evaluate the SQL command
SELECT employee_id, salary from employees where salary = ANY (SELECT salary FROM employees
WHERE job_id = 'IT_PROG') AND job_id = 'ST_CLERK'
Answer: This has no error.

True or False: Foreign co-workers having conversation issues with


everyone in the office are better left off on their own.
A: False

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

True or False: Understanding everyone’s interest is the second step in the


problem solving process. This is when you choose the optimal solution.
Answer: false

These kind of words or terms are often discouraged to be used during a


presentation, especially if the audience is not that familiar with
programming terms.
A: technical words

Referring to the figure below, determine if the statement is TRUE or


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 :)

Which of the following does NOT describes SELECT Statement in a PL/SQL.


Answer: Queries must return only one column.
You want to display all the records of employee the same with the salary employee number 103.
Answer: SELECT * FROM employees WHERE salary = (SELECT salary from employees where
employee_id= 103)
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;
Which of the folllowing is TRUE?
Answer: SQL code are embedded within PL/SQL statements
When an exception is user defined, the exception is raised ____________ .
Answer: Explicitly
Which of the folllowing is TRUE?
Answer: SQL code are embedded withing PL/SQL statements
Weak REF CURSOR is very flexible.
Answer: True
How do you test the output of a PL/SQL block?
Answer: Use a predefined Oracle package and its procedure
Restrictive, specifies a RETURN type, associates only with type-compatible queries are description
of a ________________.
Answer: Strong REF CURSOR
Which of the following DOES NOT describes an exception?
Answer: Exception is a PL/SQL error that is raised before program execution.
These are local variables declared in the parameter list of a subprogram specification.
Answer: Formal parameter
Which of the following rules is INCORRECT about cursor variables?
Answer: None of the choices.
When an exception is predefined by Oracle server, the exception is raised ____________ .
Answer: Explicitly
Which of the following DOES NOT describes an exception?
Answer: Exception is a PL/SQL error that is raised before program execution.
Evaluate the following PL/SQL.
CREATE OR REPLACE PROCEDURE query_employee
(p_id IN employees.employee_id%TYPE,
p_name OUT employees.last_name%TYPE,
p_salary OUT employees.salary%TYPE) IS
BEGIN SELECT last_name, salary INTO p_name, p_salary
FROM employeesWHERE employee_id = p_id;
END query_employee
Answer: No error
You want to know the total number of employees whose firstname starts with letter D.
Which of the folllowing PLS/SQL executes successfully?
Answer: DECLARE
v_first_name employees.first_name%TYPE := 'D%';
BEGIN
SELECT COUNT(*) INTO v_first_name FROM employees WHERE first_name LIKE v_first_name;
DBMS_OUTPUT.PUT_LINE(v_first_name);
END;
What is the error trapping function that returns the numeric value of the error code?
Answer: SQLCODE
You want to display the name, salary and tax of employee #150. Which of the PL/SQL will execute
successfully? Note tax is computed as 2% of the salary.
Answer: DECLARE
v_first_name VARCHAR2(50);
v_last_name VARCHAR2(50);
v_salary INTEGER(20);
v_tax INTEGER(10);
BEGIN
SELECT first_name, last_name, salary, salary * 0.02 INTO v_first_name, v_last_name, v_salary,
v_tax FROM employees WHERE employee_id = 150;
DBMS_OUTPUT.PUT_LINE('Firstname : '|| v_first_name);
DBMS_OUTPUT.PUT_LINE('Lastname : '|| v_last_name);
DBMS_OUTPUT.PUT_LINE('Salary : '|| v_salary);
DBMS_OUTPUT.PUT_LINE('Tax : '|| v_tax);
END;
Which of the following is the syntax to close a cursor?
Answer: CLOSE cursor_variable_name;
Which of the following rules is INCORRECT about cursor variables?
Answer: None of the choices.
What are the three PL/SQL block types?
Answer: Anonymous, Procedure, Function
You can trap any error by including a corresponding handler within the exception-handling section of
the PL/SQL block.
Answer: True
Which of the following describes weak REF CURSOR?
Answer: Associates with any query
Given the answer in item __________, which of the folllowing stored procedure will display the
employee id and salary of Steven King?
Answer: DECLARE
v_employee_id employees.employee_id%TYPE;
v_emp_sal employees.salary%TYPE;
BEGIN
query_emp('King', 'Steven', v_employee_id, v_emp_sal);
DBMS_OUTPUT.PUT_LINE('Employee ID ' || v_employee_id ||' earns '|| to_char(v_emp_sal,
'$999,999.00'));
END;
You have been tasked to update the database by creating a PL/SQL to increase the salary of all IT
Programmer employees by 50% 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 *0.50 WHERE job_id = v_job_id;
END;
Which of the folllowing is required in a subquery?
Answer: SELECT
What is the exception name when PL/SQL has an internal problem
Answer: PROGRAM_ERROR
In the DECLARE section of the PL/SQL block,
Answer: All of the choices
Actions are being performed when error occurs during PL/SQL execution in the
Answer: EXCEPTION
What is the exception name when PL/SQL has an internal problem
Answer: PROGRAM_ERROR
Which of the folllowing statement describes PL/SQL?
Answer: PL/SQL is an Oracle proprietary, procedural, 3GL programming language
Evaluate the following PL/SQL.
DECLARE
v_employee_id employees.employee_id%TYPE := 114;
BEGIN
DELETE employees WHERE employee_id = v_employee_id;
END;
Answer: The PL/SQL will delete employee number 114.
Which of the following command is used to create a stand-alone procedure that is stored in the
Oracle database?
Answer: CREATE PROCEDURE
Evaluate the following PL/SQL.
DECLARE
v_email VARCHAR(20);
BEGIN
SELECT email INTO v_email FROM EMPLOYEES WHERE email like 'D%';
DBMS_OUTPUT.PUT_LINE ('Employees whose email address starts with letter D :'
|| v_email);
EXCEPTION
WHEN TOO_MANY_ROWS THEN
DBMS_OUTPUT.PUT_LINE (' Your select statement retrieved multiple rows.');
END;
Answer: The PL/SQL block will run successfully.
Which of the following is the syntax to define a REF CURSOR type?
Answer: TYPE ref_type_name IS REF CURSOR
[RETURN return_type];
The PL/SQL code block helps modularize code by using:
Answer: All of the choices
Which of the following is the syntax to fetch from a cursor variable?
Answer: FETCH cursor_variable_name INTO variable_name1
[,variable_name2,. . .] | record_name;
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')
Procedure can be stored in the database as a schema object.
Answer: True
In PL/SQL Block Structure, which of the following are mandatory?
Answer: BEGIN and END
PL/SQL stands for
Answer: Procedural Language extension to SQL
Which of the following is CORRECT about sub-queries?
Answer: Subquery execute before the main query executes.
Which of the following does NOT describes SELECT Statement in a PL/SQL.
Answer: Queries must return only one column.
PL/SQL Provides a block structure for executable units of ________________.
Answer: Code
Evaluate the SQL command
SELECT employee_id, salary from employees where salary = ANY (SELECT salary FROM
employees WHERE job_id = 'IT_PROG') AND job_id = 'ST_CLERK'
Answer: This has no error.
Which of the following PL/SQL will execute successfully?
Answer: DECLARE
v_salary INTEGER(20);
BEGIN
SELECT salary INTO v_salary FROM employees WHERE employee_id = 150;
END;
In PL/SQL Block Structure, which of the following are OPTIONAL?
Answer: None of the choices
Evaluate the following PL/SQL. At what line number is the error of the PL/SQL?
DECLARE
v_deptno NUMBER := 800;
e_invalid EXCEPTION;
BEGIN
DELETE FROM departments
WHERE department_id = v_deptno;
IF SQL % NOT_FOUND THEN
RAISE e_invalid;
END IF;
COMMIT;
EXCEPTION
WHEN e_invalid THEN
DBMS_OUTPUT.PUT_LINE('No such department id.');
END;
Answer: 7
What is the error trapping function that returns the numeric value of the error code?
Answer: SQLCODE
Fetch into a record when fetching from a cursor.
Answer: True

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’;

Which of the following SQL commands will display all stocks whose class is HW or AP.
SELECT * FROM parts WHERE IN class ('HW', '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?
SELECT employee_id, hire_date, TO_CHAR(hire_date,'Month') AS "Hired Month" FROM employees;

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;

John want to know how many employees receiving salary below 10,000. What SQL command he need to
run?
SELECT COUNT(*) FROM employees WHERE salary < 10000;

----------------------------------------
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%'

What will be the output of the following SQL?


SELECT * FROM parts WHERE (warehouse = 1 or warehouse = 2) AND class IN ('HW', 'AP') AND (price >
200 AND price < 500);
2 rows returned

What will be the output of the SQL command?


SELECT SUM(onhand) FROM PARTS where class = 'HW' OR class = 'AP' AND warehouse = 1;
137

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
output?
SELECT first_name, last_name, job_id, min_salary, max_salary FROM employees JOIN jobs USING
(job_id);
What will be the output of the SQL command below?
SELECT first_name, last_name, job_title FROM employees CROSS JOIN jobs ORDER BY last_name;
A Cartesian product

What will be the output of the SQL command below?


SELECT last_name, job_id, job_title FROM employees NATURAL JOIN jobs
List of names and job title of matched records from the employees and jobs table

----------------------------------------
SQ6

Given the SQL command


SELECT * FROM employees JOIN departments USING (department_id)
Which of the following describes the SQL command?
Joined table from the employees and department table

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

Display the manager id and employee id of every employee


SELECT E.employee_id, D.manager_id FROM employees E JOIN departments D ON E.department_id =
D.department_id

Given the SQL command


SELECT employees.first_name, employees.last_name, employees.salary,departments.department_name
FROM employees, departments
WHERE employees.department_id = departments.department_id;
Which of the following describes the SQL command?
List of employees name, salary and department name

----------------------------------------
LA7

Remove the Shareholder Services department in the department table


DELETE FROM departments WHERE department_name = ‘Shareholder Services’

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 update the information in the department table.
INSERT INTO departments VALUES (300, 'Training', 203, 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)

Remove all Manager positions in the department table.


DELETE FROM jobs WHERE job_title LIKE '%Manager%';
----------------------------------------
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 describes the command below?


SELECT * FROM employees WHERE department = 60 FOR UPDATE
Locks the rows in the EMPLOYEES table with department id is 60.

Which of the following will erase all records in the departments table
TRUNCATE TABLE departments

SQL command to create a marker in the current transaction.


SAVEPOINT

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

You want to cancel the privilege of matt to add records from the employees table.
REVOKE insert ON employees FROM 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 provide privilege to update the employees table?


GRANT update (salary) ON employees TO matt

Which of the following will is the correct command to create a role.


CREATE ROLE gen_manager

Matt wants to change his password from 1234 to abcd.


Which of the following will perform the task?
ALTER USER matt IDENTIFIED abcd;

The DBA will create a new user name sales.


Which of the following SQL command will perform the creation?
CREATE sales ACCESS 1234

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

What privileges that manipulates the content of the database objects.


Object Privileges

----------------------------------------
1st Q Exam

Evaluate the following SQL command


SELECT employee_id, salary, department_id FROM employees WHERE department_id IN (60,70)
The SQL command will display employees with department id 60 or 70.

True or False. The AND, OR, NOT are comparison operators.


False

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

List all employees except for IT_PROG job id.


All of the choices

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

Evaluate the following SQL command


SELECT * FROM jobs WHERE job_title LIKE 'Manager%'
No records will be displayed

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

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 last_name, TO_INTEGER(salary, $999,999.99) AS "MONTHLY SALARY" FROM employees
WHERE salary < 10000 WHERE last_name IN 'D%'

In creating Joins,the NATURALJOIN and USING clauses are____________


Mutually Exclusive

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
Question text
True or False: Operators, in Java programming language, use special symbols to call methods and their
objects.
Answer:
False
Question text
Read each statement carefully and decide whether it’s TRUE or FALSE.
There are no errors in the program.
Select one:
False
Question text
Refer to the block of codes below. Read each statement carefully and decide whether it’s TRUE or FALSE.
Line 9 uses a traditional comment which uses double forward slash.
Answer: False
Question text
True or False: Many programmers can be literate with Java programming language for it is intended to be that
way.
Answer:
True
Question text
True or False: You’ll know there’s an error if you see a red circle with an exclamation point in Netbeans IDE.
Answer:
True
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 = (x = 100) >= z;
Select one:
True
The file is accurately named – Students.java.
-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.
-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
The last line of code will output 100.0.
-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

There are keywords found in line 7.


-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 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.
-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

Substrings can contain 1 or 2 arguments.


-true
Determine the output.

-bar

The index of the letter “y” in string “Doggy” is 5.


-False
Determine the output.
-foo
TRUE OR FALSE: The value “val_3” is a white space “ “.
-False
True or False: Variable 1st_num is a good variable name in Java programming.
-False

TRUE OR FALSE: “val_2” contains “The”


-True
True or False: Instance variables are declared inside a method but outside a class.
-False

True or False: Variable names in Java are not necessarily case sensitive.
-False
Determine the output
-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
result = !((x * 10) < z);
-False

result = -(-z) == 43;


-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
x += x;
result = x == 154;
-False
The second line 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
A string can contain numbers.
-True

TRUE OR FALSE: This is an example of concatenation.


-True

TRUE OR FALSE: The value of “val_4” is “fox”


-False

TRUE OR FALSE: “val_2” contains “The”.


-True
Determine the output.
-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
Strings can be declared with str.
-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
Among the expressions below which is a statement?
-True
Expressions can be long and complex.
-true

number++; is an expression
-true
For-loops has a set number of iterations before starting.
-True

The equals( ) method can compare more than 2 arrays.


-False
While loops can use Booleans at test expressions.
-True

The test expression of the if statement is _______


-less than or equal to
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
x+1 is example of a statement.
-False

number++; is a block
-False
Arrays are
-Integers
The operator “new” allocates a memory block the size of what is declared.
-true
A class block can be an expression
-False
Statements can be expressions.
-False

Integer arrays can be populated with characters.


-False
Declaration clauses are declared as “number + 1”.
-False

Loops can be stopped with a break; statement.


-True
The equivalent of Paragraphs in coding is?
-Expressions

If statements cannot be nested in switches


-true
The length( ) method returns the size (number of indices) has.
-True
When polymorphism is used, the Java object can only take one form. Subclasses should have the
same function with the parent class.
-False
Arrays can contain (Answer) number of elements.
-Any
“||” and “&&” can be used in conditional statements.
-True
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
Expressions can be statements.
-True
Blocks can contain more blocks of code.
-True
If-else statements can be nested in?
-All of the choices

Statements are equivalent to paragraphs.


-False
A (answer) array is an array containing true or false values.
-boolean
Switches are always used with if-else statements
-False
True or False: The modulus operator returns the remainder of a division operation instead of the
quotient.
-true
Determine the output.
String val_1 = “564298”;
-5698
Determine the output.
String val_1 = “35”;
-4

The return value of the length( ) method is an integer


-true
A superclass is also known as a parent class.
-true

For-loops can be nested in while loops.


-true
In instantiating an object, the keyword instance is used.
-False

Object oriented programming utilizes the top down method


-False
Expressions are like clauses.
-true
The sort( ) method is always ascending.
-true
Arrays are data types.
-False
Variables must be declared as (Answer) for it to be fully hidden.

-private
While statements check the test expression at the end.
-False
The else statement can be used alone.
-False
The fill( ) method (Answer) the array with specific values.
-Fills
The output of println is

-55555
The person’s weight is declared correctly with the correct data type (byte) and value (160).
-FALSE
Determine the output.
String val_1 = “foo”
String val_2 = “bar”

val_2 = val_1;
val_1 = val_3;
System.out.println(val_1);
-bar
Determine the output.
String val_1 = “foo”
String val_2 = “bar”

val_2 = val_1;
val_1 = val_3;
System.out.println(val_2);
-foo
Switches can work properly even without the “break” expression.
-True
Blocks can be one liner or huge classes.
-True
The test expressions in conditional statements can be left empty.
-False

Abstraction works by hiding the implementation details and showing only the functions necessary.
-True
A single array can hold multiple data types
-False

A polymorphic object can pass more than one Is-a test.


-True
Another loop can be used as test expression.
-False

True or False: Public, static and void are sample of Java reserved keywords.
-True
The value of “pStr” in line 24 is
-True

The default syntax of a constructor is <class_name>(parameter, parameter){ }


-False
A nested class is not an inner class.
-False
Nested classes causes them to become abstracted
-False
A nested class is also called

-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
A constructor can only have 1-2 overloads or parameters.
-False
All possible data types of an array can be retuned as a string by the toString( ) method.
-True
Abstracted classes can contain 1 or more abstract methods.
-True
Abstraction shows the every bit of detail and implementation on how an application does something.
-False
Initialization is a process where the constructor is called for.
-True
The default syntax of a constructor is <class_name>( ){ }
-True
Classes cannot be nested.
-False
Abstract classes cannot have nested classes.
-False
The parent class of a nested class is called an outer class
-True
An inner class can be constructed directly without reference to the outer class.
-False
Arrays can be read backwards
-True
A single array can hold
-One data type

Abstracted methods already have implementations inside.


-False
are special methods to initialize objects.
-constructors

Constructors have 3 basic rules to follow.


-False
Nesting classes increases encapsulation.
-True

Each index can only contain (Answer) element.


-one
The sort( ) method can be set to sort only a part of an array.
-False
Subclasses or child classes could have different behaviors but still share the same functions from
their parent class.
-True

Abstract methods must have an explicit return value


-False
An abstract class must not contain abstract methods.
-False

Abstracted classes can be nested.


-True
A subclass constructor cannot invoke a superclass constructor.
-False
A class acquiring fields and methods of another class is called inheritance.
-True
Parallelsorting utilizes

-More cpu processing cores


method can copy one array to another.
-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.
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
Question text
True or False: Operators, in Java programming language, use special symbols to call methods and their
objects.
Answer:
False
Question text
Read each statement carefully and decide whether it’s TRUE or FALSE.
There are no errors in the program.
Select one:
False
Question text
Refer to the block of codes below. Read each statement carefully and decide whether it’s TRUE or FALSE.
Line 9 uses a traditional comment which uses double forward slash.
Answer: False
Question text
True or False: Many programmers can be literate with Java programming language for it is intended to be that
way.
Answer:
True
Question text
True or False: You’ll know there’s an error if you see a red circle with an exclamation point in Netbeans IDE.
Answer:
True
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 = (x = 100) >= z;
Select one:
True
The file is accurately named – Students.java.
-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.
-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
The last line of code will output 100.0.
-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
There are keywords found in line 7.
-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 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.
-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

Substrings can contain 1 or 2 arguments.


-true
Determine the output.

-bar

The index of the letter “y” in string “Doggy” is 5.


-False
Determine the output.
-foo
TRUE OR FALSE: The value “val_3” is a white space “ “.

-False
True or False: Variable 1st_num is a good variable name in Java programming.
-False

TRUE OR FALSE: “val_2” contains “The”


-True
True or False: Instance variables are declared inside a method but outside a class.
-False
True or False: Variable names in Java are not necessarily case sensitive.
-False

Determine the output


-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
result = !((x * 10) < z);
-False
result = -(-z) == 43;
-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

x += x;
result = x == 154;
-False
The second line 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
A string can contain numbers.
-True

TRUE OR FALSE: This is an example of concatenation.


-True

TRUE OR FALSE: The value of “val_4” is “fox”


-False

TRUE OR FALSE: “val_2” contains “The”.


-True
Determine the output.
-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

Strings can be declared with str.


-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

Among the expressions below which is a statement?


-True
Expressions can be long and complex.
-true
number++; is an expression
-true
For-loops has a set number of iterations before starting.
-True
The equals( ) method can compare more than 2 arrays.
-False
While loops can use Booleans at test expressions.
-True
The test expression of the if statement is _______
-less than or equal to
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
x+1 is example of a statement.
-False
number++; is a block
-False
Arrays are
-Integers
The operator “new” allocates a memory block the size of what is declared.
-true
A class block can be an expression
-False
Statements can be expressions.
-False
Integer arrays can be populated with characters.
-False
Declaration clauses are declared as “number + 1”.
-False
Loops can be stopped with a break; statement.
-True
The equivalent of Paragraphs in coding is?
-Expressions
If statements cannot be nested in switches
-true

The length( ) method returns the size (number of indices) has.


-True
When polymorphism is used, the Java object can only take one form. Subclasses should have the
same function with the parent class.
-False
Arrays can contain (Answer) number of elements.
-Any

“||” and “&&” can be used in conditional statements.


-True
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

Expressions can be statements.


-True
Blocks can contain more blocks of code.
-True

If-else statements can be nested in?


-All of the choices
Statements are equivalent to paragraphs.
-False

A (answer) array is an array containing true or false values.


-boolean
Switches are always used with if-else statements
-False
True or False: The modulus operator returns the remainder of a division operation instead of the
quotient.
-true
Determine the output.
String val_1 = “564298”;
-5698
Determine the output.
String val_1 = “35”;
-4
The return value of the length( ) method is an integer
-true
A superclass is also known as a parent class.
-true
For-loops can be nested in while loops.
-true
In instantiating an object, the keyword instance is used.
-False
Object oriented programming utilizes the top down method
-False
Expressions are like clauses.
-true

The sort( ) method is always ascending.


-true
Arrays are data types.
-False

Variables must be declared as (Answer) for it to be fully hidden.


-private
While statements check the test expression at the end.
-False

The else statement can be used alone.


-False
The fill( ) method (Answer) the array with specific values.
-Fills

The output of println is


-55555
The person’s weight is declared correctly with the correct data type (byte) and value (160).
-FALSE

Determine the output.


String val_1 = “foo”

String val_2 = “bar”


val_2 = val_1;
val_1 = val_3;
System.out.println(val_1);

-bar
Determine the output.
String val_1 = “foo”
String val_2 = “bar”
val_2 = val_1;
val_1 = val_3;

System.out.println(val_2);
-foo
Switches can work properly even without the “break” expression.
-True
Blocks can be one liner or huge classes.
-True
The test expressions in conditional statements can be left empty.
-False
Abstraction works by hiding the implementation details and showing only the functions necessary.
-True
A single array can hold multiple data types
-False
A polymorphic object can pass more than one Is-a test.
-True
Another loop can be used as test expression.
-False
True or False: Public, static and void are sample of Java reserved keywords.
-True
The value of “pStr” in line 24 is

-True
The default syntax of a constructor is <class_name>(parameter, parameter){ }
-False

A nested class is not an inner class.


-False
Nested classes causes them to become abstracted
-False

A nested class is also called


-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
A constructor can only have 1-2 overloads or parameters.
-False

All possible data types of an array can be retuned as a string by the toString( ) method.
-True
Abstracted classes can contain 1 or more abstract methods.
-True

Abstraction shows the every bit of detail and implementation on how an application does something.
-False
Initialization is a process where the constructor is called for.
-True
The default syntax of a constructor is <class_name>( ){ }
-True
Classes cannot be nested.
-False
Abstract classes cannot have nested classes.
-False
The parent class of a nested class is called an outer class
-True
An inner class can be constructed directly without reference to the outer class.
-False
Arrays can be read backwards
-True
A single array can hold
-One data type
Abstracted methods already have implementations inside.
-False
are special methods to initialize objects.
-constructors
Constructors have 3 basic rules to follow.
-False
Nesting classes increases encapsulation.
-True
Each index can only contain (Answer) element.
-one
The sort( ) method can be set to sort only a part of an array.
-False
Subclasses or child classes could have different behaviors but still share the same functions from
their parent class.
-True
Abstract methods must have an explicit return value
-False
An abstract class must not contain abstract methods.
-False
Abstracted classes can be nested.
-True

A subclass constructor cannot invoke a superclass constructor.


-False
A class acquiring fields and methods of another class is called inheritance.
-True

Parallelsorting utilizes
-More cpu processing cores
method can copy one array to another.
-arraycopy()

The equivalent of clauses in coding is?


-Expressions
Int num = 1; for(num=num;num<=10;num++) is an acceptable code snippet.
-true
Loop that has a pre-determined number of iterations
-while
An int can be used even if it is declared outside a for-loop.
-true
Overload methods must be the same name as the class
-true
What the break statement in this example does is ________.
-Ends the whole instance of the loop
The random( ) method sorts the array randomly.
-False
The last part in a for loop setup can be an ________.
- both
The “1” in arrayName[1] is called an ________.
-Index
The continue; statement ends all the iterations of a loop.
- False
Which is not a proper increment?
- n+-;
Infine for-loops can be declared as for( ){ }.
- False
If-if is more logical than else-if.
- False
The else statement can be removed if not needed.
-True
Expressions, Statements and Blocks are like composing sentences and paragraphs.
-True
You can declare a new method in the subclass which is not declared in the superclass.
-True
The return value of the equals( ) method is ________ .
-None of the choices
The Arrays.sort( ) method sorts an array into _________ order.
-Ascending
This type of declaration is discouraged: “int myArray[ ]”
- True
An if-else-if-else statement is a block.
-True
If the increment num=num+2 is changed to num++, the final value of num will be
________.
-5
The term of each pass through a loop makes is called?
-iteration
Loops must always have a continue or break statement.
-False
1+2+3/4*5 is an unambiguous expression
-False
Conditional statements can contain more conditional statements.
- True
int num = 1;
if(num==1 && num<=1){
body;
}
The conditional statement will _______.
- execute the body
byte( ][ ][ ) myArray; is an example of ________.
- An error
An array _______ hold objects.
- can
A reference variable can be reassigned to other objects provided that it is not declared
________.
- final
The test expression of conditional statement cannot contain _______
-!
Each pass through of a loop is called a cycle.
- True
If the increment “num = num + 2” is changed to “num = num + 1” the final output will be
_______.
-0
Ifs and else-ifs test expressions return true or false.
- True
_______ classes increase the encapsulation of you methods and data.
- nesting
Constructed methods are initialized with 0 or null depending on the data type.
- true
The else statement catches whatever argument the if and else-if didn’t
- True
An iteration of a loop is equivalent to one pass through.
- true
38. If we change the initial value of num in line 6 to “num = 0”, the println output will be
_______
-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
A loop can contain no expressions or statements inside.
- true
Conditional statements are the same as declaration statements.
- False
You cannot use inherited methods directly in a child class.
- False
The equals( ) method compares 2 arrays.
- True
Method invocations are statements
- True
To implement encapsulation, you have to declare class variables with the private
modifier.
- True
Inner class methods can be called by constructing the inner class.
- False
Encapsulated data are hidden from other classes.
- True
Procedural programming will be tricky for applications.
Answer: small
Strings can directly concatenated to an int.
Answer: False

1. Machine language and assembly language are collectively referred to as


_________________________
Answer: LOW-LEVEL LANGUAGE
2. 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

3. Machine language is also known as Answer language.


4. Kyoto protocol addresses environmental issues through the campaign of
____________________.
Answer: reducing greenhouse gas emissions
5. 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 – like additional characters and skills.”
Select one:
Answer: Maintainability
6.C# was released by Answer Micros
.

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?

Answer: Social media login limit.


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.
I cannot type anything but my mouse is working, I am using a brand new USB keyboard, which port
should I check?
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.
ANSWER: PRINTER WIZARD
13.Big business companies are the only ones responsible for enforcing environmental policies since
they can afford alternative cleaner technology.
ANSWER: FALSE
14. Who is considered as a user (component of an operating system)?
ANSWER; ALL OF THE CHOICES

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.
ANSWER: High-Level 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?
ANSWER: IV, I, V, III, II
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

21. The first computer concept invented is called _________________________.


ANSWER; ANALYTICAL ENGINE

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
23.Java is an example of

ANSWER: HIGH-LEVEL LANGUAGE


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 it be connected?
ANSWER: D
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
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. ead 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.
“I find it really enjoying to play XYZ since I can invite my friends from social media profile. It works
well with this social media app!”
ANSWER: COMPATIBILITY
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.

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.”
ANSWER: SECURITY
33.Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product quality model
and write the letter that corresponds to your answer.
Capacity
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: ASK FOR HEIGHT
35.Montreal protocol protects the ozone layer by ____________________.
ANSWER: phasing out harmful substances
36. 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
37. Refer to the image below to answer the following question.
By default, what is the value of limit?
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 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.
“XYZ is so cool! I tried to install it in my old computer and it still runs smoothly. Given that the
computer’s video card is a bit faulty.“
ANSWER: Reliability

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: NONE OF THE CHOICES


44. Refer to the pseudocode below and answer the following question: What happens after weight is
given?
ANSWER: ASK FOR HEIGHT
45.Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product quality model
and write the letter that corresponds to your answer.
Learnability
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?

ANSWER: display Overweight


47.Axel is finally documenting his work. What could he be writing?

ANSWER: instructions for the users


48. 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.
“One good thing I find with XYZ as when my laptop shuts down accidentally, my game score and
status can still be recovered. No need to repeat a level.”
ANSWER: Reliability
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
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. 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.
Answer: accountable
Question text
True or False: Monitoring and evaluating means brainstorming.
Answer: False
Question 5
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Axel is finally documenting his work. What could he be writing?
Select one:
a. requirements of the program
b. system analysis
c. bug reviews and errors
d. instructions for the users

Question 6
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Machine language and assembly language are collectively referred to as
_________________________.
Select one:
a. Average level language
b. Low-level language
c. Advanced language
d. High-level language

Question 7
Complete
Mark 1.00 out of 1.00

Flag question

Question text
True or False: Nothing good ever comes from giving feedback. If anything, anyone who does give
will only get scolded by the boss.
Answer: False

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 problems in Materials, Measurement, Method, People, Equipment or
Environment.

When the software used was checked, the project manager discovered that some of the
programmers are using an old version of Java. This cause is categorized under

Answer. Materials

Question 9
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 be told
about the students who volunteered to test the student record system.
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:
a. email
b. social media
c. hyperlinks
d. speaking

Question 12
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Refer to the pseudocode below and answer the following question:
What is the first thing that the program will do?
Select one:
a. ask for BMI
b. print height
c. ask for height
d. print BMI

Question 13
Complete
Mark 1.00 out of 1.00

Flag question

Question text
____________________ in the workplace protection of sensitive business information through
precautionary measures like confidentiality clauses or non-disclosure agreements.
Select one:
a. Curiosity
b. Integrity
c. Secrecy
d. Confidentiality

Question 14
Complete
Mark 0.00 out of 1.00
Flag question

Question text
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product quality model and
write the letter that corresponds to your answer.
Capacity
Select one:
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.
Answer: False

Question 17
Complete
Mark 1.00 out of 1.00

Flag question

Question text
In ____________________, 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
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.
Answer: True

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:
a. True
b. 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:
a. True
b. 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
b. Actions
c. Objectives
d. Process

Question 23
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Categorize the following 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
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
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 problems in Materials, Measurement, Method, People, Equipment or
Environment.

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

Question 27
Complete
Mark 1.00 out of 1.00

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
Complete
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:
a. Correct
b. Wrong

Question 29
Complete
Mark 1.00 out of 1.00

Flag question

Question text
In adding a new printer, the _____________ will guide you on the steps to be taken.
Select one:
a. Printer Guide
b. Printer Affix
c. Printer Install
d. Printer Wizard

Question 30
Complete
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

Question text
Refer to the image below and write only the letter of the correct answer in the space provided.

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 text
Identify whether the following task should be listed as a milestone or be included in the Gantt chart.
Fix bugs and errors detected in the system.
Answer: Gantt chart

Question 33
Complete
Mark 1.00 out of 1.00

Flag question

Question text
In the correct order, the essential parts of the communication process are:
Select one:
a. Source, Message, Encoding, Channel, Decoding, Receiver, Feedback
b. Source, Message, Encoding, Channel, Receiver, Decoding, Feedback
c. Source, Message, Encoding, Channel, Decoding, Feedback, Receiver
d. Source, Message, Encoding, Receiver, Decoding, Channel, Feedback

Question 34
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
Answer: internal

Question 35
Complete
Mark 1.00 out of 1.00

Flag question

Question text
True or False: To solve a problem means to know first what the problem is before coming up with
the feasible solutions.
Answer: True

Question 36
Complete
Mark 1.00 out of 1.00

Flag question

Question text
True or False: Listing down the issues related to the problem is second to the last step in an
effective problem solving process.
Answer: False

Question 37
Complete
Mark 1.00 out of 1.00

Flag question

Question text
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:
a. Portability
b. Security
c. Maintainability
d. Functional Suitability
e. Usability
f. Compatibility
g. Performance Efficiency
h. Reliability

Question 38
Complete
Mark 1.00 out of 1.00
Flag question

Question text
Monica accidentally unplugged the mouse PS/2 port. What will happen to the mouse connected thru
the universal serial bus port?
Select one:
a. The mouse will stop working.
b. None of the choices.
c. The mouse will freeze.
d. All of the choices
e. The mouse will be disabled.

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
Flag question

Question text
Decide whether it is a communication instrument or purpose.
A Gantt chart that shows the schedule for the development process of the student record system.

Answer: instrument

Question 41
Complete
Mark 1.00 out of 1.00

Flag question

Question text
A product or service 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 Control
c. Safety Programs
d. Reflective Behavior
Question 42
Complete
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.
ComputeTotalScore() for a routine to sum up the scores.
Select one:
a. Wrong
b. 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
Mark 1.00 out of 1.00

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
Question text
The first computer concept invented is called _________________________.
Select one:
a. COBOL
b. Analytical Engine
c. FORTRAN
d. PlanKalKul

Question 49
Complete
Mark 1.00 out of 1.00

Flag question

Question text
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.
“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.”
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
Flag question

Question text
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product quality model and
write the letter that corresponds to your answer.
Integrity
Select one:
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 does NOT describes SELECT Statement in a PL/SQL.


Answer: Queries must return only one column.
You want to display all the records of employee the same with the salary employee number 103.
Answer: SELECT * FROM employees WHERE salary = (SELECT salary from employees where
employee_id= 103)
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;
Which of the folllowing is TRUE?
Answer: SQL code are embedded within PL/SQL statements
When an exception is user defined, the exception is raised ____________ .
Answer: Explicitly
Which of the folllowing is TRUE?
Answer: SQL code are embedded withing PL/SQL statements
Weak REF CURSOR is very flexible.
Answer: True
How do you test the output of a PL/SQL block?
Answer: Use a predefined Oracle package and its procedure
Restrictive, specifies a RETURN type, associates only with type-compatible queries are description
of a ________________.
Answer: Strong REF CURSOR
Which of the following DOES NOT describes an exception?
Answer: Exception is a PL/SQL error that is raised before program execution.
These are local variables declared in the parameter list of a subprogram specification.
Answer: Formal parameter
Which of the following rules is INCORRECT about cursor variables?
Answer: None of the choices.
When an exception is predefined by Oracle server, the exception is raised ____________ .
Answer: Explicitly
Which of the following DOES NOT describes an exception?
Answer: Exception is a PL/SQL error that is raised before program execution.
Evaluate the following PL/SQL.
CREATE OR REPLACE PROCEDURE query_employee
(p_id IN employees.employee_id%TYPE,
p_name OUT employees.last_name%TYPE,
p_salary OUT employees.salary%TYPE) IS
BEGIN SELECT last_name, salary INTO p_name, p_salary
FROM employeesWHERE employee_id = p_id;
END query_employee
Answer: No error
You want to know the total number of employees whose firstname starts with letter D.
Which of the folllowing PLS/SQL executes successfully?
Answer: DECLARE
v_first_name employees.first_name%TYPE := 'D%';
BEGIN
SELECT COUNT(*) INTO v_first_name FROM employees WHERE first_name LIKE v_first_name;
DBMS_OUTPUT.PUT_LINE(v_first_name);
END;
What is the error trapping function that returns the numeric value of the error code?
Answer: SQLCODE
You want to display the name, salary and tax of employee #150. Which of the PL/SQL will execute
successfully? Note tax is computed as 2% of the salary.
Answer: DECLARE
v_first_name VARCHAR2(50);
v_last_name VARCHAR2(50);
v_salary INTEGER(20);
v_tax INTEGER(10);
BEGIN
SELECT first_name, last_name, salary, salary * 0.02 INTO v_first_name, v_last_name, v_salary,
v_tax FROM employees WHERE employee_id = 150;
DBMS_OUTPUT.PUT_LINE('Firstname : '|| v_first_name);
DBMS_OUTPUT.PUT_LINE('Lastname : '|| v_last_name);
DBMS_OUTPUT.PUT_LINE('Salary : '|| v_salary);
DBMS_OUTPUT.PUT_LINE('Tax : '|| v_tax);
END;
Which of the following is the syntax to close a cursor?
Answer: CLOSE cursor_variable_name;
Which of the following rules is INCORRECT about cursor variables?
Answer: None of the choices.
What are the three PL/SQL block types?
Answer: Anonymous, Procedure, Function
You can trap any error by including a corresponding handler within the exception-handling section of
the PL/SQL block.
Answer: True
Which of the following describes weak REF CURSOR?
Answer: Associates with any query
Given the answer in item __________, which of the folllowing stored procedure will display the
employee id and salary of Steven King?
Answer: DECLARE
v_employee_id employees.employee_id%TYPE;
v_emp_sal employees.salary%TYPE;
BEGIN
query_emp('King', 'Steven', v_employee_id, v_emp_sal);
DBMS_OUTPUT.PUT_LINE('Employee ID ' || v_employee_id ||' earns '|| to_char(v_emp_sal,
'$999,999.00'));
END;
You have been tasked to update the database by creating a PL/SQL to increase the salary of all IT
Programmer employees by 50% 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 *0.50 WHERE job_id = v_job_id;
END;
Which of the folllowing is required in a subquery?
Answer: SELECT
What is the exception name when PL/SQL has an internal problem
Answer: PROGRAM_ERROR
In the DECLARE section of the PL/SQL block,
Answer: All of the choices
Actions are being performed when error occurs during PL/SQL execution in the
Answer: EXCEPTION
What is the exception name when PL/SQL has an internal problem
Answer: PROGRAM_ERROR
Which of the folllowing statement describes PL/SQL?
Answer: PL/SQL is an Oracle proprietary, procedural, 3GL programming language
Evaluate the following PL/SQL.
DECLARE
v_employee_id employees.employee_id%TYPE := 114;
BEGIN
DELETE employees WHERE employee_id = v_employee_id;
END;
Answer: The PL/SQL will delete employee number 114.
Which of the following command is used to create a stand-alone procedure that is stored in the
Oracle database?
Answer: CREATE PROCEDURE
Evaluate the following PL/SQL.
DECLARE
v_email VARCHAR(20);
BEGIN
SELECT email INTO v_email FROM EMPLOYEES WHERE email like 'D%';
DBMS_OUTPUT.PUT_LINE ('Employees whose email address starts with letter D :'
|| v_email);
EXCEPTION
WHEN TOO_MANY_ROWS THEN
DBMS_OUTPUT.PUT_LINE (' Your select statement retrieved multiple rows.');
END;
Answer: The PL/SQL block will run successfully.
Which of the following is the syntax to define a REF CURSOR type?
Answer: TYPE ref_type_name IS REF CURSOR
[RETURN return_type];
The PL/SQL code block helps modularize code by using:
Answer: All of the choices
Which of the following is the syntax to fetch from a cursor variable?
Answer: FETCH cursor_variable_name INTO variable_name1
[,variable_name2,. . .] | record_name;
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')
Procedure can be stored in the database as a schema object.
Answer: True
In PL/SQL Block Structure, which of the following are mandatory?
Answer: BEGIN and END
PL/SQL stands for
Answer: Procedural Language extension to SQL
Which of the following is CORRECT about sub-queries?
Answer: Subquery execute before the main query executes.
Which of the following does NOT describes SELECT Statement in a PL/SQL.
Answer: Queries must return only one column.
PL/SQL Provides a block structure for executable units of ________________.
Answer: Code
Evaluate the SQL command
SELECT employee_id, salary from employees where salary = ANY (SELECT salary FROM
employees WHERE job_id = 'IT_PROG') AND job_id = 'ST_CLERK'
Answer: This has no error.
Which of the following PL/SQL will execute successfully?
Answer: DECLARE
v_salary INTEGER(20);
BEGIN
SELECT salary INTO v_salary FROM employees WHERE employee_id = 150;
END;
In PL/SQL Block Structure, which of the following are OPTIONAL?
Answer: None of the choices
Evaluate the following PL/SQL. At what line number is the error of the PL/SQL?
DECLARE
v_deptno NUMBER := 800;
e_invalid EXCEPTION;
BEGIN
DELETE FROM departments
WHERE department_id = v_deptno;
IF SQL % NOT_FOUND THEN
RAISE e_invalid;
END IF;
COMMIT;
EXCEPTION
WHEN e_invalid THEN
DBMS_OUTPUT.PUT_LINE('No such department id.');
END;
Answer: 7
What is the error trapping function that returns the numeric value of the error code?
Answer: SQLCODE
Fetch into a record when fetching from a cursor.
Answer: True

PROG-113A / ► Week 18: Designing PL/SQL / ► Short Quiz 14


Which of the following is the syntax to open a cursor varial
Answer: OPEN cursor_variable_name
FOR select_statement;
Which of the following is the syntax to define a REF CURSOR type?
Answer: TYPE ref_type_name IS REF CURSOR
[RETURN return_type];
Weak REF CURSOR is very flexible.
Answer: True
Evaluate the following. What will be the output?
DECLARE
SUBTYPE Accumulator IS NUMBER (4,2);
v_amount accumulator;
v_num1 NUMBER;
v_num2 NUMBER;
v_num3 NUMBER;
BEGIN
v_amount := 10.50;
v_num1 := 1;
v_num2 := 2;
v_num3 := 3;
v_num1 := v_amount;
v_num2 := v_num1 + v_amount;
v_num2 := v_num2 - v_num3;
dbms_output.put_line('Total is: ' || v_num2);
END;
Answer: 18
Which of the following is the syntax to fetch from a cursor variable?
Answer: FETCH cursor_variable_name INTO variable_name1
[,variable_name2,. . .] | record_name;
Fetch into a record when fetching from a cursor.
Answer: True
Which of the following is the syntax to close a cursor?
Answer: CLOSE cursor_variable_name;
This is a subset of an existing data type that may place a constraint on its base type.
Answer: Subtype
Which of the following rules is INCORRECT about cursor variables?
Answer: None of the choices.
Use column aliases in cursors for calculated columns fetched into records declared with %COLUMNTYPE.
Answer: False

PROG-113A / ► Week 18: Designing PL/SQL / ► Learning Activity 14

Which of the following rules is INCORRECT about cursor variables?


Answer: None of the choices.
Which of the following describes weak REF CURSOR?
Answer: Associates with any query
Restrictive, specifies a RETURN type, associates only with type-compatible queries are
description of a ________________.
Answer: Strong REF CURSOR
Which of the following is INCORRECT about the guidelines for cursor design?
Answer: Use column aliases in cursors for calculated columns fetched into records declared with
%COLUMNTYPE.
This is a subset of an existing data type that may place a constraint on its base type.
Answer: Subtype

PROG-113A / ► Week 17: / ► Short Quiz 13


Evaluate the following PL/SQL.
CREATE OR REPLACE PROCEDURE query_employee
(p_id IN employees.employee_id%TYPE,
p_name OUT employees.last_name%TYPE,
p_salary OUT employees.salary%TYPE) IS
BEGIN SELECT last_name, salary INTO p_name, p_salary
FROM employeesWHERE employee_id = p_id;
END query_employee
Answer: No error
Evaluate the following PL/SQL. Which of the following will line creates an error?
CREATE OR REPLACE PROCEDURE query_emp
(
p_department_id IN employees.department_id%TYPE,
p_name OUT employees.last_name%TYPE,
p_salary OUT employees.salary%TYPE
)
IS
BEGIN
SELECT last_name, salary, department_id INTO p_name, p_salary, p_department_id
FROM employees
WHERE salary >= p_salary AND department_id = p_department_id ;
END query_emp;
Answer: Line 3
These are local variables declared in the parameter list of a subprogram specification.
Answer: Formal parameter
Given the answer in item __________, which of the folllowing stored procedure will display the
employee id and salary of Steven King?
Answer: DECLARE
v_employee_id employees.employee_id%TYPE;
v_emp_sal employees.salary%TYPE;
BEGIN
query_emp('King', 'Steven', v_employee_id, v_emp_sal);
DBMS_OUTPUT.PUT_LINE('Employee ID ' || v_employee_id ||' earns '|| to_char(v_emp_sal,
'$999,999.00'));
END;

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

PROG-113A / ► Week 16: Creating Procedures / ► Learning Activity 13


Procedure can be stored in the database as a schema object.
Answer: True
The PL/SQL code block helps modularize code by using:
Answer: All of the choices
Which of the following command is used to create a stand-alone procedure that is stored in the Oracle
database?
Answer: CREATE PROCEDURE
Which of the folllowing 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
Answer: iii & v
Which if the following is NOT a benefits of using modular program constructs?
Answer: None of the choices
PROG-113A / ► Week 18: Designing PL/SQL / ► Short Quiz 14
Which of the following is the syntax to open a cursor varial
Answer: OPEN cursor_variable_name
FOR select_statement;
Which of the following is the syntax to define a REF CURSOR type?
Answer: TYPE ref_type_name IS REF CURSOR
[RETURN return_type];
Weak REF CURSOR is very flexible.
Answer: True
Evaluate the following. What will be the output?
DECLARE
SUBTYPE Accumulator IS NUMBER (4,2);
v_amount accumulator;
v_num1 NUMBER;
v_num2 NUMBER;
v_num3 NUMBER;
BEGIN
v_amount := 10.50;
v_num1 := 1;
v_num2 := 2;
v_num3 := 3;
v_num1 := v_amount;
v_num2 := v_num1 + v_amount;
v_num2 := v_num2 - v_num3;
dbms_output.put_line('Total is: ' || v_num2);
END;
Answer: 18
Which of the following is the syntax to fetch from a cursor variable?
Answer: FETCH cursor_variable_name INTO variable_name1
[,variable_name2,. . .] | record_name;
Fetch into a record when fetching from a cursor.
Answer: True
Which of the following is the syntax to close a cursor?
Answer: CLOSE cursor_variable_name;
This is a subset of an existing data type that may place a constraint on its base type.
Answer: Subtype
Which of the following rules is INCORRECT about cursor variables?
Answer: None of the choices.
Use column aliases in cursors for calculated columns fetched into records declared with %COLUMNTYPE.
Answer: False

PROG-113A / ► Week 18: Designing PL/SQL / ► Learning Activity 14


Which of the following rules is INCORRECT about cursor variables?
Answer: None of the choices.
Which of the following describes weak REF CURSOR?
Answer: Associates with any query
Restrictive, specifies a RETURN type, associates only with type-compatible queries are
description of a ________________.
Answer: Strong REF CURSOR
Which of the following is INCORRECT about the guidelines for cursor design?
Answer: Use column aliases in cursors for calculated columns fetched into records declared with
%COLUMNTYPE.
This is a subset of an existing data type that may place a constraint on its base type.
Answer: Subtype

PROG-113A / ► Week 15: Long Quiz / ► Long Quiz 3 (30/30)


(Correction)
How do you test the output of a PL/SQL block?
Answer: Use a predefined Oracle package and its procedure
Which of the folllowing statement describes PL/SQL?
Answer: PL/SQL is an Oracle proprietary, procedural, 3GL programming language
Which of the following syntax to declare EXCEPTION named e_invalid_id?
Answer: e_invalid_id EXCEPTION;
In PL/SQL Block Structure, which of the following are mandatory?
Answer: BEGIN and END
This is a type of cursor which is created and managed internally by the Oracle server to process
SQL statements
Answer: Implicit
PL/SQL stands for
Answer: Procedural Language extension to SQL
Which of the following PL/SQL will execute successfully?
Answer: DECLARE
v_salary INTEGER(20);
BEGIN
SELECT salary INTO v_salary FROM employees WHERE employee_id = 150;
END;
What is the last clause in trapping exceptions?
Answer: WHEN OTHERS
PL/SQL Provides a block structure for executable units of ________________.
Answer: Code
Evaluate the following PL/SQL.
DECLARE
v_email VARCHAR(20);
BEGIN
SELECT email INTO v_email FROM EMPLOYEES WHERE email like 'D%';
DBMS_OUTPUT.PUT_LINE ('Employees whose email address starts with letter D :'
|| v_email);
EXCEPTION
WHEN TOO_MANY_ROWS THEN
DBMS_OUTPUT.PUT_LINE (' Your select statement retrieved multiple rows.');
END;
Answer: The PL/SQL block will run successfully.
Which of the folllowing is TRUE?
Answer: SQL code are embedded within PL/SQL statements
You can trap any error by including a corresponding handler within the exception-handling
section of the PL/SQL block.
Answer: True
When an exception is user defined, the exception is raised ____________ .
Answer: Explicitly
Evaluate the PL/SQL
DECLARE
v_first_name VARCHAR2(50);
v_last_name VARCHAR2(50);
v_salary INTEGER(20);
BEGIN
SELECT first_name, last_name, salary INTO v_first_name, v_last_name, v_salary FROM
employees WHERE department_id = 60;
DBMS_OUTPUT.PUT_LINE('Firstname : '|| v_first_name);
DBMS_OUTPUT.PUT_LINE('Lastname : '|| v_last_name);
DBMS_OUTPUT.PUT_LINE('Salary : '|| v_salary);
END;
Answer: Error in Line 6.
Evaluate the following PL/SQL.
DECLARE
v_employee_id employees.employee_id%TYPE := 114;
BEGIN
DELETE employees WHERE employee_id = v_employee_id;
END;
Answer: The PL/SQL will delete employee number 114.
Which of the following does NOT describes SELECT Statement in a PL/SQL.
Answer: Queries must return only one column.
What are the three PL/SQL block types?
Answer: Anonymous, Procedure, Function
What is the exception name when PL/SQL has an internal problem
Answer: PROGRAM_ERROR
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?
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;
What is the error trapping function that returns the numeric value of the error code?
Answer: SQLCODE
What is the exception name when single row SELECT returned no data.
Answer: NO_DATA_FOUND
Which of the following DOES NOT describes an exception?
Answer: Exception is a PL/SQL error that is raised before program execution.
Evaluate the following PL/SQL.
DECLARE
v_employee_id employees.employee_id%TYPE := 114;
BEGIN
DELETE employees WHERE employee_id = v_employee_id;
END;
Answer: The PL/SQL will delete employee number 114.
In the DECLARE section of the PL/SQL block,
Answer: All of the choices
When an exception is predefined by Oracle server, the exception is raised ____________ .
Answer: Explicitly
Which of the will display the Employee ID and number of years in service with employee ID
150?
Answer: DECLARE
v_salaryemployees.salary%TYPE := 10000;
v_employee_idemployees.employee_id%TYPE := 150;
v_years INTEGER(10);
BEGIN
SELECT employee_id, ROUND((SYSDATE - hire_date) /365,0) INTO v_employee_id, v_years
FROM employees WHERE employee_id = v_employee_id ;
DBMS_OUTPUT.PUT_LINE('Employee ID:' || v_employee_id);
DBMS_OUTPUT.PUT_LINE('Number of years : ' || v_years);
END;
Actions are being performed when error occurs during PL/SQL execution in the
Answer: EXCEPTION
You can use this procedure to issue user-defined error messages from stored subprograms.
Answer: RAISE_APPLICATION_ERROR

PROG-113A / ► Week 14: Handling Exceptions / ► Short Quiz 12

Evaluate the following PL/SQL.


DECLARE
v_email VARCHAR(20);
BEGIN
SELECT email INTO v_email FROM EMPLOYEES WHERE email like 'D%';
DBMS_OUTPUT.PUT_LINE ('Employees whose email address starts with letter D :'
|| v_email);
EXCEPTION
WHEN TOO_MANY_ROWS THEN
DBMS_OUTPUT.PUT_LINE (' Your select statement retrieved multiple rows.');
END;
Answer: The PL/SQL block will run successfully.
Which of the following DOES NOT describes an exception?
Answer: Exception is a PL/SQL error that is raised before program execution.
What is the exception name when single row SELECT returned no data.
Answer: NO_DATA_FOUND
RAISE_APPLICATION_ERROR is used in two different places. These are
___________________.
Answer: Executable and exceptions section
What is the error trapping function that returns the numeric value of the error code?
Answer: SQLCODE
What is the exception name when PL/SQL has an internal problem
Answer: PROGRAM_ERROR
Evaluate the following PL/SQL. At what line number is the error of the PL/SQL?
DECLARE
v_deptno NUMBER := 800;
e_invalid EXCEPTION;
BEGIN
DELETE FROM departments
WHERE department_id = v_deptno;
IF SQL % NOT_FOUND THEN
RAISE e_invalid;
END IF;
COMMIT;
EXCEPTION
WHEN e_invalid THEN
DBMS_OUTPUT.PUT_LINE('No such department id.');
END;
Answer: 7
What is the last clause in trapping exceptions?
Answer: WHEN OTHERS
Complete the diagram in Trapping Non-Predefined Oracle Server Errors.
Answer: Declare, Associate, Reference

PROG-113A / ► Week 14: Handling Exceptions / ► Learning Activity 12

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

PROG-113A / ► Week 13: Interacting with Oracle Server / ► Learning Activity 11

Which of the following does NOT describes SELECT Statement in a PL/SQL.


Answer: Queries must return only one column.
Evaluate the following PL/SQL.
1 DECLARE

2 v_employee_id employees.employee_id%TYPE := 114;

3 BEGIN

4 DELETE employees WHERE employee_id = 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;

PROG-113A / ► Week 12: Introduction to PLSQL / ► Short Quiz 10

Which of the folllowing is TRUE?


Answer: SQL code are embedded withing PL/SQL statements
In the DECLARE section of the PL/SQL block
Answer: All of the choices
In PL/SQL Block Structure, which of the following are OPTIONAL?
Answer: None of the choices
What are the three PL/SQL block types?
Answer: Anonymous, Procedure, Function
How do you test the output of a PL/SQL block?
Answer: Use a predefined Oracle package and its procedure
You want to display the name, salary and tax of employee #150. Which of the PL/SQL will
execute successfully? Note tax is computed as 2% of the salary.
Answer: DECLARE
v_first_name VARCHAR2(50);
v_last_name VARCHAR2(50);
v_salary INTEGER(20);
v_tax INTEGER(10);
BEGIN
SELECT first_name, last_name, salary, salary * 0.02 INTO v_first_name, v_last_name,
v_salary, v_tax FROM employees WHERE employee_id = 150;
DBMS_OUTPUT.PUT_LINE('Firstname : '|| v_first_name);
DBMS_OUTPUT.PUT_LINE('Lastname : '|| v_last_name);
DBMS_OUTPUT.PUT_LINE('Salary : '|| v_salary);
DBMS_OUTPUT.PUT_LINE('Tax : '|| v_tax);
END;
Which of the folllowing statement describes PL/SQL?
Answer: PL/SQL is an Oracle proprietary, procedural, 3GL programming language

PROG-113A / ► Week 12: Introduction to PLSQL / ► Learning Activity 10


PL/SQL stands for
Answer: Procedural Language extension to SQL
PL/SQL Provides a block structure for executable units of ________________.
Answer: Code
In PL/SQL Block Structure, which of the following are mandatory?
Answer: BEGIN and END
Which of the following PL/SQL will execute successfully?
Answer: DECLARE
v_salary INTEGER(20);
BEGIN
SELECT salary INTO v_salary FROM employees WHERE employee_id = 150;
END;
Actions are being performed when error occurs during PL/SQL execution in the
Answer: EXCEPTION

PROG-113A / ► Week 11: Using Subqueries to Solve Queries / ► Short Quiz 9

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')
Evaluate the SQL command
SELECT employee_id, job_id, salary from employees where salary < ALL (SELECT salary
FROM employees WHERE job_id = 'FI_ACCOUNT') AND job_id = 'IT_PROG'
Answer: This has no error.

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')

Evaluate the SQL command


SELECT employee_id, last_name, first_name, job_id FROM employees WHERE department_id
= (SELECT max(department_id) FROM employees GROUP BY department_id)
Answer: This will return an error. Single-row subquery returns more than one row.

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)

PROG-113A / ► Week 11: Using Subqueries to Solve Queries / ► Learning Activity 9


Which of the following is INCORRECT?
Answer: Use single-row operators with multiple-row subqueries
Which of the folllowing is required in a subquery?
Answer: SELECT
Which of the following is CORRECT about sub-queries?
Answer: Subquery execute before the main query executes.
Evaluate the SQL Command
SELECT job_id, job_title FROM jobs J WHERE INCLUDES
(SELECT * FROM employees WHERE J.job_id = e.job_id );
Answer: The SQL will return an error. Invalid "INCLUDES" parameter.
Evaluate the SQL command
SELECT employee_id, salary from employees where salary = ANY (SELECT salary FROM employees
WHERE job_id = 'IT_PROG') AND job_id = 'ST_CLERK'
Answer: This has no error.
The General Manager request to the Database Administrator to generate the total number of parts
and total outstanding balance on hand of every class in warehouse number 1&2.
Which of the following SQL command will generate the required output.
-SELECT warehouse, class, count(partnum), sum(onhand) GROUP BY warehouse,class
HAVING warehouse = 1 or warehouse = 2 FROM parts;

Display the employee's name, job title, job_id and the department name of employees with
department id of 100.
-SELECT E.employee_id, J.job_title, e.job_id, D.department_name
FROM employees E
JOIN jobs J ON E.job_id = J.job_id
JOIN departments D ON E.department_id = D.department_id
WHERE E.department_id = 100

Display the part number whose class is not HW, AG or SG.


-SELECT partnum FROM parts WHERE NOT IN class ('HW', 'AG', SG')
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?
-. SELECT DESCRIPTION RENAME AS TITLE, PARTNUM RENAME AS ID, ONHAND RENAME AS
STOCK FROM PARTS;
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 _____________.
-FULL OUTER JOIN
Which of the following is NOT a task of a Database Administrator
-None of the choices

SELECT employee_id, min_salary, max_salary FROM employees, departments WHERE


salary>= 10000 && salary <= 20000
-The SQL command will produce an error.

These are collection of objects such as tables, views, and sequences.


-Container’
Display the first 5 letter in the surname of all the employees whose firstname starts with letter 'N'
-SELECT SUBSTR(last_name,1,5), first_name FROM employees WHERE
SUBSTR(first_name,1,1) IN 'N'
Which of the following SELECT statement is the correct PL/SQL that will display all rows and
columns?
-SELECT FROM TABLE PARTS;
Display all employees whose job id contains the word 'ACCOUNT'.
-SELECT * FROM EMPLOYEES WHERE job_id LIKE '%ACCOUNT%';
Display employee's name and id whose firstname starts with letter D and job id is IT_PROG.
-SELECT employee_id, first_name, last_name FROM employees ORDER BY department_id
WHERE first_name LIKE 'D%' and job_id = 'IT_PROG'
The following are capabilities of SQL SELECT
-Create records, Remove Table, Edit record

Display the part number whose class is not HW, AG or SG.


-SELECT partnum FROM parts WHERE class NOT IN = (‘HW’, AG’, SG’)
Each row of data in a table can be uniquely identified by a
-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;
Display all location id between 1000 to 2000.
- DISPLAY location_id FROM departments WHERE location_id BETWEEN 1000 TO 2000
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 does NOT describes SELECT Statement in a PL/SQL.


Answer: Queries must return only one column.
You want to display all the records of employee the same with the salary employee number 103.
Answer: SELECT * FROM employees WHERE salary = (SELECT salary from employees where
employee_id= 103)
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;
Which of the folllowing is TRUE?
Answer: SQL code are embedded within PL/SQL statements
When an exception is user defined, the exception is raised ____________ .
Answer: Explicitly
Which of the folllowing is TRUE?
Answer: SQL code are embedded withing PL/SQL statements
Weak REF CURSOR is very flexible.
Answer: True
How do you test the output of a PL/SQL block?
Answer: Use a predefined Oracle package and its procedure
Restrictive, specifies a RETURN type, associates only with type-compatible queries are description
of a ________________.
Answer: Strong REF CURSOR
Which of the following DOES NOT describes an exception?
Answer: Exception is a PL/SQL error that is raised before program execution.
These are local variables declared in the parameter list of a subprogram specification.
Answer: Formal parameter
Which of the following rules is INCORRECT about cursor variables?
Answer: None of the choices.
When an exception is predefined by Oracle server, the exception is raised ____________ .
Answer: Explicitly
Which of the following DOES NOT describes an exception?
Answer: Exception is a PL/SQL error that is raised before program execution.
Evaluate the following PL/SQL.
CREATE OR REPLACE PROCEDURE query_employee
(p_id IN employees.employee_id%TYPE,
p_name OUT employees.last_name%TYPE,
p_salary OUT employees.salary%TYPE) IS
BEGIN SELECT last_name, salary INTO p_name, p_salary
FROM employeesWHERE employee_id = p_id;
END query_employee
Answer: No error
You want to know the total number of employees whose firstname starts with letter D.
Which of the folllowing PLS/SQL executes successfully?
Answer: DECLARE
v_first_name employees.first_name%TYPE := 'D%';
BEGIN
SELECT COUNT(*) INTO v_first_name FROM employees WHERE first_name LIKE v_first_name;
DBMS_OUTPUT.PUT_LINE(v_first_name);
END;
What is the error trapping function that returns the numeric value of the error code?
Answer: SQLCODE
You want to display the name, salary and tax of employee #150. Which of the PL/SQL will execute
successfully? Note tax is computed as 2% of the salary.
Answer: DECLARE
v_first_name VARCHAR2(50);
v_last_name VARCHAR2(50);
v_salary INTEGER(20);
v_tax INTEGER(10);
BEGIN
SELECT first_name, last_name, salary, salary * 0.02 INTO v_first_name, v_last_name, v_salary,
v_tax FROM employees WHERE employee_id = 150;
DBMS_OUTPUT.PUT_LINE('Firstname : '|| v_first_name);
DBMS_OUTPUT.PUT_LINE('Lastname : '|| v_last_name);
DBMS_OUTPUT.PUT_LINE('Salary : '|| v_salary);
DBMS_OUTPUT.PUT_LINE('Tax : '|| v_tax);
END;
Which of the following is the syntax to close a cursor?
Answer: CLOSE cursor_variable_name;
Which of the following rules is INCORRECT about cursor variables?
Answer: None of the choices.
What are the three PL/SQL block types?
Answer: Anonymous, Procedure, Function
You can trap any error by including a corresponding handler within the exception-handling section of
the PL/SQL block.
Answer: True
Which of the following describes weak REF CURSOR?
Answer: Associates with any query
Given the answer in item __________, which of the folllowing stored procedure will display the
employee id and salary of Steven King?
Answer: DECLARE
v_employee_id employees.employee_id%TYPE;
v_emp_sal employees.salary%TYPE;
BEGIN
query_emp('King', 'Steven', v_employee_id, v_emp_sal);
DBMS_OUTPUT.PUT_LINE('Employee ID ' || v_employee_id ||' earns '|| to_char(v_emp_sal,
'$999,999.00'));
END;
You have been tasked to update the database by creating a PL/SQL to increase the salary of all IT
Programmer employees by 50% 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 *0.50 WHERE job_id = v_job_id;
END;
Which of the folllowing is required in a subquery?
Answer: SELECT
What is the exception name when PL/SQL has an internal problem
Answer: PROGRAM_ERROR
In the DECLARE section of the PL/SQL block,
Answer: All of the choices
Actions are being performed when error occurs during PL/SQL execution in the
Answer: EXCEPTION
What is the exception name when PL/SQL has an internal problem
Answer: PROGRAM_ERROR
Which of the folllowing statement describes PL/SQL?
Answer: PL/SQL is an Oracle proprietary, procedural, 3GL programming language
Evaluate the following PL/SQL.
DECLARE
v_employee_id employees.employee_id%TYPE := 114;
BEGIN
DELETE employees WHERE employee_id = v_employee_id;
END;
Answer: The PL/SQL will delete employee number 114.
Which of the following command is used to create a stand-alone procedure that is stored in the
Oracle database?
Answer: CREATE PROCEDURE
Evaluate the following PL/SQL.
DECLARE
v_email VARCHAR(20);
BEGIN
SELECT email INTO v_email FROM EMPLOYEES WHERE email like 'D%';
DBMS_OUTPUT.PUT_LINE ('Employees whose email address starts with letter D :'
|| v_email);
EXCEPTION
WHEN TOO_MANY_ROWS THEN
DBMS_OUTPUT.PUT_LINE (' Your select statement retrieved multiple rows.');
END;
Answer: The PL/SQL block will run successfully.
Which of the following is the syntax to define a REF CURSOR type?
Answer: TYPE ref_type_name IS REF CURSOR
[RETURN return_type];
The PL/SQL code block helps modularize code by using:
Answer: All of the choices
Which of the following is the syntax to fetch from a cursor variable?
Answer: FETCH cursor_variable_name INTO variable_name1
[,variable_name2,. . .] | record_name;
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')
Procedure can be stored in the database as a schema object.
Answer: True
In PL/SQL Block Structure, which of the following are mandatory?
Answer: BEGIN and END
PL/SQL stands for
Answer: Procedural Language extension to SQL
Which of the following is CORRECT about sub-queries?
Answer: Subquery execute before the main query executes.
Which of the following does NOT describes SELECT Statement in a PL/SQL.
Answer: Queries must return only one column.
PL/SQL Provides a block structure for executable units of ________________.
Answer: Code
Evaluate the SQL command
SELECT employee_id, salary from employees where salary = ANY (SELECT salary FROM
employees WHERE job_id = 'IT_PROG') AND job_id = 'ST_CLERK'
Answer: This has no error.
Which of the following PL/SQL will execute successfully?
Answer: DECLARE
v_salary INTEGER(20);
BEGIN
SELECT salary INTO v_salary FROM employees WHERE employee_id = 150;
END;
In PL/SQL Block Structure, which of the following are OPTIONAL?
Answer: None of the choices
Evaluate the following PL/SQL. At what line number is the error of the PL/SQL?
DECLARE
v_deptno NUMBER := 800;
e_invalid EXCEPTION;
BEGIN
DELETE FROM departments
WHERE department_id = v_deptno;
IF SQL % NOT_FOUND THEN
RAISE e_invalid;
END IF;
COMMIT;
EXCEPTION
WHEN e_invalid THEN
DBMS_OUTPUT.PUT_LINE('No such department id.');
END;
Answer: 7
What is the error trapping function that returns the numeric value of the error code?
Answer: SQLCODE
Fetch into a record when fetching from a cursor.
Answer: True

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
Enforcing environmental policies is one of the major causes of job loss and
unemployment. - False
True or False: Dates in file names should be written in YYYY-MM-DD format. - False
Big business companies are the only ones responsible for enforcing environmental
policies since they can afford alternative cleaner technology. - False
Pre-review activities in the review process includes review planning, preparation and
individual review. - true
Increase work productivity by arranging items in such a way that they are easy to find
and pick up. - true
Montreal protocol protects the ozone layer by ____________________. - phasing out
harmful substances
Business industries will not be affected by the environmental crisis. - False
True or False: Protocols are set of standards rules which describes how something
should be done and different companies have different protocols as well. - true
Presidential Decree No. 856 is an international treaty that imposes limitations on the
greenhouse gas emissions of several countries. - True
True or False: Organizational aims are different from the mission statement; they refer
to the results an organization is aspiring for. - true
The cost / benefit analysis document is appropriately named. - False
A printed progress report to be submitted to the adviser. - purpose
True or False: Statutory requirements are identified by the vendors or suppliers and
they include value, stability, diversity and capacity. - False
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. - False
Identify whether the statement is a strength, weakness, opportunity or threat: The
student record system could be used by other schools other than Ricka’s school. -
opportunity
True or False: Reviewing the related literature includes review of concepts, theories and
previous research findings. - true
Companies can freely make their own set of environmental policies without consulting
the workers’ union, or any local or national laws about it. - False
Kyoto protocol addresses environmental issues through the campaign of
____________________. - reducing greenhouse gas emissions
Humans rely on natural resources for survival. - true
Quantitative research, compared to qualitative research, uses measurable - Data
ISO/IEC 25010:2011’s product quality model has eight (8) major characteristics. - true
True or False: Usually, the summary of the report is the first thing that’s being read. -
true
____________________ is when you conduct regular audits and inspections to
evaluate your work performance. - Shitsuke
“XYZ is so cool! I tried to install it in my old computer and it still runs smoothly. Given
that the computer’s video card is a bit faulty.“ - Reliability
True or False: There are five main elements of a written report – topic, style, structure,
facts and contents. - false
True or False: To gather data, you can either conduct an interview, survey, observation,
mail questionnaire, coding and tabulation. - false
PROG LONG QUIZ 4

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;
query_emp('King', 'Steven', v_employee_id, v_emp_sal);
BEGIN
DBMS_OUTPUT.PUT_LINE('Employee ID ' || v_employee_id ||' earns '|| to_char(v_emp_sal,
'$999,999.00'));
END;
b. DECLARE
query_emp('King', 'Steven', v_employee_id, v_emp_sal);
BEGIN
v_employee_id employees.employee_id VARCHAR(10);
v_emp_sal employees.salary NUMERIC(10);
DBMS_OUTPUT.PUT_LINE('Employee ID ' || v_employee_id ||' earns '|| to_char(v_emp_sal,
'$999,999.00'));
END;
c. DECLARE
v_employee_id employees.employee_id VARCHAR(10);
v_emp_sal employees.salary NUMERIC(10);
BEGIN
query_emp('King', 'Steven', v_employee_id, v_emp_sal);
DBMS_OUTPUT.PUT_LINE('Employee ID ' || v_employee_id ||' earns '|| to_char(v_emp_sal,
'$999,999.00'));
END;
d. DECLARE
v_employee_id employees.employee_id%TYPE;
v_emp_sal employees.salary%TYPE;
BEGIN
query_emp('King', 'Steven', v_employee_id, v_emp_sal);
DBMS_OUTPUT.PUT_LINE('Employee ID ' || v_employee_id ||' earns '|| to_char(v_emp_sal,
'$999,999.00'));
END;

Question 2
Complete
Mark 1.00 out of 1.00

Flag question

Question text
The PL/SQL code block helps modularize code by using:
Select one:
a. All of the choices
b. Database triggers
c. Packages
d. Procedures
e. Anonymous blocks
f. Functions

Question 3
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Which of the following rules is INCORRECT about cursor variables?
Select one:
a. You cannot assign a null value to cursor variables.
b. Cursors and cursor variables are not interoperable.
c. You cannot use REF CURSOR types in CREATE TABLE or VIEW statements.
d. You cannot use comparison operators to test cursor variables.
e. None of the choices.
f. You cannot use cursor variables with remote subprograms on another server.

Question 4
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Which of the following is the syntax to close a cursor?
Select one:
a. SET cursor_variable_nameCLOSE;
b. CLOSE cursor_variable_name;
c. EXIT cursor_variable_name;
d. QUIT cursor_variable_name;

Question 5
Complete
Mark 1.00 out of 1.00
Flag question

Question text
Which of the folllowing is TRUE?
Select one:
a. PL/SQL statements are embedded within SQL code.
b. None of the choices
c. SQL code are embedded within PL/SQL statements
d. You can embed procedural construct within SQL code

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
b. Index
c. Data dictionary
d. Data
e. Schema

Question 8
Complete
Mark 1.00 out of 1.00

Flag question

Question text
What is the default parameter mode when no mode is specified?
Select one:
a. IN
b. DEFAULT
c. OUT
d. IN OUT

Question 9
Complete
Mark 1.00 out of 1.00

Flag question

Question text
When an exception is predefined by Oracle server, the exception is raised ____________ .
Select one:
a. Implicitly
b. Interactively
c. Exclusively
d. Explicitly
e. None of the choices

Question 10
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Evaluate the following PL/SQL. Which of the following will line creates an error?

1. CREATE OR REPLACE PROCEDURE query_emp


2. (
3. p_department_id IN employees.department_id%TYPE,
4. p_name OUT employees.last_name%TYPE,
5. p_salary OUT employees.salary%TYPE
6. )
7. IS
8. BEGIN
9. SELECT last_name, salary, department_id INTO p_name, p_salary,
p_department_id
10. FROM employees
11. WHERE salary >= p_salary AND department_id = p_department_id ;
12. END query_emp;

Select one:
a. Line 1
b. Line 5
c. Line 9
d. Line 3
e. No error
f. Line 11

Question 11
Complete
Mark 1.00 out of 1.00

Flag question

Question text
These are local variables declared in the parameter list of a subprogram specification.
Select one:
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:
a. Improved data security and integrity
b. Improved code clarity
c. Improved performance
d. None of the choices
e. Easy maintenance

Question 14
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Which of the following command is used to create a stand-alone procedure that is stored in the
Oracle database?
Select one:
a. PROCEDURE
b. BUILD PROCEDURE
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
Flag question

Question text
Which of the following is the syntax to fetch from a cursor variable?
Select one:
a. FETCH cursor_variable_name INTO variable_name1
[,variable_name2,. . .] | record_name;
b. GET cursor_variable_name INTO variable_name1
[,variable_name2,. . .] | record_name;
c. POST cursor_variable_name INTO variable_name1
[,variable_name2,. . .] | record_name;
d. RETRIEVE cursor_variable_name INTO variable_name1
[,variable_name2,. . .] | record_name;

Question 17
Complete
Mark 1.00 out of 1.00

Flag question

Question text
PL/SQL stands for
Select one:
a. Procedural Language extension to SQL
b. Procedural Libraries of SQL
c. Procedural Logic of SQL
d. Process Linkage to SQL

Question 18
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Which of the following is the syntax to define a REF CURSOR type?
Select one:
a. DECLARE ref_type_name AS REF CURSOR
[RETURN return_type];
b. DEFINE ref_type_name AS REF CURSOR
[RETURN return_type];
c. TYPE ref_type_name IS REF CURSOR
[RETURN return_type];
d. SET ref_type_name IS REF CURSOR
[RETURN return_type];

Question 19
Complete
Mark 1.00 out of 1.00

Flag question

Question text
What is the error trapping function that returns the numeric value of the error code?
Select one:
a. SQLCODE
b. ERRORCODE
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:
a. Anonymous, Procedure, Function
b. SELECT, UPDATE, INSERT
c. Add, Edit, Delete
d. DECLARE, BEGIN, END

Question 21
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Evaluate the following PL/SQL.

1. DECLARE
2. v_employee_id employees.employee_id%TYPE := 114;
3. BEGIN
4. 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:
a. DECLARE
v_job_id employees.job_id%TYPE := 'IT_PROG';
BEGIN
UPDATE employees SET salary = salary * 2 WHERE job_id = v_job_id;
END;
b. DECLARE
v_job_id employees.job_id%TYPE := 'IT_PROG';
v_salary employees.salary := salary;
BEGIN
UPDATE employees SET v_salary = salary * 1.00 WHERE v_job_id = job_id;
END;
c. DECLARE
v_job_id employees.job_id%TYPE := 'IT_PROG';
BEGIN
UPDATE employees SET salary = salary * 100% WHERE job_id = v_job_id;
END;
d. DECLARE
v_job_id employees.job_id%TYPE := 'IT_PROG';
v_salary employees.salary := salary;
BEGIN
UPDATE employees SET salary = v_salary * 0.100% WHERE job_id = v_job_id;
END;

Question 23
Complete
Mark 1.00 out of 1.00

Flag question

Question text
This is a type of cursor which is created and managed internally by the Oracle server to process
SQL statements
Select one:
a. Interactive
b. Implicit
c. Explicit
d. Exclusive
e. Coded

Question 24
Complete
Mark 1.00 out of 1.00
Flag question

Question text
Which of the following describes weak REF CURSOR?
Select one:
a. Restrictive
b. All of the choices
c. Is not flexible
d. Associates with any query

Question 25
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Evaluate the following PL/SQL.

1. DECLARE
2. v_employee_id employees.employee_id%TYPE := 114;
3. BEGIN
4. 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
Flag question

Question text
What is the exception name when PL/SQL has an internal problem
Select one:
a. ERROR_MSG
b. EXECUTION_ERROR
c. RUNTIME_ERROR
d. PROGRAM_ERROR

Question 27
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Which of the folllowing 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
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
Flag question

Question text
Evaluate the following. What will be the output?

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
Question text
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 one:
a. SELECT job_title FROM jobs WHERE min_salary >= 5000 AND max_salary<= 10000
b. SELECT job_title FROM employees WHERE salary >= 5000 AND salary <= 10000
c. 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
Complete
Mark 2.00 out of 2.00

Flag question

Question text
What is the SQL command to count the number of records in the employees table?
Select one:
a. SELECT ALL FROM employees
b. SELECT * FROM employees;
c. SELECT COUNT(*) FROM employees
d. SELECT SUM(*) FROM employees;

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
Question 4
Complete
Mark 2.00 out of 2.00

Flag question

Question text
Evaluate the following SQL command
SELECT * FROM jobs WHERE job_title LIKE 'Manager%'
Select one:
a. The SQL command will produce an error.
b. The SQL command will display all employees with Manager position
c. The SQL command will display all records in the database
d. No records will be displayed

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:
a. SELECT employee_id, hire_date, TO_DATE(hire_date,'Month') AS "Hired Month", job_id FROM
b. SELECT employee_id, hire_date, MONTH(hire_date,'Month') AS "Hired Month", job_id FROM
employees
c. SELECT employee_id, hire_date, TO_CHAR(hire_date,'Month') AS "Hired Month", job_id FROM
employees
d. SELECT employee_id, hire_date, TO_MONTH(hire_date,'Month') AS "Hired Month", job_id
FROM employees

Question 6
Complete
Mark 2.00 out of 2.00
Flag question

Question text
You want to generate the total salary per month of every department in the company.
Select one:
a. SELECT department_id, salary FROM employees ORDER BY SUM(salary)
b. SELECT department_id, TOTAL(salary) FROM employees GROUP BY department_id
c. SELECT department_id, salary FROM employees GROUP BY SUM(salary) ORDER BY
department_id
d. SELECT department_id, SUM(salary) FROM employees GROUP BY 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:
a. SELECT last_name, TO_INT(salary, '$999,999.99') AS "MONTHLY SALARY" FROM employees
WHERE salary < 10,000 WHERE last_name STARTS 'D%'
b. SELECT last_name, TO_CHAR(salary, '$999,999.99') AS "MONTHLY SALARY" FROM
employees WHERE salary < 10000 WHERE last_name LIKE 'D%'
c. SELECT last_name, TO_INTEGER(salary, $999,999.99) AS "MONTHLY SALARY" FROM
employees WHERE salary < 10000 WHERE last_name IN 'D%'
d. SELECT last_name, TO_NUMBER(salary, '$999,999.99') AS "MONTHLY SALARY" FROM
employees WHERE salary < 10,000 WHERE last_name = ‘D%’

Question 8
Complete
Mark 2.00 out of 2.00
Flag question

Question text
Display the lastname of every employee in the company. Display the output in a single column and
label it as Fullname
Format: JuanReyes
Select one:
a. None of the choices
b. SELECT CONCATENATE(first_name, last_name) AS Fullname FROM employees
c. SELECT CONCAT(first_name, last_name) FROM employees
d. SELECT CONCAT(first_name, last_name) AS Fullname FROM employees

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:
a. SELECT SUBSTR(last_name,1,5), first_name FROM employees WHERE first_name IN 'N'
b. SELECT SUBSTR(last_name,1,5), first_name FROM employees WHERE
SUBSTR(first_name,1,1) = 'N'
c. SELECT SUBSTR(surname,1,5), first_name FROM employees WHERE
SUBSTR(first_name,1,1) IN 'N'
d. SELECT SUBSTR(surname,1,5), first_name FROM employees WHERE first_name = 'N'
e. SELECT SUBSTR(last_name,1,5), first_name FROM employees WHERE
SUBSTR(first_name,1,1) IN 'N'

Question 10
Complete
Mark 2.00 out of 2.00
Flag question

Question text
Austin David was transferred to Purchasing Department. You are assigned to update the database.
Which of the following SQL command will satisfy the requirements?
Select one:
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’
d. UPDATE employees SET department_id = 30 WHERE first_name = ‘David’ AND last_name =
‘Austin’

Question 11
Complete
Mark 2.00 out of 2.00

Flag question

Question text
John want to know how many employees receiving salary below 10,000.
What SQL command he need to run?
Select one:
a. SELECT COUNT(*) FROM employees WHERE salary < 10000;
b. SELECT COUNT(salary) FROM employees WHERE salary < 10,000;
c. SELECT COUNT(emp_id) FROM employees WHERE salary <= 10000;
d. SELECT salary FROM COUNT(employees)WHERE salary < 10000;

Question 12
Complete
Mark 2.00 out of 2.00
Flag question

Question text
Evaluate the following SQL command
SELECT employee_id, salary, department_id FROM employees WHERE department_id IN (60,70)
Select one:
a. The SQL command will produce an error.
b. The SQL command will display employees with department id 60 and 70.
c. The SQL command will give an incorrect output.
d. The SQL command will display employees with department id 60 or 70.

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 give the required output?
Select one:
a. SELECT last_name, hire_date FROM employees WHERE hire_date>=
TO_DATE('01-Jan-2006', 'DD-Mon-RR') AND hire_date<= TO_DATE('31-Dec-2006', 'DD-Mon-RR')
AND salary > 5000;
b. SELECT last_name, hire_date FROM employees WHERE hire_date>=
TO_DATE('Jan-2000', 'Month-YYYY') AND hire_date<= TO_DATE('Dec-2006', 'Month-‘YYYY') AND
salary > 5,000;
c. 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;
d. SELECT last_name, hire_date FROM employees WHERE hire_date>=
TO_DATE('2000', 'YYYY') AND hire_date<= TO_DATE('2006', 'YYYY') OR salary > 5000;

Question 14
Complete
Mark 2.00 out of 2.00
Flag question

Question text
List all employees except for IT_PROG job id.
Select one:
a. SELECT *FROM employees EXCEPT JOB_ID != 'IT_PROG'
b. SELECT *FROM employees WHERE JOB_ID NOT IN ('IT_PROG')
c. SELECT *FROM employees WHERE JOB_ID <> 'IT_PROG'
d. All of the choices

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:
a. The SQL will produce Cartesian Product
b. The SQL will display the employee id, department id and the minimum and maximum salary
whose salary is between 10000 and 20000.
c. The SQL command will produce an error.
d. The SQL command will give an incorrect output.

Question 16
Complete
Mark 2.00 out of 2.00

Flag question

Question text
Display all the records in the employee table. Arrange the output in by lastname from A-Z order.
Select one:
a. SELECT * FROM employees SORT BY lastname
b. SELECT * FROM employees ORDER BY lastname
c. SELECT * FROM employees ORDER BY lastname AZ
d. SELECT * FROM employees SORT BY lastname ascending

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:
a. SELECT employee_id, first_name, last_name FROM employees ORDER BY department_id
WHERE first_name LIKE 'D%' and job_id = 'IT_PROG'
b. SELECT employees FROM employee_id, first_name, last_name WHERE first_name LIKE ‘D%’
and job_id = ‘IT_PROG’ ORDER BY department_id
c. SELECT employee_id, first_name, last_name FROM employees WHERE job_id = 'IT_PROG' OR
first_name LIKE 'D%' and 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 command will produce the output.
Select one:
a. SELECT AVERAGE(salary) FROM employees WHERE job_id = 'FI_ACCOUNT';
b. SELECT AVG(salary) FROM employees WHERE job_id = 'FI_ACCOUNT';
c. SELECT AVE(salary) FROM employees WHERE job_id = 'FI_ACCOUNT';
d. SELECT COUNT AVG(salary) FROM employees WHERE job_id = 'FI_ACCOUNT';

Question 19
Complete
Mark 2.00 out of 2.00

Flag question

Question text
Display all location id between 1000 to 2000.
Select one:
a. DISPLAY location_id FROM departments WHERE location_id LING 1000 UP TO 2000
b. DISPLAY location_id FROM departments WHERE location_id BETWEEN 1000 TO 2000
c. SELECT location_id FROM departments WHERE location_id IN 1000 AND 2000
d. SELECT location_id FROM departments WHERE location_id BETWEEN 1000 AND 2000

Question 20
Complete
Mark 2.00 out of 2.00

Flag question

Question text
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 one:
a. SELECT employee_id, salary, salary + (salary .03) FROM employees
b. SELECT employee_id, salary, salary * .03 FROM employees
c. SELECT employee_id, salary, salary * 1.03 FROM employees
d. SELECT employee_id, salary FROM employees WHERE salary)
e. SELECT employee_id, salary, salary * .30 FROM employees

Question 21
Complete
Mark 2.00 out of 2.00

Flag question

Question text
Display the employee id, salary, number of years and the hiring date of every employee in the
company.
Select one:
a. SELECT employee_id,salary, hire_date, hire_date- SYSDATE /365 FROM employees;
b. SELECT employee_id, salary, hire_date, ROUND((SYSDATE - hire_date) /365,0) FROM
employees;
c. SELECT employee_id, salary, hire_date, hire_date /365 FROM employees;

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:
a. SELECT E.employee_id, J.job_title, e.job_id, D.department_name
FROM employees E
JOIN jobs J ON E.job_id = J.job_id
JOIN departments D ON E.department_id = D.department_id
WHERE E.department_id = 100
b. SELECT E.employee_id, J.job_title, e.job_id, D.department_name
FROM employees E
JOIN department D ON E.job_id = J.job_id
JOIN jobs J ON E.department_id = D.department_id
WHERE E.department_id = 100
c. SELECT E.employee_id, J.job_title, e.job_id, D.department_name
FROM jobs J
INNER JOIN department D ON E.job_id = J.job_id
INNER JOIN employees EON E.department_id = D.department_id
WHERE E.department_id = 100
d. SELECT E.employee_id, J.job_title, e.job_id, D.department_name
FROM jobs J
NATURAL JOIN department D ON E.job_id = J.job_id
NATURAL JOIN employees E ON E.department_id = D.department_id
WHERE E.department_id = 100

Question 23
Complete
Mark 2.00 out of 2.00

Flag question

Question text
In creating Joins,the NATURALJOIN and USING clauses are____________
Select one:
a. Mutually Inclusive
b. Limited to 2 relational tables
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 working in Finance Department. Label the annual salary to ANNUAL
SALARY.
Sort the output in from highest to lowest salary. (4 POINTS)
Select one:
a. 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
NATURAL JOIN jobs J ON E.job_id = J.job_id
NATURAL JOIN departments D ON E.department_id = D.department_id
ORDER BY "ANNUAL SALARY" DESC
WHERE D.location_id = 1700 AND D.department_name = 'Finance'
b. 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
JOINemployees E ON E.department_id = D.department_id
WHERE D.location_id = 1700 AND D.department_name = 'Finance'
ORDER BY "ANNUAL SALARY" DESC
c. 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
d. 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
OUTER JOIN jobs J ON E.job_id = J.job_id
OUTER 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

PROG-113A / ? Week 7: Manipulate Data / ? Short Quiz 7

9/10

Create a SQL command to update the employees table

Employee id : 200

Name : Mr. Gary Park

Date hired : July 1, 2017

Position :IT Programmer

Salary : 10000

Department of assignment : 60

Reporting to manager : 103

answer: INSERT INTO employees


(employee_id,first_name,last_name,hire_date,job_id,salary,manager_id,department_id)

VALUES (200,'Gary','Park',TO_DATE('Jul 1, 2017', 'MON DD, YYYY'), 'IT_PROG', 10000, 103, 60)

Add a 500 pesos increase in salary of all employees who have rendered services 10 years and above.

answer: UPDATE employees SET salary = salary + 500 where TO_CHAR(sysdate,'YYYY') -


TO_CHAR(hire_date,'YYYY') >= 10
Diana Lorentz was transferred to Administration department. Using the employees and department
table information update the profile of employee.

answer: UPDATE employees SET manager_id = 200, department_id = 10 WHERE last_name =


'Lorentz' AND first_name = 'Diana';

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.

answer: UPDATE departments SET department_name = 'Procurement', manager_id = 100


WHERE department_name = 'Treasury'

Which of the following will erase all records in the departments table

answer: 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.

answer: Run the ROLLBACK command

Which of the following DOES NOT describes the state of the data after the COMMIT command

answer: None of the choices

Which of the following describes the command below?

SELECT * FROM employees WHERE department = 60 FOR UPDATE

answer: Locks the rows in the EMPLOYEES table with department id is 60.

SQL command to create a marker in the current transaction.

answer: SAVEPOINT

YOu want to display the employee's id and formatted date hired as shown below

Which SQL statement give the required output?

Required output:

Answer: SELECT employee_id,TO_CHAR(hire_date,'fmMonth DD, YYYY')AS "Hired Date" FROM


employees

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?
Answer: SELECT employee_id, hire_date, TO_DATE(hire_date,'Month') AS "Hired Month",
job_id FROM employees WHERE job_id NOT = 'AD_VP';

IT_PROG

Answer: SELECT last_name, TO_CHAR(hire_date,'YYYY')FROM employees WHERE job_id='IT_PROG';

You want to display the employee’s last name whose salary is below 10,000 and whose lastname starts
with letter K.

Answer: SELECT last_name, TO_CHAR(salary, '$999,999.99') AS "MONTHLY SALARY" FROM


employees WHERE salary < 10000WHERE last_name LIKE ‘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.

Answer: SELECT * FROM parts ORDER BY price

Display all the records whose stock is below 20 and in warehouse number 3.

Answer: SELECT * FROM parts WHERE onhand< 20 AND warehouse = 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%';

Display the part number whose class is not HW, AG or SG.

Answer: None of the choices

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.

ANSWER: SELECT *FROM parts WHERE price > 10000;

Which of the following SQL command will display all records with class code of AP?

Answer: SELECT * FROM parts WHERE class = ‘AP’;

Which of the following SQL commands will display all stocks whole class is HW or AP.

Answer: SELECT ALL FROM parts WHERE IN class = ('HW','AP');

Which of the following SQL commands will display all the stocks on hand from 10 to 30?

Answer: SELECT * FROM parts WHERE onhand BETWEEN 10 AND 30;


Create an SQL command to display the name of the parts, warehouse number, price and the
available stock on hand whose price is below 500. Arrange the list by warehouse number and by
class.
ANswer: SELECT partnum, description, warehouse, onhand, price FROM parts WHERE price <
500 ORDER BY warehouse, class;

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.

Answer: SELECT ONHAND-5 + 5 (* WAREHOUSE), DESCRIPTION FROM PARTS;

Which of the following is the correct report that will display the class from table PARTS.

answer: SELECT CLASS FROM PARTS;


Which of the following SELECT statement is the correct PL/SQL that willcreate a report that will add
10% increase in PRICE? List only the column DESCRIPTION, CLASS and PRICE.

Answer: SELECT PRICE*0.10, DESCRIPTION, CLASS FROM PARTS;

Which of the following SELECT statement is the correct PL/SQL that will display all rows and columns?

Answer: SELECT * FROM PARTS;


Which of the following SELECT statement is the correct PL/SQL that willcreate a report specifying
only the column PRICE, ONHAND and DESCRIPTION?

Answer: SELECT PRICE, ONHAND, DESCRIPTION FROM PARTS;

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"

Answer: SELECT DISTINCT WAREHOUSE AS "No. of available warehouse"FROM PARTS;


Which of the following SELECT statement is the correctreport the will merge the column CLASS and
PRICE rename the COLUMN as "CLASS PRICE"

Answer: SELECT (CLASS||PRICE) AS "CLASS PRICE" FROM PARTS;


Which of the following SELECT statement is the correct PL/SQL that will display eliminate the
duplicate rows for column class and warehouse.
Answer: SELECT DISTINCT CLASS, WAREHOUSE FROM PARTS;

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?

Answer: Select description AS 'TITLE',Partnum AS'ID',ONHAND AS'STOCK' FROM PARTS;


Remove all manager positions in the department table.

Answer: DELETE FROM jobs WHERE job_title LIKE '%Manager%';

A new department name training with department id 300 was created in the company.

Answer: INSERT INTO departments VALUES(300,'TRAINING',203,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

Answer: INSERT INTO JOBS VALUES('DB_ADMIN','database administrator',10000,18000)


Update the Purchasing department name to Procurement. And this will be managed by the Manager
of Administration department.

Answer: UPDATE departments SET department_name = 'Procurement', manager_id = 200


WHERE department_name = 'Purchasing'

remove the shareholder services department in the department table

answer: DELETE FROM departments WHERE department_name = ‘Shareholder Services’

John want to know how many employees receiving salary below 10,000

Answer: SELECT COUNT(*) FROM employees WHERE salary < 10000;

What is the SQL command to display the date of the first employee that was hired?

Answer: SELECT MIN(hire_date) FROM employees;

Aldrin wants to know the highest salary in every department. which of the following sql will display the
required output?

Answer: SELECT department_id,MAX(SALARY) FROM employees GROUP BY department_id

The general manager request to the database administrator to generate the total salary per month of
every department in the company.

Answer: 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.

Answer: SELECT AVG(salary) FROM employees WHERE job_id ='IT_PROG';


Display the warehouse number, class, highest price & lowest price, total on hand balance whose
class is AP.

Answer: SELECT warehouse, class, MAX(price), MIN(PRICE), sum(onhand)


FROM parts
WHERE class = 'AP'
GROUP BY warehouse, class
ORDER BY warehouse
The General Manager request to the database administrator to general total number of parts and total
outstanding balance on hand of every class

Answer: SELECT warehouse,class,count(partnum),sum(onhand) GROUP BY warehouse,class HAVING


warehouse = 1 or warehouse = 2 FROM parts;

Aldrin wants to know the outstanding total balance on hand on every class per warehouse

answer: SELECT warehouse,class,sum(onhand) FROM parts GROUP BY warehouse,class

Which of the following SQL command will display all records with part number contains the number 9?

Answer: SELECT * from parts WHERE partnum LIKe '%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

Answer: SELECT warehouse, class, sum(onhand) FROM parts GROUP BY warehouse,class


HAVING SUM(ONHAND) > 50

There was 10% price increase in the all the parts in warehouse number 3.

Answer: SELECT PARTNUM,price,price * 1.1 FROM parts where warehouse = 3

SELECT * FROM parts WHERE (warehouse = 1 or warehouse = 2) AND class in ('HW','AP')AND(PRICE>200


AND price < 500);

Answer: 2 rows returned

What will be the output of the SQL command?

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.

answer: SELECT COUNT(*) FROM parts WHERE warehouse = 3;

Which of the following will erase all records in the departments table

Answer: TRUNCATE TABLE departments


INSERT, DELETE, UPDATE are ________________ commands

answer: DML

Which of the following DOES NOT describes the state of the data after the commit command

ANswer: NONE OF THE CHOICES

SELECT * FROM employees WHERE department = 60 FOR UPDATE


ANswer: Locks the rows in the employees table with department id is 60

A cartesian product is formed when

Answer: ALL OF THE CHOICES

Select employee_id, hire_date, department_name FROM employees departments

ANswer: The SQL command will prduce a correct output

Nathaniel had accidentally deleted all the records in the newly updated oracle database using the
DELETE SQL command.

Answer: RUN THE ROLLBACK COMMAND


A join between two tables that returns the results of the INNER join as well as the_______________
rows from the left (or right) table is called a left (or right) OUTER join.

Answer: Unmatched

SQL command to create a marker in the current transaction

Answer: SAVEPOINT

The insert statement can add multiple rows.

ANswer: FALSE

INSERT INTO table_name (column1,column2,colum3,....)

VALUES (value1,value2,value3,....)

WHERE Condition.

Answer: This will produce an error.

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: FULL OUTER JOIN


A Database Administrator can create and remove users and tables.

Answer: the statement is correct

Multiple fields in not Allowed in a foreign key.

Answer: FALSE
A_______________ consists of a collection of DML statements that form a logical unit of work.

ANswer: Transaction
INDEX is an example of _____________________ privilege.

Answer: Object
A FOREIGN KEY IS A FIELD IN ONE TABLE THAT REFERS TO THE PRIMARY KEY IN ANOTHER TABLE.

ANSWER: TRUE

GRANT select

ON user1

TO departments;

ANswer: THE SQL COMMAND IS INCORRECT


GRANT is a _____________________ command.

ANSWER: DCL

Which of the following command will delete all records in the table employees.

ANswer: DELETE FROM employees

employee id :250

name : aldrin rich

ANSWER: INSERT INTO EMPLOYEES(employee_id,first_name,last_name,hire_date,job_id,salary


manager_id,department_id) VALUES(250,'aldrin','rich',TO_DATE('Jul 1,2017','MON
DD,YYYY'),'ACCOUNTANT',10000,103,60)

Display all the employee id names of employees, job id, hiring_date

ANswer: SELECT A,first_name,A.last_name,A.job_id,B,department_name,A.Salary,A.hire_date FROM


employees a JOIN departments B ON ( A.department_id = B.department_id) WHERE
B.department_name = 'IT'

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 salary = salary + 1200 where TO_CHAR(sysdate,'YYYY') -


TO_CHAR(hire_date,'YYYY') >= 10

Diana lorentz was transferred to administration department

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?
-CREATE matt ACCESS 1234
What are the 2 types of security being applied to a database
GRANT & REVOKE
Employee id : 200
Name : Mr. Gary Park
Date hired : July 1, 2017
Position :IT Programmer
Salary : 10000
Department of assignment : 60
Reporting to manager : 103
-INSERT INTO employees
(employee_id,first_name,last_name,hire_date,job_id,salary,manager_id,department_id)
VALUES (200,'Gary','Park',TO_DATE('Jul 1, 2017', 'MON DD, YYYY'), 'IT_PROG', 10000, 103,
60)
Which of the following is NOT a Data Manipulation Language?
-SELECT

SQL stands for Structured Query Language


Which of the 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
AMALEAKS.BLOGSPOT.COM
PROG113A WEEK 1-20

SQL stands for LONG QUIZ PROG-113


LONG QUIZ NO. 4

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 – like additional characters and skills.”
ANSWER: 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
6. Kyoto protocol addresses environmental issues through the campaign of
____________________.
ANSWER: reducing greenhouse gas emissions
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
9. ____________________ is when you conduct regular audits and inspections to evaluate your
work performance.
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 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.
“One good thing I find with XYZ as when my laptop shuts down accidentally, my game score and
status can still be recovered. No need to repeat a level.”
ANSWER: Reliability
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

17. 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.
“I find it really enjoying to play XYZ since I can invite my friends from social media profile. It works
well with this social media app!”
ANSWER: Compatibility
18. 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.
“XYZ is so cool! I tried to install it in my old computer and it still runs smoothly. Given that the
computer’s video card is a bit faulty.“
ANSWER: Reliability

19. ____________________ is setting the best practices in the workplace as your work standards.
ANSWER: Seiketsu
20. The 5S Method is a Japanese perspective technique developed by Eiichiro Oda.
ANSWER: FALSER

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
28. Montreal protocol protects the ozone layer by ____________________.
ANSWER: phasing out harmful substances
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
LONG QUIZ NO. 6
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?

ANSWER: display Overweight


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
10. Java is an example of
ANSWER: HIGH-LEVEL LANGUAGE

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
13. He is known as the father of the Java programming language.

ANSWER: JAMES GOSLING


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
interpreters or compilers.
ANSWER: TRUE
17. was the first language implemented for BINAC.

ANSWER: Short Code


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?
ANSWER: ASK FOR HEIGHT

22. A_________is the code or language that allows a user to instruct a computer to perform specific
tasks.
ANSWER: Programming Language
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
26. Who is considered as a user (component of an operating system)?

ANSWER: ALL OF THE CHOICES


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
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
Question text
True or False: Operators, in Java programming language, use special symbols to call methods and their
objects.
Answer:
False
Question text
Read each statement carefully and decide whether it’s TRUE or FALSE.
There are no errors in the program.
Select one:
False
Question text
Refer to the block of codes below. Read each statement carefully and decide whether it’s TRUE or FALSE.
Line 9 uses a traditional comment which uses double forward slash.
Answer: False
Question text
True or False: Many programmers can be literate with Java programming language for it is intended to be that
way.
Answer:
True
Question text
True or False: You’ll know there’s an error if you see a red circle with an exclamation point in Netbeans IDE.
Answer:
True
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 = (x = 100) >= z;
Select one:
True
The file is accurately named – Students.java.
-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.
-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
The last line of code will output 100.0.
-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
There are keywords found in line 7.
-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 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.
-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

Substrings can contain 1 or 2 arguments.


-true
Determine the output.

-bar

The index of the letter “y” in string “Doggy” is 5.


-False
Determine the output.
-foo
TRUE OR FALSE: The value “val_3” is a white space “ “.
-False
True or False: Variable 1st_num is a good variable name in Java programming.
-False

TRUE OR FALSE: “val_2” contains “The”


-True
True or False: Instance variables are declared inside a method but outside a class.
-False
True or False: Variable names in Java are not necessarily case sensitive.
-False
Determine the output

-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
result = !((x * 10) < z);
-False

result = -(-z) == 43;


-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
x += x;
result = x == 154;
-False
The second line 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
A string can contain numbers.
-True

TRUE OR FALSE: This is an example of concatenation.


-True

TRUE OR FALSE: The value of “val_4” is “fox”


-False
TRUE OR FALSE: “val_2” contains “The”.
-True
Determine the output.
-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

Strings can be declared with str.


-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
Among the expressions below which is a statement?
-True

Expressions can be long and complex.


-true
number++; is an expression
-true

For-loops has a set number of iterations before starting.


-True
The equals( ) method can compare more than 2 arrays.
-False
While loops can use Booleans at test expressions.
-True
The test expression of the if statement is _______
-less than or equal to
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
x+1 is example of a statement.
-False
number++; is a block
-False

Arrays are
-Integers
The operator “new” allocates a memory block the size of what is declared.
-true
A class block can be an expression
-False
Statements can be expressions.
-False

Integer arrays can be populated with characters.


-False
Declaration clauses are declared as “number + 1”.
-False

Loops can be stopped with a break; statement.


-True
The equivalent of Paragraphs in coding is?
-Expressions
If statements cannot be nested in switches
-true
The length( ) method returns the size (number of indices) has.
-True
When polymorphism is used, the Java object can only take one form. Subclasses should have the
same function with the parent class.
-False
Arrays can contain (Answer) number of elements.
-Any
“||” and “&&” can be used in conditional statements.
-True
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
Expressions can be statements.
-True
Blocks can contain more blocks of code.
-True
If-else statements can be nested in?
-All of the choices
Statements are equivalent to paragraphs.
-False

A (answer) array is an array containing true or false values.


-boolean
Switches are always used with if-else statements
-False
True or False: The modulus operator returns the remainder of a division operation instead of the
quotient.
-true
Determine the output.
String val_1 = “564298”;

-5698
Determine the output.
String val_1 = “35”;
-4
The return value of the length( ) method is an integer
-true
A superclass is also known as a parent class.
-true
For-loops can be nested in while loops.
-true
In instantiating an object, the keyword instance is used.
-False
Object oriented programming utilizes the top down method
-False
Expressions are like clauses.
-true
The sort( ) method is always ascending.
-true
Arrays are data types.
-False
Variables must be declared as (Answer) for it to be fully hidden.

-private
While statements check the test expression at the end.
-False
The else statement can be used alone.
-False
The fill( ) method (Answer) the array with specific values.
-Fills
The output of println is

-55555
The person’s weight is declared correctly with the correct data type (byte) and value (160).
-FALSE

Determine the output.


String val_1 = “foo”
String val_2 = “bar”

val_2 = val_1;
val_1 = val_3;
System.out.println(val_1);
-bar
Determine the output.
String val_1 = “foo”
String val_2 = “bar”
val_2 = val_1;

val_1 = val_3;
System.out.println(val_2);
-foo
Switches can work properly even without the “break” expression.
-True
Blocks can be one liner or huge classes.
-True
The test expressions in conditional statements can be left empty.
-False
Abstraction works by hiding the implementation details and showing only the functions necessary.
-True
A single array can hold multiple data types
-False
A polymorphic object can pass more than one Is-a test.
-True
Another loop can be used as test expression.
-False
True or False: Public, static and void are sample of Java reserved keywords.
-True

The value of “pStr” in line 24 is


-True
The default syntax of a constructor is <class_name>(parameter, parameter){ }
-False

A nested class is not an inner class.


-False
Nested classes causes them to become abstracted
-False
A nested class is also called
-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
A constructor can only have 1-2 overloads or parameters.
-False
All possible data types of an array can be retuned as a string by the toString( ) method.
-True
Abstracted classes can contain 1 or more abstract methods.
-True
Abstraction shows the every bit of detail and implementation on how an application does something.
-False
Initialization is a process where the constructor is called for.
-True

The default syntax of a constructor is <class_name>( ){ }


-True
Classes cannot be nested.
-False

Abstract classes cannot have nested classes.


-False
The parent class of a nested class is called an outer class
-True

An inner class can be constructed directly without reference to the outer class.
-False
Arrays can be read backwards
-True

A single array can hold


-One data type
Abstracted methods already have implementations inside.
-False
are special methods to initialize objects.
-constructors
Constructors have 3 basic rules to follow.
-False
Nesting classes increases encapsulation.
-True

Each index can only contain (Answer) element.


-one
The sort( ) method can be set to sort only a part of an array.
-False

Subclasses or child classes could have different behaviors but still share the same functions from
their parent class.
-True

Abstract methods must have an explicit return value


-False
An abstract class must not contain abstract methods.
-False
Abstracted classes can be nested.
-True
A subclass constructor cannot invoke a superclass constructor.
-False
A class acquiring fields and methods of another class is called inheritance.
-True
Parallelsorting utilizes

-More cpu processing cores


method can copy one array to another.
-arraycopy

SHORT QUIZ PROG 111- PROG111 - Programming (Java) NC II Part 1


SHORT QUIZ 8.
1. The 5s method is based on the ____________________.
ANSWER: Toyota Production Sytem
2. Environmental issues have no relation to the workplace
ANSWER: FALSE
3. Protecting the environment and natural resources also means protecting
stable employment.
ANSWER: TRUE
4. In the 5S method, this stage refers to arranging items in a way that they are
easy to find and pick up.
ANSWER: SEITON
5. Seiso refers to cleaning your workplace on a regular basis.
ANSWER: TRUE
6. Humans rely on natural resources for survival.
ANSWER: TRUE
7. These are developed by industries as a guide for establishments and
business enterprises to conduct their operations in a way that prevents or
reduces environmental harm.
ANSWER: Environmental codes of practice
8. Business industries will not be affected by the environmental crisis.
ANSWER: FALSE
9. Presidential Decree No. 856, one of the Philippine environmental laws, is
also known as ____________________.
ANSWER: Code on Sanitation of the Philippines
10. The protection of the natural resources is possible through the collective
efforts of each group in the society.
ANSWER: TRUE
SHORT QUIZ 9
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.
“Thanks to XYZ, I can baby sit my little brother. It’s so easy to use that a 5-year
old can play it as well.”
ANSWER: Usability
2. Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s
product quality model and write the letter that corresponds 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
the ISO/IEC 25010:2011. Read their feedback below and decide which product
quality attribute is being described.
“XYZ is so cool I can play it with my phone, laptop, Xbox and PS4!”
ANSWER: Portability
7. 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.
“Finally we can play XYZ! Surprising enough, all features and functions are
present. It has all the controls a gamer needs.”
ANSWER: Functional Stability
8. Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s
product quality model and write the letter that corresponds 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
2. Ctrl + S is the shortcut key for Save while Ctrl + S + A is the shortcut key for
Save As.
ANSWER: FALSE
3. The earphones is an example of a _______________, while Internet Explorer is
an example of _______________.
ANSWER: peripheral device, application program
4. I’ve purchased a modern gaming mouse but it doesn’t have a PS/2 plug.
Where I connect it?
ANSWER: D
5. Arlan right clicked on his taskbar and unchecked the Lock Taskbar. What
will happen if he drags his taskbar to the right side of his screen?
ANSWER: Taskbar will display vertically at the right.
6. Something’s wrong with the serial port. Which port should I investigate?
ANSWER: C
7. Windows is to Personal Computer (PC) while Mac OSX is to Mac laptops and
computers.
ANSWER: TRUE
8. An operating system has three major components – hardware, application
program or software and the user.
ANSWER: FALSE
9. Which of the following is not a default margin options when setting up the
page for printing?
ANSWER: REGULAR
10. If you are confused on what to do, press F2 on your keyboard and the
Windows Help feature will open.
ANSWER: FALSE

SHORT QUIZ 11
1. This type of programming language uses series of 0s and 1s to represent
data.
ANSWER: Machine language
2. C++, an extension of the C language, introduced object-oriented
programming.
ANSWER: True
3. C# has features that are directly based on the Short Code.
ANSWER: FALSE
4. COBOL stands for Convenient Business Oriented Language.
ANSWER: FALSE
5. Which of the following statements is TRUE?
ANSWER: A programming language may have its own area of
specialization.

6. Using the language, you can write windowed applications, build


databases, as well as control handheld devices.
ANSWER: Java

7. is the father of computer.


ANSWER: CHARLES BABBAGE
8. Since natural languages are vaguely structured, they cannot be used for
programming.
ANSWER: TRUE
9. COBOL is the programming language ideally used for _________________________
purposes.
ANSWER: Business
10. PASCAL is an example of a low-level language.
ANSWER: FALSE

SHORT QUIZ 12
1. Refer to the image below to answer the following question. What happens
every time the given username and password is incorrect?
ANSWER: 1 IS ADDED TO THE LIMIT
2. Refer to the image below to answer the following question. What symbol is
used to begin and end the program?
ANSWER: Terminal
3. Observe the names of the following variables and routines and decide
whether its format is CORRECT or WRONG. limitIsReached for a Boolean
variable.
ANSWER: CORRECT
4. Refer to the image below to answer the following question. When will the
program end?
ANSWER: When home page is loaded.
5. Jet is writing the pseudocode for his program. Which phase of program
development life cycle is he in?
ANSWER: Design the Program.
6. Ana is working on a new project and she was asking for the program’s
purpose, processes, algorithm, restrictions and some notes. According to the
program development life cycle, in which phase is Ana working on?
ANSWER: ANALYZE THE PROBLEM
7. Observe the names of the following variables and routines and decide
whether its format is CORRECT or WRONG.
ContactNumber for a column name in the table “Student”.
ANSWER: CORRECT
8. Observe the names of the following variables and routines and decide
whether its format is CORRECT or WRONG.
PresentAdress for a column name in the table “Student”
ANSWER: WRONG
9. Refer to the image below to answer the following question. What will
happen if the username is incorrect but the password given is correct?
ANSWER: 3
10. Refer to the image below to answer the following question. What happens
when Limit is equal to 3?
ANSWER: Program goes back to login page

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
Enforcing environmental policies is one of the major causes of job loss and
unemployment. - False
True or False: Dates in file names should be written in YYYY-MM-DD format. - False
Big business companies are the only ones responsible for enforcing environmental
policies since they can afford alternative cleaner technology. - False
Pre-review activities in the review process includes review planning, preparation and
individual review. - true
Increase work productivity by arranging items in such a way that they are easy to find
and pick up. - true
Montreal protocol protects the ozone layer by ____________________. - phasing out
harmful substances
Business industries will not be affected by the environmental crisis. - False
True or False: Protocols are set of standards rules which describes how something
should be done and different companies have different protocols as well. - true
Presidential Decree No. 856 is an international treaty that imposes limitations on the
greenhouse gas emissions of several countries. - True
True or False: Organizational aims are different from the mission statement; they refer
to the results an organization is aspiring for. - true
The cost / benefit analysis document is appropriately named. - False
A printed progress report to be submitted to the adviser. - purpose
True or False: Statutory requirements are identified by the vendors or suppliers and
they include value, stability, diversity and capacity. - False
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. - False
Identify whether the statement is a strength, weakness, opportunity or threat: The
student record system could be used by other schools other than Ricka’s school. -
opportunity
True or False: Reviewing the related literature includes review of concepts, theories and
previous research findings. - true
Companies can freely make their own set of environmental policies without consulting
the workers’ union, or any local or national laws about it. - False
Kyoto protocol addresses environmental issues through the campaign of
____________________. - reducing greenhouse gas emissions
Humans rely on natural resources for survival. - true
Quantitative research, compared to qualitative research, uses measurable - Data
ISO/IEC 25010:2011’s product quality model has eight (8) major characteristics. - true
True or False: Usually, the summary of the report is the first thing that’s being read. -
true
____________________ is when you conduct regular audits and inspections to
evaluate your work performance. - Shitsuke
“XYZ is so cool! I tried to install it in my old computer and it still runs smoothly. Given
that the computer’s video card is a bit faulty.“ - Reliability
True or False: There are five main elements of a written report – topic, style, structure,
facts and contents. - false
True or False: To gather data, you can either conduct an interview, survey, observation,
mail questionnaire, coding and tabulation. - false

LONG QUIZ PROG-111

LONG QUIZ NO. 4

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 – like additional characters and skills.”
ANSWER: 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
6. Kyoto protocol addresses environmental issues through the campaign of
____________________.
ANSWER: reducing greenhouse gas emissions
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
9. ____________________ is when you conduct regular audits and inspections to evaluate your
work performance.
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 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.
“One good thing I find with XYZ as when my laptop shuts down accidentally, my game score and
status can still be recovered. No need to repeat a level.”
ANSWER: Reliability
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
17. 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.
“I find it really enjoying to play XYZ since I can invite my friends from social media profile. It works
well with this social media app!”
ANSWER: Compatibility
18. 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.
“XYZ is so cool! I tried to install it in my old computer and it still runs smoothly. Given that the
computer’s video card is a bit faulty.“

ANSWER: Reliability

19. ____________________ is setting the best practices in the workplace as your work standards.
ANSWER: Seiketsu

20. The 5S Method is a Japanese perspective technique developed by Eiichiro Oda.


ANSWER: FALSER
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
28. Montreal protocol protects the ozone layer by ____________________.
ANSWER: phasing out harmful substances
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
LONG QUIZ NO. 6
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?
ANSWER: display Overweight
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
10. Java is an example of
ANSWER: HIGH-LEVEL LANGUAGE

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
13. He is known as the father of the Java programming language.
ANSWER: JAMES GOSLING

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
interpreters or compilers.
ANSWER: TRUE
17. was the first language implemented for BINAC.

ANSWER: Short Code


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?
ANSWER: ASK FOR HEIGHT
22. A_________is the code or language that allows a user to instruct a computer to perform specific
tasks.
ANSWER: Programming Language
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
26. Who is considered as a user (component of an operating system)?
ANSWER: ALL OF THE CHOICES
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

PROG-113A / ► Week 18: Designing PL/SQL / ► Short Quiz 14


Which of the following is the syntax to open a cursor varial
Answer: OPEN cursor_variable_name
FOR select_statement;
Which of the following is the syntax to define a REF CURSOR type?
Answer: TYPE ref_type_name IS REF CURSOR
[RETURN return_type];
Weak REF CURSOR is very flexible.
Answer: True
Evaluate the following. What will be the output?
DECLARE
SUBTYPE Accumulator IS NUMBER (4,2);
v_amount accumulator;
v_num1 NUMBER;
v_num2 NUMBER;
v_num3 NUMBER;
BEGIN
v_amount := 10.50;
v_num1 := 1;
v_num2 := 2;
v_num3 := 3;
v_num1 := v_amount;
v_num2 := v_num1 + v_amount;
v_num2 := v_num2 - v_num3;
dbms_output.put_line('Total is: ' || v_num2);
END;
Answer: 18
Which of the following is the syntax to fetch from a cursor variable?
Answer: FETCH cursor_variable_name INTO variable_name1
[,variable_name2,. . .] | record_name;
Fetch into a record when fetching from a cursor.
Answer: True
Which of the following is the syntax to close a cursor?
Answer: CLOSE cursor_variable_name;
This is a subset of an existing data type that may place a constraint on its base type.
Answer: Subtype
Which of the following rules is INCORRECT about cursor variables?
Answer: None of the choices.
Use column aliases in cursors for calculated columns fetched into records declared with %COLUMNTYPE.
Answer: False

PROG-113A / ► Week 18: Designing PL/SQL / ► Learning Activity 14

Which of the following rules is INCORRECT about cursor variables?


Answer: None of the choices.
Which of the following describes weak REF CURSOR?
Answer: Associates with any query
Restrictive, specifies a RETURN type, associates only with type-compatible queries are
description of a ________________.
Answer: Strong REF CURSOR
Which of the following is INCORRECT about the guidelines for cursor design?
Answer: Use column aliases in cursors for calculated columns fetched into records declared with
%COLUMNTYPE.
This is a subset of an existing data type that may place a constraint on its base type.
Answer: Subtype

PROG-113A / ► Week 17: / ► Short Quiz 13


Evaluate the following PL/SQL.
CREATE OR REPLACE PROCEDURE query_employee
(p_id IN employees.employee_id%TYPE,
p_name OUT employees.last_name%TYPE,
p_salary OUT employees.salary%TYPE) IS
BEGIN SELECT last_name, salary INTO p_name, p_salary
FROM employeesWHERE employee_id = p_id;
END query_employee
Answer: No error
Evaluate the following PL/SQL. Which of the following will line creates an error?
CREATE OR REPLACE PROCEDURE query_emp
(
p_department_id IN employees.department_id%TYPE,
p_name OUT employees.last_name%TYPE,
p_salary OUT employees.salary%TYPE
)
IS
BEGIN
SELECT last_name, salary, department_id INTO p_name, p_salary, p_department_id
FROM employees
WHERE salary >= p_salary AND department_id = p_department_id ;
END query_emp;
Answer: Line 3
These are local variables declared in the parameter list of a subprogram specification.
Answer: Formal parameter
Given the answer in item __________, which of the folllowing stored procedure will display the
employee id and salary of Steven King?
Answer: DECLARE
v_employee_id employees.employee_id%TYPE;
v_emp_sal employees.salary%TYPE;
BEGIN
query_emp('King', 'Steven', v_employee_id, v_emp_sal);
DBMS_OUTPUT.PUT_LINE('Employee ID ' || v_employee_id ||' earns '|| to_char(v_emp_sal,
'$999,999.00'));
END;

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

PROG-113A / ► Week 16: Creating Procedures / ► Learning Activity 13


Procedure can be stored in the database as a schema object.
Answer: True
The PL/SQL code block helps modularize code by using:
Answer: All of the choices
Which of the following command is used to create a stand-alone procedure that is stored in the Oracle
database?
Answer: CREATE PROCEDURE
Which of the folllowing 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
Answer: iii & v
Which if the following is NOT a benefits of using modular program constructs?
Answer: None of the choices

PROG-113A / ► Week 18: Designing PL/SQL / ► Short Quiz 14


Which of the following is the syntax to open a cursor varial
Answer: OPEN cursor_variable_name
FOR select_statement;
Which of the following is the syntax to define a REF CURSOR type?
Answer: TYPE ref_type_name IS REF CURSOR
[RETURN return_type];
Weak REF CURSOR is very flexible.
Answer: True
Evaluate the following. What will be the output?
DECLARE
SUBTYPE Accumulator IS NUMBER (4,2);
v_amount accumulator;
v_num1 NUMBER;
v_num2 NUMBER;
v_num3 NUMBER;
BEGIN
v_amount := 10.50;
v_num1 := 1;
v_num2 := 2;
v_num3 := 3;
v_num1 := v_amount;
v_num2 := v_num1 + v_amount;
v_num2 := v_num2 - v_num3;
dbms_output.put_line('Total is: ' || v_num2);
END;
Answer: 18
Which of the following is the syntax to fetch from a cursor variable?
Answer: FETCH cursor_variable_name INTO variable_name1
[,variable_name2,. . .] | record_name;
Fetch into a record when fetching from a cursor.
Answer: True
Which of the following is the syntax to close a cursor?
Answer: CLOSE cursor_variable_name;
This is a subset of an existing data type that may place a constraint on its base type.
Answer: Subtype
Which of the following rules is INCORRECT about cursor variables?
Answer: None of the choices.
Use column aliases in cursors for calculated columns fetched into records declared with %COLUMNTYPE.
Answer: False

PROG-113A / ► Week 18: Designing PL/SQL / ► Learning Activity 14

Which of the following rules is INCORRECT about cursor variables?


Answer: None of the choices.
Which of the following describes weak REF CURSOR?
Answer: Associates with any query
Restrictive, specifies a RETURN type, associates only with type-compatible queries are
description of a ________________.
Answer: Strong REF CURSOR
Which of the following is INCORRECT about the guidelines for cursor design?
Answer: Use column aliases in cursors for calculated columns fetched into records declared with
%COLUMNTYPE.
This is a subset of an existing data type that may place a constraint on its base type.
Answer: Subtype

PROG-113A / ► Week 15: Long Quiz / ► Long Quiz 3 (30/30)


(Correction)
How do you test the output of a PL/SQL block?
Answer: Use a predefined Oracle package and its procedure
Which of the folllowing statement describes PL/SQL?
Answer: PL/SQL is an Oracle proprietary, procedural, 3GL programming language
Which of the following syntax to declare EXCEPTION named e_invalid_id?
Answer: e_invalid_id EXCEPTION;
In PL/SQL Block Structure, which of the following are mandatory?
Answer: BEGIN and END
This is a type of cursor which is created and managed internally by the Oracle server to process
SQL statements
Answer: Implicit
PL/SQL stands for
Answer: Procedural Language extension to SQL
Which of the following PL/SQL will execute successfully?
Answer: DECLARE
v_salary INTEGER(20);
BEGIN
SELECT salary INTO v_salary FROM employees WHERE employee_id = 150;
END;
What is the last clause in trapping exceptions?
Answer: WHEN OTHERS
PL/SQL Provides a block structure for executable units of ________________.
Answer: Code
Evaluate the following PL/SQL.
DECLARE
v_email VARCHAR(20);
BEGIN
SELECT email INTO v_email FROM EMPLOYEES WHERE email like 'D%';
DBMS_OUTPUT.PUT_LINE ('Employees whose email address starts with letter D :'
|| v_email);
EXCEPTION
WHEN TOO_MANY_ROWS THEN
DBMS_OUTPUT.PUT_LINE (' Your select statement retrieved multiple rows.');
END;
Answer: The PL/SQL block will run successfully.
Which of the folllowing is TRUE?
Answer: SQL code are embedded within PL/SQL statements
You can trap any error by including a corresponding handler within the exception-handling
section of the PL/SQL block.
Answer: True
When an exception is user defined, the exception is raised ____________ .
Answer: Explicitly
Evaluate the PL/SQL
DECLARE
v_first_name VARCHAR2(50);
v_last_name VARCHAR2(50);
v_salary INTEGER(20);
BEGIN
SELECT first_name, last_name, salary INTO v_first_name, v_last_name, v_salary FROM
employees WHERE department_id = 60;
DBMS_OUTPUT.PUT_LINE('Firstname : '|| v_first_name);
DBMS_OUTPUT.PUT_LINE('Lastname : '|| v_last_name);
DBMS_OUTPUT.PUT_LINE('Salary : '|| v_salary);
END;
Answer: Error in Line 6.
Evaluate the following PL/SQL.
DECLARE
v_employee_id employees.employee_id%TYPE := 114;
BEGIN
DELETE employees WHERE employee_id = v_employee_id;
END;
Answer: The PL/SQL will delete employee number 114.
Which of the following does NOT describes SELECT Statement in a PL/SQL.
Answer: Queries must return only one column.
What are the three PL/SQL block types?
Answer: Anonymous, Procedure, Function
What is the exception name when PL/SQL has an internal problem
Answer: PROGRAM_ERROR
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?
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;
What is the error trapping function that returns the numeric value of the error code?
Answer: SQLCODE
What is the exception name when single row SELECT returned no data.
Answer: NO_DATA_FOUND
Which of the following DOES NOT describes an exception?
Answer: Exception is a PL/SQL error that is raised before program execution.
Evaluate the following PL/SQL.
DECLARE
v_employee_id employees.employee_id%TYPE := 114;
BEGIN
DELETE employees WHERE employee_id = v_employee_id;
END;
Answer: The PL/SQL will delete employee number 114.
In the DECLARE section of the PL/SQL block,
Answer: All of the choices
When an exception is predefined by Oracle server, the exception is raised ____________ .
Answer: Explicitly
Which of the will display the Employee ID and number of years in service with employee ID
150?
Answer: DECLARE
v_salaryemployees.salary%TYPE := 10000;
v_employee_idemployees.employee_id%TYPE := 150;
v_years INTEGER(10);
BEGIN
SELECT employee_id, ROUND((SYSDATE - hire_date) /365,0) INTO v_employee_id, v_years
FROM employees WHERE employee_id = v_employee_id ;
DBMS_OUTPUT.PUT_LINE('Employee ID:' || v_employee_id);
DBMS_OUTPUT.PUT_LINE('Number of years : ' || v_years);
END;
Actions are being performed when error occurs during PL/SQL execution in the
Answer: EXCEPTION
You can use this procedure to issue user-defined error messages from stored subprograms.
Answer: RAISE_APPLICATION_ERROR

PROG-113A / ► Week 14: Handling Exceptions / ► Short Quiz 12

Evaluate the following PL/SQL.


DECLARE
v_email VARCHAR(20);
BEGIN
SELECT email INTO v_email FROM EMPLOYEES WHERE email like 'D%';
DBMS_OUTPUT.PUT_LINE ('Employees whose email address starts with letter D :'
|| v_email);
EXCEPTION
WHEN TOO_MANY_ROWS THEN
DBMS_OUTPUT.PUT_LINE (' Your select statement retrieved multiple rows.');
END;
Answer: The PL/SQL block will run successfully.
Which of the following DOES NOT describes an exception?
Answer: Exception is a PL/SQL error that is raised before program execution.
What is the exception name when single row SELECT returned no data.
Answer: NO_DATA_FOUND
RAISE_APPLICATION_ERROR is used in two different places. These are
___________________.
Answer: Executable and exceptions section
What is the error trapping function that returns the numeric value of the error code?
Answer: SQLCODE
What is the exception name when PL/SQL has an internal problem
Answer: PROGRAM_ERROR
Evaluate the following PL/SQL. At what line number is the error of the PL/SQL?
DECLARE
v_deptno NUMBER := 800;
e_invalid EXCEPTION;
BEGIN
DELETE FROM departments
WHERE department_id = v_deptno;
IF SQL % NOT_FOUND THEN
RAISE e_invalid;
END IF;
COMMIT;
EXCEPTION
WHEN e_invalid THEN
DBMS_OUTPUT.PUT_LINE('No such department id.');
END;
Answer: 7
What is the last clause in trapping exceptions?
Answer: WHEN OTHERS
Complete the diagram in Trapping Non-Predefined Oracle Server Errors.
Answer: Declare, Associate, Reference

PROG-113A / ► Week 14: Handling Exceptions / ► Learning Activity 12

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

PROG-113A / ► Week 13: Interacting with Oracle Server / ► Learning Activity 11

Which of the following does NOT describes SELECT Statement in a PL/SQL.


Answer: Queries must return only one column.
Evaluate the following PL/SQL.
1 DECLARE

2 v_employee_id employees.employee_id%TYPE := 114;

3 BEGIN
4 DELETE employees WHERE employee_id = 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;

PROG-113A / ► Week 12: Introduction to PLSQL / ► Short Quiz 10

Which of the folllowing is TRUE?


Answer: SQL code are embedded withing PL/SQL statements
In the DECLARE section of the PL/SQL block
Answer: All of the choices
In PL/SQL Block Structure, which of the following are OPTIONAL?
Answer: None of the choices
What are the three PL/SQL block types?
Answer: Anonymous, Procedure, Function
How do you test the output of a PL/SQL block?
Answer: Use a predefined Oracle package and its procedure
You want to display the name, salary and tax of employee #150. Which of the PL/SQL will
execute successfully? Note tax is computed as 2% of the salary.
Answer: DECLARE
v_first_name VARCHAR2(50);
v_last_name VARCHAR2(50);
v_salary INTEGER(20);
v_tax INTEGER(10);
BEGIN
SELECT first_name, last_name, salary, salary * 0.02 INTO v_first_name, v_last_name,
v_salary, v_tax FROM employees WHERE employee_id = 150;
DBMS_OUTPUT.PUT_LINE('Firstname : '|| v_first_name);
DBMS_OUTPUT.PUT_LINE('Lastname : '|| v_last_name);
DBMS_OUTPUT.PUT_LINE('Salary : '|| v_salary);
DBMS_OUTPUT.PUT_LINE('Tax : '|| v_tax);
END;
Which of the folllowing statement describes PL/SQL?
Answer: PL/SQL is an Oracle proprietary, procedural, 3GL programming language

PROG-113A / ► Week 12: Introduction to PLSQL / ► Learning Activity 10


PL/SQL stands for
Answer: Procedural Language extension to SQL
PL/SQL Provides a block structure for executable units of ________________.
Answer: Code
In PL/SQL Block Structure, which of the following are mandatory?
Answer: BEGIN and END
Which of the following PL/SQL will execute successfully?
Answer: DECLARE
v_salary INTEGER(20);
BEGIN
SELECT salary INTO v_salary FROM employees WHERE employee_id = 150;
END;
Actions are being performed when error occurs during PL/SQL execution in the
Answer: EXCEPTION

PROG-113A / ► Week 11: Using Subqueries to Solve Queries / ► Short Quiz 9

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')

Evaluate the SQL command


SELECT employee_id, job_id, salary from employees where salary < ALL (SELECT salary
FROM employees WHERE job_id = 'FI_ACCOUNT') AND job_id = 'IT_PROG'
Answer: This has no error.

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')

Evaluate the SQL command


SELECT employee_id, last_name, first_name, job_id FROM employees WHERE department_id
= (SELECT max(department_id) FROM employees GROUP BY department_id)
Answer: This will return an error. Single-row subquery returns more than one row.

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)

PROG-113A / ► Week 11: Using Subqueries to Solve Queries / ► Learning Activity 9


Which of the following is INCORRECT?
Answer: Use single-row operators with multiple-row subqueries
Which of the folllowing is required in a subquery?
Answer: SELECT
Which of the following is CORRECT about sub-queries?
Answer: Subquery execute before the main query executes.
Evaluate the SQL Command
SELECT job_id, job_title FROM jobs J WHERE INCLUDES
(SELECT * FROM employees WHERE J.job_id = e.job_id );
Answer: The SQL will return an error. Invalid "INCLUDES" parameter.
Evaluate the SQL command
SELECT employee_id, salary from employees where salary = ANY (SELECT salary FROM employees
WHERE job_id = 'IT_PROG') AND job_id = 'ST_CLERK'
Answer: This has no error.

True or False: Foreign co-workers having conversation issues with


everyone in the office are better left off on their own.
A: False

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

True or False: Understanding everyone’s interest is the second step in the


problem solving process. This is when you choose the optimal solution.
Answer: false

These kind of words or terms are often discouraged to be used during a


presentation, especially if the audience is not that familiar with
programming terms.
A: technical words

Referring to the figure below, determine if the statement is TRUE or


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 :)

Which of the following does NOT describes SELECT Statement in a PL/SQL.


Answer: Queries must return only one column.
You want to display all the records of employee the same with the salary employee number 103.
Answer: SELECT * FROM employees WHERE salary = (SELECT salary from employees where
employee_id= 103)
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;
Which of the folllowing is TRUE?
Answer: SQL code are embedded within PL/SQL statements
When an exception is user defined, the exception is raised ____________ .
Answer: Explicitly
Which of the folllowing is TRUE?
Answer: SQL code are embedded withing PL/SQL statements
Weak REF CURSOR is very flexible.
Answer: True
How do you test the output of a PL/SQL block?
Answer: Use a predefined Oracle package and its procedure
Restrictive, specifies a RETURN type, associates only with type-compatible queries are description
of a ________________.
Answer: Strong REF CURSOR
Which of the following DOES NOT describes an exception?
Answer: Exception is a PL/SQL error that is raised before program execution.
These are local variables declared in the parameter list of a subprogram specification.
Answer: Formal parameter
Which of the following rules is INCORRECT about cursor variables?
Answer: None of the choices.
When an exception is predefined by Oracle server, the exception is raised ____________ .
Answer: Explicitly
Which of the following DOES NOT describes an exception?
Answer: Exception is a PL/SQL error that is raised before program execution.
Evaluate the following PL/SQL.
CREATE OR REPLACE PROCEDURE query_employee
(p_id IN employees.employee_id%TYPE,
p_name OUT employees.last_name%TYPE,
p_salary OUT employees.salary%TYPE) IS
BEGIN SELECT last_name, salary INTO p_name, p_salary
FROM employeesWHERE employee_id = p_id;
END query_employee
Answer: No error
You want to know the total number of employees whose firstname starts with letter D.
Which of the folllowing PLS/SQL executes successfully?
Answer: DECLARE
v_first_name employees.first_name%TYPE := 'D%';
BEGIN
SELECT COUNT(*) INTO v_first_name FROM employees WHERE first_name LIKE v_first_name;
DBMS_OUTPUT.PUT_LINE(v_first_name);
END;
What is the error trapping function that returns the numeric value of the error code?
Answer: SQLCODE
You want to display the name, salary and tax of employee #150. Which of the PL/SQL will execute
successfully? Note tax is computed as 2% of the salary.
Answer: DECLARE
v_first_name VARCHAR2(50);
v_last_name VARCHAR2(50);
v_salary INTEGER(20);
v_tax INTEGER(10);
BEGIN
SELECT first_name, last_name, salary, salary * 0.02 INTO v_first_name, v_last_name, v_salary,
v_tax FROM employees WHERE employee_id = 150;
DBMS_OUTPUT.PUT_LINE('Firstname : '|| v_first_name);
DBMS_OUTPUT.PUT_LINE('Lastname : '|| v_last_name);
DBMS_OUTPUT.PUT_LINE('Salary : '|| v_salary);
DBMS_OUTPUT.PUT_LINE('Tax : '|| v_tax);
END;
Which of the following is the syntax to close a cursor?
Answer: CLOSE cursor_variable_name;
Which of the following rules is INCORRECT about cursor variables?
Answer: None of the choices.
What are the three PL/SQL block types?
Answer: Anonymous, Procedure, Function
You can trap any error by including a corresponding handler within the exception-handling section of
the PL/SQL block.
Answer: True
Which of the following describes weak REF CURSOR?
Answer: Associates with any query
Given the answer in item __________, which of the folllowing stored procedure will display the
employee id and salary of Steven King?
Answer: DECLARE
v_employee_id employees.employee_id%TYPE;
v_emp_sal employees.salary%TYPE;
BEGIN
query_emp('King', 'Steven', v_employee_id, v_emp_sal);
DBMS_OUTPUT.PUT_LINE('Employee ID ' || v_employee_id ||' earns '|| to_char(v_emp_sal,
'$999,999.00'));
END;
You have been tasked to update the database by creating a PL/SQL to increase the salary of all IT
Programmer employees by 50% 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 *0.50 WHERE job_id = v_job_id;
END;
Which of the folllowing is required in a subquery?
Answer: SELECT
What is the exception name when PL/SQL has an internal problem
Answer: PROGRAM_ERROR
In the DECLARE section of the PL/SQL block,
Answer: All of the choices
Actions are being performed when error occurs during PL/SQL execution in the
Answer: EXCEPTION
What is the exception name when PL/SQL has an internal problem
Answer: PROGRAM_ERROR
Which of the folllowing statement describes PL/SQL?
Answer: PL/SQL is an Oracle proprietary, procedural, 3GL programming language
Evaluate the following PL/SQL.
DECLARE
v_employee_id employees.employee_id%TYPE := 114;
BEGIN
DELETE employees WHERE employee_id = v_employee_id;
END;
Answer: The PL/SQL will delete employee number 114.
Which of the following command is used to create a stand-alone procedure that is stored in the
Oracle database?
Answer: CREATE PROCEDURE
Evaluate the following PL/SQL.
DECLARE
v_email VARCHAR(20);
BEGIN
SELECT email INTO v_email FROM EMPLOYEES WHERE email like 'D%';
DBMS_OUTPUT.PUT_LINE ('Employees whose email address starts with letter D :'
|| v_email);
EXCEPTION
WHEN TOO_MANY_ROWS THEN
DBMS_OUTPUT.PUT_LINE (' Your select statement retrieved multiple rows.');
END;
Answer: The PL/SQL block will run successfully.
Which of the following is the syntax to define a REF CURSOR type?
Answer: TYPE ref_type_name IS REF CURSOR
[RETURN return_type];
The PL/SQL code block helps modularize code by using:
Answer: All of the choices
Which of the following is the syntax to fetch from a cursor variable?
Answer: FETCH cursor_variable_name INTO variable_name1
[,variable_name2,. . .] | record_name;
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')
Procedure can be stored in the database as a schema object.
Answer: True
In PL/SQL Block Structure, which of the following are mandatory?
Answer: BEGIN and END
PL/SQL stands for
Answer: Procedural Language extension to SQL
Which of the following is CORRECT about sub-queries?
Answer: Subquery execute before the main query executes.
Which of the following does NOT describes SELECT Statement in a PL/SQL.
Answer: Queries must return only one column.
PL/SQL Provides a block structure for executable units of ________________.
Answer: Code
Evaluate the SQL command
SELECT employee_id, salary from employees where salary = ANY (SELECT salary FROM
employees WHERE job_id = 'IT_PROG') AND job_id = 'ST_CLERK'
Answer: This has no error.
Which of the following PL/SQL will execute successfully?
Answer: DECLARE
v_salary INTEGER(20);
BEGIN
SELECT salary INTO v_salary FROM employees WHERE employee_id = 150;
END;
In PL/SQL Block Structure, which of the following are OPTIONAL?
Answer: None of the choices
Evaluate the following PL/SQL. At what line number is the error of the PL/SQL?
DECLARE
v_deptno NUMBER := 800;
e_invalid EXCEPTION;
BEGIN
DELETE FROM departments
WHERE department_id = v_deptno;
IF SQL % NOT_FOUND THEN
RAISE e_invalid;
END IF;
COMMIT;
EXCEPTION
WHEN e_invalid THEN
DBMS_OUTPUT.PUT_LINE('No such department id.');
END;
Answer: 7
What is the error trapping function that returns the numeric value of the error code?
Answer: SQLCODE
Fetch into a record when fetching from a cursor.
Answer: True

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’;

Which of the following SQL commands will display all stocks whose class is HW or AP.
SELECT * FROM parts WHERE IN class ('HW', '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?
SELECT employee_id, hire_date, TO_CHAR(hire_date,'Month') AS "Hired Month" FROM employees;

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;

John want to know how many employees receiving salary below 10,000. What SQL command he need to
run?
SELECT COUNT(*) FROM employees WHERE salary < 10000;

----------------------------------------
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%'

What will be the output of the following SQL?


SELECT * FROM parts WHERE (warehouse = 1 or warehouse = 2) AND class IN ('HW', 'AP') AND (price >
200 AND price < 500);
2 rows returned

What will be the output of the SQL command?


SELECT SUM(onhand) FROM PARTS where class = 'HW' OR class = 'AP' AND warehouse = 1;
137

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
output?
SELECT first_name, last_name, job_id, min_salary, max_salary FROM employees JOIN jobs USING
(job_id);
What will be the output of the SQL command below?
SELECT first_name, last_name, job_title FROM employees CROSS JOIN jobs ORDER BY last_name;
A Cartesian product

What will be the output of the SQL command below?


SELECT last_name, job_id, job_title FROM employees NATURAL JOIN jobs
List of names and job title of matched records from the employees and jobs table

----------------------------------------
SQ6

Given the SQL command


SELECT * FROM employees JOIN departments USING (department_id)
Which of the following describes the SQL command?
Joined table from the employees and department table

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

Display the manager id and employee id of every employee


SELECT E.employee_id, D.manager_id FROM employees E JOIN departments D ON E.department_id =
D.department_id

Given the SQL command


SELECT employees.first_name, employees.last_name, employees.salary,departments.department_name
FROM employees, departments
WHERE employees.department_id = departments.department_id;
Which of the following describes the SQL command?
List of employees name, salary and department name

----------------------------------------
LA7

Remove the Shareholder Services department in the department table


DELETE FROM departments WHERE department_name = ‘Shareholder Services’

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 update the information in the department table.
INSERT INTO departments VALUES (300, 'Training', 203, 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)

Remove all Manager positions in the department table.


DELETE FROM jobs WHERE job_title LIKE '%Manager%';
----------------------------------------
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 describes the command below?


SELECT * FROM employees WHERE department = 60 FOR UPDATE
Locks the rows in the EMPLOYEES table with department id is 60.

Which of the following will erase all records in the departments table
TRUNCATE TABLE departments

SQL command to create a marker in the current transaction.


SAVEPOINT

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

You want to cancel the privilege of matt to add records from the employees table.
REVOKE insert ON employees FROM 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 provide privilege to update the employees table?


GRANT update (salary) ON employees TO matt

Which of the following will is the correct command to create a role.


CREATE ROLE gen_manager

Matt wants to change his password from 1234 to abcd.


Which of the following will perform the task?
ALTER USER matt IDENTIFIED abcd;

The DBA will create a new user name sales.


Which of the following SQL command will perform the creation?
CREATE sales ACCESS 1234

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

What privileges that manipulates the content of the database objects.


Object Privileges

----------------------------------------
1st Q Exam

Evaluate the following SQL command


SELECT employee_id, salary, department_id FROM employees WHERE department_id IN (60,70)
The SQL command will display employees with department id 60 or 70.

True or False. The AND, OR, NOT are comparison operators.


False

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

List all employees except for IT_PROG job id.


All of the choices

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

Evaluate the following SQL command


SELECT * FROM jobs WHERE job_title LIKE 'Manager%'
No records will be displayed

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

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 last_name, TO_INTEGER(salary, $999,999.99) AS "MONTHLY SALARY" FROM employees
WHERE salary < 10000 WHERE last_name IN 'D%'

In creating Joins,the NATURALJOIN and USING clauses are____________


Mutually Exclusive

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
Question text
True or False: Operators, in Java programming language, use special symbols to call methods and their
objects.
Answer:
False
Question text
Read each statement carefully and decide whether it’s TRUE or FALSE.
There are no errors in the program.
Select one:
False
Question text
Refer to the block of codes below. Read each statement carefully and decide whether it’s TRUE or FALSE.
Line 9 uses a traditional comment which uses double forward slash.
Answer: False
Question text
True or False: Many programmers can be literate with Java programming language for it is intended to be that
way.
Answer:
True
Question text
True or False: You’ll know there’s an error if you see a red circle with an exclamation point in Netbeans IDE.
Answer:
True
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 = (x = 100) >= z;
Select one:
True
The file is accurately named – Students.java.
-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.
-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
The last line of code will output 100.0.
-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

There are keywords found in line 7.


-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 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.
-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

Substrings can contain 1 or 2 arguments.


-true
Determine the output.

-bar

The index of the letter “y” in string “Doggy” is 5.


-False
Determine the output.
-foo
TRUE OR FALSE: The value “val_3” is a white space “ “.
-False
True or False: Variable 1st_num is a good variable name in Java programming.
-False

TRUE OR FALSE: “val_2” contains “The”


-True
True or False: Instance variables are declared inside a method but outside a class.
-False

True or False: Variable names in Java are not necessarily case sensitive.
-False
Determine the output
-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
result = !((x * 10) < z);
-False

result = -(-z) == 43;


-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
x += x;
result = x == 154;
-False
The second line 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
A string can contain numbers.
-True

TRUE OR FALSE: This is an example of concatenation.


-True

TRUE OR FALSE: The value of “val_4” is “fox”


-False

TRUE OR FALSE: “val_2” contains “The”.


-True
Determine the output.
-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
Strings can be declared with str.
-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
Among the expressions below which is a statement?
-True
Expressions can be long and complex.
-true

number++; is an expression
-true
For-loops has a set number of iterations before starting.
-True

The equals( ) method can compare more than 2 arrays.


-False
While loops can use Booleans at test expressions.
-True

The test expression of the if statement is _______


-less than or equal to
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
x+1 is example of a statement.
-False

number++; is a block
-False
Arrays are
-Integers
The operator “new” allocates a memory block the size of what is declared.
-true
A class block can be an expression
-False
Statements can be expressions.
-False

Integer arrays can be populated with characters.


-False
Declaration clauses are declared as “number + 1”.
-False

Loops can be stopped with a break; statement.


-True
The equivalent of Paragraphs in coding is?
-Expressions

If statements cannot be nested in switches


-true
The length( ) method returns the size (number of indices) has.
-True
When polymorphism is used, the Java object can only take one form. Subclasses should have the
same function with the parent class.
-False
Arrays can contain (Answer) number of elements.
-Any
“||” and “&&” can be used in conditional statements.
-True
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
Expressions can be statements.
-True
Blocks can contain more blocks of code.
-True
If-else statements can be nested in?
-All of the choices

Statements are equivalent to paragraphs.


-False
A (answer) array is an array containing true or false values.
-boolean
Switches are always used with if-else statements
-False
True or False: The modulus operator returns the remainder of a division operation instead of the
quotient.
-true
Determine the output.
String val_1 = “564298”;
-5698
Determine the output.
String val_1 = “35”;
-4

The return value of the length( ) method is an integer


-true
A superclass is also known as a parent class.
-true

For-loops can be nested in while loops.


-true
In instantiating an object, the keyword instance is used.
-False

Object oriented programming utilizes the top down method


-False
Expressions are like clauses.
-true
The sort( ) method is always ascending.
-true
Arrays are data types.
-False
Variables must be declared as (Answer) for it to be fully hidden.

-private
While statements check the test expression at the end.
-False
The else statement can be used alone.
-False
The fill( ) method (Answer) the array with specific values.
-Fills
The output of println is

-55555
The person’s weight is declared correctly with the correct data type (byte) and value (160).
-FALSE
Determine the output.
String val_1 = “foo”
String val_2 = “bar”

val_2 = val_1;
val_1 = val_3;
System.out.println(val_1);
-bar
Determine the output.
String val_1 = “foo”
String val_2 = “bar”

val_2 = val_1;
val_1 = val_3;
System.out.println(val_2);
-foo
Switches can work properly even without the “break” expression.
-True
Blocks can be one liner or huge classes.
-True
The test expressions in conditional statements can be left empty.
-False

Abstraction works by hiding the implementation details and showing only the functions necessary.
-True
A single array can hold multiple data types
-False

A polymorphic object can pass more than one Is-a test.


-True
Another loop can be used as test expression.
-False

True or False: Public, static and void are sample of Java reserved keywords.
-True
The value of “pStr” in line 24 is
-True

The default syntax of a constructor is <class_name>(parameter, parameter){ }


-False
A nested class is not an inner class.
-False
Nested classes causes them to become abstracted
-False
A nested class is also called

-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
A constructor can only have 1-2 overloads or parameters.
-False
All possible data types of an array can be retuned as a string by the toString( ) method.
-True
Abstracted classes can contain 1 or more abstract methods.
-True
Abstraction shows the every bit of detail and implementation on how an application does something.
-False
Initialization is a process where the constructor is called for.
-True
The default syntax of a constructor is <class_name>( ){ }
-True
Classes cannot be nested.
-False
Abstract classes cannot have nested classes.
-False
The parent class of a nested class is called an outer class
-True
An inner class can be constructed directly without reference to the outer class.
-False
Arrays can be read backwards
-True
A single array can hold
-One data type

Abstracted methods already have implementations inside.


-False
are special methods to initialize objects.
-constructors

Constructors have 3 basic rules to follow.


-False
Nesting classes increases encapsulation.
-True

Each index can only contain (Answer) element.


-one
The sort( ) method can be set to sort only a part of an array.
-False
Subclasses or child classes could have different behaviors but still share the same functions from
their parent class.
-True

Abstract methods must have an explicit return value


-False
An abstract class must not contain abstract methods.
-False

Abstracted classes can be nested.


-True
A subclass constructor cannot invoke a superclass constructor.
-False
A class acquiring fields and methods of another class is called inheritance.
-True
Parallelsorting utilizes

-More cpu processing cores


method can copy one array to another.
-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.
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
Question text
True or False: Operators, in Java programming language, use special symbols to call methods and their
objects.
Answer:
False
Question text
Read each statement carefully and decide whether it’s TRUE or FALSE.
There are no errors in the program.
Select one:
False
Question text
Refer to the block of codes below. Read each statement carefully and decide whether it’s TRUE or FALSE.
Line 9 uses a traditional comment which uses double forward slash.
Answer: False
Question text
True or False: Many programmers can be literate with Java programming language for it is intended to be that
way.
Answer:
True
Question text
True or False: You’ll know there’s an error if you see a red circle with an exclamation point in Netbeans IDE.
Answer:
True
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 = (x = 100) >= z;
Select one:
True
The file is accurately named – Students.java.
-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.
-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
The last line of code will output 100.0.
-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
There are keywords found in line 7.
-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 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.
-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

Substrings can contain 1 or 2 arguments.


-true
Determine the output.

-bar

The index of the letter “y” in string “Doggy” is 5.


-False
Determine the output.
-foo
TRUE OR FALSE: The value “val_3” is a white space “ “.

-False
True or False: Variable 1st_num is a good variable name in Java programming.
-False

TRUE OR FALSE: “val_2” contains “The”


-True
True or False: Instance variables are declared inside a method but outside a class.
-False
True or False: Variable names in Java are not necessarily case sensitive.
-False

Determine the output


-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
result = !((x * 10) < z);
-False
result = -(-z) == 43;
-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

x += x;
result = x == 154;
-False
The second line 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
A string can contain numbers.
-True

TRUE OR FALSE: This is an example of concatenation.


-True

TRUE OR FALSE: The value of “val_4” is “fox”


-False

TRUE OR FALSE: “val_2” contains “The”.


-True
Determine the output.
-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

Strings can be declared with str.


-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

Among the expressions below which is a statement?


-True
Expressions can be long and complex.
-true
number++; is an expression
-true
For-loops has a set number of iterations before starting.
-True
The equals( ) method can compare more than 2 arrays.
-False
While loops can use Booleans at test expressions.
-True
The test expression of the if statement is _______
-less than or equal to
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
x+1 is example of a statement.
-False
number++; is a block
-False
Arrays are
-Integers
The operator “new” allocates a memory block the size of what is declared.
-true
A class block can be an expression
-False
Statements can be expressions.
-False
Integer arrays can be populated with characters.
-False
Declaration clauses are declared as “number + 1”.
-False
Loops can be stopped with a break; statement.
-True
The equivalent of Paragraphs in coding is?
-Expressions
If statements cannot be nested in switches
-true

The length( ) method returns the size (number of indices) has.


-True
When polymorphism is used, the Java object can only take one form. Subclasses should have the
same function with the parent class.
-False
Arrays can contain (Answer) number of elements.
-Any

“||” and “&&” can be used in conditional statements.


-True
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

Expressions can be statements.


-True
Blocks can contain more blocks of code.
-True

If-else statements can be nested in?


-All of the choices
Statements are equivalent to paragraphs.
-False

A (answer) array is an array containing true or false values.


-boolean
Switches are always used with if-else statements
-False
True or False: The modulus operator returns the remainder of a division operation instead of the
quotient.
-true
Determine the output.
String val_1 = “564298”;
-5698
Determine the output.
String val_1 = “35”;
-4
The return value of the length( ) method is an integer
-true
A superclass is also known as a parent class.
-true
For-loops can be nested in while loops.
-true
In instantiating an object, the keyword instance is used.
-False
Object oriented programming utilizes the top down method
-False
Expressions are like clauses.
-true

The sort( ) method is always ascending.


-true
Arrays are data types.
-False

Variables must be declared as (Answer) for it to be fully hidden.


-private
While statements check the test expression at the end.
-False

The else statement can be used alone.


-False
The fill( ) method (Answer) the array with specific values.
-Fills

The output of println is


-55555
The person’s weight is declared correctly with the correct data type (byte) and value (160).
-FALSE

Determine the output.


String val_1 = “foo”

String val_2 = “bar”


val_2 = val_1;
val_1 = val_3;
System.out.println(val_1);

-bar
Determine the output.
String val_1 = “foo”
String val_2 = “bar”
val_2 = val_1;
val_1 = val_3;

System.out.println(val_2);
-foo
Switches can work properly even without the “break” expression.
-True
Blocks can be one liner or huge classes.
-True
The test expressions in conditional statements can be left empty.
-False
Abstraction works by hiding the implementation details and showing only the functions necessary.
-True
A single array can hold multiple data types
-False
A polymorphic object can pass more than one Is-a test.
-True
Another loop can be used as test expression.
-False
True or False: Public, static and void are sample of Java reserved keywords.
-True
The value of “pStr” in line 24 is

-True
The default syntax of a constructor is <class_name>(parameter, parameter){ }
-False

A nested class is not an inner class.


-False
Nested classes causes them to become abstracted
-False

A nested class is also called


-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
A constructor can only have 1-2 overloads or parameters.
-False

All possible data types of an array can be retuned as a string by the toString( ) method.
-True
Abstracted classes can contain 1 or more abstract methods.
-True

Abstraction shows the every bit of detail and implementation on how an application does something.
-False
Initialization is a process where the constructor is called for.
-True
The default syntax of a constructor is <class_name>( ){ }
-True
Classes cannot be nested.
-False
Abstract classes cannot have nested classes.
-False
The parent class of a nested class is called an outer class
-True
An inner class can be constructed directly without reference to the outer class.
-False
Arrays can be read backwards
-True
A single array can hold
-One data type
Abstracted methods already have implementations inside.
-False
are special methods to initialize objects.
-constructors
Constructors have 3 basic rules to follow.
-False
Nesting classes increases encapsulation.
-True
Each index can only contain (Answer) element.
-one
The sort( ) method can be set to sort only a part of an array.
-False
Subclasses or child classes could have different behaviors but still share the same functions from
their parent class.
-True
Abstract methods must have an explicit return value
-False
An abstract class must not contain abstract methods.
-False
Abstracted classes can be nested.
-True

A subclass constructor cannot invoke a superclass constructor.


-False
A class acquiring fields and methods of another class is called inheritance.
-True

Parallelsorting utilizes
-More cpu processing cores
method can copy one array to another.
-arraycopy()

The equivalent of clauses in coding is?


-Expressions
Int num = 1; for(num=num;num<=10;num++) is an acceptable code snippet.
-true
Loop that has a pre-determined number of iterations
-while
An int can be used even if it is declared outside a for-loop.
-true
Overload methods must be the same name as the class
-true
What the break statement in this example does is ________.
-Ends the whole instance of the loop
The random( ) method sorts the array randomly.
-False
The last part in a for loop setup can be an ________.
- both
The “1” in arrayName[1] is called an ________.
-Index
The continue; statement ends all the iterations of a loop.
- False
Which is not a proper increment?
- n+-;
Infine for-loops can be declared as for( ){ }.
- False
If-if is more logical than else-if.
- False
The else statement can be removed if not needed.
-True
Expressions, Statements and Blocks are like composing sentences and paragraphs.
-True
You can declare a new method in the subclass which is not declared in the superclass.
-True
The return value of the equals( ) method is ________ .
-None of the choices
The Arrays.sort( ) method sorts an array into _________ order.
-Ascending
This type of declaration is discouraged: “int myArray[ ]”
- True
An if-else-if-else statement is a block.
-True
If the increment num=num+2 is changed to num++, the final value of num will be
________.
-5
The term of each pass through a loop makes is called?
-iteration
Loops must always have a continue or break statement.
-False
1+2+3/4*5 is an unambiguous expression
-False
Conditional statements can contain more conditional statements.
- True
int num = 1;
if(num==1 && num<=1){
body;
}
The conditional statement will _______.
- execute the body
byte( ][ ][ ) myArray; is an example of ________.
- An error
An array _______ hold objects.
- can
A reference variable can be reassigned to other objects provided that it is not declared
________.
- final
The test expression of conditional statement cannot contain _______
-!
Each pass through of a loop is called a cycle.
- True
If the increment “num = num + 2” is changed to “num = num + 1” the final output will be
_______.
-0
Ifs and else-ifs test expressions return true or false.
- True
_______ classes increase the encapsulation of you methods and data.
- nesting
Constructed methods are initialized with 0 or null depending on the data type.
- true
The else statement catches whatever argument the if and else-if didn’t
- True
An iteration of a loop is equivalent to one pass through.
- true
38. If we change the initial value of num in line 6 to “num = 0”, the println output will be
_______
-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
A loop can contain no expressions or statements inside.
- true
Conditional statements are the same as declaration statements.
- False
You cannot use inherited methods directly in a child class.
- False
The equals( ) method compares 2 arrays.
- True
Method invocations are statements
- True
To implement encapsulation, you have to declare class variables with the private
modifier.
- True
Inner class methods can be called by constructing the inner class.
- False
Encapsulated data are hidden from other classes.
- True
Procedural programming will be tricky for applications.
Answer: small
Strings can directly concatenated to an int.
Answer: False

1. Machine language and assembly language are collectively referred to as


_________________________
Answer: LOW-LEVEL LANGUAGE
2. 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

3. Machine language is also known as Answer language.


4. Kyoto protocol addresses environmental issues through the campaign of
____________________.
Answer: reducing greenhouse gas emissions
5. 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 – like additional characters and skills.”
Select one:
Answer: Maintainability
6.C# was released by Answer Micros
.

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?

Answer: Social media login limit.


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.
I cannot type anything but my mouse is working, I am using a brand new USB keyboard, which port
should I check?
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.
ANSWER: PRINTER WIZARD
13.Big business companies are the only ones responsible for enforcing environmental policies since
they can afford alternative cleaner technology.
ANSWER: FALSE
14. Who is considered as a user (component of an operating system)?
ANSWER; ALL OF THE CHOICES

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.
ANSWER: High-Level 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?
ANSWER: IV, I, V, III, II
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

21. The first computer concept invented is called _________________________.


ANSWER; ANALYTICAL ENGINE

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
23.Java is an example of

ANSWER: HIGH-LEVEL LANGUAGE


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 it be connected?
ANSWER: D
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
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. ead 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.
“I find it really enjoying to play XYZ since I can invite my friends from social media profile. It works
well with this social media app!”
ANSWER: COMPATIBILITY
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.

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.”
ANSWER: SECURITY
33.Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product quality model
and write the letter that corresponds to your answer.
Capacity
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: ASK FOR HEIGHT
35.Montreal protocol protects the ozone layer by ____________________.
ANSWER: phasing out harmful substances
36. 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
37. Refer to the image below to answer the following question.
By default, what is the value of limit?
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 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.
“XYZ is so cool! I tried to install it in my old computer and it still runs smoothly. Given that the
computer’s video card is a bit faulty.“
ANSWER: Reliability

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: NONE OF THE CHOICES


44. Refer to the pseudocode below and answer the following question: What happens after weight is
given?
ANSWER: ASK FOR HEIGHT
45.Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product quality model
and write the letter that corresponds to your answer.
Learnability
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?

ANSWER: display Overweight


47.Axel is finally documenting his work. What could he be writing?

ANSWER: instructions for the users


48. 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.
“One good thing I find with XYZ as when my laptop shuts down accidentally, my game score and
status can still be recovered. No need to repeat a level.”
ANSWER: Reliability
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
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. 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.
Answer: accountable
Question text
True or False: Monitoring and evaluating means brainstorming.
Answer: False
Question 5
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Axel is finally documenting his work. What could he be writing?
Select one:
a. requirements of the program
b. system analysis
c. bug reviews and errors
d. instructions for the users

Question 6
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Machine language and assembly language are collectively referred to as
_________________________.
Select one:
a. Average level language
b. Low-level language
c. Advanced language
d. High-level language

Question 7
Complete
Mark 1.00 out of 1.00

Flag question

Question text
True or False: Nothing good ever comes from giving feedback. If anything, anyone who does give
will only get scolded by the boss.
Answer: False

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 problems in Materials, Measurement, Method, People, Equipment or
Environment.

When the software used was checked, the project manager discovered that some of the
programmers are using an old version of Java. This cause is categorized under

Answer. Materials

Question 9
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 be told
about the students who volunteered to test the student record system.
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:
a. email
b. social media
c. hyperlinks
d. speaking

Question 12
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Refer to the pseudocode below and answer the following question:
What is the first thing that the program will do?
Select one:
a. ask for BMI
b. print height
c. ask for height
d. print BMI

Question 13
Complete
Mark 1.00 out of 1.00

Flag question

Question text
____________________ in the workplace protection of sensitive business information through
precautionary measures like confidentiality clauses or non-disclosure agreements.
Select one:
a. Curiosity
b. Integrity
c. Secrecy
d. Confidentiality

Question 14
Complete
Mark 0.00 out of 1.00
Flag question

Question text
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product quality model and
write the letter that corresponds to your answer.
Capacity
Select one:
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.
Answer: False

Question 17
Complete
Mark 1.00 out of 1.00

Flag question

Question text
In ____________________, 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
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.
Answer: True

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:
a. True
b. 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:
a. True
b. 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
b. Actions
c. Objectives
d. Process

Question 23
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Categorize the following 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
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
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 problems in Materials, Measurement, Method, People, Equipment or
Environment.

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

Question 27
Complete
Mark 1.00 out of 1.00

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
Complete
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:
a. Correct
b. Wrong

Question 29
Complete
Mark 1.00 out of 1.00

Flag question

Question text
In adding a new printer, the _____________ will guide you on the steps to be taken.
Select one:
a. Printer Guide
b. Printer Affix
c. Printer Install
d. Printer Wizard

Question 30
Complete
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

Question text
Refer to the image below and write only the letter of the correct answer in the space provided.

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 text
Identify whether the following task should be listed as a milestone or be included in the Gantt chart.
Fix bugs and errors detected in the system.
Answer: Gantt chart

Question 33
Complete
Mark 1.00 out of 1.00

Flag question

Question text
In the correct order, the essential parts of the communication process are:
Select one:
a. Source, Message, Encoding, Channel, Decoding, Receiver, Feedback
b. Source, Message, Encoding, Channel, Receiver, Decoding, Feedback
c. Source, Message, Encoding, Channel, Decoding, Feedback, Receiver
d. Source, Message, Encoding, Receiver, Decoding, Channel, Feedback

Question 34
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
Answer: internal

Question 35
Complete
Mark 1.00 out of 1.00

Flag question

Question text
True or False: To solve a problem means to know first what the problem is before coming up with
the feasible solutions.
Answer: True

Question 36
Complete
Mark 1.00 out of 1.00

Flag question

Question text
True or False: Listing down the issues related to the problem is second to the last step in an
effective problem solving process.
Answer: False

Question 37
Complete
Mark 1.00 out of 1.00

Flag question

Question text
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:
a. Portability
b. Security
c. Maintainability
d. Functional Suitability
e. Usability
f. Compatibility
g. Performance Efficiency
h. Reliability

Question 38
Complete
Mark 1.00 out of 1.00
Flag question

Question text
Monica accidentally unplugged the mouse PS/2 port. What will happen to the mouse connected thru
the universal serial bus port?
Select one:
a. The mouse will stop working.
b. None of the choices.
c. The mouse will freeze.
d. All of the choices
e. The mouse will be disabled.

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
Flag question

Question text
Decide whether it is a communication instrument or purpose.
A Gantt chart that shows the schedule for the development process of the student record system.

Answer: instrument

Question 41
Complete
Mark 1.00 out of 1.00

Flag question

Question text
A product or service 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 Control
c. Safety Programs
d. Reflective Behavior
Question 42
Complete
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.
ComputeTotalScore() for a routine to sum up the scores.
Select one:
a. Wrong
b. 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
Mark 1.00 out of 1.00

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
Question text
The first computer concept invented is called _________________________.
Select one:
a. COBOL
b. Analytical Engine
c. FORTRAN
d. PlanKalKul

Question 49
Complete
Mark 1.00 out of 1.00

Flag question

Question text
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.
“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.”
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
Flag question

Question text
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product quality model and
write the letter that corresponds to your answer.
Integrity
Select one:
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 does NOT describes SELECT Statement in a PL/SQL.


Answer: Queries must return only one column.
You want to display all the records of employee the same with the salary employee number 103.
Answer: SELECT * FROM employees WHERE salary = (SELECT salary from employees where
employee_id= 103)
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;
Which of the folllowing is TRUE?
Answer: SQL code are embedded within PL/SQL statements
When an exception is user defined, the exception is raised ____________ .
Answer: Explicitly
Which of the folllowing is TRUE?
Answer: SQL code are embedded withing PL/SQL statements
Weak REF CURSOR is very flexible.
Answer: True
How do you test the output of a PL/SQL block?
Answer: Use a predefined Oracle package and its procedure
Restrictive, specifies a RETURN type, associates only with type-compatible queries are description
of a ________________.
Answer: Strong REF CURSOR
Which of the following DOES NOT describes an exception?
Answer: Exception is a PL/SQL error that is raised before program execution.
These are local variables declared in the parameter list of a subprogram specification.
Answer: Formal parameter
Which of the following rules is INCORRECT about cursor variables?
Answer: None of the choices.
When an exception is predefined by Oracle server, the exception is raised ____________ .
Answer: Explicitly
Which of the following DOES NOT describes an exception?
Answer: Exception is a PL/SQL error that is raised before program execution.
Evaluate the following PL/SQL.
CREATE OR REPLACE PROCEDURE query_employee
(p_id IN employees.employee_id%TYPE,
p_name OUT employees.last_name%TYPE,
p_salary OUT employees.salary%TYPE) IS
BEGIN SELECT last_name, salary INTO p_name, p_salary
FROM employeesWHERE employee_id = p_id;
END query_employee
Answer: No error
You want to know the total number of employees whose firstname starts with letter D.
Which of the folllowing PLS/SQL executes successfully?
Answer: DECLARE
v_first_name employees.first_name%TYPE := 'D%';
BEGIN
SELECT COUNT(*) INTO v_first_name FROM employees WHERE first_name LIKE v_first_name;
DBMS_OUTPUT.PUT_LINE(v_first_name);
END;
What is the error trapping function that returns the numeric value of the error code?
Answer: SQLCODE
You want to display the name, salary and tax of employee #150. Which of the PL/SQL will execute
successfully? Note tax is computed as 2% of the salary.
Answer: DECLARE
v_first_name VARCHAR2(50);
v_last_name VARCHAR2(50);
v_salary INTEGER(20);
v_tax INTEGER(10);
BEGIN
SELECT first_name, last_name, salary, salary * 0.02 INTO v_first_name, v_last_name, v_salary,
v_tax FROM employees WHERE employee_id = 150;
DBMS_OUTPUT.PUT_LINE('Firstname : '|| v_first_name);
DBMS_OUTPUT.PUT_LINE('Lastname : '|| v_last_name);
DBMS_OUTPUT.PUT_LINE('Salary : '|| v_salary);
DBMS_OUTPUT.PUT_LINE('Tax : '|| v_tax);
END;
Which of the following is the syntax to close a cursor?
Answer: CLOSE cursor_variable_name;
Which of the following rules is INCORRECT about cursor variables?
Answer: None of the choices.
What are the three PL/SQL block types?
Answer: Anonymous, Procedure, Function
You can trap any error by including a corresponding handler within the exception-handling section of
the PL/SQL block.
Answer: True
Which of the following describes weak REF CURSOR?
Answer: Associates with any query
Given the answer in item __________, which of the folllowing stored procedure will display the
employee id and salary of Steven King?
Answer: DECLARE
v_employee_id employees.employee_id%TYPE;
v_emp_sal employees.salary%TYPE;
BEGIN
query_emp('King', 'Steven', v_employee_id, v_emp_sal);
DBMS_OUTPUT.PUT_LINE('Employee ID ' || v_employee_id ||' earns '|| to_char(v_emp_sal,
'$999,999.00'));
END;
You have been tasked to update the database by creating a PL/SQL to increase the salary of all IT
Programmer employees by 50% 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 *0.50 WHERE job_id = v_job_id;
END;
Which of the folllowing is required in a subquery?
Answer: SELECT
What is the exception name when PL/SQL has an internal problem
Answer: PROGRAM_ERROR
In the DECLARE section of the PL/SQL block,
Answer: All of the choices
Actions are being performed when error occurs during PL/SQL execution in the
Answer: EXCEPTION
What is the exception name when PL/SQL has an internal problem
Answer: PROGRAM_ERROR
Which of the folllowing statement describes PL/SQL?
Answer: PL/SQL is an Oracle proprietary, procedural, 3GL programming language
Evaluate the following PL/SQL.
DECLARE
v_employee_id employees.employee_id%TYPE := 114;
BEGIN
DELETE employees WHERE employee_id = v_employee_id;
END;
Answer: The PL/SQL will delete employee number 114.
Which of the following command is used to create a stand-alone procedure that is stored in the
Oracle database?
Answer: CREATE PROCEDURE
Evaluate the following PL/SQL.
DECLARE
v_email VARCHAR(20);
BEGIN
SELECT email INTO v_email FROM EMPLOYEES WHERE email like 'D%';
DBMS_OUTPUT.PUT_LINE ('Employees whose email address starts with letter D :'
|| v_email);
EXCEPTION
WHEN TOO_MANY_ROWS THEN
DBMS_OUTPUT.PUT_LINE (' Your select statement retrieved multiple rows.');
END;
Answer: The PL/SQL block will run successfully.
Which of the following is the syntax to define a REF CURSOR type?
Answer: TYPE ref_type_name IS REF CURSOR
[RETURN return_type];
The PL/SQL code block helps modularize code by using:
Answer: All of the choices
Which of the following is the syntax to fetch from a cursor variable?
Answer: FETCH cursor_variable_name INTO variable_name1
[,variable_name2,. . .] | record_name;
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')
Procedure can be stored in the database as a schema object.
Answer: True
In PL/SQL Block Structure, which of the following are mandatory?
Answer: BEGIN and END
PL/SQL stands for
Answer: Procedural Language extension to SQL
Which of the following is CORRECT about sub-queries?
Answer: Subquery execute before the main query executes.
Which of the following does NOT describes SELECT Statement in a PL/SQL.
Answer: Queries must return only one column.
PL/SQL Provides a block structure for executable units of ________________.
Answer: Code
Evaluate the SQL command
SELECT employee_id, salary from employees where salary = ANY (SELECT salary FROM
employees WHERE job_id = 'IT_PROG') AND job_id = 'ST_CLERK'
Answer: This has no error.
Which of the following PL/SQL will execute successfully?
Answer: DECLARE
v_salary INTEGER(20);
BEGIN
SELECT salary INTO v_salary FROM employees WHERE employee_id = 150;
END;
In PL/SQL Block Structure, which of the following are OPTIONAL?
Answer: None of the choices
Evaluate the following PL/SQL. At what line number is the error of the PL/SQL?
DECLARE
v_deptno NUMBER := 800;
e_invalid EXCEPTION;
BEGIN
DELETE FROM departments
WHERE department_id = v_deptno;
IF SQL % NOT_FOUND THEN
RAISE e_invalid;
END IF;
COMMIT;
EXCEPTION
WHEN e_invalid THEN
DBMS_OUTPUT.PUT_LINE('No such department id.');
END;
Answer: 7
What is the error trapping function that returns the numeric value of the error code?
Answer: SQLCODE
Fetch into a record when fetching from a cursor.
Answer: True

PROG-113A / ► Week 18: Designing PL/SQL / ► Short Quiz 14


Which of the following is the syntax to open a cursor varial
Answer: OPEN cursor_variable_name
FOR select_statement;
Which of the following is the syntax to define a REF CURSOR type?
Answer: TYPE ref_type_name IS REF CURSOR
[RETURN return_type];
Weak REF CURSOR is very flexible.
Answer: True
Evaluate the following. What will be the output?
DECLARE
SUBTYPE Accumulator IS NUMBER (4,2);
v_amount accumulator;
v_num1 NUMBER;
v_num2 NUMBER;
v_num3 NUMBER;
BEGIN
v_amount := 10.50;
v_num1 := 1;
v_num2 := 2;
v_num3 := 3;
v_num1 := v_amount;
v_num2 := v_num1 + v_amount;
v_num2 := v_num2 - v_num3;
dbms_output.put_line('Total is: ' || v_num2);
END;
Answer: 18
Which of the following is the syntax to fetch from a cursor variable?
Answer: FETCH cursor_variable_name INTO variable_name1
[,variable_name2,. . .] | record_name;
Fetch into a record when fetching from a cursor.
Answer: True
Which of the following is the syntax to close a cursor?
Answer: CLOSE cursor_variable_name;
This is a subset of an existing data type that may place a constraint on its base type.
Answer: Subtype
Which of the following rules is INCORRECT about cursor variables?
Answer: None of the choices.
Use column aliases in cursors for calculated columns fetched into records declared with %COLUMNTYPE.
Answer: False

PROG-113A / ► Week 18: Designing PL/SQL / ► Learning Activity 14

Which of the following rules is INCORRECT about cursor variables?


Answer: None of the choices.
Which of the following describes weak REF CURSOR?
Answer: Associates with any query
Restrictive, specifies a RETURN type, associates only with type-compatible queries are
description of a ________________.
Answer: Strong REF CURSOR
Which of the following is INCORRECT about the guidelines for cursor design?
Answer: Use column aliases in cursors for calculated columns fetched into records declared with
%COLUMNTYPE.
This is a subset of an existing data type that may place a constraint on its base type.
Answer: Subtype

PROG-113A / ► Week 17: / ► Short Quiz 13


Evaluate the following PL/SQL.
CREATE OR REPLACE PROCEDURE query_employee
(p_id IN employees.employee_id%TYPE,
p_name OUT employees.last_name%TYPE,
p_salary OUT employees.salary%TYPE) IS
BEGIN SELECT last_name, salary INTO p_name, p_salary
FROM employeesWHERE employee_id = p_id;
END query_employee
Answer: No error
Evaluate the following PL/SQL. Which of the following will line creates an error?
CREATE OR REPLACE PROCEDURE query_emp
(
p_department_id IN employees.department_id%TYPE,
p_name OUT employees.last_name%TYPE,
p_salary OUT employees.salary%TYPE
)
IS
BEGIN
SELECT last_name, salary, department_id INTO p_name, p_salary, p_department_id
FROM employees
WHERE salary >= p_salary AND department_id = p_department_id ;
END query_emp;
Answer: Line 3
These are local variables declared in the parameter list of a subprogram specification.
Answer: Formal parameter
Given the answer in item __________, which of the folllowing stored procedure will display the
employee id and salary of Steven King?
Answer: DECLARE
v_employee_id employees.employee_id%TYPE;
v_emp_sal employees.salary%TYPE;
BEGIN
query_emp('King', 'Steven', v_employee_id, v_emp_sal);
DBMS_OUTPUT.PUT_LINE('Employee ID ' || v_employee_id ||' earns '|| to_char(v_emp_sal,
'$999,999.00'));
END;

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

PROG-113A / ► Week 16: Creating Procedures / ► Learning Activity 13


Procedure can be stored in the database as a schema object.
Answer: True
The PL/SQL code block helps modularize code by using:
Answer: All of the choices
Which of the following command is used to create a stand-alone procedure that is stored in the Oracle
database?
Answer: CREATE PROCEDURE
Which of the folllowing 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
Answer: iii & v
Which if the following is NOT a benefits of using modular program constructs?
Answer: None of the choices
PROG-113A / ► Week 18: Designing PL/SQL / ► Short Quiz 14
Which of the following is the syntax to open a cursor varial
Answer: OPEN cursor_variable_name
FOR select_statement;
Which of the following is the syntax to define a REF CURSOR type?
Answer: TYPE ref_type_name IS REF CURSOR
[RETURN return_type];
Weak REF CURSOR is very flexible.
Answer: True
Evaluate the following. What will be the output?
DECLARE
SUBTYPE Accumulator IS NUMBER (4,2);
v_amount accumulator;
v_num1 NUMBER;
v_num2 NUMBER;
v_num3 NUMBER;
BEGIN
v_amount := 10.50;
v_num1 := 1;
v_num2 := 2;
v_num3 := 3;
v_num1 := v_amount;
v_num2 := v_num1 + v_amount;
v_num2 := v_num2 - v_num3;
dbms_output.put_line('Total is: ' || v_num2);
END;
Answer: 18
Which of the following is the syntax to fetch from a cursor variable?
Answer: FETCH cursor_variable_name INTO variable_name1
[,variable_name2,. . .] | record_name;
Fetch into a record when fetching from a cursor.
Answer: True
Which of the following is the syntax to close a cursor?
Answer: CLOSE cursor_variable_name;
This is a subset of an existing data type that may place a constraint on its base type.
Answer: Subtype
Which of the following rules is INCORRECT about cursor variables?
Answer: None of the choices.
Use column aliases in cursors for calculated columns fetched into records declared with %COLUMNTYPE.
Answer: False

PROG-113A / ► Week 18: Designing PL/SQL / ► Learning Activity 14


Which of the following rules is INCORRECT about cursor variables?
Answer: None of the choices.
Which of the following describes weak REF CURSOR?
Answer: Associates with any query
Restrictive, specifies a RETURN type, associates only with type-compatible queries are
description of a ________________.
Answer: Strong REF CURSOR
Which of the following is INCORRECT about the guidelines for cursor design?
Answer: Use column aliases in cursors for calculated columns fetched into records declared with
%COLUMNTYPE.
This is a subset of an existing data type that may place a constraint on its base type.
Answer: Subtype

PROG-113A / ► Week 15: Long Quiz / ► Long Quiz 3 (30/30)


(Correction)
How do you test the output of a PL/SQL block?
Answer: Use a predefined Oracle package and its procedure
Which of the folllowing statement describes PL/SQL?
Answer: PL/SQL is an Oracle proprietary, procedural, 3GL programming language
Which of the following syntax to declare EXCEPTION named e_invalid_id?
Answer: e_invalid_id EXCEPTION;
In PL/SQL Block Structure, which of the following are mandatory?
Answer: BEGIN and END
This is a type of cursor which is created and managed internally by the Oracle server to process
SQL statements
Answer: Implicit
PL/SQL stands for
Answer: Procedural Language extension to SQL
Which of the following PL/SQL will execute successfully?
Answer: DECLARE
v_salary INTEGER(20);
BEGIN
SELECT salary INTO v_salary FROM employees WHERE employee_id = 150;
END;
What is the last clause in trapping exceptions?
Answer: WHEN OTHERS
PL/SQL Provides a block structure for executable units of ________________.
Answer: Code
Evaluate the following PL/SQL.
DECLARE
v_email VARCHAR(20);
BEGIN
SELECT email INTO v_email FROM EMPLOYEES WHERE email like 'D%';
DBMS_OUTPUT.PUT_LINE ('Employees whose email address starts with letter D :'
|| v_email);
EXCEPTION
WHEN TOO_MANY_ROWS THEN
DBMS_OUTPUT.PUT_LINE (' Your select statement retrieved multiple rows.');
END;
Answer: The PL/SQL block will run successfully.
Which of the folllowing is TRUE?
Answer: SQL code are embedded within PL/SQL statements
You can trap any error by including a corresponding handler within the exception-handling
section of the PL/SQL block.
Answer: True
When an exception is user defined, the exception is raised ____________ .
Answer: Explicitly
Evaluate the PL/SQL
DECLARE
v_first_name VARCHAR2(50);
v_last_name VARCHAR2(50);
v_salary INTEGER(20);
BEGIN
SELECT first_name, last_name, salary INTO v_first_name, v_last_name, v_salary FROM
employees WHERE department_id = 60;
DBMS_OUTPUT.PUT_LINE('Firstname : '|| v_first_name);
DBMS_OUTPUT.PUT_LINE('Lastname : '|| v_last_name);
DBMS_OUTPUT.PUT_LINE('Salary : '|| v_salary);
END;
Answer: Error in Line 6.
Evaluate the following PL/SQL.
DECLARE
v_employee_id employees.employee_id%TYPE := 114;
BEGIN
DELETE employees WHERE employee_id = v_employee_id;
END;
Answer: The PL/SQL will delete employee number 114.
Which of the following does NOT describes SELECT Statement in a PL/SQL.
Answer: Queries must return only one column.
What are the three PL/SQL block types?
Answer: Anonymous, Procedure, Function
What is the exception name when PL/SQL has an internal problem
Answer: PROGRAM_ERROR
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?
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;
What is the error trapping function that returns the numeric value of the error code?
Answer: SQLCODE
What is the exception name when single row SELECT returned no data.
Answer: NO_DATA_FOUND
Which of the following DOES NOT describes an exception?
Answer: Exception is a PL/SQL error that is raised before program execution.
Evaluate the following PL/SQL.
DECLARE
v_employee_id employees.employee_id%TYPE := 114;
BEGIN
DELETE employees WHERE employee_id = v_employee_id;
END;
Answer: The PL/SQL will delete employee number 114.
In the DECLARE section of the PL/SQL block,
Answer: All of the choices
When an exception is predefined by Oracle server, the exception is raised ____________ .
Answer: Explicitly
Which of the will display the Employee ID and number of years in service with employee ID
150?
Answer: DECLARE
v_salaryemployees.salary%TYPE := 10000;
v_employee_idemployees.employee_id%TYPE := 150;
v_years INTEGER(10);
BEGIN
SELECT employee_id, ROUND((SYSDATE - hire_date) /365,0) INTO v_employee_id, v_years
FROM employees WHERE employee_id = v_employee_id ;
DBMS_OUTPUT.PUT_LINE('Employee ID:' || v_employee_id);
DBMS_OUTPUT.PUT_LINE('Number of years : ' || v_years);
END;
Actions are being performed when error occurs during PL/SQL execution in the
Answer: EXCEPTION
You can use this procedure to issue user-defined error messages from stored subprograms.
Answer: RAISE_APPLICATION_ERROR

PROG-113A / ► Week 14: Handling Exceptions / ► Short Quiz 12

Evaluate the following PL/SQL.


DECLARE
v_email VARCHAR(20);
BEGIN
SELECT email INTO v_email FROM EMPLOYEES WHERE email like 'D%';
DBMS_OUTPUT.PUT_LINE ('Employees whose email address starts with letter D :'
|| v_email);
EXCEPTION
WHEN TOO_MANY_ROWS THEN
DBMS_OUTPUT.PUT_LINE (' Your select statement retrieved multiple rows.');
END;
Answer: The PL/SQL block will run successfully.
Which of the following DOES NOT describes an exception?
Answer: Exception is a PL/SQL error that is raised before program execution.
What is the exception name when single row SELECT returned no data.
Answer: NO_DATA_FOUND
RAISE_APPLICATION_ERROR is used in two different places. These are
___________________.
Answer: Executable and exceptions section
What is the error trapping function that returns the numeric value of the error code?
Answer: SQLCODE
What is the exception name when PL/SQL has an internal problem
Answer: PROGRAM_ERROR
Evaluate the following PL/SQL. At what line number is the error of the PL/SQL?
DECLARE
v_deptno NUMBER := 800;
e_invalid EXCEPTION;
BEGIN
DELETE FROM departments
WHERE department_id = v_deptno;
IF SQL % NOT_FOUND THEN
RAISE e_invalid;
END IF;
COMMIT;
EXCEPTION
WHEN e_invalid THEN
DBMS_OUTPUT.PUT_LINE('No such department id.');
END;
Answer: 7
What is the last clause in trapping exceptions?
Answer: WHEN OTHERS
Complete the diagram in Trapping Non-Predefined Oracle Server Errors.
Answer: Declare, Associate, Reference

PROG-113A / ► Week 14: Handling Exceptions / ► Learning Activity 12

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

PROG-113A / ► Week 13: Interacting with Oracle Server / ► Learning Activity 11

Which of the following does NOT describes SELECT Statement in a PL/SQL.


Answer: Queries must return only one column.
Evaluate the following PL/SQL.
1 DECLARE

2 v_employee_id employees.employee_id%TYPE := 114;

3 BEGIN

4 DELETE employees WHERE employee_id = 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;

PROG-113A / ► Week 12: Introduction to PLSQL / ► Short Quiz 10

Which of the folllowing is TRUE?


Answer: SQL code are embedded withing PL/SQL statements
In the DECLARE section of the PL/SQL block
Answer: All of the choices
In PL/SQL Block Structure, which of the following are OPTIONAL?
Answer: None of the choices
What are the three PL/SQL block types?
Answer: Anonymous, Procedure, Function
How do you test the output of a PL/SQL block?
Answer: Use a predefined Oracle package and its procedure
You want to display the name, salary and tax of employee #150. Which of the PL/SQL will
execute successfully? Note tax is computed as 2% of the salary.
Answer: DECLARE
v_first_name VARCHAR2(50);
v_last_name VARCHAR2(50);
v_salary INTEGER(20);
v_tax INTEGER(10);
BEGIN
SELECT first_name, last_name, salary, salary * 0.02 INTO v_first_name, v_last_name,
v_salary, v_tax FROM employees WHERE employee_id = 150;
DBMS_OUTPUT.PUT_LINE('Firstname : '|| v_first_name);
DBMS_OUTPUT.PUT_LINE('Lastname : '|| v_last_name);
DBMS_OUTPUT.PUT_LINE('Salary : '|| v_salary);
DBMS_OUTPUT.PUT_LINE('Tax : '|| v_tax);
END;
Which of the folllowing statement describes PL/SQL?
Answer: PL/SQL is an Oracle proprietary, procedural, 3GL programming language

PROG-113A / ► Week 12: Introduction to PLSQL / ► Learning Activity 10


PL/SQL stands for
Answer: Procedural Language extension to SQL
PL/SQL Provides a block structure for executable units of ________________.
Answer: Code
In PL/SQL Block Structure, which of the following are mandatory?
Answer: BEGIN and END
Which of the following PL/SQL will execute successfully?
Answer: DECLARE
v_salary INTEGER(20);
BEGIN
SELECT salary INTO v_salary FROM employees WHERE employee_id = 150;
END;
Actions are being performed when error occurs during PL/SQL execution in the
Answer: EXCEPTION

PROG-113A / ► Week 11: Using Subqueries to Solve Queries / ► Short Quiz 9

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')
Evaluate the SQL command
SELECT employee_id, job_id, salary from employees where salary < ALL (SELECT salary
FROM employees WHERE job_id = 'FI_ACCOUNT') AND job_id = 'IT_PROG'
Answer: This has no error.

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')

Evaluate the SQL command


SELECT employee_id, last_name, first_name, job_id FROM employees WHERE department_id
= (SELECT max(department_id) FROM employees GROUP BY department_id)
Answer: This will return an error. Single-row subquery returns more than one row.

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)

PROG-113A / ► Week 11: Using Subqueries to Solve Queries / ► Learning Activity 9


Which of the following is INCORRECT?
Answer: Use single-row operators with multiple-row subqueries
Which of the folllowing is required in a subquery?
Answer: SELECT
Which of the following is CORRECT about sub-queries?
Answer: Subquery execute before the main query executes.
Evaluate the SQL Command
SELECT job_id, job_title FROM jobs J WHERE INCLUDES
(SELECT * FROM employees WHERE J.job_id = e.job_id );
Answer: The SQL will return an error. Invalid "INCLUDES" parameter.
Evaluate the SQL command
SELECT employee_id, salary from employees where salary = ANY (SELECT salary FROM employees
WHERE job_id = 'IT_PROG') AND job_id = 'ST_CLERK'
Answer: This has no error.
The General Manager request to the Database Administrator to generate the total number of parts
and total outstanding balance on hand of every class in warehouse number 1&2.
Which of the following SQL command will generate the required output.
-SELECT warehouse, class, count(partnum), sum(onhand) GROUP BY warehouse,class
HAVING warehouse = 1 or warehouse = 2 FROM parts;

Display the employee's name, job title, job_id and the department name of employees with
department id of 100.
-SELECT E.employee_id, J.job_title, e.job_id, D.department_name
FROM employees E
JOIN jobs J ON E.job_id = J.job_id
JOIN departments D ON E.department_id = D.department_id
WHERE E.department_id = 100

Display the part number whose class is not HW, AG or SG.


-SELECT partnum FROM parts WHERE NOT IN class ('HW', 'AG', SG')
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?
-. SELECT DESCRIPTION RENAME AS TITLE, PARTNUM RENAME AS ID, ONHAND RENAME AS
STOCK FROM PARTS;
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 _____________.
-FULL OUTER JOIN
Which of the following is NOT a task of a Database Administrator
-None of the choices

SELECT employee_id, min_salary, max_salary FROM employees, departments WHERE


salary>= 10000 && salary <= 20000
-The SQL command will produce an error.

These are collection of objects such as tables, views, and sequences.


-Container’
Display the first 5 letter in the surname of all the employees whose firstname starts with letter 'N'
-SELECT SUBSTR(last_name,1,5), first_name FROM employees WHERE
SUBSTR(first_name,1,1) IN 'N'
Which of the following SELECT statement is the correct PL/SQL that will display all rows and
columns?
-SELECT FROM TABLE PARTS;
Display all employees whose job id contains the word 'ACCOUNT'.
-SELECT * FROM EMPLOYEES WHERE job_id LIKE '%ACCOUNT%';
Display employee's name and id whose firstname starts with letter D and job id is IT_PROG.
-SELECT employee_id, first_name, last_name FROM employees ORDER BY department_id
WHERE first_name LIKE 'D%' and job_id = 'IT_PROG'
The following are capabilities of SQL SELECT
-Create records, Remove Table, Edit record

Display the part number whose class is not HW, AG or SG.


-SELECT partnum FROM parts WHERE class NOT IN = (‘HW’, AG’, SG’)
Each row of data in a table can be uniquely identified by a
-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;
Display all location id between 1000 to 2000.
- DISPLAY location_id FROM departments WHERE location_id BETWEEN 1000 TO 2000
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 does NOT describes SELECT Statement in a PL/SQL.


Answer: Queries must return only one column.
You want to display all the records of employee the same with the salary employee number 103.
Answer: SELECT * FROM employees WHERE salary = (SELECT salary from employees where
employee_id= 103)
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;
Which of the folllowing is TRUE?
Answer: SQL code are embedded within PL/SQL statements
When an exception is user defined, the exception is raised ____________ .
Answer: Explicitly
Which of the folllowing is TRUE?
Answer: SQL code are embedded withing PL/SQL statements
Weak REF CURSOR is very flexible.
Answer: True
How do you test the output of a PL/SQL block?
Answer: Use a predefined Oracle package and its procedure
Restrictive, specifies a RETURN type, associates only with type-compatible queries are description
of a ________________.
Answer: Strong REF CURSOR
Which of the following DOES NOT describes an exception?
Answer: Exception is a PL/SQL error that is raised before program execution.
These are local variables declared in the parameter list of a subprogram specification.
Answer: Formal parameter
Which of the following rules is INCORRECT about cursor variables?
Answer: None of the choices.
When an exception is predefined by Oracle server, the exception is raised ____________ .
Answer: Explicitly
Which of the following DOES NOT describes an exception?
Answer: Exception is a PL/SQL error that is raised before program execution.
Evaluate the following PL/SQL.
CREATE OR REPLACE PROCEDURE query_employee
(p_id IN employees.employee_id%TYPE,
p_name OUT employees.last_name%TYPE,
p_salary OUT employees.salary%TYPE) IS
BEGIN SELECT last_name, salary INTO p_name, p_salary
FROM employeesWHERE employee_id = p_id;
END query_employee
Answer: No error
You want to know the total number of employees whose firstname starts with letter D.
Which of the folllowing PLS/SQL executes successfully?
Answer: DECLARE
v_first_name employees.first_name%TYPE := 'D%';
BEGIN
SELECT COUNT(*) INTO v_first_name FROM employees WHERE first_name LIKE v_first_name;
DBMS_OUTPUT.PUT_LINE(v_first_name);
END;
What is the error trapping function that returns the numeric value of the error code?
Answer: SQLCODE
You want to display the name, salary and tax of employee #150. Which of the PL/SQL will execute
successfully? Note tax is computed as 2% of the salary.
Answer: DECLARE
v_first_name VARCHAR2(50);
v_last_name VARCHAR2(50);
v_salary INTEGER(20);
v_tax INTEGER(10);
BEGIN
SELECT first_name, last_name, salary, salary * 0.02 INTO v_first_name, v_last_name, v_salary,
v_tax FROM employees WHERE employee_id = 150;
DBMS_OUTPUT.PUT_LINE('Firstname : '|| v_first_name);
DBMS_OUTPUT.PUT_LINE('Lastname : '|| v_last_name);
DBMS_OUTPUT.PUT_LINE('Salary : '|| v_salary);
DBMS_OUTPUT.PUT_LINE('Tax : '|| v_tax);
END;
Which of the following is the syntax to close a cursor?
Answer: CLOSE cursor_variable_name;
Which of the following rules is INCORRECT about cursor variables?
Answer: None of the choices.
What are the three PL/SQL block types?
Answer: Anonymous, Procedure, Function
You can trap any error by including a corresponding handler within the exception-handling section of
the PL/SQL block.
Answer: True
Which of the following describes weak REF CURSOR?
Answer: Associates with any query
Given the answer in item __________, which of the folllowing stored procedure will display the
employee id and salary of Steven King?
Answer: DECLARE
v_employee_id employees.employee_id%TYPE;
v_emp_sal employees.salary%TYPE;
BEGIN
query_emp('King', 'Steven', v_employee_id, v_emp_sal);
DBMS_OUTPUT.PUT_LINE('Employee ID ' || v_employee_id ||' earns '|| to_char(v_emp_sal,
'$999,999.00'));
END;
You have been tasked to update the database by creating a PL/SQL to increase the salary of all IT
Programmer employees by 50% 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 *0.50 WHERE job_id = v_job_id;
END;
Which of the folllowing is required in a subquery?
Answer: SELECT
What is the exception name when PL/SQL has an internal problem
Answer: PROGRAM_ERROR
In the DECLARE section of the PL/SQL block,
Answer: All of the choices
Actions are being performed when error occurs during PL/SQL execution in the
Answer: EXCEPTION
What is the exception name when PL/SQL has an internal problem
Answer: PROGRAM_ERROR
Which of the folllowing statement describes PL/SQL?
Answer: PL/SQL is an Oracle proprietary, procedural, 3GL programming language
Evaluate the following PL/SQL.
DECLARE
v_employee_id employees.employee_id%TYPE := 114;
BEGIN
DELETE employees WHERE employee_id = v_employee_id;
END;
Answer: The PL/SQL will delete employee number 114.
Which of the following command is used to create a stand-alone procedure that is stored in the
Oracle database?
Answer: CREATE PROCEDURE
Evaluate the following PL/SQL.
DECLARE
v_email VARCHAR(20);
BEGIN
SELECT email INTO v_email FROM EMPLOYEES WHERE email like 'D%';
DBMS_OUTPUT.PUT_LINE ('Employees whose email address starts with letter D :'
|| v_email);
EXCEPTION
WHEN TOO_MANY_ROWS THEN
DBMS_OUTPUT.PUT_LINE (' Your select statement retrieved multiple rows.');
END;
Answer: The PL/SQL block will run successfully.
Which of the following is the syntax to define a REF CURSOR type?
Answer: TYPE ref_type_name IS REF CURSOR
[RETURN return_type];
The PL/SQL code block helps modularize code by using:
Answer: All of the choices
Which of the following is the syntax to fetch from a cursor variable?
Answer: FETCH cursor_variable_name INTO variable_name1
[,variable_name2,. . .] | record_name;
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')
Procedure can be stored in the database as a schema object.
Answer: True
In PL/SQL Block Structure, which of the following are mandatory?
Answer: BEGIN and END
PL/SQL stands for
Answer: Procedural Language extension to SQL
Which of the following is CORRECT about sub-queries?
Answer: Subquery execute before the main query executes.
Which of the following does NOT describes SELECT Statement in a PL/SQL.
Answer: Queries must return only one column.
PL/SQL Provides a block structure for executable units of ________________.
Answer: Code
Evaluate the SQL command
SELECT employee_id, salary from employees where salary = ANY (SELECT salary FROM
employees WHERE job_id = 'IT_PROG') AND job_id = 'ST_CLERK'
Answer: This has no error.
Which of the following PL/SQL will execute successfully?
Answer: DECLARE
v_salary INTEGER(20);
BEGIN
SELECT salary INTO v_salary FROM employees WHERE employee_id = 150;
END;
In PL/SQL Block Structure, which of the following are OPTIONAL?
Answer: None of the choices
Evaluate the following PL/SQL. At what line number is the error of the PL/SQL?
DECLARE
v_deptno NUMBER := 800;
e_invalid EXCEPTION;
BEGIN
DELETE FROM departments
WHERE department_id = v_deptno;
IF SQL % NOT_FOUND THEN
RAISE e_invalid;
END IF;
COMMIT;
EXCEPTION
WHEN e_invalid THEN
DBMS_OUTPUT.PUT_LINE('No such department id.');
END;
Answer: 7
What is the error trapping function that returns the numeric value of the error code?
Answer: SQLCODE
Fetch into a record when fetching from a cursor.
Answer: True

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
Enforcing environmental policies is one of the major causes of job loss and
unemployment. - False
True or False: Dates in file names should be written in YYYY-MM-DD format. - False
Big business companies are the only ones responsible for enforcing environmental
policies since they can afford alternative cleaner technology. - False
Pre-review activities in the review process includes review planning, preparation and
individual review. - true
Increase work productivity by arranging items in such a way that they are easy to find
and pick up. - true
Montreal protocol protects the ozone layer by ____________________. - phasing out
harmful substances
Business industries will not be affected by the environmental crisis. - False
True or False: Protocols are set of standards rules which describes how something
should be done and different companies have different protocols as well. - true
Presidential Decree No. 856 is an international treaty that imposes limitations on the
greenhouse gas emissions of several countries. - True
True or False: Organizational aims are different from the mission statement; they refer
to the results an organization is aspiring for. - true
The cost / benefit analysis document is appropriately named. - False
A printed progress report to be submitted to the adviser. - purpose
True or False: Statutory requirements are identified by the vendors or suppliers and
they include value, stability, diversity and capacity. - False
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. - False
Identify whether the statement is a strength, weakness, opportunity or threat: The
student record system could be used by other schools other than Ricka’s school. -
opportunity
True or False: Reviewing the related literature includes review of concepts, theories and
previous research findings. - true
Companies can freely make their own set of environmental policies without consulting
the workers’ union, or any local or national laws about it. - False
Kyoto protocol addresses environmental issues through the campaign of
____________________. - reducing greenhouse gas emissions
Humans rely on natural resources for survival. - true
Quantitative research, compared to qualitative research, uses measurable - Data
ISO/IEC 25010:2011’s product quality model has eight (8) major characteristics. - true
True or False: Usually, the summary of the report is the first thing that’s being read. -
true
____________________ is when you conduct regular audits and inspections to
evaluate your work performance. - Shitsuke
“XYZ is so cool! I tried to install it in my old computer and it still runs smoothly. Given
that the computer’s video card is a bit faulty.“ - Reliability
True or False: There are five main elements of a written report – topic, style, structure,
facts and contents. - false
True or False: To gather data, you can either conduct an interview, survey, observation,
mail questionnaire, coding and tabulation. - false
PROG LONG QUIZ 4

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;
query_emp('King', 'Steven', v_employee_id, v_emp_sal);
BEGIN
DBMS_OUTPUT.PUT_LINE('Employee ID ' || v_employee_id ||' earns '|| to_char(v_emp_sal,
'$999,999.00'));
END;
b. DECLARE
query_emp('King', 'Steven', v_employee_id, v_emp_sal);
BEGIN
v_employee_id employees.employee_id VARCHAR(10);
v_emp_sal employees.salary NUMERIC(10);
DBMS_OUTPUT.PUT_LINE('Employee ID ' || v_employee_id ||' earns '|| to_char(v_emp_sal,
'$999,999.00'));
END;
c. DECLARE
v_employee_id employees.employee_id VARCHAR(10);
v_emp_sal employees.salary NUMERIC(10);
BEGIN
query_emp('King', 'Steven', v_employee_id, v_emp_sal);
DBMS_OUTPUT.PUT_LINE('Employee ID ' || v_employee_id ||' earns '|| to_char(v_emp_sal,
'$999,999.00'));
END;
d. DECLARE
v_employee_id employees.employee_id%TYPE;
v_emp_sal employees.salary%TYPE;
BEGIN
query_emp('King', 'Steven', v_employee_id, v_emp_sal);
DBMS_OUTPUT.PUT_LINE('Employee ID ' || v_employee_id ||' earns '|| to_char(v_emp_sal,
'$999,999.00'));
END;

Question 2
Complete
Mark 1.00 out of 1.00

Flag question

Question text
The PL/SQL code block helps modularize code by using:
Select one:
a. All of the choices
b. Database triggers
c. Packages
d. Procedures
e. Anonymous blocks
f. Functions

Question 3
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Which of the following rules is INCORRECT about cursor variables?
Select one:
a. You cannot assign a null value to cursor variables.
b. Cursors and cursor variables are not interoperable.
c. You cannot use REF CURSOR types in CREATE TABLE or VIEW statements.
d. You cannot use comparison operators to test cursor variables.
e. None of the choices.
f. You cannot use cursor variables with remote subprograms on another server.

Question 4
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Which of the following is the syntax to close a cursor?
Select one:
a. SET cursor_variable_nameCLOSE;
b. CLOSE cursor_variable_name;
c. EXIT cursor_variable_name;
d. QUIT cursor_variable_name;

Question 5
Complete
Mark 1.00 out of 1.00
Flag question

Question text
Which of the folllowing is TRUE?
Select one:
a. PL/SQL statements are embedded within SQL code.
b. None of the choices
c. SQL code are embedded within PL/SQL statements
d. You can embed procedural construct within SQL code

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
b. Index
c. Data dictionary
d. Data
e. Schema

Question 8
Complete
Mark 1.00 out of 1.00

Flag question

Question text
What is the default parameter mode when no mode is specified?
Select one:
a. IN
b. DEFAULT
c. OUT
d. IN OUT

Question 9
Complete
Mark 1.00 out of 1.00

Flag question

Question text
When an exception is predefined by Oracle server, the exception is raised ____________ .
Select one:
a. Implicitly
b. Interactively
c. Exclusively
d. Explicitly
e. None of the choices

Question 10
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Evaluate the following PL/SQL. Which of the following will line creates an error?

1. CREATE OR REPLACE PROCEDURE query_emp


2. (
3. p_department_id IN employees.department_id%TYPE,
4. p_name OUT employees.last_name%TYPE,
5. p_salary OUT employees.salary%TYPE
6. )
7. IS
8. BEGIN
9. SELECT last_name, salary, department_id INTO p_name, p_salary,
p_department_id
10. FROM employees
11. WHERE salary >= p_salary AND department_id = p_department_id ;
12. END query_emp;

Select one:
a. Line 1
b. Line 5
c. Line 9
d. Line 3
e. No error
f. Line 11

Question 11
Complete
Mark 1.00 out of 1.00

Flag question

Question text
These are local variables declared in the parameter list of a subprogram specification.
Select one:
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:
a. Improved data security and integrity
b. Improved code clarity
c. Improved performance
d. None of the choices
e. Easy maintenance

Question 14
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Which of the following command is used to create a stand-alone procedure that is stored in the
Oracle database?
Select one:
a. PROCEDURE
b. BUILD PROCEDURE
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
Flag question

Question text
Which of the following is the syntax to fetch from a cursor variable?
Select one:
a. FETCH cursor_variable_name INTO variable_name1
[,variable_name2,. . .] | record_name;
b. GET cursor_variable_name INTO variable_name1
[,variable_name2,. . .] | record_name;
c. POST cursor_variable_name INTO variable_name1
[,variable_name2,. . .] | record_name;
d. RETRIEVE cursor_variable_name INTO variable_name1
[,variable_name2,. . .] | record_name;

Question 17
Complete
Mark 1.00 out of 1.00

Flag question

Question text
PL/SQL stands for
Select one:
a. Procedural Language extension to SQL
b. Procedural Libraries of SQL
c. Procedural Logic of SQL
d. Process Linkage to SQL

Question 18
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Which of the following is the syntax to define a REF CURSOR type?
Select one:
a. DECLARE ref_type_name AS REF CURSOR
[RETURN return_type];
b. DEFINE ref_type_name AS REF CURSOR
[RETURN return_type];
c. TYPE ref_type_name IS REF CURSOR
[RETURN return_type];
d. SET ref_type_name IS REF CURSOR
[RETURN return_type];

Question 19
Complete
Mark 1.00 out of 1.00

Flag question

Question text
What is the error trapping function that returns the numeric value of the error code?
Select one:
a. SQLCODE
b. ERRORCODE
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:
a. Anonymous, Procedure, Function
b. SELECT, UPDATE, INSERT
c. Add, Edit, Delete
d. DECLARE, BEGIN, END

Question 21
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Evaluate the following PL/SQL.

1. DECLARE
2. v_employee_id employees.employee_id%TYPE := 114;
3. BEGIN
4. 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:
a. DECLARE
v_job_id employees.job_id%TYPE := 'IT_PROG';
BEGIN
UPDATE employees SET salary = salary * 2 WHERE job_id = v_job_id;
END;
b. DECLARE
v_job_id employees.job_id%TYPE := 'IT_PROG';
v_salary employees.salary := salary;
BEGIN
UPDATE employees SET v_salary = salary * 1.00 WHERE v_job_id = job_id;
END;
c. DECLARE
v_job_id employees.job_id%TYPE := 'IT_PROG';
BEGIN
UPDATE employees SET salary = salary * 100% WHERE job_id = v_job_id;
END;
d. DECLARE
v_job_id employees.job_id%TYPE := 'IT_PROG';
v_salary employees.salary := salary;
BEGIN
UPDATE employees SET salary = v_salary * 0.100% WHERE job_id = v_job_id;
END;

Question 23
Complete
Mark 1.00 out of 1.00

Flag question

Question text
This is a type of cursor which is created and managed internally by the Oracle server to process
SQL statements
Select one:
a. Interactive
b. Implicit
c. Explicit
d. Exclusive
e. Coded

Question 24
Complete
Mark 1.00 out of 1.00
Flag question

Question text
Which of the following describes weak REF CURSOR?
Select one:
a. Restrictive
b. All of the choices
c. Is not flexible
d. Associates with any query

Question 25
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Evaluate the following PL/SQL.

1. DECLARE
2. v_employee_id employees.employee_id%TYPE := 114;
3. BEGIN
4. 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
Flag question

Question text
What is the exception name when PL/SQL has an internal problem
Select one:
a. ERROR_MSG
b. EXECUTION_ERROR
c. RUNTIME_ERROR
d. PROGRAM_ERROR

Question 27
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Which of the folllowing 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
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
Flag question

Question text
Evaluate the following. What will be the output?

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
Question text
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 one:
a. SELECT job_title FROM jobs WHERE min_salary >= 5000 AND max_salary<= 10000
b. SELECT job_title FROM employees WHERE salary >= 5000 AND salary <= 10000
c. 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
Complete
Mark 2.00 out of 2.00

Flag question

Question text
What is the SQL command to count the number of records in the employees table?
Select one:
a. SELECT ALL FROM employees
b. SELECT * FROM employees;
c. SELECT COUNT(*) FROM employees
d. SELECT SUM(*) FROM employees;

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
Question 4
Complete
Mark 2.00 out of 2.00

Flag question

Question text
Evaluate the following SQL command
SELECT * FROM jobs WHERE job_title LIKE 'Manager%'
Select one:
a. The SQL command will produce an error.
b. The SQL command will display all employees with Manager position
c. The SQL command will display all records in the database
d. No records will be displayed

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:
a. SELECT employee_id, hire_date, TO_DATE(hire_date,'Month') AS "Hired Month", job_id FROM
b. SELECT employee_id, hire_date, MONTH(hire_date,'Month') AS "Hired Month", job_id FROM
employees
c. SELECT employee_id, hire_date, TO_CHAR(hire_date,'Month') AS "Hired Month", job_id FROM
employees
d. SELECT employee_id, hire_date, TO_MONTH(hire_date,'Month') AS "Hired Month", job_id
FROM employees

Question 6
Complete
Mark 2.00 out of 2.00
Flag question

Question text
You want to generate the total salary per month of every department in the company.
Select one:
a. SELECT department_id, salary FROM employees ORDER BY SUM(salary)
b. SELECT department_id, TOTAL(salary) FROM employees GROUP BY department_id
c. SELECT department_id, salary FROM employees GROUP BY SUM(salary) ORDER BY
department_id
d. SELECT department_id, SUM(salary) FROM employees GROUP BY 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:
a. SELECT last_name, TO_INT(salary, '$999,999.99') AS "MONTHLY SALARY" FROM employees
WHERE salary < 10,000 WHERE last_name STARTS 'D%'
b. SELECT last_name, TO_CHAR(salary, '$999,999.99') AS "MONTHLY SALARY" FROM
employees WHERE salary < 10000 WHERE last_name LIKE 'D%'
c. SELECT last_name, TO_INTEGER(salary, $999,999.99) AS "MONTHLY SALARY" FROM
employees WHERE salary < 10000 WHERE last_name IN 'D%'
d. SELECT last_name, TO_NUMBER(salary, '$999,999.99') AS "MONTHLY SALARY" FROM
employees WHERE salary < 10,000 WHERE last_name = ‘D%’

Question 8
Complete
Mark 2.00 out of 2.00
Flag question

Question text
Display the lastname of every employee in the company. Display the output in a single column and
label it as Fullname
Format: JuanReyes
Select one:
a. None of the choices
b. SELECT CONCATENATE(first_name, last_name) AS Fullname FROM employees
c. SELECT CONCAT(first_name, last_name) FROM employees
d. SELECT CONCAT(first_name, last_name) AS Fullname FROM employees

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:
a. SELECT SUBSTR(last_name,1,5), first_name FROM employees WHERE first_name IN 'N'
b. SELECT SUBSTR(last_name,1,5), first_name FROM employees WHERE
SUBSTR(first_name,1,1) = 'N'
c. SELECT SUBSTR(surname,1,5), first_name FROM employees WHERE
SUBSTR(first_name,1,1) IN 'N'
d. SELECT SUBSTR(surname,1,5), first_name FROM employees WHERE first_name = 'N'
e. SELECT SUBSTR(last_name,1,5), first_name FROM employees WHERE
SUBSTR(first_name,1,1) IN 'N'

Question 10
Complete
Mark 2.00 out of 2.00
Flag question

Question text
Austin David was transferred to Purchasing Department. You are assigned to update the database.
Which of the following SQL command will satisfy the requirements?
Select one:
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’
d. UPDATE employees SET department_id = 30 WHERE first_name = ‘David’ AND last_name =
‘Austin’

Question 11
Complete
Mark 2.00 out of 2.00

Flag question

Question text
John want to know how many employees receiving salary below 10,000.
What SQL command he need to run?
Select one:
a. SELECT COUNT(*) FROM employees WHERE salary < 10000;
b. SELECT COUNT(salary) FROM employees WHERE salary < 10,000;
c. SELECT COUNT(emp_id) FROM employees WHERE salary <= 10000;
d. SELECT salary FROM COUNT(employees)WHERE salary < 10000;

Question 12
Complete
Mark 2.00 out of 2.00
Flag question

Question text
Evaluate the following SQL command
SELECT employee_id, salary, department_id FROM employees WHERE department_id IN (60,70)
Select one:
a. The SQL command will produce an error.
b. The SQL command will display employees with department id 60 and 70.
c. The SQL command will give an incorrect output.
d. The SQL command will display employees with department id 60 or 70.

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 give the required output?
Select one:
a. SELECT last_name, hire_date FROM employees WHERE hire_date>=
TO_DATE('01-Jan-2006', 'DD-Mon-RR') AND hire_date<= TO_DATE('31-Dec-2006', 'DD-Mon-RR')
AND salary > 5000;
b. SELECT last_name, hire_date FROM employees WHERE hire_date>=
TO_DATE('Jan-2000', 'Month-YYYY') AND hire_date<= TO_DATE('Dec-2006', 'Month-‘YYYY') AND
salary > 5,000;
c. 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;
d. SELECT last_name, hire_date FROM employees WHERE hire_date>=
TO_DATE('2000', 'YYYY') AND hire_date<= TO_DATE('2006', 'YYYY') OR salary > 5000;

Question 14
Complete
Mark 2.00 out of 2.00
Flag question

Question text
List all employees except for IT_PROG job id.
Select one:
a. SELECT *FROM employees EXCEPT JOB_ID != 'IT_PROG'
b. SELECT *FROM employees WHERE JOB_ID NOT IN ('IT_PROG')
c. SELECT *FROM employees WHERE JOB_ID <> 'IT_PROG'
d. All of the choices

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:
a. The SQL will produce Cartesian Product
b. The SQL will display the employee id, department id and the minimum and maximum salary
whose salary is between 10000 and 20000.
c. The SQL command will produce an error.
d. The SQL command will give an incorrect output.

Question 16
Complete
Mark 2.00 out of 2.00

Flag question

Question text
Display all the records in the employee table. Arrange the output in by lastname from A-Z order.
Select one:
a. SELECT * FROM employees SORT BY lastname
b. SELECT * FROM employees ORDER BY lastname
c. SELECT * FROM employees ORDER BY lastname AZ
d. SELECT * FROM employees SORT BY lastname ascending

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:
a. SELECT employee_id, first_name, last_name FROM employees ORDER BY department_id
WHERE first_name LIKE 'D%' and job_id = 'IT_PROG'
b. SELECT employees FROM employee_id, first_name, last_name WHERE first_name LIKE ‘D%’
and job_id = ‘IT_PROG’ ORDER BY department_id
c. SELECT employee_id, first_name, last_name FROM employees WHERE job_id = 'IT_PROG' OR
first_name LIKE 'D%' and 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 command will produce the output.
Select one:
a. SELECT AVERAGE(salary) FROM employees WHERE job_id = 'FI_ACCOUNT';
b. SELECT AVG(salary) FROM employees WHERE job_id = 'FI_ACCOUNT';
c. SELECT AVE(salary) FROM employees WHERE job_id = 'FI_ACCOUNT';
d. SELECT COUNT AVG(salary) FROM employees WHERE job_id = 'FI_ACCOUNT';

Question 19
Complete
Mark 2.00 out of 2.00

Flag question

Question text
Display all location id between 1000 to 2000.
Select one:
a. DISPLAY location_id FROM departments WHERE location_id LING 1000 UP TO 2000
b. DISPLAY location_id FROM departments WHERE location_id BETWEEN 1000 TO 2000
c. SELECT location_id FROM departments WHERE location_id IN 1000 AND 2000
d. SELECT location_id FROM departments WHERE location_id BETWEEN 1000 AND 2000

Question 20
Complete
Mark 2.00 out of 2.00

Flag question

Question text
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 one:
a. SELECT employee_id, salary, salary + (salary .03) FROM employees
b. SELECT employee_id, salary, salary * .03 FROM employees
c. SELECT employee_id, salary, salary * 1.03 FROM employees
d. SELECT employee_id, salary FROM employees WHERE salary)
e. SELECT employee_id, salary, salary * .30 FROM employees

Question 21
Complete
Mark 2.00 out of 2.00

Flag question

Question text
Display the employee id, salary, number of years and the hiring date of every employee in the
company.
Select one:
a. SELECT employee_id,salary, hire_date, hire_date- SYSDATE /365 FROM employees;
b. SELECT employee_id, salary, hire_date, ROUND((SYSDATE - hire_date) /365,0) FROM
employees;
c. SELECT employee_id, salary, hire_date, hire_date /365 FROM employees;

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:
a. SELECT E.employee_id, J.job_title, e.job_id, D.department_name
FROM employees E
JOIN jobs J ON E.job_id = J.job_id
JOIN departments D ON E.department_id = D.department_id
WHERE E.department_id = 100
b. SELECT E.employee_id, J.job_title, e.job_id, D.department_name
FROM employees E
JOIN department D ON E.job_id = J.job_id
JOIN jobs J ON E.department_id = D.department_id
WHERE E.department_id = 100
c. SELECT E.employee_id, J.job_title, e.job_id, D.department_name
FROM jobs J
INNER JOIN department D ON E.job_id = J.job_id
INNER JOIN employees EON E.department_id = D.department_id
WHERE E.department_id = 100
d. SELECT E.employee_id, J.job_title, e.job_id, D.department_name
FROM jobs J
NATURAL JOIN department D ON E.job_id = J.job_id
NATURAL JOIN employees E ON E.department_id = D.department_id
WHERE E.department_id = 100

Question 23
Complete
Mark 2.00 out of 2.00

Flag question

Question text
In creating Joins,the NATURALJOIN and USING clauses are____________
Select one:
a. Mutually Inclusive
b. Limited to 2 relational tables
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 working in Finance Department. Label the annual salary to ANNUAL
SALARY.
Sort the output in from highest to lowest salary. (4 POINTS)
Select one:
a. 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
NATURAL JOIN jobs J ON E.job_id = J.job_id
NATURAL JOIN departments D ON E.department_id = D.department_id
ORDER BY "ANNUAL SALARY" DESC
WHERE D.location_id = 1700 AND D.department_name = 'Finance'
b. 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
JOINemployees E ON E.department_id = D.department_id
WHERE D.location_id = 1700 AND D.department_name = 'Finance'
ORDER BY "ANNUAL SALARY" DESC
c. 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
d. 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
OUTER JOIN jobs J ON E.job_id = J.job_id
OUTER 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

PROG-113A / ? Week 7: Manipulate Data / ? Short Quiz 7

9/10

Create a SQL command to update the employees table

Employee id : 200

Name : Mr. Gary Park

Date hired : July 1, 2017

Position :IT Programmer

Salary : 10000

Department of assignment : 60

Reporting to manager : 103

answer: INSERT INTO employees


(employee_id,first_name,last_name,hire_date,job_id,salary,manager_id,department_id)

VALUES (200,'Gary','Park',TO_DATE('Jul 1, 2017', 'MON DD, YYYY'), 'IT_PROG', 10000, 103, 60)

Add a 500 pesos increase in salary of all employees who have rendered services 10 years and above.

answer: UPDATE employees SET salary = salary + 500 where TO_CHAR(sysdate,'YYYY') -


TO_CHAR(hire_date,'YYYY') >= 10
Diana Lorentz was transferred to Administration department. Using the employees and department
table information update the profile of employee.

answer: UPDATE employees SET manager_id = 200, department_id = 10 WHERE last_name =


'Lorentz' AND first_name = 'Diana';

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.

answer: UPDATE departments SET department_name = 'Procurement', manager_id = 100


WHERE department_name = 'Treasury'

Which of the following will erase all records in the departments table

answer: 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.

answer: Run the ROLLBACK command

Which of the following DOES NOT describes the state of the data after the COMMIT command

answer: None of the choices

Which of the following describes the command below?

SELECT * FROM employees WHERE department = 60 FOR UPDATE

answer: Locks the rows in the EMPLOYEES table with department id is 60.

SQL command to create a marker in the current transaction.

answer: SAVEPOINT

YOu want to display the employee's id and formatted date hired as shown below

Which SQL statement give the required output?

Required output:

Answer: SELECT employee_id,TO_CHAR(hire_date,'fmMonth DD, YYYY')AS "Hired Date" FROM


employees

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?
Answer: SELECT employee_id, hire_date, TO_DATE(hire_date,'Month') AS "Hired Month",
job_id FROM employees WHERE job_id NOT = 'AD_VP';

IT_PROG

Answer: SELECT last_name, TO_CHAR(hire_date,'YYYY')FROM employees WHERE job_id='IT_PROG';

You want to display the employee’s last name whose salary is below 10,000 and whose lastname starts
with letter K.

Answer: SELECT last_name, TO_CHAR(salary, '$999,999.99') AS "MONTHLY SALARY" FROM


employees WHERE salary < 10000WHERE last_name LIKE ‘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.

Answer: SELECT * FROM parts ORDER BY price

Display all the records whose stock is below 20 and in warehouse number 3.

Answer: SELECT * FROM parts WHERE onhand< 20 AND warehouse = 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%';

Display the part number whose class is not HW, AG or SG.

Answer: None of the choices

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.

ANSWER: SELECT *FROM parts WHERE price > 10000;

Which of the following SQL command will display all records with class code of AP?

Answer: SELECT * FROM parts WHERE class = ‘AP’;

Which of the following SQL commands will display all stocks whole class is HW or AP.

Answer: SELECT ALL FROM parts WHERE IN class = ('HW','AP');

Which of the following SQL commands will display all the stocks on hand from 10 to 30?

Answer: SELECT * FROM parts WHERE onhand BETWEEN 10 AND 30;


Create an SQL command to display the name of the parts, warehouse number, price and the
available stock on hand whose price is below 500. Arrange the list by warehouse number and by
class.
ANswer: SELECT partnum, description, warehouse, onhand, price FROM parts WHERE price <
500 ORDER BY warehouse, class;

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.

Answer: SELECT ONHAND-5 + 5 (* WAREHOUSE), DESCRIPTION FROM PARTS;

Which of the following is the correct report that will display the class from table PARTS.

answer: SELECT CLASS FROM PARTS;


Which of the following SELECT statement is the correct PL/SQL that willcreate a report that will add
10% increase in PRICE? List only the column DESCRIPTION, CLASS and PRICE.

Answer: SELECT PRICE*0.10, DESCRIPTION, CLASS FROM PARTS;

Which of the following SELECT statement is the correct PL/SQL that will display all rows and columns?

Answer: SELECT * FROM PARTS;


Which of the following SELECT statement is the correct PL/SQL that willcreate a report specifying
only the column PRICE, ONHAND and DESCRIPTION?

Answer: SELECT PRICE, ONHAND, DESCRIPTION FROM PARTS;

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"

Answer: SELECT DISTINCT WAREHOUSE AS "No. of available warehouse"FROM PARTS;


Which of the following SELECT statement is the correctreport the will merge the column CLASS and
PRICE rename the COLUMN as "CLASS PRICE"

Answer: SELECT (CLASS||PRICE) AS "CLASS PRICE" FROM PARTS;


Which of the following SELECT statement is the correct PL/SQL that will display eliminate the
duplicate rows for column class and warehouse.
Answer: SELECT DISTINCT CLASS, WAREHOUSE FROM PARTS;

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?

Answer: Select description AS 'TITLE',Partnum AS'ID',ONHAND AS'STOCK' FROM PARTS;


Remove all manager positions in the department table.

Answer: DELETE FROM jobs WHERE job_title LIKE '%Manager%';

A new department name training with department id 300 was created in the company.

Answer: INSERT INTO departments VALUES(300,'TRAINING',203,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

Answer: INSERT INTO JOBS VALUES('DB_ADMIN','database administrator',10000,18000)


Update the Purchasing department name to Procurement. And this will be managed by the Manager
of Administration department.

Answer: UPDATE departments SET department_name = 'Procurement', manager_id = 200


WHERE department_name = 'Purchasing'

remove the shareholder services department in the department table

answer: DELETE FROM departments WHERE department_name = ‘Shareholder Services’

John want to know how many employees receiving salary below 10,000

Answer: SELECT COUNT(*) FROM employees WHERE salary < 10000;

What is the SQL command to display the date of the first employee that was hired?

Answer: SELECT MIN(hire_date) FROM employees;

Aldrin wants to know the highest salary in every department. which of the following sql will display the
required output?

Answer: SELECT department_id,MAX(SALARY) FROM employees GROUP BY department_id

The general manager request to the database administrator to generate the total salary per month of
every department in the company.

Answer: 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.

Answer: SELECT AVG(salary) FROM employees WHERE job_id ='IT_PROG';


Display the warehouse number, class, highest price & lowest price, total on hand balance whose
class is AP.

Answer: SELECT warehouse, class, MAX(price), MIN(PRICE), sum(onhand)


FROM parts
WHERE class = 'AP'
GROUP BY warehouse, class
ORDER BY warehouse
The General Manager request to the database administrator to general total number of parts and total
outstanding balance on hand of every class

Answer: SELECT warehouse,class,count(partnum),sum(onhand) GROUP BY warehouse,class HAVING


warehouse = 1 or warehouse = 2 FROM parts;

Aldrin wants to know the outstanding total balance on hand on every class per warehouse

answer: SELECT warehouse,class,sum(onhand) FROM parts GROUP BY warehouse,class

Which of the following SQL command will display all records with part number contains the number 9?

Answer: SELECT * from parts WHERE partnum LIKe '%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

Answer: SELECT warehouse, class, sum(onhand) FROM parts GROUP BY warehouse,class


HAVING SUM(ONHAND) > 50

There was 10% price increase in the all the parts in warehouse number 3.

Answer: SELECT PARTNUM,price,price * 1.1 FROM parts where warehouse = 3

SELECT * FROM parts WHERE (warehouse = 1 or warehouse = 2) AND class in ('HW','AP')AND(PRICE>200


AND price < 500);

Answer: 2 rows returned

What will be the output of the SQL command?

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.

answer: SELECT COUNT(*) FROM parts WHERE warehouse = 3;

Which of the following will erase all records in the departments table

Answer: TRUNCATE TABLE departments


INSERT, DELETE, UPDATE are ________________ commands

answer: DML

Which of the following DOES NOT describes the state of the data after the commit command

ANswer: NONE OF THE CHOICES

SELECT * FROM employees WHERE department = 60 FOR UPDATE


ANswer: Locks the rows in the employees table with department id is 60

A cartesian product is formed when

Answer: ALL OF THE CHOICES

Select employee_id, hire_date, department_name FROM employees departments

ANswer: The SQL command will prduce a correct output

Nathaniel had accidentally deleted all the records in the newly updated oracle database using the
DELETE SQL command.

Answer: RUN THE ROLLBACK COMMAND


A join between two tables that returns the results of the INNER join as well as the_______________
rows from the left (or right) table is called a left (or right) OUTER join.

Answer: Unmatched

SQL command to create a marker in the current transaction

Answer: SAVEPOINT

The insert statement can add multiple rows.

ANswer: FALSE

INSERT INTO table_name (column1,column2,colum3,....)

VALUES (value1,value2,value3,....)

WHERE Condition.

Answer: This will produce an error.

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: FULL OUTER JOIN


A Database Administrator can create and remove users and tables.

Answer: the statement is correct

Multiple fields in not Allowed in a foreign key.

Answer: FALSE
A_______________ consists of a collection of DML statements that form a logical unit of work.

ANswer: Transaction
INDEX is an example of _____________________ privilege.

Answer: Object
A FOREIGN KEY IS A FIELD IN ONE TABLE THAT REFERS TO THE PRIMARY KEY IN ANOTHER TABLE.

ANSWER: TRUE

GRANT select

ON user1

TO departments;

ANswer: THE SQL COMMAND IS INCORRECT


GRANT is a _____________________ command.

ANSWER: DCL

Which of the following command will delete all records in the table employees.

ANswer: DELETE FROM employees

employee id :250

name : aldrin rich

ANSWER: INSERT INTO EMPLOYEES(employee_id,first_name,last_name,hire_date,job_id,salary


manager_id,department_id) VALUES(250,'aldrin','rich',TO_DATE('Jul 1,2017','MON
DD,YYYY'),'ACCOUNTANT',10000,103,60)

Display all the employee id names of employees, job id, hiring_date

ANswer: SELECT A,first_name,A.last_name,A.job_id,B,department_name,A.Salary,A.hire_date FROM


employees a JOIN departments B ON ( A.department_id = B.department_id) WHERE
B.department_name = 'IT'

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 salary = salary + 1200 where TO_CHAR(sysdate,'YYYY') -


TO_CHAR(hire_date,'YYYY') >= 10

Diana lorentz was transferred to administration department

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?
-CREATE matt ACCESS 1234
What are the 2 types of security being applied to a database
GRANT & REVOKE
Employee id : 200
Name : Mr. Gary Park
Date hired : July 1, 2017
Position :IT Programmer
Salary : 10000
Department of assignment : 60
Reporting to manager : 103
-INSERT INTO employees
(employee_id,first_name,last_name,hire_date,job_id,salary,manager_id,department_id)
VALUES (200,'Gary','Park',TO_DATE('Jul 1, 2017', 'MON DD, YYYY'), 'IT_PROG', 10000, 103,
60)
Which of the following is NOT a Data Manipulation Language?
-SELECT

SQL stands for Structured Query Language


Which of the 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
PROGRAMMING GRADE 11
(PROG-111) WEEK 1-9
AMALEAKS.BLOGSPOT.COM
Started on Thursday, 28 December 2017, 1:20 PM
State Finished
Completed on Thursday, 28 December 2017, 1:39 PM
Time taken 19 mins 41 secs
Grade 8.00 out of 10.00 (80%)
Question 1
Complete
Question 2
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Refer to the revision history below and decide whether the statement is TRUE or
FALSE.

True or False: Major revisions on progress, budget and risk management were
conducted in the second version of the document.
Answer: true
Question 3
Complete
Mark 0.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 problems in Materials, Measurement,
Method, People, Equipment or Environment.

Most of the programmers are not informed of the progress or status of the
project. This is a Answer people problem.
When the program was written, some team mates are
talking too loud and distracted the others. This cause is
categorized under _________________.
Some of the programmers were not present duringrequirements gathering, this
cause is classified as a
_________________ problem.
Question 4
Complete
Mark 1.00 out of 1.00

Flag question
Question text
The quality of a product is the responsibility of ____________________ in the
workplace.
Select one:
a. HR staff
b. IT staff
c. Everyone
d. Admin staff
Question 5
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: If you want to inform every one of events, memos and
other announcements, use the bulletin board.
Answer: true
Question 6
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Naming conventions are records of system activities arranged in
chronological order for documentary purposes.
Answer: false
Question 7
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Which one of the following is a characteristic of mentoring?
Select one:
a. The focus is on inspiring respect for professional skills.
b. The focus is on utilizing existing competencies.
c. The focus is on technical or professional development.
d. The focus is on realizing trainee’s potential skills.
Question 8
Complete
Mark 1.00 out of 1.00
Flag question
Question text
True or False: It is fine to use strong or shocking colors for PowerPoint
presentation slides.
Answer: false
Question 9
Complete
Mark 1.00 out of 1.00

Flag question
Question text
It is a means of facilitating relationships which also serves as a way for parties to
consider what decisions or course of action they must make.
Select one:
a. Technical
b. Interpersonal
c. Boundaries
d. Feedback
e. Active listening
f. Communication
g. Interpretation
h. Channel
i. Negotiation
j. Empathy
Question 10
Complete
Mark 0.00 out of 1.00
Flag question
Question text
True or False: Foreign co-workers having conversation issues with everyone in the
office are better left off on their own.
false
Answer:

Complete
Mark 1.00 out of 1.00

Flag question
Question text
Which one of the following DO NOT resolve diversity in the workplace?
Select one:
a. Creating a sense of equality by encouraging employees to voice out their
opinions.
b. Conducting regular trainings to update company policies.
c. Involving all employees in the formulation and execution of company
programs.
d. Rewarding only the skilled employees while scolding the other employees
who perform poorly.
Question 2
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Through feedback, programmers can learn if the system or program
has all the functions and features defined by the clients.
Answer: true
Question 3
Complete
Mark 0.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 problems in Materials, Measurement,
Method, People, Equipment or Environment.

Due to a tight deadline, the programmers decided to write the code immediately
without a plan. This cause is classified under Answer measurement .
When the program was written, some team mates are
talking too loud and distracted the others. This cause is
categorized under _________________.
Some of the programmers were not present duringrequirements gathering, this
cause is classified as a
_________________ problem.
Question 4
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: All team members must be doing their parts diligently for the
success of the team’s efforts.
Answer: true
Question 5
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: You can send the message in whatever format you like, since the
receiver can just try to interpret and understand the message in any way.
Answer: false
Question 6
Complete
Mark 1.00 out of 1.00

Flag question
Question text
This group of people is knowledgeable in software applications:
Select one:
a. Design engineer, development engineer, engineer, Quality Assurance
Specialist, Tester
b. Analyst, engineer, data modeler, business analyst, computer engineer
c. Administrator, analyst, test engineer, tester
d. Designer or Engineer, Programmer or Analyst
Question 7
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Which among the following statements is TRUE?
Select one:
a. Encoding refers to the method of conveying the message, such as speaking,
writing or gesturing.
b. The source is the information or subject matter of communication.
c. Feedback can be a useful reference when planning for communications in
the future.
d. Encoding is the process by which the receiver interprets and understands
the message.

Question 1
Answer saved
Marked out of 1.00

Flag question
Question text
This practice is a form of self-evaluation, where you think about what you did and
learn what you can from it. It motivates you to do better next time you are faced
with the same situation.
Select one:
a. Quality Control
b. Performance Appraisal
c. Reflective Behavior
d. Safety Programs
Question 2
Answer saved
Marked out of 1.00

Flag question
Question text
True or False: In identifying the problem, it should be specific and not broad or
vague.
Answer: true
Question 3
Answer saved
Marked out of 1.00

Flag question
Question text
True or False: Presentations must be interesting, lively and engaging.
Answer: true
Question 4
Answer saved
Marked out of 1.00

Flag question
Question text
It is a meeting where you receive and learn information and training on a specific
subject.
Select one:
a. Exhibit
b. Business meeting
c. Seminar
d. Meet and greet
Question 5
Answer saved
Marked out of 1.00
Flag question
Question text
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
Question 6
Answer saved
Marked out of 1.00

Flag question
Question text
True or False: Taking home of a little bit of office supplies will surely be ignored
and won’t do much harm to the company.
Answer: false
Question 7
Answer saved
Marked out of 1.00

Flag question
Question text
Referring to the figure below, determine if the statement is TRUE or FALSE.

The file for the second version of risk management is properly named.

false
Answer:
Question 8
Answer saved
Marked out of 1.00
Flag question
Question text
The following are all safety procedures that may be observed by a company,
EXCEPT for:
Select one:
a. Conducting earthquake drills
b. Placing fire extinguishers within the workplace
c. Having a first aid kit at hand
d. Using faulty cable wiring all over the place
Question 9
Answer saved
Marked out of 1.00

Flag question
Question text
Effective monitoring can be done through the following, EXCEPT:
Select one:
a. Conducting investigations
b. Carrying out spot checks
c. Collecting office records
d. Completing safety inspections
Question 10
Answer saved
Marked out of 1.00

Flag question
Question text
Which one of the following practices will result to a proper presentation?
Select one:
a. Using slides with strong shocking background colors
b. Using font styles that are readable
c. Using pictures or images that are of no relevance to the presentation
d. Using font styles that are readable and Using pictures or images that are of
no relevance to the presentation

True or False: Foreign co-workers having conversation issues with everyone in the
office are better left off on their own.
A: False

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

True or False: Understanding everyone’s interest is the second step in the


problem solving process. This is when you choose the optimal solution.
Answer: false

These kind of words or terms are often discouraged to be used during a


presentation, especially if the audience is not that familiar with programming
terms.
A: technical words

Referring to the figure below, determine if the statement is TRUE or FALSE.

The first version of the risk management file should be named Risk Management
V01.
A: true

It is the ability to understand another person’s point of view and opinions.


Select one:
a. Negotiation
b. Communication
c. Technical
d. Interpretation
e. Feedback
f. Active listening
g. Interpersonal
h. Empathy
i. Boundaries
j. Channel

True or False: Team building activities are important to further improve team
interaction and cooperation.
Answer: true
Question 3
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Stick only to technical terms for your presentation. There is no need
to give any simple explanation when you use technical terms.
Answer: false

Which one of the following is a characteristic of mentoring?


Select one:
a. The focus is on technical or professional development.
b. The focus is on utilizing existing competencies.
c. The focus is on inspiring respect for professional skills.
d. The focus is on realizing trainee’s potential skills.

Refer to the revision history below and decide whether the statement is TRUE or
FALSE.
True or False: Major revisions on progress, budget and risk management were
conducted in the second version of the document.
Answer: true
Analyze the diagram below to answer. Fill in the blanks with the correct answer or
categorize the causes if they are considered problems in Materials, Measurement,
Method, People, Equipment or Environment.

Most of the programmers are not informed of the progress or status of the
methods
project. This is a Answer problem.

It is a means of facilitating relationships which also serves as a way for parties to


consider what decisions or course of action they must make.
Select one:
a. Interpretation
b. Interpersonal
c. Technical
d. Empathy
e. Active listening
f. Channel
g. Negotiation
h. Communication
i. Feedback
j. Boundaries

True or False: After finding out what the problem is, it is not time to identify the
fundamental cause of the problem.
A:
Who among the following can give feedback to an employee?
Select one:
a. All of the choices
b. Teammates
c. Colleagues
d. None of the choices
e. Superiors

The following are all part of the communication process, EXCEPT for one:
Select one:
a. Feedback
b. Source
c. Printing
d. Decoding

The quality of a product is the responsibility of ____________________ in the


workplace.
Select one:
a. IT staff
b. HR staff
c. Everyone
d. Admin staff
Question 2
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 problems in Materials, Measurement,
Method, People, Equipment or Environment.

One programmer, who is just a recent graduate, was assigned to do a big task. His
colleagues are not aware that he doesn’t have the skills required. This falls
under Answer people .
When the program was written, some team mates are
talking too loud and distracted the others. This cause is
categorized under _________________.
Some of the programmers were not present duringrequirements gathering, this
cause is classified as a
_________________ problem.

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 problems in Materials, Measurement,
Method, People, Equipment or Environment.

Equipment
The problem identified in the diagram is a buggy java Answer .

Question 4
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Which among the following statements is TRUE?
Select one:
a. The source is the information or subject matter of communication.
b. Encoding refers to the method of conveying the message, such as speaking,
writing or gesturing.
c. Feedback can be a useful reference when planning for communications in
the future.
d. Encoding is the process by which the receiver interprets and understands
the message.
Question 5
Complete

Flag question
Question text
This Internet online resource allows the user to interact either as a learner or
instructor.
Select one:
Answer: udemy
Question 6
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: In identifying the problem, it should be specific and not broad or
vague.
Answer: true
Question 7
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Expertise in using the Internet and Internet-based services, handling computer
hardware, computer operation and maintenance, and troubleshooting computer
systems are some examples of ____________________ skills.
Select one:
a. Technical
b. Soft
c. Business
d. All of the choices
Question 8
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Naming conventions are records of system activities arranged in
chronological order for documentary purposes.
Answer: false
Question 9
Complete
Mark 1.00 out of 1.00

Flag question
Question text
The following are all safety procedures that may be observed by a company,
EXCEPT for:
Select one:
a. Placing fire extinguishers within the workplace
b. Having a first aid kit at hand
c. Conducting earthquake drills
d. Using faulty cable wiring all over the place
Question 10
Complete

Question 2
Complete
Mark 1.00 out of 1.00

Flag question
Question text
This refers to how people make sense of, understand or perceive something.
Select one:
a. Boundaries
b. Technical
c. Communication
d. Interpretation
e. Channel
f. Active listening
g. Empathy
h. Interpersonal
i. Negotiation
j. Feedback
Question 3
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Expertise in using the Internet and Internet-based services, handling computer
hardware, computer operation and maintenance, and troubleshooting computer
systems are some examples of ____________________ skills.
Select one:
a. All of the choices
b. Soft
c. Business
d. Technical
Question 4
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Employees should be encouraged to take on career paths that not
only develop their skills, but also improve their performance in the work that they
do.
Answer: true
Question 5
Complete
Mark 1.00 out of 1.00

Flag question
Question text
This group of people is knowledgeable in software applications:
Select one:
a. Design engineer, development engineer, engineer, Quality Assurance
Specialist, Tester
b. Analyst, engineer, data modeler, business analyst, computer engineer
c. Administrator, analyst, test engineer, tester
d. Designer or Engineer, Programmer or Analyst
Question 6
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Which one of the following is a characteristic of mentoring?
Select one:
a. The focus is on realizing trainee’s potential skills.
b. The focus is on utilizing existing competencies.
c. The focus is on inspiring respect for professional skills.
d. The focus is on technical or professional development.
Question 7
Complete
Mark 1.00 out of 1.00

Flag question
Question text
It is a meeting where you receive and learn information and training on a specific
subject.
Select one:
a. Meet and greet
b. Exhibit
c. Seminar
d. Business meeting
Question 8
Complete
Mark 1.00 out of 1.00

Flag question
Question text
The following are all safety procedures that may be observed by a company,
EXCEPT for:
Select one:
a. Having a first aid kit at hand
b. Using faulty cable wiring all over the place
c. Conducting earthquake drills
d. Placing fire extinguishers within the workplace
Question 9
Complete
Mark 1.00 out of 1.00

Flag question
Question text
This refers to face-to-face communication between two or more people.
Select one:
a. Negotiation
b. Interpretation
c. Feedback
d. Active listening
e. Technical
f. Communication
g. Empathy
h. Interpersonal
i. Channel
j. Boundaries
Question 10
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Evaluating the options require determining the advantages and
disadvantages of each option.
true
Answer:

Started on Friday, 5 January 2018, 6:50 PM


State Finished
Completed on Friday, 5 January 2018, 6:58 PM
Time taken 8 mins 26 secs
Grade 10.00 out of 10.00 (100%)
Question 1
Complete
Mark 1.00 out of 1.00

Flag question
Question text
It is a means of facilitating relationships which also serves as a way for parties to
consider what decisions or course of action they must make.
Select one:
a. Communication
b. Technical
c. Empathy
d. Boundaries
e. Active listening
f. Negotiation
g. Interpersonal
h. Interpretation
i. Channel
j. Feedback
Question 2
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: After finding out what the problem is, it is not time to identify the
fundamental cause of the problem.
Answer: true
Question 3
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: In naming files, provide simple and short names that could easily be
understood by everyone.
true
Answer:
Question 4
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Referring to the figure below, determine if the statement is TRUE or FALSE.

The final copy of the project charter is properly named.


Answer: false
Question 5
Complete
Mark 1.00 out of 1.00

Flag question
Question text
____________________ is a formal meeting where people are gathered to
discuss topics that revolve around their same interests.
Select one:
a. Concert
b. Seminar
c. Workshop
d. Conference
Question 6
Complete
Mark 1.00 out of 1.00

Flag question
Question text
value
Answer covers quality, service and delivery of the goods or services from
the vendor to the client.
Question 7
Complete
Mark 1.00 out of 1.00

Flag question
Question text
In the workplace, ______________ is all about the level of work performance
required in completing a task.
Select one:
a. Standard
b. Feedback
c. Values
d. Goal
Question 8
Complete
Mark 1.00 out of 1.00

Flag question
Question text
This practice is a form of self-evaluation, where you think about what you did and
learn what you can from it. It motivates you to do better next time you are faced
with the same situation.
Select one:
a. Reflective Behavior
b. Safety Programs
c. Quality Control
d. Performance Appraisal
Question 9
Complete
Mark 1.00 out of 1.00
Flag question
Question text
True or False: Memos, also known as memorandum, are distributed for people
working in the same organization or company.
Answer: true
Question 10
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Always use readable fonts in presentations.
true
Answer:

Question 8
Complete
Mark 1.00 out of 1.00

Flag question
Question text
These kind of words or terms are often discouraged to be used during a
presentation, especially if the audience is not that familiar with programming
terms.
Select one:
a. Channel
b. Interpersonal
c. Negotiation
d. Interpretation
e. Technical
f. Feedback
g. Active listening
h. Communication
i. Boundaries
j. Empathy
Question 9
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Some of the famous computer professional networks are:
Select one:
a. Philippine Computer Society
b. Computer Society of the Philippines
c. Philippine Computer Society and VIP International Unite
d. Computer Society of the Philippines and Philippine Computer Society
e. Computer Society of the Philippines and VIP International Unite
f. VIP International Unite
g. All of the choices
h. None of the choices
Question 10
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Answer handw is considered a personal type of written communication and it
includes postcards and written letters.
True or False: Communicating with internal and external clients is important for
programmers.
Answer: true

This is one way to measure success rate not onlyyour communication, but also to
evaluate your work.
Select one:
a. Feedback
b. Communication
c. Technical
d. Interpretation
e. Empathy
f. Channel
g. Active listening
h. Boundaries
i. Negotiation
j. Interpersonal
Question 2
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Ice breaker activities can be related or not to the presentation.
Answer: true

____________________ is a formal meeting where people are gathered to


discuss topics that revolve around their same interests.
Select one:
a. Seminar
b. Conference
c. Workshop
d. Concert
Question 2
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: According to Hicks, the first step in an effective problem solving
process is clearly defining the problem.
Answer: true
Question 3
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Stick only to technical terms for your presentation. There is no need
to give any simple explanation when you use technical terms.
Answer: false
Question 4
Complete
Mark 1.00 out of 1.00

Flag question
Question text
This is the method by which a message is conveyed, such as speaking, writing or
gesturing.
Select one:
a. Negotiation
b. Interpersonal
c. Interpretation
d. Technical
e. Empathy
f. Boundaries
g. Communication
h. Channel
i. Active listening
j. Feedback
Question 5
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 problems in Materials, Measurement,
Method, People, Equipment or Environment.
Few programmers are complaining about slow Internet connection and this
affects their work. This cause is categorized in Answer equipment .
When the program was written, some team mates are
talking too loud and distracted the others. This cause is
categorized under _________________.
Some of the programmers were not present duringrequirements gathering, this
cause is classified as a
_________________ problem.
Question 6
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Expertise in using the Internet and Internet-based services, handling computer
hardware, computer operation and maintenance, and troubleshooting computer
systems are some examples of ____________________ skills.
Select one:
a. Technical
b. Business
c. All of the choices
d. Soft
Question 7
Complete
Mark 1.00 out of 1.00

Flag question
Question text
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.
Answer: false
Question 8
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Referring to the figure below, determine if the statement is TRUE or FALSE.
The final copy of the project charter is properly named.
Answer: false
Question 9
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Answer informa oral communication may be done in a workplace and it takes
different forms such as telephone conversations, face-to-face conversations and
brainstorming.
Question 10
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Nowadays, teammates have no need for communications
technology since they can just interact face to face.
false
Answer:

Every country, whether industrialized or still developing, must actively cooperate


in enforcing environmental measures.
Select one:
a. True
b. False
Question 3
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Decide whether it is a communication instrument or purpose.
A printed progress report to be submitted to the adviser.
Answer: instrument
Question 4
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product
quality model and write the letter that corresponds to your answer.
Confidentiality
Select one:
a. Maintainability
b. Reliability
c. Compatibility
d. Usability
e. Security
f. Portability
g. Performance Efficiency
h. Functional Suitability
Question 5
Complete
Mark 1.00 out of 1.00

Flag question
Question text
In the 5S method, this stage refers to arranging items in a way that they are easy
to find and pick up.
Select one:
a. Shitsuke
b. Seiton
c. Seiketsu
d. Seiri
Question 6
Complete
Mark 1.00 out of 1.00

Flag question
Question text
____________________ is when you conduct regular audits and inspections to
evaluate your work performance.
Select one:
a. Seiso
b. Seiketsu
c. Shitsuke
d. Seiri
Question 7
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product
quality model and write the letter that corresponds to your answer.
Accessibility
Select one:
a. Usability
b. Compatibility
c. Maintainability
d. Security
e. Reliability
f. Portability
g. Performance Efficiency
h. Functional Suitability
Question 8
Complete
Mark 1.00 out of 1.00

Flag question
Question text
The 5s method is based on the ____________________.
Select one:
a. Takoyaki Production System
b. Tonari Production System
c. Tatsumaki Production System
d. Toyota Production Sytem
Question 9
Complete
Mark 1.00 out of 1.00

Flag question
Question text
According to Humphrey, a quality plan starts with product introduction where the
product qualities and target market are identified.
Select one:
a. False
b. True

True or False: One of the ways to motivate teamwork in the workplace is to make
sure that maintenance is conducted and planned for system enhancement.
Answer: false
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.
Select one:
a. False

A: ergonomic
factors are concerned whether employees are comfortable, stressed or possibly
be injured due to the arrangement of things in the workplace.
True or False: Reviewing the related literature includes review of concepts,
theories and previous research findings.
Answer: true
Enforcing environmental policies is one of the major causes of job loss and
unemployment.
Select one:
a. True
b. False
True or False: To gather data, you can either conduct an interview, survey,
observation, mail questionnaire, coding and tabulation.
Answer: false
Risks, which could harm the product’s quality, must be determined and managed
well along with the actions to be taken.
Select one:
a. False
b. True
Collective bargaining refers to the bargain sale of previously used office
equipment.
Select one:
a. False
b. True
Identify whether the following task should be listed as a milestone or be included
in the Gantt chart.
The user interface design and layout has been completed.
Answer: milestone
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product
quality model and write the letter that corresponds to your answer.
Installability
Select one:
a. Maintainability
b. Performance Efficiency
c. Reliability
d. Portability
e. Functional Suitability
f. Security
g. Usability
h. Compatibility
Question 3
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product
quality model and write the letter that corresponds to your answer.
Interoperability
Select one:
a. Functional Suitability
b. Compatibility
c. Maintainability
d. Security
e. Reliability
f. Portability
g. Usability
h. Performance Efficiency
Question 4
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product
quality model and write the letter that corresponds to your answer.
Maturity
Select one:
a. Compatibility
b. Portability
c. Reliability
d. Performance Efficiency
e. Security
f. Functional Suitability
g. Usability
h. Maintainability
Question 5
Complete

Flag question
Question text
The Montreal protocol is designed to help protect the ozone layer.
Select one:
a. True
b. False

A: briefing
notes are prepared with issues or topics that decision makers should be informed
about.
Qualitative research aims to gain insights on opinions, behaviors and attitude
through Answer: UNSTRUCTURED techniques.
Question 10
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product
quality model and write the letter that corresponds to your answer.
Testability
Select one:
a. Maintainability
Conceptual research is usually carried out by and thinkers to come up with new
concepts. Answer: philosopher
True or False: Most of the readers will skim the conclusion first to get an idea of
what the paper is all about.
Answer: false
Question 13
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Quality improvement process is conducted to avoid errors and faults from
recurring in the future.
Select one:
a. True
b. False
True or False: There are five main elements of a written report – topic, style,
structure, facts and contents.
Answer: false
Presidential Decree No. 856 is an international treaty that imposes limitations on
the greenhouse gas emissions of several countries.
Select one:
a. True
b. False
True or False: Dates in file names should be written in YYYY-MM-DD format.
Asnwer: true
Companies can freely make their own set of environmental policies without
consulting the workers’ union, or any local or national laws about it.
Select one:
a. True
b. False
Question 20
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 ‘Grandparents
Answer: external

Started on Saturday, 6 January 2018, 9:51 PM


State Finished
Completed on Saturday, 6 January 2018, 10:13 PM
Time taken 21 mins 12 secs
Grade 18.00 out of 20.00 (90%)
Question 1
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Referring to the figure below, determine if the statement is TRUE or FALSE.
The minutes dated back December 3, 2016 is properly named.
Answer: false
Question 2
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product
quality model and write the letter that corresponds to your answer.
Recoverability
Select one:
a. Portability
b. Security
c. Usability
d. Compatibility
e. Maintainability
f. Performance Efficiency
g. Functional Suitability
h. Reliability
Question 3
Complete
Mark 1.00 out of 1.00

Flag question
Question text
The 5S Method is a Japanese perspective technique developed by EiichiroOda.
Select one:
a. False
b. True
Question 4
Complete
Mark 1.00 out of 1.00

Flag question
Question text
The protection of the natural resources is possible through the collective efforts
of each group in the society.
Select one:
a. False
b. True
Question 5
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Referring to the figure below, determine if the statement is TRUE or FALSE.
The minutes of the meeting for December 1, 2016 is appropriately named.
Answer: true
Question 6
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: A milestone refers to the scope and out of scope of a project. It is
defined so that the project is implemented on time and on budget.
Answer: false
Question 7
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Montreal protocol protects the ozone layer by ____________________.
Select one:
a. phasing out harmful substances
b. reducing greenhouse gas emissions
c. banning the use of perfumes
d. using locally produced products
Question 8
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Email, SMS and Gantt chart are samples of communication
frequency that you could utilize.
Answer: false
Question 9
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 be notified that the project proposal has been approved.
inform
Answer:
Question 10
Complete
Mark 1.00 out of 1.00

Flag question
Question text
This body was tasked to implement the provisions of P.D. No. 856.
Select one:
a. Department of Wealth
b. Department of Health
c. Department of Sanitation
d. Department of Cleanliness
Question 11
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Organizational aims are different from the mission statement; they
refer to the results an organization is aspiring for.
Answer: true
Question 12
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Refer to the revision history below and decide whether the statement is TRUE or
FALSE.
There were only two staff accountable and responsible for the overall changes of
the document.
Answer: true
Question 13
Complete
Mark 1.00 out of 1.00

Flag question
Question text
During solution implementation, the problem solvers should be Answer:
PROACTIVE to assure that the problem is being addressed properly.
Question 14
Complete
Mark 0.00 out of 1.00

Flag question
Question text
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.
“XYZ is so cool! I tried to install it in my old computer and it still runs smoothly.
Given that the computer’s video card is a bit faulty.“
Select one:
a. Performance Efficiency
b. Reliability
c. Usability
d. Security
e. Maintainability
f. Portability
g. Compatibility
h. Functional Stability
Question 15
Complete
Mark 1.00 out of 1.00

Flag question
Question text
By conducting a research, you can help the society by contributing to the body
of Answer know le.
Question 16
Complete
Mark 0.00 out of 1.00

Flag question
Question text
Environmental issues have no relation to the workplace.
Select one:
b. False
Question 17
Complete
Mark 1.00 out of 1.00

Flag question
Question text
In a nutshell, a research is conducted by identifying a problem, identifies
hypoth
formulating a Answer , gathering and analyzing data, presenting the
findings, and drawing a conclusion.
Question 18
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Business industries will not be affected by the environmental crisis.
Select one:
a. True
b. False
Question 19
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Usually, the summary of the report is the first thing that’s being
read.
Answer: true
Question 20
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: To present the results and findings of a research, you can use a bar
graph, line graph or pie chart.
Answer: true
True or False: Seminar lectures, conference talks, presentations of reports and
group meetings are samples of informal oral communication conducted in a
workplace.
Answer: False
These are developed by industries as a guide for establishments and business
enterprises to conduct their operations in a way that prevents or reduces
environmental harm.
Answer: Environmental codes of practice
True or False: There are different types of communication and written
communication is one which can be used in a workplace.
Answer: true
True or False: There are different types of communication and written
communication is one which can be used in a workplace.
Answer: false
Quantitative research, compared to qualitative research, uses measurable Answer
data
to uncover patterns.
Protecting the environment and natural resources also means protecting stable
employment.
Select one:
a. True
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 assure that the project schedule is followed strictly.
Answer: responsible
____________________ is setting the best practices in the workplace as your
work standards.
Select one:
a. Seiso
b. Seiri
c. Shitsuke
d. Seiketsu
Humans rely on natural resources for survival.
Select one:
a. True
b. False
Question text
Environmental policies won’t really make a difference, businesses will still strive
and be successful without giving a care for the environment.
Select one:
a. True
b. False
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
h. Functional Suitability
ISO/IEC 25010:2011’s SQuaRE stands for System Quality Assurance and
Requirements Evaluation. This standard is used in evaluating the quality of
software.
Select one:
a. False
b. True
True or False: You can emphasize the key points in your report by stating them in
the references and conclusion.
Answer: false
Question 19
Complete
Mark 1.00 out of 1.00
Question text
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.
“One good thing I find with XYZ as when my laptop shuts down accidentally, my
game score and status can still be recovered. No need to repeat a level.”
Select one:
b. Reliability
True or False: In an effective written communication, structure refers to the facts
presented in the paper.
Answer: false
The Kyoto protocol requires the participation of both industrialized and
developing nations in reducing environmental harm.
Select one:
b. False
Question 2
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Kyoto protocol addresses environmental issues through the campaign of
____________________.
Select one:
a. banning the use of pesticides
b. using imported products
c. reducing greenhouse gas emissions
d. phasing out harmful substances
Question 3
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product
quality model and write the letter that corresponds to your answer.
Reusability
Select one:
a. Reliability
b. Portability
c. Usability
d. Functional Suitability
e. Compatibility
f. Maintainability
g. Security
h. Performance Efficiency
Question 4
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product
quality model and write the letter that corresponds to your answer.
Operability
Select one:
a. Performance Efficiency
b. Security
c. Usability
d. Compatibility
e. Portability
f. Reliability
g. Maintainability
h. Functional Suitability
Question 5
Complete
Mark 0.00 out of 1.00

Flag question
Question text
Referring to the figure below, determine if the statement is TRUE or FALSE.
The project objectives file follows the standards of naming convention.
Answer: FALSE
Question 6
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Sometimes, people conduct research to earn Answer :respect from others.
Question 7
Complete
Mark 1.00 out of 1.00

Flag question
Question text
One good practice is to use water filtration system instead of buying bottled
water every time.
Select one:
a. False
b. True
Question 8
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Researches are primarily conducted to solve a problem and to
contribute the body of knowledge in a particular field.
Answer: true
Question 9
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Protocols are set of standards rules which describes how something
should be done and different companies have different protocols as well.
Answer: true
Question 10
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Increase work productivity by arranging items in such a way that they are easy to
find and pick up.
Select one:
a. False
b. True
Question 11
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product
quality model and write the letter that corresponds to your answer.
Time behavior
Select one:
a. Portability
b. Reliability
c. Performance Efficiency
d. Maintainability
e. Compatibility
f. Security
g. Usability
h. Functional Suitability
Question 12
Complete
Mark 1.00 out of 1.00

Flag question
Question text
stability
Answer refers to the supplier’s / vendor’s capacity to conduct
long term contractual obligations.
Question 13
Complete
Mark 0.00 out of 1.00

Flag question
Question text
True or False: Statutory requirements are identified by the vendors or suppliers
and they include value, stability, diversity and capacity.
Answer: FALSE
Question 14
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Big business companies are the only ones responsible for enforcing
environmental policies since they can afford alternative cleaner technology.
Select one:
a. False
b. True
Question 15
Complete
Mark 1.00 out of 1.00
Flag question
Question text
theory
Fundamental research covers generalization and formulation of Answer .
Question 16
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Research findings are not applicable in developing government
policies. Researchers should be purely academic.
Answer: false
Question 17
Complete
Mark 1.00 out of 1.00

Flag question
Question text
ISO 9001 international standard for quality’s core processes are divided into two
(2) – product delivery process and support process.
Select one:
a. False
b. True
Question 18
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Answer applied research is concerned in solving a problem that the private
organization or the society is facing.
Question 19
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Standards are based on untested concepts and theories that the company has yet
to encounter.
Select one:
a. True
b. False
Question 20
Complete
Mark 1.00 out of 1.00

Flag question
Question text
descrip
If a researcher is conducting a Answer research, he / she has no control
over variables.
____________________ is a means by which the employees, speaking through the
unions they belong to, can come to an agreement with their employers about
employment, environmental and other work-related concerns.
ANSWER; Collective bargaining
unstructured
notes are prepared with issues or topics that decision makers should be informed
about.

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 – like additional characters and skills.”
Select one:
g. Maintainability
Research can be used to accurately represent the Answer: characteristics
of a particular individual or group, an event or a situation.
The cost / benefit analysis document is appropriately named.
Answer: false

Grade 9.00 out of 10.00 (90%)


Question 1
Complete
Mark 1.00 out of 1.00
Flag question
Question text
This type of programming language uses series of 0s and 1s to represent data.
Select one:
a. Machine language
b. High-level language
c. Advanced language
d. Assembly language
Question 2
Complete
Mark 1.00 out of 1.00

Flag question
Question text
PASCAL is an example of a low-level language.
Select one:
a. False
b. True
Question 3
Complete
Mark 1.00 out of 1.00

Flag question
Question text
C# has features that are directly based on the Short Code.
Select one:
a. False
b. True
Question 4
1.00

Flag question
Question text
Arlan right clicked on his taskbar and unchecked the Lock Taskbar. What will
happen if he drags his taskbar to the right side of his screen?
Select one:
a. Start button will be located at the bottom right.
b. All of the choices
c. All icons will transfer to the right.
d. None of the choices.
e. Taskbar will display vertically at the right.
Question 5
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Answer charles is the father of computer.
Question 6
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Refer to the image below and write only the letter of the correct answer in the
space provided.

Something’s wrong with the serial port. Which port should I investigate?
Answer: c
Question 7
Complete
Mark 1.00 out of 1.00

Flag question
Question text
This refers to the process of using programming languages to instruct the
computer to perform specific tasks.
Select one:
a. Programming
b. Troubleshooting
c. Scanning
d. Debugging
Question 8
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Using the Answer java language, you can write windowed applications, build
databases, as well as control handheld devices.
Question 9
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Bridget’s mouse is not responding and she has to close her browser. Which of the
following is an alternative way using a keyboard to close an application?
Select one:
a. Alt + F4
b. Ctrl + C
c. Esc + 1
d. Shift + X
Question 10
Complete
Mark 1.00 out of 1.00

Flag question
Question text
COBOL is the programming language ideally used for
_________________________ purposes.
Select one:
a. Business
b. Artificial intelligence
c. Systematic
d. Internet

Who is the first computer programmer?


Select one:
a. Lady Lovelace Ada Augusta
b. Sir Wilhelm Maximilian Wundt
c. Lady Agatha Russell
d. Sir KonradZuse
Question 3
Complete
Mark 1.00 out of 1.00

Flag question
Question text
The earphones is an example of a _______________, while Internet Explorer is an
example of _______________.
Select one:
a. platform operating system
b. hardware, computer user
c. input device, output device
d. peripheral device, application program
Question 4
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Windows is to Personal Computer (PC) while Mac OSX is to Mac laptops and
computers.
Select one:
a. True
b. False
FORTRAN was the first ever “modern” computer language.
Select one:
a. True
b. False
An operating system has three major components – hardware, application
program or software and the user.
Select one:
a. False
b. True
Question 1
Complete
out of 1.00

Flag question
Question text
Maria has two printers – Printer Z and Printer A. She set Printer Z as the default
printer. What will happen the next time she prints a document?
Select one:

e. All of the choices.

Which of the following statements is TRUE?


Select one:
a. Natural language can be used in programming.
b. Today’s programming languages are all limited in scope and application.
c. A programming language may have its own area of specialization.
d. Poorly constructed coding statements are acceptable.
Question 3
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Refer to the image below and write only the letter of the correct answer in the
space provided.

The monitor suddenly turned black, which port should I check?


g
Answer:
Question 4
Complete
Mark 1.00 out of 1.00

Flag question
Question text
If you are confused on what to do, press F2 on your keyboard and the Windows
Help feature will open.
Select one:
a. True
b. False
An operating system has three major components – hardware, application
program or software and the user.
Select one:
a. True
b. False

computer programs
are actually a set of computer instructions that are developed using a
programming language.
Ctrl + S is the shortcut key for Save while Ctrl + S + A is the shortcut key for Save
As.
Select one:
a. False
b. True
Image files can be opened using MS Paint, Notedpad and Windows Photo Viewer.
Select one:
a. False
b. True
The mouse suddenly stopped working. Which port should I check?
Answer: b
Since natural languages are vaguely structured, they cannot be used for
programming.
Select one:
a. False
b. True
C++, an extension of the C language, introduced object-oriented programming.
Select one:
a. True
b. False
I think I plugged the speakers wrong. The power is turned on but I can’t hear any
sound Which port should I check?
Answer: f
Which of the following is not a default margin options when setting up the page
for printing?
Select one:
a. Narrow
b. Wide
c. Normal
d. Regular
LISP and PROLOG are programming languages that are best used when dealing
with Artificial Intelligence.
Select one:
a. False
b. True
COBOL stands for Convenient Business Oriented Language.
Select one:
a. True
b. False

Question 1
Complete
Mark 1.00 out of 1.00
Question text
Observe the names of the following variables and routines and decide whether its
format is CORRECT or WRONG.
Student.StudentBirthday for a class property.
Select one:
a. Wrong
b. Correct
Question 2
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Answer short c was the first language implemented for BINAC.
Question 3
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Refer to the image below and write only the letter of the correct answer in the
space provided.

We were playing games locally and I got disconnected. I think something’s wrong
with this port.
Answer: e
Question 4
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Refer to the image below to answer the following question. What type of image is
shown?
Select one:
a. Program chart
b. Data flow
c. Control flow
d. Flow chart
Question 5
Complete
out of 1.00

Flag question
Question text
Answer: high-level language is a type of programming language that is composed
of symbols and words that follow some rules similar to that of a natural language.
Refer to the image below to answer the following question. What happens when
Limit is equal to 3?
Select one:
c. Program goes back to login page.
Question 7
Complete
Mark 1.00 out of 1.00
Flag question
Question text
The set of rules that must be strictly followed when using a programming
language is called AnswerSYNTAX
Question 8
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Refer to the pseudocode below and answer the following question: What if the
computed BMI equals to 10, what will the program do?

Select one:
b. Print Underweight.
Question 9
Complete
Mark 1.00 out of 1.00

Flag question
Question text
A deleted file or folder found in the Recycle Bin can still be restored.
Select one:
b. True
Question 10
Complete
Flag question
Question text
.MPEG, .MP3 and .MOV are filename extensions for videos.
Select one:
b. False
Question 11
Complete
Mark 1.00 out of 1.00
lag question
Question text
Refer to the image below to answer the following question. What symbol is used
to begin and end the program?
b. Terminal
Question 12
Complete
Mark 1.00 out of 1.00
Question text
Refer to the image below and write only the letter of the correct answer in the
space provided.

My headset is working but the microphone is not. Which port should I check?
Answer: f
Question 13
Complete
Mark 1.00 out of 1.00

Flag question
Question text
You will find running application programs and process in the Task Manager.
Select one:
b. True
Question 14
Complete
Mark 1.00 out of 1.00
Question text
Ana is working on a new project and she was asking for the program’s purpose,
processes, algorithm, restrictions and some notes. According to the program
development life cycle, in which phase is Ana working on?
Select one:
b. Testing and Debugging
c. Analyze the Problem
Complete
Mark 1.00 out of 1.00
Question text
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?
Select one:
a. IV, I, V, III, II
Question 16
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Refer to the pseudocode below and answer the following question: If the
calculated BMI results to 26, what will the program do?

Select one:
a. display Normal
b. display Overweight
c. display Obese
d. display Underweight
Question 17
Complete
out of 1.00
Question text
Observe the names of the following variables and routines and decide whether its
format is CORRECT or WRONG.
PresentAdress for a column name in the table “Student”.
b. Wrong
Question 18
Complete
Mark 1.00 out of 1.00
Observe the names of the following variables and routines and decide whether its
format is CORRECT or WRONG.
Employees for a table name.
Select one:
a. Wrong
Question 19
Complete
Mark 1.00 out of 1.00
Question text
Refer to the image below to answer the following question. What process is
illustrated in the diagram?

Select one:
b. Social media login limit.
Question 20
Complete
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.
passingSCORE for a constant variable.
Select one:
a. Wrong

microso
C# was released by Answer .
Question 2
Complete
Mark 1.00 out of 1.00

Flag question
Question text
A Answer programis the code or language that allows a user to instruct a computer
to perform specific tasks.
Question 3
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Max is already writing the code for his project. In which phase of the PDLC is he
working on?
Select one:
a. Testing and Debugging
b. Analyze the Problem
c. Documentation
d. Coding and Execution
Question 4
Complete
out of 1.00

Flag question
Question text
Refer to the image below to answer the following question. John tries to log in for
the fourth time, what does he see on his screen?

Select one:
a. Social Media Page

Question 5
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Who is considered as a user (component of an operating system)?
Select one:
a. Students
b. All of the choices
c. Programmer
d. None of the choices
e. IT Staff
Question 6
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Programs written in high-level languages are translated into machine-readable
form using interpreters or compilers.
Select one:
a. False
b. True
Question 7
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Java is an example of
Select one:
a. Average level language
b. Low-level language
c. High-level language
d. Advanced language
Question 8
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Refer to the image below to answer the following question. What happens every
time the given username and password is incorrect?
Select one:
a. Limit is set to 0.
b. 1 is added to Limit.
c. 3 is set as the Limit.
d. Limit is set to 1.
Question 9
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Refer to the pseudocode below and answer the following question: The program
calculated for the BMI and it is equal to 50, what will the program do?

Select one:
a. Display Underweight.
b. Nothing, it is above 30.
c. Loop the program.
d. Print Obese.
Question 10
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Refer to the image below and write only the letter of the correct answer in the
space provided.

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
Question 11
Complete
Mark 1.00 out of 1.00

Flag question
Question text
He is known as the father of the Java programming language.
Select one:
a. Dennis Ritchie
b. BjarneStroustrup
c. J.W. Mauchly
d. James Gosling
Question 12
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Even when you close all running application programs, there are still process
running in the background.
Select one:
a. True
b. False
Question 13
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Jet is writing the pseudocode for his program. Which phase of program
development life cycle is he in?
Select one:
a. Documentation
b. Formalize the Solution
c. Design the Program
d. Test the Program
Question 14
Complete
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.
studentAge for a variable name.
Select one:
b. Correct
Question 15
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Refer to the image below to answer the following question. What type of
flowchart symbol contains the text “Limit >=3?”?

Select one:
a. Terminal
b. Decision
c. Flow lines
d. Connector
Question 16
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Jamie finished debugging her program. What is the next step she should do?
Select one:
a. Documentation
b. Design the Program
c. Test the Program
d. Formalize the Solution
Question 17
Complete
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. limitIsReached for a Boolean variable.
Select one:
a. Wrong
b. Correct
Question 18
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Over time, man’s efforts to find better ways to communicate with computers
resulted to the evolution of programming languages.
Select one:
a. True
b. False
Question 19
Complete
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.
CEILING_GRADE for a constant variable.
Select one:
a. Correct
Question 20
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Refer to the pseudocode below and answer the following question: What
happens after weight is given?

b. ask for height

PROG111 - Programming (Java) NC II Part 1


LONG QUIZ4
Presidential Decree No. 856 is an international treaty that imposes limitations on the greenhouse gas
emissions of several countries.
answer False
Q2.
According to Humphrey, a quality plan starts with product introduction where the product qualities and
target market are identified.
-True
Question 3
Standards are based on untested concepts and theories that the company has yet to encounter.
-False
Question 4
ISO/IEC 25010:2011’s product quality model has eight (8) major characteristics.
-True
Question 5
Companies can freely make their own set of environmental policies without consulting the workers’ union, or
any local or national laws about it.
- False
Question 6
Environmental policies won’t really make a difference, businesses will still strive and be successful without
giving a care for the environment.
Select one:
a False
Question 7
____________________ is setting the best practices in the workplace as your work standards.
Select one:
-Seiketsu
Question 8
Seiri is making work easier by reducing unnecessary items to deal with.
- True
Question 9
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 – like additional characters and skills.”
Select one:
a. Compatibility
Question 10
Complete
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.
Select one:
- False
Question 11
Every country, whether industrialized or still developing, must actively cooperate in enforcing environmental
measures.
Select one:
True
Question 12
Big business companies are the only ones responsible for enforcing environmental policies since they can
afford alternative cleaner technology.
Select one:
False
Question 13
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product quality model and write the
letter that corresponds to your answer.
Interoperability
-Compatibility
Question 14
Critical thinking skills is an essential skill which includes listening effectively, adapting communication skills
and understanding underlying issues.
Select one:
-False
Question 15
The 5S Method is a Japanese perspective technique developed by Eiichiro Oda.
b. False
Question 16
The Kyoto protocol requires the participation of both industrialized and developing nations in reducing
environmental harm.
-False
Question 17
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product quality model and write the
letter that corresponds to your answer.
Testability
ans. Maintainability
Question 18
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product quality model and write the
letter that corresponds to your answer.
Recoverability
Reliability
Question 19
Pre-review activities in the review process includes review planning, preparation and individual review.
Select one:
a. True
Question 20
____________________ is when you conduct regular audits and inspections to evaluate your work
performance.
-Shitsuke
Question 21
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product quality model and write the
letter that corresponds to your answer.
Accessibility
Usability
Question 22
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.
“I find it really enjoying to play XYZ since I can invite my friends from social media profile. It works well with
this social media app!”
Select one:
ans.compatibility
Question 23
Kyoto protocol addresses environmental issues through the campaign of ____________________.
Select one:
ans. reducing greenhouse gas emissions
Question 24
This body was tasked to implement the provisions of P.D. No. 856.
ans. Department of Health
Question 25
Montreal protocol protects the ozone layer by ____________________.
ans. phasing out harmful substances
Question 26
One good practice is to use water filtration system instead of buying bottled water every time.
ans. True
Question 28
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product quality model and write the
letter that corresponds to your answer.
Installability
ans.Portability
Question 27
Quality improvement process is conducted to avoid errors and faults from recurring in the future.
Select one:
ans. True

PROGRAMMING GRADE 11
(PROG-111) WEEK 1-9
AMALEAKS.BLOGSPOT.COM
PROGRAMMING GRADE 11
(PROG-111) WEEK 10 QUARTERLY EXAM
AMALEAKS.BLOGSPOT.COM
Question 1
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. 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.

Answer: accountable

Question 3
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Refer to the image below and write only the letter of the correct answer in the space provided.
I cannot type anything but my mouse is working, I am using a brand new USB keyboard, which port should I
check?

Answer: D

Question 4
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Monitoring and evaluating means brainstorming.

Answer: False

Question 5
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Axel is finally documenting his work. What could he be writing?

Select one:
a. requirements of the program
b. system analysis
c. bug reviews and errors
d. instructions for the users

Question 6
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Machine language and assembly language are collectively referred to as _________________________.

Select one:
a. Average level language
b. Low-level language
c. Advanced language
d. High-level language

Question 7
Complete
Mark 1.00 out of 1.00
Flag question

Question text
True or False: Nothing good ever comes from giving feedback. If anything, anyone who does give will only get
scolded by the boss.

Answer: False

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 problems in Materials, Measurement, Method, People, Equipment or Environment.

When the software used was checked, the project manager discovered that some of the programmers are
using an old version of Java. This cause is categorized under

Answer. Materials
Question 9
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 be told about the
students who volunteered to test the student record system.

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:
a. email
b. social media
c. hyperlinks
d. speaking

Question 12
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Refer to the pseudocode below and answer the following question:
What is the first thing that the program will do?

Select one:
a. ask for BMI
b. print height
c. ask for height
d. print BMI

Question 13
Complete
Mark 1.00 out of 1.00

Flag question

Question text
____________________ in the workplace protection of sensitive business information through precautionary
measures like confidentiality clauses or non-disclosure agreements.

Select one:
a. Curiosity
b. Integrity
c. Secrecy
d. Confidentiality

Question 14
Complete
Mark 0.00 out of 1.00

Flag question

Question text
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product quality model and write the
letter that corresponds to your answer.
Capacity

Select one:
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.

Answer: False

Question 17
Complete
Mark 1.00 out of 1.00

Flag question

Question text
In ____________________, 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
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.

Answer: True

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:
a. True
b. 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:
a. True
b. 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
b. Actions
c. Objectives
d. Process

Question 23
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Categorize the following 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
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

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 problems in Materials, Measurement, Method, People, Equipment or Environment.

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

Question 27
Complete
Mark 1.00 out of 1.00

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
Complete
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:
a. Correct
b. Wrong

Question 29
Complete
Mark 1.00 out of 1.00

Flag question

Question text
In adding a new printer, the _____________ will guide you on the steps to be taken.

Select one:
a. Printer Guide
b. Printer Affix
c. Printer Install
d. Printer Wizard

Question 30
Complete
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

Question text
Refer to the image below and write only the letter of the correct answer in the space provided.

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 text
Identify whether the following task should be listed as a milestone or be included in the Gantt chart.
Fix bugs and errors detected in the system.

Answer: Gantt chart

Question 33
Complete
Mark 1.00 out of 1.00

Flag question

Question text
In the correct order, the essential parts of the communication process are:

Select one:
a. Source, Message, Encoding, Channel, Decoding, Receiver, Feedback
b. Source, Message, Encoding, Channel, Receiver, Decoding, Feedback
c. Source, Message, Encoding, Channel, Decoding, Feedback, Receiver
d. Source, Message, Encoding, Receiver, Decoding, Channel, Feedback

Question 34
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
Answer: internal

Question 35
Complete
Mark 1.00 out of 1.00

Flag question

Question text
True or False: To solve a problem means to know first what the problem is before coming up with the feasible
solutions.

Answer: True

Question 36
Complete
Mark 1.00 out of 1.00

Flag question

Question text
True or False: Listing down the issues related to the problem is second to the last step in an effective problem
solving process.

Answer: False

Question 37
Complete
Mark 1.00 out of 1.00

Flag question

Question text
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:
a. Portability
b. Security
c. Maintainability
d. Functional Suitability
e. Usability
f. Compatibility
g. Performance Efficiency
h. Reliability

Question 38
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Monica accidentally unplugged the mouse PS/2 port. What will happen to the mouse connected thru the
universal serial bus port?

Select one:
a. The mouse will stop working.
b. None of the choices.
c. The mouse will freeze.
d. All of the choices
e. The mouse will be disabled.

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

Flag question

Question text
Decide whether it is a communication instrument or purpose.
A Gantt chart that shows the schedule for the development process of the student record system.

Answer: instrument

Question 41
Complete
Mark 1.00 out of 1.00
Flag question

Question text
A product or service 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 Control
c. Safety Programs
d. Reflective Behavior

Question 42
Complete
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.
ComputeTotalScore() for a routine to sum up the scores.

Select one:
a. Wrong
b. 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
Mark 1.00 out of 1.00

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

Question text
The first computer concept invented is called _________________________.

Select one:
a. COBOL
b. Analytical Engine
c. FORTRAN
d. PlanKalKul

Question 49
Complete
Mark 1.00 out of 1.00

Flag question

Question text
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.
“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.”

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

Flag question

Question text
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product quality model and write the
letter that corresponds to your answer.
Integrity

Select one:
a. Compatibility
b. Maintainability
c. Usability
d. Functional Suitability
e. Reliability
f. Performance Efficiency
g. Security
h. Portability

PROGRAMMING GRADE 11
(PROG-111) WEEK 10 QUARTERLY EXAM
AMALEAKS.BLOGSPOT.COM
PROGRAMMING GRADE 11
(PROG-111) WEEK 11-20
AMALEAKS.BLOGSPOT.COM

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
Question text
True or False: Operators, in Java programming language, use special symbols to call methods and their
objects.
Answer:
False
Question text
Read each statement carefully and decide whether it’s TRUE or FALSE.
There are no errors in the program.
Select one:
False
Question text
Refer to the block of codes below. Read each statement carefully and decide whether it’s TRUE or FALSE.
Line 9 uses a traditional comment which uses double forward slash.
Answer: False
Question text
True or False: Many programmers can be literate with Java programming language for it is intended to be
that way.
Answer:
True
Question text
True or False: You’ll know there’s an error if you see a red circle with an exclamation point in Netbeans IDE.
Answer:
True
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 = (x = 100) >= z;
Select one:
True
The file is accurately named – Students.java.

-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.
-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

The last line of code will output 100.0.

-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

There are keywords found in line 7.

-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 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.

-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

Substrings can contain 1 or 2 arguments.


-true

Determine the output.

-bar

The index of the letter “y” in string “Doggy” is 5.


-False

Determine the output.


-foo

TRUE OR FALSE: The value “val_3” is a white space “ “.

-False

True or False: Variable 1st_num is a good variable name in Java programming.

-False

TRUE OR FALSE: “val_2” contains “The”

-True

True or False: Instance variables are declared inside a method but outside a class.

-False

True or False: Variable names in Java are not necessarily case sensitive.

-False

Determine the output

-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

result = !((x * 10) < z);


-False

result = -(-z) == 43;

-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

x += x;
result = x == 154;
-False

The second line 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

A string can contain numbers.

-True

TRUE OR FALSE: This is an example of concatenation.


-True

TRUE OR FALSE: The value of “val_4” is “fox”


-False

TRUE OR FALSE: “val_2” contains “The”.


-True

Determine the output.

-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

Strings can be declared with str.


-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

Among the expressions below which is a statement?

-True

Expressions can be long and complex.

-true

number++; is an expression

-true

For-loops has a set number of iterations before starting.

-True

The equals( ) method can compare more than 2 arrays.

-False
While loops can use Booleans at test expressions.

-True

The test expression of the if statement is _______


-less than or equal to

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

x+1 is example of a statement.

-False

number++; is a block

-False

Arrays are

-Objects

The operator “new” allocates a memory block the size of what is declared.

-true

A class block can be an expression

-False

Statements can be expressions.

-False

Integer arrays can be populated with characters.

-False

Declaration clauses are declared as “number + 1”.

-False

Loops can be stopped with a break; statement.

-True

The equivalent of Paragraphs in coding is?


-Expressions

If statements cannot be nested in switches

-true

The length( ) method returns the size (number of indices) has.

-True

When polymorphism is used, the Java object can only take one form. Subclasses should have the same
function with the parent class.

-False

Arrays can contain (Answer) number of elements.

-Any

“||” and “&&” can be used in conditional statements.

-True

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

Expressions can be statements.

-True

Blocks can contain more blocks of code.

-True

If-else statements can be nested in?

-All of the choices

Statements are equivalent to paragraphs.

-False

A (answer) array is an array containing true or false values.


-boolean

Switches are always used with if-else statements

-False

True or False: The modulus operator returns the remainder of a division operation instead of the quotient.

-true

Determine the output.


String val_1 = “564298”;

-5698

Determine the output.


String val_1 = “35”;

-4

The return value of the length( ) method is an integer

-true

A superclass is also known as a parent class.

-true

For-loops can be nested in while loops.

-true

In instantiating an object, the keyword instance is used.

-False

Object oriented programming utilizes the top down method

-False

Expressions are like clauses.

-true

The sort( ) method is always ascending.

-true

Arrays are data types.

-False
Variables must be declared as (Answer) for it to be fully hidden.

-private

While statements check the test expression at the end.

-False

The else statement can be used alone.

-False

The fill( ) method (Answer) the array with specific values.

-Fills

The output of println is

-55555

The person’s weight is declared correctly with the correct data type (byte) and value (160).

-FALSE

Determine the output.


String val_1 = “foo”

String val_2 = “bar”

val_2 = val_1;

val_1 = val_3;

System.out.println(val_1);

-bar

Determine the output.


String val_1 = “foo”

String val_2 = “bar”

val_2 = val_1;

val_1 = val_3;

System.out.println(val_2);

-foo

Switches can work properly even without the “break” expression.


-True

Blocks can be one liner or huge classes.

-True

The test expressions in conditional statements can be left empty.

-False

Abstraction works by hiding the implementation details and showing only the functions necessary.

-True

A single array can hold multiple data types

-False

A polymorphic object can pass more than one Is-a test.

-True

Another loop can be used as test expression.

-False

True or False: Public, static and void are sample of Java reserved keywords.

-True

The value of “pStr” in line 24 is

-True

The default syntax of a constructor is <class_name>(parameter, parameter){ }

-False

A nested class is not an inner class.

-False

Nested classes causes them to become abstracted

-False

A nested class is also called

-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
A constructor can only have 1-2 overloads or parameters.

-False

All possible data types of an array can be retuned as a string by the toString( ) method.

-True

Abstracted classes can contain 1 or more abstract methods.

-True

Abstraction shows the every bit of detail and implementation on how an application does something.

-False

Initialization is a process where the constructor is called for.

-True

The default syntax of a constructor is <class_name>( ){ }

-True

Classes cannot be nested.

-False

Abstract classes cannot have nested classes.

-False

The parent class of a nested class is called an outer class

-True

An inner class can be constructed directly without reference to the outer class.

-False

Arrays can be read backwards

-True

A single array can hold

-One data type

Abstracted methods already have implementations inside.

-False

are special methods to initialize objects.


-constructors

Constructors have 3 basic rules to follow.

-False

Nesting classes increases encapsulation.

-True

Each index can only contain (Answer) element.

-one

The sort( ) method can be set to sort only a part of an array.

-False

Subclasses or child classes could have different behaviors but still share the same functions from their parent
class.

-True

Abstract methods must have an explicit return value

-False

An abstract class must not contain abstract methods.

-False

Abstracted classes can be nested.

-True

A subclass constructor cannot invoke a superclass constructor.

-False

A class acquiring fields and methods of another class is called inheritance.

-True

Parallelsorting utilizes

-More cpu processing cores

method can copy one array to another.

-arraycopy()

Conditional test expressions can contain declarations


-True

A child class inherits all the methods of every other class.

-False

f the value of “pStr” in line 7 is changed to _______ then the value of “pStr” in line 24 will be changed as well.

-True

The type of loop that checks the test expression at the end.

-do-while

An array of integers should be declared as

-int[]

A class which contains the abstract keyword in its declaration is known as an

-abstract class

Please refer to figure 1 to answer the question below: In figure 1 if(x==5) is

-skipped

The first line of the code should have either a yes or no value.

-False

Determine the output.

String val_1 = “25”;

String val_2 = “80”;

-200

What does ‘new’ in int[ ] myArray = new int[n] do?

-Assigns memory for the array

is also known as a parent class.

-Super class

Determine the output.


String val_1 = “foobar”;

String val_2 = “”;

-boar
Polymorphic objects can pass (answer) Is-a test.

-More than one

True or False: Traditional comments start with /** (forward slash and two asterisks) and ends with */
(asterisk and forward slash).

-False

True or False: Netbeans is one of the IDEs or Integrated Development Environment to run Java programs.

-True

For-loops can check the test expression at the end.

-False

Polymorphism is the ability of a Java object to take

-Directly

Constructors can have

-any number

When the program runs, and assuming there are no errors, its first line will be begin printing.

-FALSE

Which of these is a proper decrement?

-x-10;

All are methods of the array class except

-substring()

The error in Figure 2 is

-“tralse”;

A constructor (answer) contain an explicit return type

-cannot

Abstracted methods need (answer) for implementations.

-sub-classes

Line 14 will yield an error. It will be corrected if you place */ after the method.

-FALSE
The name of a constructor must be (answer) as your class.

-same

The limit of dimensions an array can have without errors is

-255

This type of declaration is discouraged.

-String myArray[ ];

The following figure shows the Netbeans Integrated Development Environment.

-True

The equivalent of clauses in coding is?


-Expressions
Int num = 1; for(num=num;num<=10;num++) is an acceptable code snippet.
-true
Loop that has a pre-determined number of iterations
-while
An int can be used even if it is declared outside a for-loop.
-true
Overload methods must be the same name as the class
-true
What the break statement in this example does is ________.
-Ends the whole instance of the loop
The random( ) method sorts the array randomly.
-False
The last part in a for loop setup can be an ________.
- both
The “1” in arrayName[1] is called an ________.
-Index
The continue; statement ends all the iterations of a loop.
- False
Which is not a proper increment?
- n+-;
Infine for-loops can be declared as for( ){ }.
- False
If-if is more logical than else-if.
- False
The else statement can be removed if not needed.
-True
Expressions, Statements and Blocks are like composing sentences and paragraphs.
-True
You can declare a new method in the subclass which is not declared in the superclass.
-True
The return value of the equals( ) method is ________ .
-None of the choices
The Arrays.sort( ) method sorts an array into _________ order.
-Ascending
This type of declaration is discouraged: “int myArray[ ]”
- True
An if-else-if-else statement is a block.
-True
If the increment num=num+2 is changed to num++, the final value of num will be ________.
-5
The term of each pass through a loop makes is called?
-iteration
Loops must always have a continue or break statement.
-False
1+2+3/4*5 is an unambiguous expression
-False
Conditional statements can contain more conditional statements.
- True
int num = 1;
if(num==1 && num<=1){
body;
}
The conditional statement will _______.
- execute the body
byte( ][ ][ ) myArray; is an example of ________.
- An error
An array _______ hold objects.
- can
A reference variable can be reassigned to other objects provided that it is not declared
________.
- final
The test expression of conditional statement cannot contain _______
-!
Each pass through of a loop is called a cycle.
- True
If the increment “num = num + 2” is changed to “num = num + 1” the final output will be
_______.
-0
Ifs and else-ifs test expressions return true or false.
- True
_______ classes increase the encapsulation of you methods and data.
- nesting
Constructed methods are initialized with 0 or null depending on the data type.
- true
The else statement catches whatever argument the if and else-if didn’t
- True
An iteration of a loop is equivalent to one pass through.
- true
38. If we change the initial value of num in line 6 to “num = 0”, the println output will be
_______
-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
A loop can contain no expressions or statements inside.
- true
Conditional statements are the same as declaration statements.
- False
You cannot use inherited methods directly in a child class.
- False
The equals( ) method compares 2 arrays.
- True
Method invocations are statements
- True
To implement encapsulation, you have to declare class variables with the private modifier.
- True
Inner class methods can be called by constructing the inner class.
- False
Encapsulated data are hidden from other classes.
- True

Refer to the code snippet below. Identify what part of a method is shown in each number (the
underlined one).
GIVEN: public int getArea

Answer: Method Name

Fill in the blanks with the correct answer.

Answer: val_1 + val_2

Read each statement carefully and decide whether it’s TRUE or FALSE.
The filename of the Java file above is computesum.java.

Answer: False

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

GIVEN: int getArea

Answer: Return Type

Fill in the blank:

Answer: foo

Procedural programming will be tricky for applications.

Answer: small

Strings can directly concatenated to an int.

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

Answer: FALSE

Fill in the blank:

Answer: barfoo

Refer to the code snippet below. Determine whether the given is a local variable, instance
variable, access modifier or a class name.
GIVEN: private class EmployeeRecord

Answer: access modifier

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

Answer: FALSE

Fill in the blank:


Answer: 200

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

Answer: False

Fill in the blank:

Answer: foo

Refer to the block of codes below. Read each statement carefully and decide whether it’s TRUE
or FALSE.
There are no errors in line 11.

Answer: TRUE

Determine the output.

Answer: error

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

Answer: False

Refer to the code snippet below. Determine whether the given is a local variable, instance
variable, access modifier or a class name.
GIVEN: private class EmployeeRecord

Answer: class name

Determine the output.

Answer: chocolate bar

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

Answer: False

Fill in the blank:


Answer: 6

The “indexOf( )” method returns the first instance of the specified character.

Answer: True

Please refer to figure 1 to answer the question below:

If we change the initial value of num in line 6 to “num = 0”, the println output will be

Answer: 0

Strings can readily accept int values.

Answer: True

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

Answer: True
Refer to the code snippet below. Determine whether the given is a local variable, instance
variable, access modifier or a class name.

GIVEN: int noOfEmployee

Answer: local variable

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

Answer: True
Refer to the program below. Read each statement carefully and write the output for each line
specified.

Line 22 will display on the screen.

Answer: 1
PROG-111A-LAB
AMALEAKS.BLOGSPOT.COM

Started on Thursday, 28 December 2017, 1:20 PM


State Finished
Completed on Thursday, 28 December 2017, 1:39 PM
Time taken 19 mins 41 secs
Grade 8.00 out of 10.00 (80%)
Question 1
Complete
Question 2
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Refer to the revision history below and decide whether the statement is TRUE or
FALSE.

True or False: Major revisions on progress, budget and risk management were
conducted in the second version of the document.
Answer: true
Question 3
Complete
Mark 0.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 problems in Materials, Measurement,
Method, People, Equipment or Environment.
Most of the programmers are not informed of the progress or status of the
project. This is a Answer people problem.
When the program was written, some team mates are
talking too loud and distracted the others. This cause is
categorized under _________________.
Some of the programmers were not present duringrequirements gathering, this
cause is classified as a
_________________ problem.
Question 4
Complete
Mark 1.00 out of 1.00

Flag question
Question text
The quality of a product is the responsibility of ____________________ in the
workplace.
Select one:
a. HR staff
b. IT staff
c. Everyone
d. Admin staff
Question 5
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: If you want to inform every one of events, memos and
other announcements, use the bulletin board.
true
Answer:
Question 6
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Naming conventions are records of system activities arranged in
chronological order for documentary purposes.
Answer: false
Question 7
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Which one of the following is a characteristic of mentoring?
Select one:
a. The focus is on inspiring respect for professional skills.
b. The focus is on utilizing existing competencies.
c. The focus is on technical or professional development.
d. The focus is on realizing trainee’s potential skills.
Question 8
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: It is fine to use strong or shocking colors for PowerPoint
presentation slides.
Answer: false
Question 9
Complete
Mark 1.00 out of 1.00

Flag question
Question text
It is a means of facilitating relationships which also serves as a way for parties to
consider what decisions or course of action they must make.
Select one:
a. Technical
b. Interpersonal
c. Boundaries
d. Feedback
e. Active listening
f. Communication
g. Interpretation
h. Channel
i. Negotiation
j. Empathy
Question 10
Complete
Mark 0.00 out of 1.00

Flag question
Question text
True or False: Foreign co-workers having conversation issues with everyone in the
office are better left off on their own.
false
Answer:
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Which one of the following DO NOT resolve diversity in the workplace?
Select one:
a. Creating a sense of equality by encouraging employees to voice out their
opinions.
b. Conducting regular trainings to update company policies.
c. Involving all employees in the formulation and execution of company
programs.
d. Rewarding only the skilled employees while scolding the other employees
who perform poorly.
Question 2
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Through feedback, programmers can learn if the system or program
has all the functions and features defined by the clients.
Answer: true
Question 3
Complete
Mark 0.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 problems in Materials, Measurement,
Method, People, Equipment or Environment.

Due to a tight deadline, the programmers decided to write the code immediately
without a plan. This cause is classified under Answer measurement .
When the program was written, some team mates are
talking too loud and distracted the others. This cause is
categorized under _________________.
Some of the programmers were not present duringrequirements gathering, this
cause is classified as a
_________________ problem.
Question 4
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: All team members must be doing their parts diligently for the
success of the team’s efforts.
Answer: true
Question 5
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: You can send the message in whatever format you like, since the
receiver can just try to interpret and understand the message in any way.
Answer: false
Question 6
Complete
Mark 1.00 out of 1.00

Flag question
Question text
This group of people is knowledgeable in software applications:
Select one:
a. Design engineer, development engineer, engineer, Quality Assurance
Specialist, Tester
b. Analyst, engineer, data modeler, business analyst, computer engineer
c. Administrator, analyst, test engineer, tester
d. Designer or Engineer, Programmer or Analyst
Question 7
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Which among the following statements is TRUE?
Select one:
a. Encoding refers to the method of conveying the message, such as speaking,
writing or gesturing.
b. The source is the information or subject matter of communication.
c. Feedback can be a useful reference when planning for communications in
the future.
d. Encoding is the process by which the receiver interprets and understands
the message.

Question 1
Answer saved
Marked out of 1.00

Flag question
Question text
This practice is a form of self-evaluation, where you think about what you did and
learn what you can from it. It motivates you to do better next time you are faced
with the same situation.
Select one:
a. Quality Control
b. Performance Appraisal
c. Reflective Behavior
d. Safety Programs
Question 2
Answer saved
Marked out of 1.00

Flag question
Question text
True or False: In identifying the problem, it should be specific and not broad or
vague.
true
Answer:
Question 3
Answer saved
Marked out of 1.00
Flag question
Question text
True or False: Presentations must be interesting, lively and engaging.
Answer: true
Question 4
Answer saved
Marked out of 1.00

Flag question
Question text
It is a meeting where you receive and learn information and training on a specific
subject.
Select one:
a. Exhibit
b. Business meeting
c. Seminar
d. Meet and greet
Question 5
Answer saved
Marked out of 1.00

Flag question
Question text
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.
false
Answer:
Question 6
Answer saved
Marked out of 1.00

Flag question
Question text
True or False: Taking home of a little bit of office supplies will surely be ignored
and won’t do much harm to the company.
Answer: false
Question 7
Answer saved
Marked out of 1.00

Flag question
Question text
Referring to the figure below, determine if the statement is TRUE or FALSE.

The file for the second version of risk management is properly named.

Answer: false
Question 8
Answer saved
Marked out of 1.00

Flag question
Question text
The following are all safety procedures that may be observed by a company,
EXCEPT for:
Select one:
a. Conducting earthquake drills
b. Placing fire extinguishers within the workplace
c. Having a first aid kit at hand
d. Using faulty cable wiring all over the place
Question 9
Answer saved
Marked out of 1.00

Flag question
Question text
Effective monitoring can be done through the following, EXCEPT:
Select one:
a. Conducting investigations
b. Carrying out spot checks
c. Collecting office records
d. Completing safety inspections
Question 10
Answer saved
Marked out of 1.00

Flag question
Question text
Which one of the following practices will result to a proper presentation?
Select one:
a. Using slides with strong shocking background colors
b. Using font styles that are readable
c. Using pictures or images that are of no relevance to the presentation
d. Using font styles that are readable and Using pictures or images that are of
no relevance to the presentation
True or False: Foreign co-workers having conversation issues with
everyone in the office are better left off on their own.
A: False

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

True or False: Understanding everyone’s interest is the second step in the


problem solving process. This is when you choose the optimal solution.
Answer: false

These kind of words or terms are often discouraged to be used during a


presentation, especially if the audience is not that familiar with
programming terms.
A: technical words

Referring to the figure below, determine if the statement is TRUE or


FALSE.

The first version of the risk management file should be named Risk
Management V01.
A: true

It is the ability to understand another person’s point of view and opinions.


Select one:
a. Negotiation
b. Communication
c. Technical
d. Interpretation
e. Feedback
f. Active listening
g. Interpersonal
h. Empathy
i. Boundaries
j. Channel
True or False: A team refers only to a group of people who work in the
same workplace and who see each other on a regular basis.
Answer: true
Handwritten- is considered a personal type of written communication and it includes
postcards and written letters.

True or False: Team building activities are important to further improve


team interaction and cooperation.
Answer: true
Question 3
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Stick only to technical terms for your presentation. There is
no need to give any simple explanation when you use technical terms.
Answer: false

Which one of the following is a characteristic of mentoring?


Select one:
a. The focus is on technical or professional development.
b. The focus is on utilizing existing competencies.
c. The focus is on inspiring respect for professional skills.
d. The focus is on realizing trainee’s potential skills.

Refer to the revision history below and decide whether the statement is
TRUE or FALSE.
True or False: Major revisions on progress, budget and risk management
were conducted in the second version of the document.
Answer: true
Analyze the diagram below to answer. Fill in the blanks with the correct
answer or categorize the causes if they are considered problems in
Materials, Measurement, Method, People, Equipment or Environment.

Most of the programmers are not informed of the progress or status of the
methods
project. This is a Answer problem.

It is a means of facilitating relationships which also serves as a way for


parties to consider what decisions or course of action they must make.
Select one:
a. Interpretation
b. Interpersonal
c. Technical
d. Empathy
e. Active listening
f. Channel
g. Negotiation
h. Communication
i. Feedback
j. Boundaries

True or False: After finding out what the problem is, it is not time to identify
the fundamental cause of the problem.
A:
Who among the following can give feedback to an employee?
Select one:
a. All of the choices
b. Teammates
c. Colleagues
d. None of the choices
e. Superiors
The following are all part of the communication process, EXCEPT for one:
Select one:
a. Feedback
b. Source
c. Printing
d. Decoding

The quality of a product is the responsibility of ____________________ in


the workplace.
Select one:
a. IT staff
b. HR staff
c. Everyone
d. Admin staff
Question 2
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 problems in
Materials, Measurement, Method, People, Equipment or Environment.

One programmer, who is just a recent graduate, was assigned to do a big


task. His colleagues are not aware that he doesn’t have the skills required.
This falls under Answer people .
When the program was written, some team mates are
talking too loud and distracted the others. This cause is
categorized under _________________.
Some of the programmers were not present duringrequirements gathering,
this cause is classified as a
_________________ problem.

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 problems in
Materials, Measurement, Method, People, Equipment or Environment.

Equipment
The problem identified in the diagram is a buggy java Answer .

Question 4
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Which among the following statements is TRUE?
Select one:
a. The source is the information or subject matter of communication.
b. Encoding refers to the method of conveying the message, such as
speaking, writing or gesturing.
c. Feedback can be a useful reference when planning for
communications in the future.
d. Encoding is the process by which the receiver interprets and
understands the message.
Question 5
Complete
Flag question
Question text
This Internet online resource allows the user to interact either as a learner
or instructor.
Select one:
Answer: udemy
Question 6
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: In identifying the problem, it should be specific and not broad
or vague.
Answer: true
Question 7
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Expertise in using the Internet and Internet-based services, handling
computer hardware, computer operation and maintenance, and
troubleshooting computer systems are some examples of
____________________ skills.
Select one:
a. Technical
b. Soft
c. Business
d. All of the choices
Question 8
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Naming conventions are records of system activities
arranged in chronological order for documentary purposes.
Answer: false
Question 9
Complete
Mark 1.00 out of 1.00

Flag question
Question text
The following are all safety procedures that may be observed by a
company, EXCEPT for:
Select one:
a. Placing fire extinguishers within the workplace
b. Having a first aid kit at hand
c. Conducting earthquake drills
d. Using faulty cable wiring all over the place
Question 10
Complete
Question 2
Complete
Mark 1.00 out of 1.00

Flag question
Question text
This refers to how people make sense of, understand or perceive something.
Select one:
a. Boundaries
b. Technical
c. Communication
d. Interpretation
e. Channel
f. Active listening
g. Empathy
h. Interpersonal
i. Negotiation
j. Feedback
Question 3
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Expertise in using the Internet and Internet-based services, handling computer
hardware, computer operation and maintenance, and troubleshooting computer
systems are some examples of ____________________ skills.
Select one:
a. All of the choices
b. Soft
c. Business
d. Technical
Question 4
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Employees should be encouraged to take on career paths that not
only develop their skills, but also improve their performance in the work that they
do.
Answer: true
Question 5
Complete
Mark 1.00 out of 1.00

Flag question
Question text
This group of people is knowledgeable in software applications:
Select one:
a. Design engineer, development engineer, engineer, Quality Assurance
Specialist, Tester
b. Analyst, engineer, data modeler, business analyst, computer engineer
c. Administrator, analyst, test engineer, tester
d. Designer or Engineer, Programmer or Analyst
Question 6
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Which one of the following is a characteristic of mentoring?
Select one:
a. The focus is on realizing trainee’s potential skills.
b. The focus is on utilizing existing competencies.
c. The focus is on inspiring respect for professional skills.
d. The focus is on technical or professional development.
Question 7
Complete
Mark 1.00 out of 1.00

Flag question
Question text
It is a meeting where you receive and learn information and training on a specific
subject.
Select one:
a. Meet and greet
b. Exhibit
c. Seminar
d. Business meeting
Question 8
Complete
Mark 1.00 out of 1.00

Flag question
Question text
The following are all safety procedures that may be observed by a company,
EXCEPT for:
Select one:
a. Having a first aid kit at hand
b. Using faulty cable wiring all over the place
c. Conducting earthquake drills
d. Placing fire extinguishers within the workplace
Question 9
Complete
Mark 1.00 out of 1.00

Flag question
Question text
This refers to face-to-face communication between two or more people.
Select one:
a. Negotiation
b. Interpretation
c. Feedback
d. Active listening
e. Technical
f. Communication
g. Empathy
h. Interpersonal
i. Channel
j. Boundaries
Question 10
Complete
Mark 1.00 out of 1.00
Flag question
Question text
True or False: Evaluating the options require determining the advantages and
disadvantages of each option.

true
Answer:

Started on Friday, 5 January 2018, 6:50 PM


State Finished
Completed on Friday, 5 January 2018, 6:58 PM
Time taken 8 mins 26 secs
Grade 10.00 out of 10.00 (100%)
Question 1
Complete
Mark 1.00 out of 1.00

Flag question
Question text
It is a means of facilitating relationships which also serves as a way for parties to
consider what decisions or course of action they must make.
Select one:
a. Communication
b. Technical
c. Empathy
d. Boundaries
e. Active listening
f. Negotiation
g. Interpersonal
h. Interpretation
i. Channel
j. Feedback
Question 2
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: After finding out what the problem is, it is not time to identify the
fundamental cause of the problem.
Answer: true
Question 3
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: In naming files, provide simple and short names that could easily be
understood by everyone.
Answer: true
Question 4
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Referring to the figure below, determine if the statement is TRUE or FALSE.

The final copy of the project charter is properly named.


Answer: false
Question 5
Complete
Mark 1.00 out of 1.00

Flag question
Question text
____________________ is a formal meeting where people are gathered to
discuss topics that revolve around their same interests.
Select one:
a. Concert
b. Seminar
c. Workshop
d. Conference
Question 6
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Answer value covers quality, service and delivery of the goods or services from
the vendor to the client.
Question 7
Complete
Mark 1.00 out of 1.00
Flag question
Question text
In the workplace, ______________ is all about the level of work performance
required in completing a task.
Select one:
a. Standard
b. Feedback
c. Values
d. Goal
Question 8
Complete
Mark 1.00 out of 1.00

Flag question
Question text
This practice is a form of self-evaluation, where you think about what you did and
learn what you can from it. It motivates you to do better next time you are faced
with the same situation.
Select one:
a. Reflective Behavior
b. Safety Programs
c. Quality Control
d. Performance Appraisal
Question 9
Complete
Mark 1.00 out of 1.00
Flag question
Question text
True or False: Memos, also known as memorandum, are distributed for people
working in the same organization or company.
Answer: true
Question 10
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Always use readable fonts in presentations.
true
Answer:

Question 8
Complete
Mark 1.00 out of 1.00

Flag question
Question text
These kind of words or terms are often discouraged to be used during a
presentation, especially if the audience is not that familiar with programming
terms.
Select one:
a. Channel
b. Interpersonal
c. Negotiation
d. Interpretation
e. Technical
f. Feedback
g. Active listening
h. Communication
i. Boundaries
handw
j. Empathy
Question 9
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Some of the famous computer professional networks are:
Select one:
a. Philippine Computer Society
b. Computer Society of the Philippines
c. Philippine Computer Society and VIP International Unite
d. Computer Society of the Philippines and Philippine Computer Society
e. Computer Society of the Philippines and VIP International Unite
f. VIP International Unite
g. All of the choices
h. None of the choices
Question 10
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Answer is considered a personal type of written communication and it includes
postcards and written letters.
True or False: Communicating with internal and external clients is important for
programmers.
Answer: true

This is one way to measure success rate not onlyyour communication, but also to
evaluate your work.
Select one:
a. Feedback
b. Communication
c. Technical
d. Interpretation
e. Empathy
f. Channel
g. Active listening
h. Boundaries
i. Negotiation
j. Interpersonal
Question 2
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Ice breaker activities can be related or not to the presentation.
Answer: true

____________________ is a formal meeting where people are gathered to


discuss topics that revolve around their same interests.
Select one:
a. Seminar
b. Conference
c. Workshop
d. Concert
Question 2
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: According to Hicks, the first step in an effective problem solving
process is clearly defining the problem.
Answer: true
Question 3
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Stick only to technical terms for your presentation. There is no need
to give any simple explanation when you use technical terms.
Answer: false
Question 4
Complete
Mark 1.00 out of 1.00

Flag question
Question text
This is the method by which a message is conveyed, such as speaking, writing or
gesturing.
Select one:
a. Negotiation
b. Interpersonal
c. Interpretation
d. Technical
e. Empathy
f. Boundaries
g. Communication
h. Channel
i. Active listening
j. Feedback
Question 5
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 problems in Materials, Measurement,
Method, People, Equipment or Environment.
Few programmers are complaining about slow Internet connection and this
affects their work. This cause is categorized in Answer equipment .
When the program was written, some team mates are
talking too loud and distracted the others. This cause is
categorized under _________________.
Some of the programmers were not present duringrequirements gathering, this
cause is classified as a
_________________ problem.
Question 6
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Expertise in using the Internet and Internet-based services, handling computer
hardware, computer operation and maintenance, and troubleshooting computer
systems are some examples of ____________________ skills.
Select one:
a. Technical
b. Business
c. All of the choices
d. Soft
Question 7
Complete
Mark 1.00 out of 1.00

Flag question
Question text
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.
Answer: false
Question 8
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Referring to the figure below, determine if the statement is TRUE or FALSE.
The final copy of the project charter is properly named.
Answer: false
Question 9
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Answer informa oral communication may be done in a workplace and it takes
different forms such as telephone conversations, face-to-face conversations and
brainstorming.
Question 10
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Nowadays, teammates have no need for communications
technology since they can just interact face to face.
false
Answer:

Every country, whether industrialized or still developing, must actively cooperate


in enforcing environmental measures.
Select one:
a. True
b. False
Question 3
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Decide whether it is a communication instrument or purpose.
A printed progress report to be submitted to the adviser.
Answer: instrument
Question 4
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product
quality model and write the letter that corresponds to your answer.
Confidentiality
Select one:
a. Maintainability
b. Reliability
c. Compatibility
d. Usability
e. Security
f. Portability
g. Performance Efficiency
h. Functional Suitability
Question 5
Complete
Mark 1.00 out of 1.00

Flag question
Question text
In the 5S method, this stage refers to arranging items in a way that they are easy
to find and pick up.
Select one:
a. Shitsuke
b. Seiton
c. Seiketsu
d. Seiri
Question 6
Complete
Mark 1.00 out of 1.00

Flag question
Question text
____________________ is when you conduct regular audits and inspections to
evaluate your work performance.
Select one:
a. Seiso
b. Seiketsu
c. Shitsuke
d. Seiri
Question 7
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product
quality model and write the letter that corresponds to your answer.
Accessibility
Select one:
a. Usability
b. Compatibility
c. Maintainability
d. Security
e. Reliability
f. Portability
g. Performance Efficiency
h. Functional Suitability
Question 8
Complete
Mark 1.00 out of 1.00

Flag question
Question text
The 5s method is based on the ____________________.
Select one:
a. Takoyaki Production System
b. Tonari Production System
c. Tatsumaki Production System
d. Toyota Production Sytem
Question 9
Complete
Mark 1.00 out of 1.00

Flag question
Question text
According to Humphrey, a quality plan starts with product introduction where the
product qualities and target market are identified.
Select one:
a. False
b. True

True or False: One of the ways to motivate teamwork in the workplace is to make
sure that maintenance is conducted and planned for system enhancement.
Answer: false
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.
Select one:
a. False

A: ergonomic
factors are concerned whether employees are comfortable, stressed or possibly
be injured due to the arrangement of things in the workplace.
True or False: Reviewing the related literature includes review of concepts,
theories and previous research findings.
Answer: true
Enforcing environmental policies is one of the major causes of job loss and
unemployment.
Select one:
a. True
b. False
True or False: To gather data, you can either conduct an interview, survey,
observation, mail questionnaire, coding and tabulation.
Answer: false
Risks, which could harm the product’s quality, must be determined and managed
well along with the actions to be taken.
Select one:
a. False
b. True
Collective bargaining refers to the bargain sale of previously used office
equipment.
Select one:
a. False
b. True
Identify whether the following task should be listed as a milestone or be included
in the Gantt chart.
The user interface design and layout has been completed.
Answer: milestone
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product
quality model and write the letter that corresponds to your answer.
Installability
Select one:
a. Maintainability
b. Performance Efficiency
c. Reliability
d. Portability
e. Functional Suitability
f. Security
g. Usability
h. Compatibility
Question 3
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product
quality model and write the letter that corresponds to your answer.
Interoperability
Select one:
a. Functional Suitability
b. Compatibility
c. Maintainability
d. Security
e. Reliability
f. Portability
g. Usability
h. Performance Efficiency
Question 4
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product
quality model and write the letter that corresponds to your answer.
Maturity
Select one:
a. Compatibility
b. Portability
c. Reliability
d. Performance Efficiency
e. Security
f. Functional Suitability
g. Usability
h. Maintainability
Question 5
Complete

Flag question
Question text
The Montreal protocol is designed to help protect the ozone layer.
Select one:
a. True
b. False

A: briefing
notes are prepared with issues or topics that decision makers should be informed
about.
Qualitative research aims to gain insights on opinions, behaviors and attitude
through Answer: UNSTRUCTURED techniques.
Question 10
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product
quality model and write the letter that corresponds to your answer.
Testability
Select one:
a. Maintainability
Conceptual research is usually carried out by and thinkers to come up with new
concepts. Answer: philosopher
True or False: Most of the readers will skim the conclusion first to get an idea of
what the paper is all about.
Answer: false
Question 13
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Quality improvement process is conducted to avoid errors and faults from
recurring in the future.
Select one:
a. True
b. False
True or False: There are five main elements of a written report – topic, style,
structure, facts and contents.
Answer: false
Presidential Decree No. 856 is an international treaty that imposes limitations on
the greenhouse gas emissions of several countries.
Select one:
a. True
b. False
True or False: Dates in file names should be written in YYYY-MM-DD format.
Asnwer: true
Companies can freely make their own set of environmental policies without
consulting the workers’ union, or any local or national laws about it.
Select one:
a. True
b. False
Question 20
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 ‘Grandparents
Answer: external

Started on Saturday, 6 January 2018, 9:51 PM


State Finished
Completed on Saturday, 6 January 2018, 10:13 PM
Time taken 21 mins 12 secs
Grade 18.00 out of 20.00 (90%)
Question 1
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Referring to the figure below, determine if the statement is TRUE or FALSE.
The minutes dated back December 3, 2016 is properly named.
Answer: false
Question 2
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product
quality model and write the letter that corresponds to your answer.
Recoverability
Select one:
a. Portability
b. Security
c. Usability
d. Compatibility
e. Maintainability
f. Performance Efficiency
g. Functional Suitability
h. Reliability
Question 3
Complete
Mark 1.00 out of 1.00

Flag question
Question text
The 5S Method is a Japanese perspective technique developed by Eiichiro Oda.
Select one:
a. False
b. True
Question 4
Complete
Mark 1.00 out of 1.00

Flag question
Question text
The protection of the natural resources is possible through the collective efforts
of each group in the society.
Select one:
a. False
b. True
Question 5
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Referring to the figure below, determine if the statement is TRUE or FALSE.
The minutes of the meeting for December 1, 2016 is appropriately named.
Answer: true
Question 6
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: A milestone refers to the scope and out of scope of a project. It is
defined so that the project is implemented on time and on budget.
Answer: false
Question 7
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Montreal protocol protects the ozone layer by ____________________.
Select one:
a. phasing out harmful substances
b. reducing greenhouse gas emissions
c. banning the use of perfumes
d. using locally produced products
Question 8
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Email, SMS and Gantt chart are samples of communication
frequency that you could utilize.
Answer: false
Question 9
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 be notified that the project proposal has been approved.
inform
Answer:
Question 10
Complete
Mark 1.00 out of 1.00

Flag question
Question text
This body was tasked to implement the provisions of P.D. No. 856.
Select one:
a. Department of Wealth
b. Department of Health
c. Department of Sanitation
d. Department of Cleanliness
Question 11
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Organizational aims are different from the mission statement; they
refer to the results an organization is aspiring for.
Answer: true
Question 12
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Refer to the revision history below and decide whether the statement is TRUE or
FALSE.
There were only two staff accountable and responsible for the overall changes of
the document.
Answer: true
Question 13
Complete
Mark 1.00 out of 1.00

Flag question
Question text
During solution implementation, the problem solvers should be Answer:
PROACTIVE to assure that the problem is being addressed properly.
Question 14
Complete
Mark 0.00 out of 1.00

Flag question
Question text
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.
“XYZ is so cool! I tried to install it in my old computer and it still runs smoothly.
Given that the computer’s video card is a bit faulty.“
Select one:
a. Performance Efficiency
b. Reliability
c. Usability
d. Security
e. Maintainability
f. Portability
g. Compatibility
h. Functional Stability
Question 15
Complete
Mark 1.00 out of 1.00

Flag question
Question text
By conducting a research, you can help the society by contributing to the body
of Answer know le.
Question 16
Complete
Mark 0.00 out of 1.00

Flag question
Question text
Environmental issues have no relation to the workplace.
Select one:
b. False
Question 17
Complete
Mark 1.00 out of 1.00

Flag question
Question text
In a nutshell, a research is conducted by identifying a problem, identifies
hypoth
formulating a Answer , gathering and analyzing data, presenting the
findings, and drawing a conclusion.
Question 18
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Business industries will not be affected by the environmental crisis.
Select one:
a. True
b. False
Question 19
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Usually, the summary of the report is the first thing that’s being
read.
Answer: true
Question 20
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: To present the results and findings of a research, you can use a bar
graph, line graph or pie chart.
Answer: true
True or False: Seminar lectures, conference talks, presentations of reports
and group meetings are samples of informal oral communication conducted
in a workplace.
Answer: False
These are developed by industries as a guide for establishments and
business enterprises to conduct their operations in a way that prevents or
reduces environmental harm.
Answer: Environmental codes of practice
True or False: There are different types of communication and written
communication is one which can be used in a workplace.
Answer: true
True or False: There are different types of communication and written
communication is one which can be used in a workplace.
Answer: false
Quantitative research, compared to qualitative research, uses
measurable Answer data to uncover patterns.
Protecting the environment and natural resources also means protecting
stable employment.
Select one:
a. True
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 assure that the project schedule is followed strictly.
Answer: responsible
____________________ is setting the best practices in the workplace as
your work standards.
Select one:
a. Seiso
b. Seiri
c. Shitsuke
d. Seiketsu
Humans rely on natural resources for survival.
Select one:
a. True
b. False
Question text
Environmental policies won’t really make a difference, businesses will still
strive and be successful without giving a care for the environment.
Select one:
a. True
b. False
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
h. Functional Suitability
ISO/IEC 25010:2011’s SQuaRE stands for System Quality Assurance and
Requirements Evaluation. This standard is used in evaluating the quality of
software.
Select one:
a. False
b. True
True or False: You can emphasize the key points in your report by stating
them in the references and conclusion.
Answer: false
Question 19
Complete
Mark 1.00 out of 1.00
Question text
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.
“One good thing I find with XYZ as when my laptop shuts down
accidentally, my game score and status can still be recovered. No need to
repeat a level.”
Select one:
b. Reliability
True or False: In an effective written communication, structure refers to the
facts presented in the paper.
Answer: false
The Kyoto protocol requires the participation of both industrialized and developing
nations in reducing environmental harm.
Select one:
b. False
Question 2
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Kyoto protocol addresses environmental issues through the campaign of
____________________.
Select one:
a. banning the use of pesticides
b. using imported products
c. reducing greenhouse gas emissions
d. phasing out harmful substances
Question 3
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product
quality model and write the letter that corresponds to your answer.
Reusability
Select one:
a. Reliability
b. Portability
c. Usability
d. Functional Suitability
e. Compatibility
f. Maintainability
g. Security
h. Performance Efficiency
Question 4
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product
quality model and write the letter that corresponds to your answer.
Operability
Select one:
a. Performance Efficiency
b. Security
c. Usability
d. Compatibility
e. Portability
f. Reliability
g. Maintainability
h. Functional Suitability
Question 5
Complete
Mark 0.00 out of 1.00

Flag question
Question text
Referring to the figure below, determine if the statement is TRUE or FALSE.
The project objectives file follows the standards of naming convention.
Answer: FALSE
Question 6
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Sometimes, people conduct research to earn Answer :respect from others.
Question 7
Complete
Mark 1.00 out of 1.00

Flag question
Question text
One good practice is to use water filtration system instead of buying bottled water
every time.
Select one:
a. False
b. True
Question 8
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Researches are primarily conducted to solve a problem and to
contribute the body of knowledge in a particular field.
true
Answer:
Question 9
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Protocols are set of standards rules which describes how something
should be done and different companies have different protocols as well.
Answer: true
Question 10
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Increase work productivity by arranging items in such a way that they are easy to
find and pick up.
Select one:
a. False
b. True
Question 11
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product
quality model and write the letter that corresponds to your answer.
Time behavior
Select one:
a. Portability
b. Reliability
c. Performance Efficiency
d. Maintainability
e. Compatibility
f. Security
g. Usability
h. Functional Suitability
Question 12
Complete
Mark 1.00 out of 1.00

Flag question
Question text

stability
Answer refers to the supplier’s / vendor’s capacity to conduct
long term contractual obligations.
Question 13
Complete
Mark 0.00 out of 1.00

Flag question
Question text
True or False: Statutory requirements are identified by the vendors or suppliers and
they include value, stability, diversity and capacity.
Answer: FALSE
Question 14
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Big business companies are the only ones responsible for enforcing environmental
policies since they can afford alternative cleaner technology.
Select one:
a. False
b. True
Question 15
Complete
Mark 1.00 out of 1.00

Flag question
Question text
theory
Fundamental research covers generalization and formulation of Answer .
Question 16
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Research findings are not applicable in developing government
policies. Researchers should be purely academic.
Answer: false
Question 17
Complete
Mark 1.00 out of 1.00
Flag question
Question text
ISO 9001 international standard for quality’s core processes are divided into two
(2) – product delivery process and support process.
Select one:
a. False
b. True
Question 18
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Answer applied research is concerned in solving a problem that the private
organization or the society is facing.
Question 19
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Standards are based on untested concepts and theories that the company has yet to
encounter.
Select one:
a. True
b. False
Question 20
Complete
Mark 1.00 out of 1.00

Flag question
Question text
If a researcher is conducting a Answer descrip research, he / she has no control over
variables.
____________________ is a means by which the employees, speaking
through the unions they belong to, can come to an agreement with their
employers about employment, environmental and other work-related
concerns.
ANSWER; Collective bargaining

unstructured
notes are prepared with issues or topics that decision makers should be informed
about.

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 – like additional characters and skills.”
Select one:
g. Maintainability
Research can be used to accurately represent the Answer: characteristics
of a particular individual or group, an event or a situation.
The cost / benefit analysis document is appropriately named.
Answer: false

Grade 9.00 out of 10.00 (90%)


Question 1
Complete
Mark 1.00 out of 1.00

Flag question
Question text
This type of programming language uses series of 0s and 1s to represent data.
Select one:
a. Machine language
b. High-level language
c. Advanced language
d. Assembly language
Question 2
Complete
Mark 1.00 out of 1.00

Flag question
Question text
PASCAL is an example of a low-level language.
Select one:
a. False
b. True
Question 3
Complete
Mark 1.00 out of 1.00

Flag question
Question text
C# has features that are directly based on the Short Code.
Select one:
a. False
b. True
Question 4
1.00

Flag question
Question text
Arlan right clicked on his taskbar and unchecked the Lock Taskbar. What will
happen if he drags his taskbar to the right side of his screen?
Select one:
a. Start button will be located at the bottom right.
b. All of the choices
c. All icons will transfer to the right.
d. None of the choices.
e. Taskbar will display vertically at the right.
Question 5
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Answer charles is the father of computer.
Question 6
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Refer to the image below and write only the letter of the correct answer in the
space provided.

Something’s wrong with the serial port. Which port should I investigate?
Answer: c
Question 7
Complete
Mark 1.00 out of 1.00

Flag question
Question text
This refers to the process of using programming languages to instruct the
computer to perform specific tasks.
Select one:
a. Programming
b. Troubleshooting
c. Scanning
d. Debugging
Question 8
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Using the Answer java language, you can write windowed applications, build
databases, as well as control handheld devices.
Question 9
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Bridget’s mouse is not responding and she has to close her browser. Which of the
following is an alternative way using a keyboard to close an application?
Select one:
a. Alt + F4
b. Ctrl + C
c. Esc + 1
d. Shift + X
Question 10
Complete
Mark 1.00 out of 1.00

Flag question
Question text
COBOL is the programming language ideally used for
_________________________ purposes.
Select one:
a. Business
b. Artificial intelligence
c. Systematic
d. Internet

Who is the first computer programmer?


Select one:
a. Lady Lovelace Ada Augusta
b. Sir Wilhelm Maximilian Wundt
c. Lady Agatha Russell
d. Sir Konrad Zuse
Question 3
Complete
Mark 1.00 out of 1.00

Flag question
Question text
The earphones is an example of a _______________, while Internet Explorer is an
example of _______________.
Select one:
a. platform operating system
b. hardware, computer user
c. input device, output device
d. peripheral device, application program
Question 4
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Windows is to Personal Computer (PC) while Mac OSX is to Mac laptops and
computers.
Select one:
a. True
b. False
FORTRAN was the first ever “modern” computer language.
Select one:
a. True
b. False
An operating system has three major components – hardware, application
program or software and the user.
Select one:
a. False
b. True
Question 1
Complete
out of 1.00

Flag question
Question text
Maria has two printers – Printer Z and Printer A. She set Printer Z as the default
printer. What will happen the next time she prints a document?
Select one:

e. All of the choices.

Which of the following statements is TRUE?


Select one:
a. Natural language can be used in programming.
b. Today’s programming languages are all limited in scope and application.
c. A programming language may have its own area of specialization.
d. Poorly constructed coding statements are acceptable.
Question 3
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Refer to the image below and write only the letter of the correct answer in the
space provided.

The monitor suddenly turned black, which port should I check?


Answer: g
Question 4
Complete
Mark 1.00 out of 1.00

Flag question
Question text
If you are confused on what to do, press F2 on your keyboard and the Windows
Help feature will open.
Select one:
a. True
b. False
An operating system has three major components – hardware, application
program or software and the user.
Select one:
a. True
b. False

computer programs
are actually a set of computer instructions that are developed using a
programming language.
Ctrl + S is the shortcut key for Save while Ctrl + S + A is the shortcut key for Save
As.
Select one:
a. False
b. True
Image files can be opened using MS Paint, Notedpad and Windows Photo Viewer.
Select one:
a. False
b. True
The mouse suddenly stopped working. Which port should I check?
Answer: b
Since natural languages are vaguely structured, they cannot be used for
programming.
Select one:
a. False
b. True
C++, an extension of the C language, introduced object-oriented programming.
Select one:
a. True
b. False
I think I plugged the speakers wrong. The power is turned on but I can’t hear any
sound Which port should I check?
Answer: f
Which of the following is not a default margin options when setting up the page
for printing?
Select one:
a. Narrow
b. Wide
c. Normal
d. Regular
LISP and PROLOG are programming languages that are best used when dealing
with Artificial Intelligence.
Select one:
a. False
b. True
COBOL stands for Convenient Business Oriented Language.
Select one:
a. True
b. False

Question 1
Complete
Mark 1.00 out of 1.00
Question text
Observe the names of the following variables and routines and decide whether its
format is CORRECT or WRONG.
Student.StudentBirthday for a class property.
Select one:
a. Wrong
b. Correct
Question 2
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Answer short c was the first language implemented for BINAC.
Question 3
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Refer to the image below and write only the letter of the correct answer in the
space provided.
We were playing games locally and I got disconnected. I think something’s wrong
with this port.
Answer: e
Question 4
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Refer to the image below to answer the following question. What type of image is
shown?

Select one:
a. Program chart
b. Data flow
c. Control flow
d. Flow chart
Question 5
Complete
out of 1.00

Flag question
Question text
Answer: high-level language is a type of programming language that is composed
of symbols and words that follow some rules similar to that of a natural language.
Refer to the image below to answer the following question. What happens when
Limit is equal to 3?
Select one:
c. Program goes back to login page.
Question 7
Complete
Mark 1.00 out of 1.00
Flag question
Question text
The set of rules that must be strictly followed when using a programming
language is called Answer SYNTAX
Question 8
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Refer to the pseudocode below and answer the following question: What if the
computed BMI equals to 10, what will the program do?

Select one:
b. Print Underweight.
Question 9
Complete
Mark 1.00 out of 1.00

Flag question
Question text
A deleted file or folder found in the Recycle Bin can still be restored.
Select one:
b. True
Question 10
Complete
Flag question
Question text
.MPEG, .MP3 and .MOV are filename extensions for videos.
Select one:
b. False
Question 11
Complete
Mark 1.00 out of 1.00
lag question
Question text
Refer to the image below to answer the following question. What symbol is used
to begin and end the program?
b. Terminal
Question 12
Complete
Mark 1.00 out of 1.00
Question text
Refer to the image below and write only the letter of the correct answer in the
space provided.

My headset is working but the microphone is not. Which port should I check?
Answer: f
Question 13
Complete
Mark 1.00 out of 1.00

Flag question
Question text
You will find running application programs and process in the Task Manager.
Select one:
b. True
Question 14
Complete
Mark 1.00 out of 1.00
Question text
Ana is working on a new project and she was asking for the program’s purpose,
processes, algorithm, restrictions and some notes. According to the program
development life cycle, in which phase is Ana working on?
Select one:
b. Testing and Debugging
c. Analyze the Problem
Complete
Mark 1.00 out of 1.00
Question text
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?
Select one:
a. IV, I, V, III, II
Question 16
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Refer to the pseudocode below and answer the following question: If the
calculated BMI results to 26, what will the program do?

Select one:
a. display Normal
b. display Overweight
c. display Obese
d. display Underweight
Question 17
Complete
out of 1.00
Question text
Observe the names of the following variables and routines and decide whether its
format is CORRECT or WRONG.
PresentAdress for a column name in the table “Student”.
b. Wrong
Question 18
Complete
Mark 1.00 out of 1.00
Observe the names of the following variables and routines and decide whether its
format is CORRECT or WRONG.
Employees for a table name.
Select one:
a. Wrong
Question 19
Complete
Mark 1.00 out of 1.00
Question text
Refer to the image below to answer the following question. What process is
illustrated in the diagram?

Select one:
b. Social media login limit.
Question 20
Complete
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.
passingSCORE for a constant variable.
Select one:
a. Wrong
microso
C# was released by Answer .
Question 2
Complete
Mark 1.00 out of 1.00

Flag question
Question text
A Answer programis the code or language that allows a user to instruct a computer
to perform specific tasks.
Question 3
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Max is already writing the code for his project. In which phase of the PDLC is he
working on?
Select one:
a. Testing and Debugging
b. Analyze the Problem
c. Documentation
d. Coding and Execution
Question 4
Complete
out of 1.00

Flag question
Question text
Refer to the image below to answer the following question. John tries to log in for
the fourth time, what does he see on his screen?

Select one:
a. Social Media Page

Question 5
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Who is considered as a user (component of an operating system)?
Select one:
a. Students
b. All of the choices
c. Programmer
d. None of the choices
e. IT Staff
Question 6
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Programs written in high-level languages are translated into machine-readable
form using interpreters or compilers.
Select one:
a. False
b. True
Question 7
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Java is an example of
Select one:
a. Average level language
b. Low-level language
c. High-level language
d. Advanced language
Question 8
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Refer to the image below to answer the following question. What happens every
time the given username and password is incorrect?
Select one:
a. Limit is set to 0.
b. 1 is added to Limit.
c. 3 is set as the Limit.
d. Limit is set to 1.
Question 9
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Refer to the pseudocode below and answer the following question: The program
calculated for the BMI and it is equal to 50, what will the program do?

Select one:
a. Display Underweight.
b. Nothing, it is above 30.
c. Loop the program.
d. Print Obese.
Question 10
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Refer to the image below and write only the letter of the correct answer in the
space provided.

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
Question 11
Complete
Mark 1.00 out of 1.00

Flag question
Question text
He is known as the father of the Java programming language.
Select one:
a. Dennis Ritchie
b. Bjarne Stroustrup
c. J.W. Mauchly
d. James Gosling
Question 12
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Even when you close all running application programs, there are still process
running in the background.
Select one:
a. True
b. False
Question 13
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Jet is writing the pseudocode for his program. Which phase of program
development life cycle is he in?
Select one:
a. Documentation
b. Formalize the Solution
c. Design the Program
d. Test the Program
Question 14
Complete
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.
studentAge for a variable name.
Select one:
b. Correct
Question 15
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Refer to the image below to answer the following question. What type of
flowchart symbol contains the text “Limit >=3?”?

Select one:
a. Terminal
b. Decision
c. Flow lines
d. Connector
Question 16
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Jamie finished debugging her program. What is the next step she should do?
Select one:
a. Documentation
b. Design the Program
c. Test the Program
d. Formalize the Solution
Question 17
Complete
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. limitIsReached for a Boolean variable.
Select one:
a. Wrong
b. Correct
Question 18
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Over time, man’s efforts to find better ways to communicate with computers
resulted to the evolution of programming languages.
Select one:
a. True
b. False
Question 19
Complete
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.
CEILING_GRADE for a constant variable.
Select one:
a. Correct
Question 20
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Refer to the pseudocode below and answer the following question: What
happens after weight is given?

b. ask for height


ICT-2125 (NC-II) Visual Graphic and Design Week 11-20

AMALEAKS.BLOGSPOT.COM
FROM ATE JIE

Computerized media planners are commonly prepared moving illustrations, screenwriting,


video altering, advanced sound generation and video creation.

c. Digital Media Design

A comprehension of printmaking is likewise significant for illustrations intended to show up on


promoting materials.

Graphic Design
Answer:

Under WHEN SHOULD YOU CREATE A NEWSLETTER?

You need to manufacture a feeling of normal reason, or inspiration - or both - among individuals.

True

Incorporates physical ancient rarities or things you can grasp, for example, business cards,
enormous configuration standards, flyers, specialized manuals, or corporate letterhead.

Print Media Design


Answer:

Under WHY SHOULD YOU CREATE A NEWSLETTER?

To sparkle new enthusiasm for, and increment acknowledgment of, your office.

True
Under WHY SHOULD YOU CREATE A NEWSLETTER?
To stay up with the latest about what's happening.

True

Under WHEN SHOULD YOU CREATE A NEWSLETTER?

You need the general population to see you as a dependable and critical gathering.

True

Under WHEN SHOULD YOU CREATE A NEWSLETTER?

You need to get a great deal of data to many individuals all the time.

True

Basically, these two fields set out to make types of visual correspondence media that regularly
relate a thought, picture or brand to a group of people.

Visual Communication
Answer:

Under WHY SHOULD YOU CREATE A NEWSLETTER?


To teach all readers about issues and thoughts those worry your gathering.

Select one:

True

Under WHY SHOULD YOU CREATE A NEWSLETTER?

To supplant meeting minutes by making an area in the pamphlet committed to meeting


outlines.
True

Includes all substance displayed in electronic arrangement, for example, sites, online preparing,
electronic reports, sound, video, and illustrations distributed in the virtual space.

a. Electronic Media Design

Is data or information that is made, appropriated and got to utilizing a type of hardware,
electromechanical vitality or any gear utilized in electronic interchanges.

c. Electronic Media

Under WHY SHOULD YOU CREATE A NEWSLETTER?

To construct attachment and a feeling of pride among your individuals.

Select one:

True

Data configuration is the arranging, organizing, and association of data in a way that is
productive for individuals to find.

Information Design
Answer:

Under Some specific reasons for developing truly creative promotions:

They build a positive image of your organization.

True
Under IDENTIFY YOUR AUDIENCE:

Potential volunteers or Board members.

True

Under Some specific reasons for developing truly creative promotions:

They can bring in money for your organization, often from new sources.

True

Under Some specific reasons for developing truly creative promotions:

They don't have to cost a lot of money.

True

Strong or unusual visual or auditory images tend to stay in the mind longer than more
conventional ones.

Vividness
Answer:

Under Some specific reasons for developing truly creative promotions:

They can be tied to your message or mission in interesting ways. You could draw attention to a
day care center by handing out copies of children's art made there, for instance, or by playing
in a public place (with permission, of course) a recording of the children singing.

True

Under Some specific reasons for developing truly creative promotions:

They can increase your support and cement your position in the community.
True

Responding to new things has survival value for living things, including people.

Novelty
Answer:

We're all constantly bombarded with information.

Repetition
Answer:

Under IDENTIFY YOUR AUDIENCE:

The general public, or the community at large

Select one:

True

Under IDENTIFY YOUR AUDIENCE:

Specific groups involved in your issue

Select one:

True

If you can find a way to reward people for responding to your message, they're much more
likely to do so.

Providing a benefit for the target of the promotion


Answer:

Under IDENTIFY YOUR AUDIENCE:


Policy makers or the media.

Select one:

True

Under Some specific reasons for developing truly creative promotions:

They spread your message and reputation faster and more effectively.

True

Potential participants or beneficiaries of your organization.

False
BL-PROG-
3111-LAB-
1922S
PROGRAMMI
NG JAVA
NCIII PART 1
 Dashboard
 My courses
 BL-PROG-3111-LAB-1922S
 Week 7: Learning Activity
 Learning Activity 1

Started on Friday, 22 November 2019, 8:45 PM


State Finished
Completed on Friday, 22 November 2019, 8:47 PM
Time taken 2 mins 34 secs
Grade 9.00 out of 10.00 (90%)
Question 1
Correct
Mark 1.00 out of 1.00

Flag question

Question text

True or False: Treating employees as actual people and making them feel a sense of value
make for a stronger foundation of a company.

True
Answer:
Feedback

The correct answer is: True

Question 2
Correct
Mark 1.00 out of 1.00

Flag question
Question text

This is the method by which a message is conveyed, such as speaking, writing or gesturing.

Select one:
a. Technical
b. Active listening
c. Negotiation
d. Communication
e. Channel
f. Interpersonal
g. Boundaries
h. Empathy
i. Interpretation
j. Feedback
Feedback

The correct answer is: Channel

Question 3
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Effective monitoring can be done through the following, EXCEPT:

Select one:
a. Completing safety inspections
b. Carrying out spot checks
c. Conducting investigations
d. Collecting office records
Feedback

The correct answer is: Collecting office records


Question 4
Correct
Mark 1.00 out of 1.00

Flag question

Question text

True or False: Through feedback, programmers can learn if the system or program has all
the functions and features defined by the clients.

True
Answer:
Feedback

The correct answer is: True

Question 5
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Expertise in using the Internet and Internet-based services, handling computer hardware,
computer operation and maintenance, and troubleshooting computer systems are some
examples of ____________________ skills.

Select one:
a. Technical
b. Soft
c. Business
d. All of the choices
Feedback

The correct answer is: Technical

Question 6
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Which one of the following practices will result to a proper presentation?

Select one:
a. Using pictures or images that are of no relevance to the presentation
b. Using font styles that are readable and Using pictures or images that are of no relevance
to the presentation
c. Using font styles that are readable
d. Using slides with strong shocking background colors
Feedback

The correct answer is: Using font styles that are readable

Question 7
Correct
Mark 1.00 out of 1.00

Flag question

Question text

This group of people is knowledgeable in software applications:

Select one:
a. Design engineer, development engineer, engineer, Quality Assurance Specialist, Tester
b. Designer or Engineer, Programmer or Analyst
c. Analyst, engineer, data modeler, business analyst, computer engineer
d. Administrator, analyst, test engineer, tester
Feedback
The correct answer is: Design engineer, development engineer, engineer, Quality Assurance
Specialist, Tester

Question 8
Correct
Mark 1.00 out of 1.00

Flag question

Question text

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
Answer:
Feedback

The correct answer is: False

Question 9
Incorrect
Mark 0.00 out of 1.00

Flag question

Question text

It is the process of conveying and receiving a message. It is the act by which messages are
created and shared.

Select one:
a. Communication
b. Empathy
c. Negotiation
d. Technical
e. Channel
f. Boundaries
g. Interpersonal
h. Interpretation
i. Active listening
j. Feedback
Feedback

The correct answer is: Communication

Question 10
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Who among the following can give feedback to an employee?

Select one:
a. Superiors
b. Colleagues
c. All of the choices
d. None of the choices
e. Teammates
Feedback

The correct answer is: All of the choices

Question 1
Not answered

Marked out of 1.00

Flag question
Question text Applied

Answer research is concerned in solving a problem that the private organization or


the society is facing.

Feedback

The correct answer is: Applied

Question 2
Not answered

Marked out of 1.00

Flag question

Question text

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.

Select one:

a. False

b. True

Feedback

The correct answer is: False

Question 3
Not answered

Marked out of 1.00

Flag question
Question text

Fundamental research covers generalization and formulation ofAnswer .

Feedback

The correct answer is: theory

Question 4
Not answered

Marked out of 1.00

Flag question

Question text

Kyoto protocol addresses environmental issues through the campaign of


____________________.

Select one:

a. banning the use of pesticides

b. using imported products

c. phasing out harmful substances

d. reducing greenhouse gas emissions

Feedback

The correct answer is: reducing greenhouse gas emissions

Question 5
Not answered

Marked out of 1.00


Flag question

Question text

True or False: A milestone refers to the scope and out of scope of a project. It is defined so
that the project is implemented on time and on budget.

Answer:

Feedback

The correct answer is: False

Question 6
Not answered

Marked out of 1.00

Flag question

Question text

____________________ is setting the best practices in the workplace as your work standards.

Select one:

a. Seiso

b. Seiketsu

c. Shitsuke

d. Seiri

Feedback
The correct answer is: Seiketsu

Question 7
Not answered

Marked out of 1.00

Flag question

Question text

True or False: Statutory requirements are identified by the vendors or suppliers and they
include value, stability, diversity and capacity.

Answer:

Feedback

The correct answer is: False

Question 8
Not answered

Marked out of 1.00

Flag question

Question text

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.

“XYZ is so cool! I tried to install it in my old computer and it still runs smoothly. Given that
the computer’s video card is a bit faulty.“

Select one:
a. Maintainability

b. Reliability

c. Functional Stability

d. Usability

e. Performance Efficiency

f. Security

g. Compatibility

h. Portability

Feedback

The correct answer is: Reliability

Question 9
Not answered

Marked out of 1.00

Flag question

Question text

True or False: Researches are primarily conducted to solve a problem and to contribute the
body of knowledge in a particular field.

Answer:

Feedback

The correct answer is: True

Question 10
Not answered

Marked out of 1.00

Flag question

Question text

True or False: SWOT analysis is one of the techniques in determining the company’s
strength and weaknesses.

Answer:

Feedback

The correct answer is: True

Question 11
Not answered

Marked out of 1.00

Flag question

Question text

Research can be used to accurately represent theAnswer of a particular individual or


group, an event or a situation.

Feedback

The correct answer is: characteristics

Question 12
Not answered

Marked out of 1.00


Flag question

Question text

Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product quality


model and write the letter that corresponds to your answer.
Time behavior

Select one:

a. Usability

b. Functional Suitability

c. Maintainability

d. Portability

e. Reliability

f. Performance Efficiency

g. Security

h. Compatibility

Feedback

The correct answer is: Performance Efficiency

Question 13
Not answered

Marked out of 1.00


Flag question

Question text

Referring to the figure below, determine if the statement is TRUE or FALSE.

The cost / benefit analysis document is appropriately named.

Answer:

Feedback

The correct answer is: False

Question 14
Not answered

Marked out of 1.00

Flag question
Question text

The 5s method is based on the ____________________.

Select one:

a. Toyota Production Sytem

b. Tatsumaki Production System

c. Tonari Production System

d. Takoyaki Production System

Feedback

The correct answer is: Toyota Production Sytem

Question 15
Not answered

Marked 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 could be used by other schools other than Ricka’s school.
Answer:

Feedback

The correct answer is: opportunity

Question 16
Not answered

Marked out of 1.00

Flag question

Question text

True or False: Reviewing the related literature includes review of concepts, theories and
previous research findings.

Answer:

Feedback

The correct answer is: True

Question 17
Not answered

Marked out of 1.00

Flag question

Question text

True or False: Usually, the summary of the report is the first thing that’s being read.

Answer:
Feedback

The correct answer is: True

Question 18
Not answered

Marked out of 1.00

Flag question

Question text

Montreal protocol protects the ozone layer by ____________________.

Select one:

a. banning the use of perfumes

b. reducing greenhouse gas emissions

c. phasing out harmful substances

d. using locally produced products

Feedback

The correct answer is: phasing out harmful substances

Question 19
Not answered

Marked out of 1.00

Flag question

Question text
Seiso refers to cleaning your workplace on a regular basis.

Select one:

a. False

b. True

Feedback

The correct answer is: True

Question 20
Not answered

Marked out of 1.00

Flag question

Question text

The protection of the natural resources is possible through the collective efforts of each
group in the society.

Select one:

a. True

b. False

Feedback

The correct answer is: True

Question 21
Not answered

Marked out of 1.00


Flag question

Question text

True or False: Protocols are set of standards rules which describes how something should be
done and different companies have different protocols as well.

Answer:

Feedback

The correct answer is: True

Question 22
Not answered

Marked out of 1.00

Flag question

Question text

True or False: One of the ways to motivate teamwork in the workplace is to make sure that
maintenance is conducted and planned for system enhancement.

Answer:

Feedback

The correct answer is: False

Question 23
Not answered

Marked out of 1.00


Flag question

Question text

Qualitative research aims to gain insights on opinions, behaviors and attitude

throughAnswer techniques.

Feedback

The correct answer is: unstructured

Question 24
Not answered

Marked out of 1.00

Flag question

Question text

Protecting the environment and natural resources also means protecting stable
employment.

Select one:

a. True

b. False

Feedback

The correct answer is: True

Question 25
Not answered
Marked out of 1.00

Flag question

Question text

According to Humphrey, a quality plan starts with product introduction where the product
qualities and target market are identified.

Select one:

a. False

b. True

Feedback

The correct answer is: True

Question 26
Not answered

Marked out of 1.00

Flag question

Question text

____________________ is a means by which the employees, speaking through the unions they
belong to, can come to an agreement with their employers about employment,
environmental and other work-related concerns.

Select one:

a. Collective survey
b. Collective assault

c. Collective bargaining

d. Collective employment

Feedback

The correct answer is: Collective bargaining

Question 27
Not answered

Marked out of 1.00

Flag question

Question text

Quantitative research, compared to qualitative research, uses measurableAnswer to


uncover patterns.

Feedback

The correct answer is: data

Question 28
Not answered

Marked out of 1.00

Flag question

Question text

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.

“Thanks to XYZ, I can baby sit my little brother. It’s so easy to use that a 5-year old can play
it as well.”

Select one:

a. Compatibility

b. Security

c. Functional Stability

d. Usability

e. Performance Efficiency

f. Maintainability

g. Reliability

h. Portability

Feedback

The correct answer is: Usability

Question 29
Not answered

Marked out of 1.00

Flag question

Question text

One good practice is to use water filtration system instead of buying bottled water every
time.
Select one:

a. True

b. False

Feedback

The correct answer is: True

Question 30
Not answered

Marked out of 1.00

Flag question

Question text

Standards are based on untested concepts and theories that the company has yet to
encounter.

Select one:

a. False

b. True

Feedback

The correct answer is: False

Question 31
Not answered

Marked out of 1.00


Flag question

Question text

Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product quality


model and write the letter that corresponds to your answer.
Interoperability

Select one:

a. Performance Efficiency

b. Compatibility

c. Portability

d. Maintainability

e. Security

f. Usability

g. Reliability

h. Functional Suitability

Feedback

The correct answer is: Compatibility

Question 32
Not answered

Marked out of 1.00


Flag question

Question text

The Montreal protocol is designed to help protect the ozone layer.

Select one:

a. False

b. True

Feedback

The correct answer is: True

Question 33
Not answered

Marked out of 1.00

Flag question

Question text

True or False: You can emphasize the key points in your report by stating them in the
references and conclusion.

Answer:

Feedback

The correct answer is: False

Question 34
Not answered
Marked out of 1.00

Flag question

Question text

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.

“One good thing I find with XYZ as when my laptop shuts down accidentally, my game score
and status can still be recovered. No need to repeat a level.”

Select one:

a. Compatibility

b. Performance Efficiency

c. Maintainability

d. Portability

e. Reliability

f. Usability

g. Functional Stability

h. Security

Feedback

The correct answer is: Reliability

Question 35
Not answered

Marked out of 1.00


Flag question

Question text

True or False: There are different types of communication and written communication is one
which can be used in a workplace.

Answer:

Feedback

The correct answer is: True

Question 36
Not answered

Marked out of 1.00

Flag question

Question text

Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product quality


model and write the letter that corresponds to your answer.
Operability

Select one:

a. Performance Efficiency

b. Portability

c. Reliability

d. Maintainability
e. Security

f. Usability

g. Compatibility

h. Functional Suitability

Feedback

The correct answer is: Usability

Question 37
Not answered

Marked out of 1.00

Flag question

Question text

Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product quality


model and write the letter that corresponds to your answer.
Recoverability

Select one:

a. Portability

b. Security

c. Reliability

d. Functional Suitability

e. Compatibility

f. Usability
g. Maintainability

h. Performance Efficiency

Feedback

The correct answer is: Reliability

Question 38
Not answered

Marked out of 1.00

Flag question

Question text

Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product quality


model and write the letter that corresponds to your answer.
Confidentiality

Select one:

a. Maintainability

b. Compatibility

c. Security

d. Performance Efficiency

e. Functional Suitability

f. Reliability

g. Portability

h. Usability
Feedback

The correct answer is: Security

Question 39
Not answered

Marked out of 1.00

Flag question

Question text

Collective bargaining refers to the bargain sale of previously used office equipment.

Select one:

a. False

b. True

Feedback

The correct answer is: False

Question 40
Not answered

Marked out of 1.00

Flag question

Question text

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
Select one:

a. Performance Efficiency

b. Functional Suitability

c. Maintainability

d. Reliability

e. Compatibility

f. Security

g. Portability

h. Usability

Feedback

The correct answer is: Functional Suitability

Question 41
Not answered

Marked out of 1.00

Flag question

Question text

Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product quality


model and write the letter that corresponds to your answer.
Testability

Select one:

a. Performance Efficiency
b. Functional Suitability

c. Security

d. Portability

e. Maintainability

f. Reliability

g. Compatibility

h. Usability

Feedback

The correct answer is: Maintainability

Question 42
Not answered

Marked out of 1.00

Flag question

Question text

Big business companies are the only ones responsible for enforcing environmental policies
since they can afford alternative cleaner technology.

Select one:

a. False

b. True

Feedback

The correct answer is: False


Question 43
Not answered

Marked out of 1.00

Flag question

Question text

Referring to the figure below, determine if the statement is TRUE or FALSE.

The minutes of the meeting for December 1, 2016 is appropriately named.

Answer:

Feedback

The correct answer is: True

Question 44
Not answered

Marked 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 has a mobile app version.

Answer:

Feedback

The correct answer is: Strength

Question 45
Not answered

Marked out of 1.00

Flag question

Question text

True or False: Most of the readers will skim the conclusion first to get an idea of what the
paper is all about.

Answer:
Feedback

The correct answer is: False

Question 46
Not answered

Marked out of 1.00

Flag question

Question text

Reading a lot can help improve you reading comprehension skills but make sure you only
read short articles.

Select one:

a. True

b. False

Feedback

The correct answer is: False

Question 47
Not answered

Marked out of 1.00

Flag question

Question text

True or False: In an effective written communication, structure refers to the facts presented
in the paper.
Answer:

Feedback

The correct answer is: False

Question 48
Not answered

Marked out of 1.00

Flag question

Question text

Answer notes are prepared with issues or topics that decision makers should be
informed about.

Feedback

The correct answer is: Briefing

Question 49
Not answered

Marked out of 1.00

Flag question

Question text

Sometimes, people conduct research to earnAnswer from others.

Feedback

The correct answer is: respect


Question 50
Correct

Mark 1.00 out of 1.00

Flag question

Question text

Humans rely on natural resources for survival.

Select one:

a. True

b. False

Feedback

The correct answer is: True

Question 1
Correct

Mark 1.00 out of 1.00

Flag question

Question text

Refer to the revision history below and decide whether the statement is TRUE or FALSE.
There were only two staff accountable and responsible for the overall changes of the
document.
TRUE
Answer:

Feedback

The correct answer is: True

Question 2
Correct

Mark 1.00 out of 1.00

Flag question

Question text

ISO 9001 international standard for quality’s core processes are divided into two (2) –
product delivery process and support process.

Select one:
a. False

b. True

Feedback

The correct answer is: True

Question 3
Not answered

Marked out of 1.00

Flag question

Question text

By conducting a research, you can help the society by contributing to the body ofAnswer

Feedback

The correct answer is: knowledge

Question 4
Correct

Mark 1.00 out of 1.00

Flag question

Question text

True or False: A conceptual research relies on experience and observation and disregards
theories.

True
Answer:
Feedback

The correct answer is: True

Question 5
Correct

Mark 1.00 out of 1.00

Flag question

Question text

True or False: To gather data, you can either conduct an interview, survey, observation, mail
questionnaire, coding and tabulation.

false
Answer:

Feedback

The correct answer is: False

Question 6
Correct

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 user interface design and layout has been completed.

Presidential Decree No. 856, one of the Philippine environmental laws, is also Preside
Answer:
Feedback

The correct answer is: Milestone

Question 7
Correct

Mark 1.00 out of 1.00

Flag question

Question text

Increase work productivity by arranging items in such a way that they are easy to find and
pick up.

Select one:

a. False

b. True

Feedback

The correct answer is: True

Question 8
Incorrect

Mark 0.00 out of 1.00

Flag question

Question text

philoso
Conceptual research is usually carried out byAnswer and thinkers to come up with
new concepts.
Feedback

The correct answer is: philosophers

Question 9
Correct

Mark 1.00 out of 1.00

Flag question

Question text

Pre-review activities in the review process includes review planning, preparation and
individual review.

Select one:

a. True

b. False

Feedback

The correct answer is: True

Question 10
Correct

Mark 1.00 out of 1.00

Flag question

Question text

Every country, whether industrialized or still developing, must actively cooperate in


enforcing environmental measures.
Select one:

a. False

b. True

Feedback

The correct answer is: True

Question 11
Incorrect

Mark 0.00 out of 1.00

Flag question

Question text

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.

“XYZ is so cool I can play it with my phone, laptop, Xbox and PS4!”

Select one:

a. Performance Efficiency

b. Functional Stability

c. Usability

d. Security

e. Maintainability

f. Reliability
g. Portability

h. Compatibility

Feedback

The correct answer is: Portability

Question 12
Incorrect

Mark 0.00 out of 1.00

Flag question

Question text

True or False: A conceptual research relies on experience and observation and disregards
theories.

True
Answer:

Feedback

The correct answer is: False

Question 13
Correct

Mark 1.00 out of 1.00

Flag question

Question text

STABIL
Answer refers to the supplier’s / vendor’s capacity to conduct long term contractual
obligations.
Feedback

The correct answer is: Stability

Question 14
Incorrect

Mark 0.00 out of 1.00

Flag question

Question text

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.

“XYZ has very good graphics and animation. It is easy to learn. One look and you’ll know
what the controls are for.”

Select one:

a. Usability

b. Portability

c. Compatibility

d. Reliability

e. Performance Efficiency

f. Maintainability

g. Functional Stability

h. Security

Feedback
The correct answer is: Usability

Question 15
Correct

Mark 1.00 out of 1.00

Flag question

Question text

True or False: Seminar lectures, conference talks, presentations of reports and group
meetings are samples of informal oral communication conducted in a workplace.

False
Answer:

Feedback

The correct answer is: False

Question 16
Correct

Mark 1.00 out of 1.00

Flag question

Question text

Environmental policies won’t really make a difference, businesses will still strive and be
successful without giving a care for the environment.

Select one:

a. False

b. True
Feedback

The correct answer is: False

Question 17
Correct

Mark 1.00 out of 1.00

Flag question

Question text

Determine whether the stated person / group is an internal or external stakeholder.


Students ‘Grandparents

external
Answer:

Feedback

The correct answer is: External

Question 18
Not answered

Marked out of 1.00

Flag question

Question text

In a nutshell, a research is conducted by identifying a problem, identifies formulating

aAnswer , gathering and analyzing data, presenting the findings, and drawing a
conclusion.

Feedback
The correct answer is: hypothesis

Question 19
Incorrect

Mark 0.00 out of 1.00

Flag question

Question text

Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product quality


model and write the letter that corresponds to your answer.
Maturity

Select one:

a. Compatibility

b. Portability

c. Reliability

d. Maintainability

e. Security

f. Functional Suitability

g. Performance Efficiency

h. Usability

Feedback

The correct answer is: Reliability

Question 20
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Companies can freely make their own set of environmental policies without consulting the
workers’ union, or any local or national laws about it.

Select one:

a. False

b. True

Feedback

The correct answer is: False

Question 21
Incorrect

Mark 0.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.
Develop the plan for communication, risk management and budget.

milestone
Answer:

Feedback

The correct answer is: Gantt chart


Question 22
Correct

Mark 1.00 out of 1.00

Flag question

Question text

The Kyoto protocol requires the participation of both industrialized and developing nations
in reducing environmental harm.

Select one:

a. True

b. False

Feedback

The correct answer is: False

Question 23
Incorrect

Mark 0.00 out of 1.00

Flag question

Question text

Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product quality


model and write the letter that corresponds to your answer.
Accessibility

Select one:
a. Security

b. Performance Efficiency

c. Reliability

d. Usability

e. Functional Suitability

f. Compatibility

g. Maintainability

h. Portability

Feedback

The correct answer is: Usability

Question 24
Correct

Mark 1.00 out of 1.00

Flag question

Question text

Risks, which could harm the product’s quality, must be determined and managed well along
with the actions to be taken.

Select one:

a. True

b. False

Feedback
The correct answer is: True

Question 25
Correct

Mark 1.00 out of 1.00

Flag question

Question text

Referring to the figure below, determine if the statement is TRUE or FALSE.

The minutes dated back December 3, 2016 is properly named.


FALSE
Answer:

Feedback

The correct answer is: False

Question 26
Correct

Mark 1.00 out of 1.00


Flag question

Question text

These are developed by industries as a guide for establishments and business enterprises to
conduct their operations in a way that prevents or reduces environmental harm.

Select one:

a. Environmental codes of practice

b. Green clauses

c. Environmental statements

d. Natural methods of waste management

Feedback

The correct answer is: Environmental codes of practice

Question 27
Correct

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
assure that the project schedule is followed strictly.

responsible
Answer:

Feedback

The correct answer is: Responsible

Question 28
Correct

Mark 1.00 out of 1.00

Flag question

Question text

Critical thinking skills is an essential skill which includes listening effectively, adapting
communication skills and understanding underlying issues.

Select one:

a. True

b. False

Feedback

The correct answer is: False

Question 29
Correct

Mark 1.00 out of 1.00


Flag question

Question text

The 5S Method is a Japanese perspective technique developed by Eiichiro Oda.

Select one:

a. False

b. True

Feedback

The correct answer is: False

Question 30
Incorrect

Mark 0.00 out of 1.00

Flag question

Question text

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.

“I find it really enjoying to play XYZ since I can invite my friends from social media profile. It
works well with this social media app!”

Select one:

a. Reliability
b. Functional Stability

c. Maintainability

d. Performance Efficiency

e. Usability

f. Security

g. Portability

h. Compatibility

Feedback

The correct answer is: Compatibility

Question 31
Correct

Mark 1.00 out of 1.00

Flag question

Question text

Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product quality


model and write the letter that corresponds to your answer.
Reusability

Select one:

a. Maintainability

b. Usability

c. Portability
d. Security

e. Reliability

f. Performance Efficiency

g. Functional Suitability

h. Compatibility

Feedback

The correct answer is: Maintainability

Question 32
Correct

Mark 1.00 out of 1.00

Flag question

Question text

True or False: Email, SMS and Gantt chart are samples of communication frequency that you
could utilize.

False
Answer:

Feedback

The correct answer is: False

Question 33
Correct

Mark 1.00 out of 1.00


Flag question

Question text

Environmental issues have no relation to the workplace.

Select one:

a. True

b. False

Feedback

The correct answer is: False

Question 34
Correct

Mark 1.00 out of 1.00

Flag question

Question text

True or False: There are five main elements of a written report – topic, style, structure, facts
and contents.

False
Answer:

Feedback

The correct answer is: False

Question 35
Correct
Mark 1.00 out of 1.00

Flag question

Question text

ergono
Answer factors are concerned whether employees are comfortable, stressed or
possibly be injured due to the arrangement of things in the workplace.

Feedback

The correct answer is: Ergonomic

Question 36
Correct

Mark 1.00 out of 1.00

Flag question

Question text

Decide whether it is a communication instrument or purpose.


A printed progress report to be submitted to the adviser.

INSTRUMENT
Answer:

Feedback

The correct answer is: Instrument

Question 37
Correct

Mark 1.00 out of 1.00


Flag question

Question text

ISO/IEC 25010:2011’s product quality model has eight (8) major characteristics.

Select one:

a. True

b. False

Feedback

The correct answer is: True

Question 38
Correct

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 be
notified that the project proposal has been approved.

INFORM
Answer:

Feedback

The correct answer is: Inform

Question 39
Incorrect

Mark 0.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
complete the user interface design of the student record system.

INFORM
Answer:

Feedback

The correct answer is: Accountable

Question 40
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Enforcing environmental policies is one of the major causes of job loss and unemployment.

Select one:

a. True

b. False

Feedback

The correct answer is: False

Question 41
Correct

Mark 1.00 out of 1.00

Flag question

Question text

Business industries will not be affected by the environmental crisis.

Select one:

a. True

b. False

Feedback
The correct answer is: False

Question 42
Incorrect

Mark 0.00 out of 1.00

Flag question

Question text

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.

“Finally we can play XYZ! Surprising enough, all features and functions are present. It has all
the controls a gamer needs.”

Select one:

a. Functional Stability

b. Portability

c. Usability

d. Performance Efficiency

e. Security

f. Maintainability

g. Compatibility

h. Reliability

Feedback

The correct answer is: Functional Stability


Question 43
Correct

Mark 1.00 out of 1.00

Flag question

Question text

In the 5S method, this stage refers to arranging items in a way that they are easy to find and
pick up.

Select one:

a. Shitsuke

b. Seiketsu

c. Seiri

d. Seiton

Feedback

The correct answer is: Seiton

Question 44
Correct

Mark 1.00 out of 1.00

Flag question

Question text

Quality improvement process is conducted to avoid errors and faults from recurring in the
future.
Select one:

a. False

b. True

Feedback

The correct answer is: True

Question 44
Correct

Mark 1.00 out of 1.00

Flag question

Question text

Quality improvement process is conducted to avoid errors and faults from recurring in the
future.

Select one:

a. False

b. True

Feedback

The correct answer is: True

Question 45
Correct

Mark 1.00 out of 1.00


Flag question

Question text

Seiri is making work easier by reducing unnecessary items to deal with.

Select one:

a. True

b. False

Feedback

The correct answer is: True

Question 46
Correct

Mark 1.00 out of 1.00

Flag question

Question text

Referring to the figure below, determine if the statement is TRUE or FALSE.


The project objectives file follows the standards of naming convention.
FALSE
Answer:

Feedback

The correct answer is: False

Question 47
Correct

Mark 1.00 out of 1.00

Flag question

Question text

Presidential Decree No. 856 is an international treaty that imposes limitations on the
greenhouse gas emissions of several countries.

Select one:

a. True
b. False

Feedback

The correct answer is: False

Question 48
Incorrect

Mark 0.00 out of 1.00

Flag question

Question text

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.

“The app responds quickly! It doesn’t freeze and I can see every move I make.”

Select one:

a. Usability

b. Performance Efficiency

c. Portability

d. Compatibility

e. Functional Stability

f. Maintainability

g. Security

h. Reliability
Feedback

The correct answer is: Performance Efficiency

Question 49
Correct

Mark 1.00 out of 1.00

Flag question

Question text

True or False: To present the results and findings of a research, you can use a bar graph, line
graph or pie chart.

True
Answer:

Feedback

The correct answer is: True

Question 50
Correct

Mark 1.00 out of 1.00

Flag question

Question text

True or False: Research findings are not applicable in developing government policies.
Researchers should be purely academic.

False
Answer:

Feedback
The correct answer is: False

BL-PROG-3111-LAB-1922S
PROGRAMMING JAVA NCIII PART 1

 Dashboard
 My courses
 BL-PROG-3111-LAB-1922S
 Week 17-18: PERFORM COMPUTER OPERATIONS(cont)
 Learning Activity 2

Started on Friday, 22 November 2019, 9:19 PM


State Finished
Completed on Friday, 22 November 2019, 9:19 PM
Time taken 14 secs
Grade 4.00 out of 10.00 (40%)
Question 1
Correct
Mark 1.00 out of 1.00

Flag question

Question text

C++, an extension of the C language, introduced object-oriented programming.

Select one:
a. True
b. False
Feedback

The correct answer is: True

Question 2
Incorrect
Mark 0.00 out of 1.00
Flag question

Question text

If you are confused on what to do, press F2 on your keyboard and the Windows Help
feature will open.

Select one:
a. False
b. True
Feedback

The correct answer is: False

Question 3
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Windows is to Personal Computer (PC) while Mac OSX is to Mac laptops and computers.

Select one:
a. False
b. True
Feedback

The correct answer is: True

Question 4
Not answered
Marked out of 1.00
Flag question

Question text

Answer is the father of computer.

Feedback

The correct answer is: Charles Babbage

Question 5
Not answered
Marked out of 1.00

Flag question

Question text

Refer to the image below and write only the letter of the correct answer in the space
provided.
The monitor suddenly turned black, which port should I check?

Answer:
Feedback

The correct answer is: G

Question 6
Not answered
Marked out of 1.00

Flag question

Question text

Answer are actually a set of computer instructions that are developed using a
programming language.

Feedback

The correct answer is: Computer programs

Question 7
Not answered
Marked out of 1.00

Flag question

Question text

Refer to the image below and write only the letter of the correct answer in the space
provided.
I’ve purchased a modern gaming mouse but it doesn’t have a PS/2 plug. Where I connect it?

Answer:
Feedback

The correct answer is: D

Question 8
Incorrect
Mark 0.00 out of 1.00

Flag question

Question text

Bridget’s mouse is not responding and she has to close her browser. Which of the following
is an alternative way using a keyboard to close an application?

Select one:
a. Ctrl + C
b. Shift + X
c. Esc + 1
d. Alt + F4
Feedback

The correct answer is: Alt + F4

Question 9
Correct
Mark 1.00 out of 1.00

Flag question

Question text

LISP and PROLOG are programming languages that are best used when dealing with
Artificial Intelligence.
Select one:
a. True
b. False
Feedback

The correct answer is: True

Question 10
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Ctrl + S is the shortcut key for Save while Ctrl + S + A is the shortcut key for Save As.

Select one:
a. False
b. True
Feedback

The correct answer is: False

BL-PROG-3111-LAB-1922S
PROGRAMMING JAVA NCIII PART 1

 Dashboard
 My courses
 BL-PROG-3111-LAB-1922S
 Week 17-18: PERFORM COMPUTER OPERATIONS(cont)
 Learning Activity 2

Started on Friday, 22 November 2019, 9:20 PM


State Finished
Completed on Friday, 22 November 2019, 9:22 PM
Time taken 1 min 57 secs
Grade 10.00 out of 10.00 (100%)
Question 1
Correct
Mark 1.00 out of 1.00

Flag question

Question text

C# has features that are directly based on the Short Code.

Select one:
a. False
b. True
Feedback

The correct answer is: False

Question 2
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Arlan right clicked on his taskbar and unchecked the Lock Taskbar. What will happen if he
drags his taskbar to the right side of his screen?

Select one:
a. Start button will be located at the bottom right.
b. Taskbar will display vertically at the right.
c. All icons will transfer to the right.
d. All of the choices
e. None of the choices.
Feedback
The correct answer is: Taskbar will display vertically at the right.

Question 3
Correct
Mark 1.00 out of 1.00

Flag question

Question text

COBOL is the programming language ideally used for _________________________ purposes.

Select one:
a. Internet
b. Systematic
c. Artificial intelligence
d. Business
Feedback

The correct answer is: Business

Question 4
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Since natural languages are vaguely structured, they cannot be used for programming.

Select one:
a. False
b. True
Feedback

The correct answer is: True


Question 5
Correct
Mark 1.00 out of 1.00

Flag question

Question text

COBOL stands for Convenient Business Oriented Language.

Select one:
a. True
b. False
Feedback

The correct answer is: False

Question 6
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Who is the first computer programmer?

Select one:
a. Sir Konrad Zuse
b. Lady Lovelace Ada Augusta
c. Lady Agatha Russell
d. Sir Wilhelm Maximilian Wundt
Feedback

The correct answer is: Lady Lovelace Ada Augusta

Question 7
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Refer to the image below and write only the letter of the correct answer in the space
provided.
The mouse suddenly stopped working. Which port should I check?

B
Answer:
Feedback

The correct answer is: B

Question 8
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Java
Using theAnswer language, you can write windowed applications, build databases, as
well as control handheld devices.

Feedback

The correct answer is: Java

Question 9
Correct
Mark 1.00 out of 1.00

Flag question

Question text

This refers to the process of using programming languages to instruct the computer to
perform specific tasks.

Select one:
a. Troubleshooting
b. Scanning
c. Programming
d. Debugging
Feedback

The correct answer is: Programming

Question 10
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Image files can be opened using MS Paint, Notedpad and Windows Photo Viewer.

Select one:
a. True
b. False
Feedback

The correct answer is: False

BL-PROG-3111-LAB-1922S
PROGRAMMING JAVA NCIII PART 1

 Dashboard
 My courses
 BL-PROG-3111-LAB-1922S
 Week 19: Long Quiz
 Long Quiz

Started on Friday, 22 November 2019, 9:22 PM


State Finished
Completed on Friday, 22 November 2019, 9:25 PM
Time taken 2 mins 57 secs
Grade 18.00 out of 20.00 (90%)
Question 1
Correct
Mark 1.00 out of 1.00

Flag question

Question text

A deleted file or folder found in the Recycle Bin can still be restored.

Select one:
a. False
b. True
Feedback

The correct answer is: True

Question 2
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Refer to the image below to answer the following question. When will the program end?
Select one:
a. When Limit reaches 3.
b. When message is printed.
c. When password is reset.
d. When home page is loaded.
Feedback

The correct answer is: When home page is loaded.

Question 3
Incorrect
Mark 0.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.
Employees for a table name.

Select one:
a. Wrong
b. Correct
Feedback

The correct answer is: Wrong

Question 4
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Programs written in high-level languages are translated into machine-readable form using
interpreters or compilers.

Select one:
a. True
b. False
Feedback

The correct answer is: True

Question 5
Incorrect
Mark 0.00 out of 1.00
Flag question

Question text

Refer to the image below to answer the following question. John tries to log in for the
fourth time, what does he see on his screen?

Select one:
a. Social Media Page
b. Log In Page
c. Password Reset Page
d. Home Page
Feedback
The correct answer is: Password Reset Page

Question 6
Correct
Mark 1.00 out of 1.00

Flag question

Question text

To check if your operating system is up to date, click Start then click Control Panel and
choose _______________.

Select one:
a. Windows Upgrade
b. Windows Update
c. Update Windows
d. Update Drivers
Feedback

The correct answer is: Windows Update

Question 7
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Short C
Answer was the first language implemented for BINAC.

Feedback

The correct answer is: Short Code

Question 8
Correct
Mark 1.00 out of 1.00
Flag question

Question text

high-lev
Answer is a type of programming language that is composed of symbols and words
that follow some rules similar to that of a natural language.

Feedback

The correct answer is: High-level language

Question 9
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Refer to the image below to answer the following question. What will happen if the
username is incorrect but the password given is correct?
Select one:
a. Increase Limit by 1
b. Check if Limit >
c. 3
d. Show Home Page
e. Set Limit to 0
Feedback

The correct answers are: 3, Increase Limit by 1

Question 10
Correct
Mark 1.00 out of 1.00
Flag question

Question text

He is known as the father of the Java programming language.

Select one:
a. J.W. Mauchly
b. Bjarne Stroustrup
c. Dennis Ritchie
d. James Gosling
Feedback

The correct answer is: James Gosling

Question 11
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Refer to the image below and write only the letter of the correct answer in the space
provided.
We were playing games locally and I got disconnected. I think something’s wrong with this
port.

E
Answer:
Feedback

The correct answer is: E

Question 12
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Refer to the image below to answer the following question. What happens when Limit is
equal to 3?
Select one:
a. Program shows the social media home page.
b. Program sets the Limit back to 0.
c. Program prints “Please reset the password.”
d. Program goes back to login page.
Feedback

The correct answer is: Program goes back to login page.

Question 13
Correct
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.
ContactNumber for a column name in the table “Student”.

Select one:
a. Wrong
b. Correct
Feedback

The correct answer is: Correct

Question 14
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Refer to the pseudocode below and answer the following question: If the calculated BMI
results to 26, what will the program do?

Select one:
a. display Overweight
b. display Obese
c. display Underweight
d. display Normal
Feedback

The correct answer is: display Overweight

Question 15
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Refer to the pseudocode below and answer the following question: The program calculated
for the BMI and it is equal to 50, what will the program do?

Select one:
a. Display Underweight.
b. Print Obese.
c. Nothing, it is above 30.
d. Loop the program.
Feedback

The correct answer is: Print Obese.

Question 16
Correct
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. limitIsReached for a Boolean variable.

Select one:
a. Wrong
b. Correct
Feedback

The correct answer is: Correct

Question 17
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Refer to the image below to answer the following question. What type of image is shown?
Select one:
a. Program chart
b. Flow chart
c. Data flow
d. Control flow
Feedback

The correct answer is: Flow chart

Question 18
Correct
Mark 1.00 out of 1.00
Flag question

Question text

Refer to the image below to answer the following question. What type of flowchart symbol
contains the text “Limit >=3?”?

Select one:
a. Decision
b. Flow lines
c. Terminal
d. Connector
Feedback

The correct answer is: Decision

Question 19
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Refer to the image below to answer the following question. What happens every time the
given username and password is incorrect?

Select one:
a. Limit is set to 0.
b. 3 is set as the Limit.
c. 1 is added to Limit.
d. Limit is set to 1.
Feedback

The correct answer is: 1 is added to Limit.

Question 20
Correct
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.
Student.StudentBirthday for a class property.

Select one:
a. Wrong
b. Correct
Feedback

The correct answer is: Wrong

BL-PROG-3111-LAB-1922S
PROGRAMMING JAVA NCIII PART 1

 Dashboard
 My courses
 BL-PROG-3111-LAB-1922S
 Week 7: Learning Activity
 Learning Activity 1
Started on Monday, 25 November 2019, 2:37 PM

State Finished

Completed on Monday, 25 November 2019, 2:41 PM

Time taken 3 mins 36 secs

Grade 8.00 out of 10.00 (80%)

Question 1
Correct

Mark 1.00 out of 1.00

Flag question

Question text

True or False: After finding out what the problem is, it is not time to identify the
fundamental cause of the problem.

True
Answer:

Feedback

The correct answer is: True

Question 2
Correct

Mark 1.00 out of 1.00

Flag question

Question text
In the workplace, ______________ is all about the level of work performance required in
completing a task.

Select one:

a. Values

b. Standard

c. Goal

d. Feedback

Feedback

The correct answer is: Standard

Question 3
Correct

Mark 1.00 out of 1.00

Flag question

Question text

True or False: Treating employees as actual people and making them feel a sense of value
make for a stronger foundation of a company.

True
Answer:

Feedback

The correct answer is: True

Question 4
Correct

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 problems in Materials, Measurement, Method,
People, Equipment or Environment.

One programmer, who is just a recent graduate, was assigned to do a big task. His
colleagues are not aware that he doesn’t have the skills required. This falls underAnswer
people
.

Feedback

The correct answer is: people

Question 5
Correct

Mark 1.00 out of 1.00


Flag question

Question text

True or False: Evaluating the options require determining the advantages and disadvantages
of each option.

True
Answer:

Feedback

The correct answer is: True

Question 6
Incorrect

Mark 0.00 out of 1.00

Flag question

Question text

____________________ standards create honest and healthy interactions in the workplace and
cultivate an atmosphere of respect, trust and honesty among individuals in the company.

Select one:

a. Competency

b. Ethical

c. Quality

d. All of the choices

Feedback
The correct answer is: Ethical

Question 7
Correct

Mark 1.00 out of 1.00

Flag question

Question text

Which among the following advice does NOT help in establishing empathy in
communication?

Select one:

a. Emphasize that you are open to whatever opinion the other person may have.

b. Be patient and match the pace of the other person when communicating.

c. Do not take offense in differences in perspective and reactions.

d. Let the other person explain his/her point, but think only of what you are going to say
next.

Feedback

The correct answer is: Let the other person explain his/her point, but think only of what you
are going to say next.

Question 8
Correct

Mark 1.00 out of 1.00

Flag question
Question text

This practice is a form of self-evaluation, where you think about what you did and learn
what you can from it. It motivates you to do better next time you are faced with the same
situation.

Select one:

a. Safety Programs

b. Quality Control

c. Reflective Behavior

d. Performance Appraisal

Feedback

The correct answer is: Reflective Behavior

Question 9
Incorrect

Mark 0.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 problems in Materials, Measurement, Method,
People, Equipment or Environment.
Due to a tight deadline, the programmers decided to write the code immediately without a
measurement
plan. This cause is classified underAnswer .
Feedback

The correct answer is: method

Question 10
Correct

Mark 1.00 out of 1.00

Flag question

Question text

True or False: According to Hicks, the first step in an effective problem solving process is
clearly defining the problem.

True
Answer:

Feedback

The correct answer is: True


Question 13
Not answered

Marked out of 1.00

Flag question

Question text

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 – like additional characters and skills.”

Select one:

a. Functional Stability

b. Security

c. Usability

d. Maintainability

e. Compatibility

f. Performance Efficiency

g. Portability

h. Reliability

Feedback

The correct answer is: Maintainability

Question 15
Not answered

Marked out of 1.00

Flag question

Question text

AAnswer indicates and lists down the tasks, start date, estimated end or completion
date and the person responsible and accountable for the task. This is prepared to make sure
the implementation is scheduled properly.

Feedback Question 24
Incorrect

Mark 0.00 out of 1.00

Flag question

Question text

True or False: A conceptual research relies on experience and observation and disregards
theories.

True
Answer:

Feedback

The correct answer is: False

ne

Question 29
Not answered

Marked out of 1.00


Flag question

Question text

Presidential Decree No. 856, one of the Philippine environmental laws, is also known as
____________________.

Select one:

a. Code on Sanitation of the Philippines

b. Philippine Environmental Policy

c. Philippine Environment Code

d. National Water and Air Pollution Control Act

Feedback

The correct answer is: Code on Sanitation of the Philippines

Question 50
Not answered

Marked out of 1.00

Flag question

Question text

In the 5S method, this stage refers to arranging items in a way that they are easy to find and
pick up.

Select one:

a. Shitsuke
b. Seiton

c. Seiketsu

d. Seiri

Feedback

The correct answer is: Seiton

BL-PROG-3111-LAB-1922S
PROGRAMMING JAVA NCIII PART 1

 Dashboard
 My courses
 BL-PROG-3111-LAB-1922S
 Week 7: Learning Activity
 Learning Activity 1

Started on Thursday, 28 November 2019, 8:08 AM

State Finished

Completed on Thursday, 28 November 2019, 8:08 AM

Time taken 14 secs

Grade 1.00 out of 10.00 (10%)

Question 1
Not answered

Marked out of 1.00

Flag question
Question text

True or False: Foreign co-workers having conversation issues with everyone in the office are
better left off on their own.

Answer:

Feedback

The correct answer is: False

Question 2
Correct

Mark 1.00 out of 1.00

Flag question

Question text

Effective monitoring can be done through the following, EXCEPT:

Select one:

a. Collecting office records

b. Conducting investigations

c. Carrying out spot checks

d. Completing safety inspections

Feedback

The correct answer is: Collecting office records

Question 3
Not answered

Marked out of 1.00


Flag question

Question text

Which one of the following DO NOT resolve diversity in the workplace?

Select one:

a. Creating a sense of equality by encouraging employees to voice out their opinions.

b. Rewarding only the skilled employees while scolding the other employees who perform
poorly.

c. Involving all employees in the formulation and execution of company programs.

d. Conducting regular trainings to update company policies.

Feedback

The correct answer is: Rewarding only the skilled employees while scolding the other
employees who perform poorly.

Question 4
Not answered

Marked out of 1.00

Flag question

Question text

True or False: You can send the message in whatever format you like, since the receiver can
just try to interpret and understand the message in any way.

Answer:
Feedback

The correct answer is: False

Question 5
Not answered

Marked 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 problems in Materials, Measurement, Method,
People, Equipment or Environment.

The problem identified in the diagram is a buggy javaAnswer .

Feedback

The correct answer is: program


Question 6
Not answered

Marked out of 1.00

Flag question

Question text

This is the method by which a message is conveyed, such as speaking, writing or gesturing.

Select one:

a. Channel

b. Technical

c. Communication

d. Empathy

e. Negotiation

f. Feedback

g. Interpretation

h. Boundaries

i. Active listening

j. Interpersonal

Feedback

The correct answer is: Channel

Question 7
Not answered
Marked out of 1.00

Flag question

Question text

True or False: After finding out what the problem is, it is not time to identify the
fundamental cause of the problem.

Answer:

Feedback

The correct answer is: True

Question 8
Not answered

Marked out of 1.00

Flag question

Question text

____________________ is a formal meeting where people are gathered to discuss topics that
revolve around their same interests.

Select one:

a. Workshop

b. Seminar

c. Concert

d. Conference
Feedback

The correct answer is: Conference

Question 9
Not answered

Marked out of 1.00

Flag question

Question text

Which among the following advice does NOT help in establishing empathy in
communication?

Select one:

a. Emphasize that you are open to whatever opinion the other person may have.

b. Let the other person explain his/her point, but think only of what you are going to say
next.

c. Do not take offense in differences in perspective and reactions.

d. Be patient and match the pace of the other person when communicating.

Feedback

The correct answer is: Let the other person explain his/her point, but think only of what you
are going to say next.

Question 10
Not answered

Marked out of 1.00


Flag question

Question text

True or False: Evaluating the options require determining the advantages and disadvantages
of each option.

Answer:

Feedback

The correct answer is: True

BL-PROG-3111-LAB-1922S
PROGRAMMING JAVA NCIII PART 1

 Dashboard
 My courses
 BL-PROG-3111-LAB-1922S
 Week 7: Learning Activity
 Learning Activity 1

Started on Thursday, 28 November 2019, 8:08 AM

State Finished

Completed on Thursday, 28 November 2019, 8:11 AM

Time taken 2 mins 54 secs

Grade 8.00 out of 10.00 (80%)

Question 1
Correct
Mark 1.00 out of 1.00

Flag question

Question text

This refers to how people make sense of, understand or perceive something.

Select one:

a. Interpretation

b. Interpersonal

c. Empathy

d. Channel

e. Negotiation

f. Active listening

g. Communication

h. Technical

i. Boundaries

j. Feedback

Feedback

The correct answer is: Interpretation

Question 2
Correct

Mark 1.00 out of 1.00


Flag question

Question text

value
Answer covers quality, service and delivery of the goods or services from the vendor
to the client.

Feedback

The correct answer is: Value

Question 3
Correct

Mark 1.00 out of 1.00

Flag question

Question text

True or False: Nowadays, teammates have no need for communications technology since
they can just interact face to face.

False
Answer:

Feedback

The correct answer is: False

Question 4
Incorrect

Mark 0.00 out of 1.00


Flag question

Question text

This is a yearly activity that focuses on evaluating the employees’ work performance and
productivity.

Select one:

a. Safety Programs

b. Reflective Behavior

c. Quality Control

d. Performance Appraisal

Feedback

The correct answer is: Performance Appraisal

Question 5
Correct

Mark 1.00 out of 1.00

Flag question

Question text

It is a meeting where you receive and learn information and training on a specific subject.

Select one:

a. Exhibit
b. Meet and greet

c. Seminar

d. Business meeting

Feedback

The correct answer is: Seminar

Question 6
Correct

Mark 1.00 out of 1.00

Flag question

Question text

Which one of the following practices will result to a proper presentation?

Select one:

a. Using font styles that are readable and Using pictures or images that are of no relevance
to the presentation

b. Using font styles that are readable

c. Using slides with strong shocking background colors

d. Using pictures or images that are of no relevance to the presentation

Feedback

The correct answer is: Using font styles that are readable

Question 7
Correct

Mark 1.00 out of 1.00


Flag question

Question text

True or False: Stick only to technical terms for your presentation. There is no need to give
any simple explanation when you use technical terms.

False
Answer:

Feedback

The correct answer is: False

Question 8
Correct

Mark 1.00 out of 1.00

Flag question

Question text

True or False: In identifying the problem, it should be specific and not broad or vague.

True
Answer:

Feedback

The correct answer is: True

Question 9
Correct

Mark 1.00 out of 1.00


Flag question

Question text

Expertise in using the Internet and Internet-based services, handling computer hardware,
computer operation and maintenance, and troubleshooting computer systems are some
examples of ____________________ skills.

Select one:

a. All of the choices

b. Technical

c. Soft

d. Business

Feedback

The correct answer is: Technical

Question 10
Incorrect

Mark 0.00 out of 1.00

Flag question

Question text

True or False: Version control is done so that the latest version of a file is saved and the
older ones are archived or deleted.

True
Answer:
Feedback

The correct answer is: False

Question 5
Not answered

Marked 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 problems in Materials, Measurement, Method,
People, Equipment or Environment.

When the programmers started writing the code, the customer/client keeps on changing
and adding more requirements. This cause is underAnswer .
When the program was written, some team mates are
talking too loud and distracted the others. This cause is

categorized under _________________.

Some of the programmers were not present during requirements gathering, this cause is classified as a
_________________ problem.

Feedback

The correct answer is: method

Question 7
Not answered

Marked 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 problems in Materials, Measurement, Method,
People, Equipment or Environment.

Some of the programmers were not present during requirements gathering, this cause is
classified as aAnswer problem.
Feedback

The correct answer is: people


Question 40
Not answered

Marked out of 1.00

Flag question

Question text

True or False: Organizational aims are different from the mission statement; they refer to the
results an organization is aspiring for.

Answer:

Feedback

The correct answer is: True

Question 10
Incorrect

Mark 0.00 out of 1.00

Flag question

Question text

ISO/IEC 25010:2011’s SQuaRE stands for System Quality Assurance and Requirements
Evaluation. This standard is used in evaluating the quality of software.

Select one:

a. False

b. True

Feedback
The correct answer is: False

Question 11
Incorrect

Mark 0.00 out of 1.00

Flag question

Question text

Referring to the figure below, determine if the statement is TRUE or FALSE.

The minutes of the meeting for December 1, 2016 is appropriately named.


False
Answer:

Feedback

The correct answer is: True


BL-PROG-3111-LAB-1922S
PROGRAMMING JAVA NCIII PART 1

 Dashboard
 My courses
 BL-PROG-3111-LAB-1922S
 Week 7: Learning Activity
 Learning Activity 1

Started on Thursday, 28 November 2019, 10:29 AM

State Finished

Completed on Thursday, 28 November 2019, 10:31 AM

Time taken 2 mins 8 secs

Grade 8.00 out of 10.00 (80%)

Question 1
Correct

Mark 1.00 out of 1.00

Flag question

Question text

True or False: Communicating with internal and external clients is important for
programmers.

true
Answer:

Feedback

The correct answer is: True

Question 2
Correct

Mark 1.00 out of 1.00

Flag question

Question text

True or False: It is fine to use strong or shocking colors for PowerPoint presentation slides.

False
Answer:

Feedback

The correct answer is: False

Question 3
Correct

Mark 1.00 out of 1.00

Flag question

Question text

Refer to the revision history below and decide whether the statement is TRUE or FALSE.
True or False: Major revisions on progress, budget and risk management were conducted in
the second version of the document.
True
Answer:

Feedback

The correct answer is: True

Question 4
Correct

Mark 1.00 out of 1.00

Flag question

Question text

Effective monitoring can be done through the following, EXCEPT:

Select one:
a. Completing safety inspections

b. Collecting office records

c. Carrying out spot checks

d. Conducting investigations

Feedback

The correct answer is: Collecting office records

Question 5
Correct

Mark 1.00 out of 1.00

Flag question

Question text

True or False: Naming conventions are records of system activities arranged in chronological
order for documentary purposes.

False
Answer:

Feedback

The correct answer is: False

Question 6
Correct

Mark 1.00 out of 1.00

Flag question
Question text

The following are all safety procedures that may be observed by a company, EXCEPT for:

Select one:

a. Having a first aid kit at hand

b. Conducting earthquake drills

c. Using faulty cable wiring all over the place

d. Placing fire extinguishers within the workplace

Feedback

The correct answer is: Using faulty cable wiring all over the place

Question 7
Incorrect

Mark 0.00 out of 1.00

Flag question

Question text

It is a skill which refers willingness to interpret the words and feelings of the source. It is
characterized by open-mindedness.

Select one:

a. Empathy

b. Communication

c. Feedback

d. Technical
e. Channel

f. Negotiation

g. Interpretation

h. Boundaries

i. Interpersonal

j. Active listening

Feedback

The correct answer is: Active listening

Question 8
Correct

Mark 1.00 out of 1.00

Flag question

Question text

Which among the following advice does NOT help in establishing empathy in
communication?

Select one:

a. Do not take offense in differences in perspective and reactions.

b. Emphasize that you are open to whatever opinion the other person may have.

c. Be patient and match the pace of the other person when communicating.

d. Let the other person explain his/her point, but think only of what you are going to say
next.
Feedback

The correct answer is: Let the other person explain his/her point, but think only of what you
are going to say next.

Question 9
Correct

Mark 1.00 out of 1.00

Flag question

Question text

True or False: Ice breaker activities can be related or not to the presentation.

true
Answer:

Feedback

The correct answer is: True

Question 10
Incorrect

Mark 0.00 out of 1.00

Flag question

Question text

The following are what programmers will learn through feedback, EXCEPT:

Select one:

a. That the system or program is lacking in sponsors.


b. That the system or program is easy to use and is user friendly

c. That the system or program is secured

d. That the system or program is accurate and reliable.

Feedback

The correct answer is: That the system or program is lacking in sponsors.

Referring to the figure below, determine if the statement is TRUE or FALSE.

The project objectives file follows the standards of naming convention.

Referring to the figure below, determine if the statement is TRUE or FALSE.


The minutes of the meeting for December 1, 2016 is appropriately named.
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product quality
model and write the letter that corresponds to your answer.
Operability

Select one:
a. Functional Suitability
b. Compatibility
c. Maintainability
d. Reliability
e. Performance Efficiency
f. Security
g. Portability
h. Usability
If you are confused on what to do, press F2 on your keyboard and the Windows Help
feature will open.

Select one:
a. False
b. True
Maria has two printers – Printer Z and Printer A. She set Printer Z as the default printer.
What will happen the next time she prints a document?

Select one:
a. Printer Z is automatically opened.
b. None of the choices
c. Printer Z will print the default document.
d. All of the choices.
e. Printer Z is chosen by default.
Since natural languages are vaguely structured, they cannot be used for programming.

Select one:
a. False
b. True
LISP and PROLOG are programming languages that are best used when dealing with
Artificial Intelligence.

Select one:
a. False
b. True
Who is the first computer programmer?

Select one:
a. Lady Lovelace Ada Augusta
b. Lady Agatha Russell
c. Sir Konrad Zuse
d. Sir Wilhelm Maximilian Wundt
Which of the following statements is TRUE?

Select one:
a. A programming language may have its own area of specialization.
b. Today’s programming languages are all limited in scope and application.
c. Poorly constructed coding statements are acceptable.
d. Natural language can be used in programming.
This refers to the process of using programming languages to instruct the computer to
perform specific tasks.

Select one:
a. Scanning
b. Debugging
c. Programming
d. Troubleshooting
C++, an extension of the C language, introduced object-oriented programming.

Select one:
a. False
b. True
COBOL is the programming language ideally used for _________________________ purposes.

Select one:
a. Systematic
b. Business
c. Internet
d. Artificial intelligence

Using the language, you can write windowed applications, build databases, as well as control
handheld devices. JAVA
BL-PROG-3111-LAB-1922S
PROGRAMMING JAVA NCIII PART 1

 Dashboard
 My courses
 BL-PROG-3111-LAB-1922S
 Week 17-18: PERFORM COMPUTER OPERATIONS(cont)
 Learning Activity 2

Started on Thursday, 28 November 2019, 9:55 PM

State Finished

Completed on Thursday, 28 November 2019, 9:57 PM

Time taken 1 min 43 secs

Grade 10.00 out of 10.00 (100%)

Question 1
Correct

Mark 1.00 out of 1.00

Flag question

Question text

Windows is to Personal Computer (PC) while Mac OSX is to Mac laptops and computers.

Select one:

a. False

b. True

Question 2
Correct
Mark 1.00 out of 1.00

Flag question

Question text

charles
Answer is the father of computer.

Question 3
Correct

Mark 1.00 out of 1.00

Flag question

Question text

Arlan right clicked on his taskbar and unchecked the Lock Taskbar. What will happen if he
drags his taskbar to the right side of his screen?

Select one:

a. Taskbar will display vertically at the right.

b. All icons will transfer to the right.

c. None of the choices.

d. All of the choices

e. Start button will be located at the bottom right.

Question 4
Correct

Mark 1.00 out of 1.00


Flag question

Question text

This type of programming language uses series of 0s and 1s to represent data.

Select one:

a. High-level language

b. Advanced language

c. Machine language

d. Assembly language

Question 5
Correct

Mark 1.00 out of 1.00

Flag question

Question text

Refer to the image below and write only the letter of the correct answer in the space
provided.
I’ve purchased a modern gaming mouse but it doesn’t have a PS/2 plug. Where I connect it?
D
Answer:

Question 6
Correct

Mark 1.00 out of 1.00

Flag question

Question text

Which of the following is not a default margin options when setting up the page for
printing?

Select one:

a. Narrow

b. Normal

c. Wide

d. Regular

Question 7
Correct

Mark 1.00 out of 1.00

Flag question

Question text

The earphones is an example of a _______________, while Internet Explorer is an example of


_______________.
Select one:

a. platform operating system

b. peripheral device, application program

c. hardware, computer user

d. input device, output device

Question 8
Correct

Mark 1.00 out of 1.00

Flag question

Question text

Refer to the image below and write only the letter of the correct answer in the space
provided.
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
Answer:

Question 9
Correct

Mark 1.00 out of 1.00

Flag question

Question text

An operating system has three major components – hardware, application program or


software and the user.

Select one:

a. False

b. True

Question 10
Correct

Mark 1.00 out of 1.00

Flag question

Question text

Bridget’s mouse is not responding and she has to close her browser. Which of the following
is an alternative way using a keyboard to close an application?

Select one:
a. Shift + X

b. Ctrl + C

c. Alt + F4

d. Esc + 1

BL-PROG-3111-LAB-1922S
PROGRAMMING JAVA NCIII PART 1

 Dashboard
 My courses
 BL-PROG-3111-LAB-1922S
 Week 19: Long Quiz
 Long Quiz

Started on Thursday, 28 November 2019, 9:59 PM

State Finished

Completed on Thursday, 28 November 2019, 10:03 PM

Time taken 4 mins 28 secs

Grade 20.00 out of 20.00 (100%)

Question 1
Correct

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. limitIsReached for a Boolean variable.

Select one:

a. Correct

b. Wrong

Question 2
Correct

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.
passingSCORE for a constant variable.

Select one:

a. Wrong

b. Correct

Question 3
Correct

Mark 1.00 out of 1.00

Flag question

Question text
.MPEG, .MP3 and .MOV are filename extensions for videos.

Select one:

a. False

b. True

Question 4
Correct

Mark 1.00 out of 1.00

Flag question

Question text

Who is considered as a user (component of an operating system)?

Select one:

a. All of the choices

b. IT Staff

c. None of the choices

d. Students

e. Programmer

Question 5
Correct

Mark 1.00 out of 1.00


Flag question

Question text

Refer to the image below to answer the following question. What will happen if the
username is incorrect but the password given is correct?

Select one:

a. Set Limit to 0

b. Check if Limit >


c. 3

d. Show Home Page

e. Increase Limit by 1

Question 6
Correct

Mark 1.00 out of 1.00

Flag question

Question text

program
AAnswer is the code or language that allows a user to instruct a computer to perform
specific tasks. programming language

Question 7
Correct

Mark 1.00 out of 1.00

Flag question

Question text

Refer to the image below to answer the following question. What type of flowchart symbol
contains the text “Limit >=3?”?
Select one:

a. Connector

b. Decision

c. Flow lines

d. Terminal

Question 8
Correct

Mark 1.00 out of 1.00


Flag question

Question text

To check if your operating system is up to date, click Start then click Control Panel and
choose _______________.

Select one:

a. Update Windows

b. Windows Upgrade

c. Update Drivers

d. Windows Update

Question 9
Correct

Mark 1.00 out of 1.00

Flag question

Question text

He is known as the father of the Java programming language.

Select one:

a. J.W. Mauchly

b. Dennis Ritchie

c. Bjarne Stroustrup
d. James Gosling

Question 10
Correct

Mark 1.00 out of 1.00

Flag question

Question text

Jamie finished debugging her program. What is the next step she should do?

Select one:

a. Test the Program

b. Documentation

c. Formalize the Solution

d. Design the Program

Question 11
Correct

Mark 1.00 out of 1.00

Flag question

Question text

Refer to the pseudocode below and answer the following question: If the calculated BMI
results to 26, what will the program do?
Select one:

a. display Underweight

b. display Overweight

c. display Normal

d. display Obese

Question 12
Correct

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.
ContactNumber for a column name in the table “Student”.

Select one:

a. Correct

b. Wrong
Question 13
Correct

Mark 1.00 out of 1.00

Flag question

Question text

The set of rules that must be strictly followed when using a programming language is
SYNTA
calledAnswer .SYNTAX

Question 14
Correct

Mark 1.00 out of 1.00

Flag question

Question text

Jet is writing the pseudocode for his program. Which phase of program development life
cycle is he in?

Select one:

a. Documentation

b. Formalize the Solution

c. Test the Program

d. Design the Program

Question 15
Correct
Mark 1.00 out of 1.00

Flag question

Question text

You will find running application programs and process in the Task Manager.

Select one:

a. False

b. True

Question 16
Correct

Mark 1.00 out of 1.00

Flag question

Question text

Short C
Answer was the first language implemented for BINAC. Short Code

Question 17
Correct

Mark 1.00 out of 1.00

Flag question

Question text
A deleted file or folder found in the Recycle Bin can still be restored.

Select one:

a. True

b. False

Question 18
Correct

Mark 1.00 out of 1.00

Flag question

Question text
Refer to the image below to answer the following question. What happens every time the
given username and password is incorrect?

Select one:

a. Limit is set to 0.

b. Limit is set to 1.

c. 1 is added to Limit.

d. 3 is set as the Limit.

Question 19
Correct

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.
Employees for a table name.

Select one:

a. Correct

b. Wrong

Question 20
Correct

Mark 1.00 out of 1.00

Flag question

Question text

Even when you close all running application programs, there are still process running in the
background.

Select one:

a. True

b. False

Question 1
Correct

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 be
told about the students who volunteered to test the student record system.

INFORM
Answer:

BL-PROG-3111-LAB-1922S
PROGRAMMING JAVA NCIII PART 1

 Dashboard
 My courses
 BL-PROG-3111-LAB-1922S
 Week 20: 2nd Quarterly Exam
 2nd Quarter Exam

Started on Thursday, 28 November 2019, 10:30 PM

State Finished

Completed on Thursday, 28 November 2019, 10:37 PM


Time taken 7 mins 26 secs

Marks 49.00/50.00

Grade 9.80 out of 10.00 (98%)

Question 1
Correct

Mark 1.00 out of 1.00

Flag question

Question text

Determine whether the stated person / group is an internal or external stakeholder.


Programmers

internal
Answer:

Question 2
Correct

Mark 1.00 out of 1.00

Flag question

Question text

True or False: Monitoring and evaluating means brainstorming.

False
Answer: False

Question 3
Correct

Mark 1.00 out of 1.00


Flag question

Question text

By default, what ...


::Refer to the image below to answer the following question.
By default, what ...::Refer to the image below to answer the following question.
By default, what is the value of limit?

Select one:

a. 3

b. 2

c. 0

d. 1

Question 4
Correct

Mark 1.00 out of 1.00

Flag question

Question text

True or False: To solve a problem means to know first what the problem is before coming
up with the feasible solutions.

True
Answer: True

Question 5
Correct
Mark 1.00 out of 1.00

Flag question

Question text

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.
“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.”
Select one:

a. Maintainability

b. Security

c. Portability

d. Reliability

e. Usability

f. Functional Stability

g. Performance Efficiency

h. Compatibility

Question 6
Correct

Mark 1.00 out of 1.00


Flag question

Question text

Axel is finally documenting his work. What could he be writing?

Select one:

a. instructions for the users

b. requirements of the program

c. bug reviews and errors

d. system analysis

Question 7
Correct

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.

True
Answer:

Question 8
Correct

Mark 1.00 out of 1.00


Flag question

Question text

Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product quality


model and write the letter that corresponds to your answer.
Capacity

Select one:

a. Reliability

b. Security

c. Compatibility

d. Performance Efficiency

e. Usability

f. Maintainability

g. Portability

h. Functional Suitability

Question 9
Correct

Mark 1.00 out of 1.00

Flag question

Question text
True or False: Feedback is not needed in communication.

False
Answer: False

BL-PROG-3111-LAB-1922S
PROGRAMMING JAVA NCIII PART 1

 Dashboard
 My courses
 BL-PROG-3111-LAB-1922S
 Week 20: 2nd Quarterly Exam
 2nd Quarter Exam

Question 10
Correct

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. Naughty
students who might try to hack the student record system and change the information
saved.
threat
Answer: threat

Question 11
Correct

Mark 1.00 out of 1.00

Flag question

Question text

Machine language and assembly language are collectively referred to as


_________________________.

Select one:

a. High-level language

b. Advanced language

c. Low-level language

d. Average level language

Question 12
Correct

Mark 1.00 out of 1.00

Flag question

Question text

Binary
Machine language is also known asAnswer language. Binary

Question 13
Correct

Mark 1.00 out of 1.00

Flag question

Question text

Determine whether the stated person / group is an internal or external stakeholder.


Students

internal
Answer:

Question 14
Correct

Mark 1.00 out of 1.00

Flag question

Question text

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:

a. Compatibility

b. Security

c. Portability

d. Performance Efficiency
e. Maintainability

f. Usability

g. Reliability

h. Functional Suitability

Question 15
Correct

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 problems in Materials, Measurement, Method,
People, Equipment or Environment.

When the program was written, some team mates are talking too loud and distracted the
Environment
others. This cause is categorized under:Answer .Environment
Question 16
Correct

Mark 1.00 out of 1.00

Flag question

Question text

Refer to the image below and write only the letter of the correct answer in the space
provided.
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?
D
Answer: D

Question 17
Correct

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.

weakness
Answer:

Question 18
Correct

Mark 1.00 out of 1.00

Flag question
Question text milestone

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.

milestone
Answer:

Question 19
Correct

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:

a. Correct

b. Wrong

Question 20
Correct

Mark 1.00 out of 1.00

Flag question

Question text
The first computer concept invented is called _________________________.

Select one:

a. FORTRAN

b. Analytical Engine

c. COBOL

d. PlanKalKul

◄ Previous pageNext page ►

BL-PROG-3111-LAB-1922S
PROGRAMMING JAVA NCIII PART 1

 Dashboard
 My courses
 BL-PROG-3111-LAB-1922S
 Week 20: 2nd Quarterly Exam
 2nd Quarter Exam

Question 21
Correct

Mark 1.00 out of 1.00

Flag question

Question text

True or False: Nothing good ever comes from giving feedback. If anything, anyone who
does give will only get scolded by the boss.
False
Answer: False

Question 22
Correct

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 problems in Materials, Measurement, Method,
People, Equipment or Environment.

When the software used was checked, the project manager discovered that some of the
programmers are using an old version of Java. This cause is categorized underAnswer
Materials
. Materials

Question 23
Correct
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:

a. True

b. False

Question 24
Correct

Mark 1.00 out of 1.00

Flag question

Question text

Monica accidentally unplugged the mouse PS/2 port. What will happen to the mouse
connected thru the universal serial bus port?

Select one:

a. None of the choices.

b. The mouse will be disabled.

c. The mouse will freeze.

d. The mouse will stop working.


e. All of the choices

Question 25
Correct

Mark 1.00 out of 1.00

Flag question

Question text

____________________ in the workplace protection of sensitive business information through


precautionary measures like confidentiality clauses or non-disclosure agreements.

Select one:

a. Confidentiality

b. Secrecy

c. Curiosity

d. Integrity

Question 26
Correct

Mark 1.00 out of 1.00

Flag question

Question text

FormuC
FORTRAN stands forAnswer . Formula Translator

Question 27
Correct

Mark 1.00 out of 1.00

Flag question

Question text

True or False: Listing down the issues related to the problem is second to the last step in an
effective problem solving process.

False
Answer: False

Question 28
Correct

Mark 1.00 out of 1.00

Flag question

Question text

In the correct order, the essential parts of the communication process are:

Select one:

a. Source, Message, Encoding, Channel, Decoding, Receiver, Feedback

b. Source, Message, Encoding, Channel, Receiver, Decoding, Feedback

c. Source, Message, Encoding, Channel, Decoding, Feedback, Receiver

d. Source, Message, Encoding, Receiver, Decoding, Channel, Feedback

Question 29
Correct
Mark 1.00 out of 1.00

Flag question

Question text

A product or service 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. Safety Programs

b. Performance Appraisal

c. Reflective Behavior

d. Quality Control

Question 30
Correct

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. accountable

accountable
Answer: accountable

BL-PROG-3111-LAB-1922S
PROGRAMMING JAVA NCIII PART 1

 Dashboard
 My courses
 BL-PROG-3111-LAB-1922S
 Week 20: 2nd Quarterly Exam
 2nd Quarter Exam

Question 31
Correct

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:

a. email

b. hyperlinks
c. social media

d. speaking

Question 32
Correct

Mark 1.00 out of 1.00

Flag question

Question text

What is the ...


::Refer to the pseudocode below and answer the following question:
What is the ...::Refer to the pseudocode below and answer the following question:
What is the first thing that the program will do?

Select one:

a. ask for BMI

b. print height

c. print BMI

d. ask for height

Question 33
Correct

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.

Gantt chart
Answer: Gantt chart

Question 34
Correct

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.
ComputeTotalScore() for a routine to sum up the scores.

Select one:

a. Wrong

b. Correct

Question 35
Correct

Mark 1.00 out of 1.00

Flag question

Question text

A Gantt chart ...


::Decide whether it is a communication instrument or purpose.
A Gantt chart ...::Decide whether it is a communication instrument or purpose.
A Gantt chart that shows the schedule for the development process of the student record
system.

instrument
Answer:

Question 36
Correct

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. Actions

b. Process

c. Objectives

d. Standard

Question 37
Correct

Mark 1.00 out of 1.00

Flag question

Question text
In adding a new printer, the _____________ will guide you on the steps to be taken.

Select one:

a. Printer Wizard

b. Printer Guide

c. Printer Install

d. Printer Affix

Question 38
Correct

Mark 1.00 out of 1.00

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.

True
Answer:

Question 39
Correct

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.

False
Answer: False

Question 40
Correct

Mark 1.00 out of 1.00

Flag question

Question text

In ____________________, 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. Problem Solving

b. Coaching

c. Mentoring

d. Meeting

◄ Previous page

BL-PROG-3111-LAB-1922S
PROGRAMMING JAVA NCIII PART 1

 Dashboard
 My courses
 BL-PROG-3111-LAB-1922S
 Week 20: 2nd Quarterly Exam
 2nd Quarter Exam

Question 41
Correct

Mark 1.00 out of 1.00

Flag question

Question text

True or False: To establish empathy means to interpret the message received.

False
Answer:

Question 42
Correct

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.

False
Answer: False

Question 43
Correct

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.
Fix bugs and errors detected in the system.

Gantt chart
Answer: Gantt chart

Question 44
Correct

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:

a. True

b. False

Question 45
Correct

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.

True
Answer: True

Question 46
Incorrect

Mark 0.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 be
told about the students who volunteered to test the student record system.

accountable
Answer: accountable

Question 47
Correct

Mark 1.00 out of 1.00


Flag question

Question text

Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product quality


model and write the letter that corresponds to your answer.
Adaptability

Select one:

a. Reliability

b. Security

c. Compatibility

d. Usability

e. Performance Efficiency

f. Maintainability

g. Functional Suitability

h. Portability

Question 48
Correct

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

internal
Answer: internal

Question 49
Correct

Mark 1.00 out of 1.00

Flag question

Question text

Refer to the image below and write only the letter of the correct answer in the space
provided.
I cannot type anything but my mouse is working, I am using a brand new USB keyboard,
which port should I check?
D
Answer: D

Question 50
Correct

Mark 1.00 out of 1.00

Flag question

Question text

Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product quality


model and write the letter that corresponds to your answer.
Integrity

Select one:

a. Security

b. Usability

c. Compatibility

d. Portability

e. Maintainability

f. Functional Suitability

g. Reliability

h. Performance Efficiency

◄ Previous page
BL-PROG-3111-LAB-1922S
PROGRAMMING JAVA NCIII PART 1

 Dashboard
 My courses
 BL-PROG-3111-LAB-1922S
 Week 19: Long Quiz
 Long Quiz

Started on Wednesday, 18 December 2019, 12:13 PM

State Finished

Completed on Wednesday, 18 December 2019, 12:16 PM

Time taken 3 mins 16 secs

Grade 15.00 out of 20.00 (75%)

Question 1
Incorrect

Mark 0.00 out of 1.00

Flag question

Question text

Java is an example of

Select one:

a. Advanced language

b. Low-level language
c. Average level language

d. High-level language

Question 2
Correct

Mark 1.00 out of 1.00

Flag question

Question text

Programs written in high-level languages are translated into machine-readable form using
interpreters or compilers.

Select one:

a. True

b. False

Question 3
Correct

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.
studentAge for a variable name.

Select one:
a. Correct

b. Wrong

Question 4
Correct

Mark 1.00 out of 1.00

Flag question

Question text

Short C
Answer was the first language implemented for BINAC.

Question 5
Correct

Mark 1.00 out of 1.00

Flag question

Question text
Refer to the image below to answer the following question. What happens every time the
given username and password is incorrect?

Select one:

a. Limit is set to 1.

b. 3 is set as the Limit.

c. 1 is added to Limit.

d. Limit is set to 0.

Question 6
Correct

Mark 1.00 out of 1.00


Flag question

Question text

Refer to the image below to answer the following question. When will the program end?

Select one:

a. When home page is loaded.

b. When password is reset.

c. When Limit reaches 3.


d. When message is printed.

Question 7
Correct

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.
Student.StudentBirthday for a class property.

Select one:

a. Correct

b. Wrong

Question 8
Correct

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.
ContactNumber for a column name in the table “Student”.

Select one:
a. Correct

b. Wrong

Question 9
Incorrect

Mark 0.00 out of 1.00

Flag question

Question text

Refer to the image below to answer the following question. What symbol is used to begin
and end the program?
Select one:

a. Connector

b. Decision

c. Flow lines

d. Terminal

Question 10
Incorrect

Mark 0.00 out of 1.00


Flag question

Question text

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?

Select one:

a. Click on the printer icon and press Ctrl + L to show the list.

b. Press the Power button on the printer to restart.

c. Double click on the printer icon and choose Print list.

d. Right click on the printer and choose See what’s printing.

Question 11
Correct

Mark 1.00 out of 1.00

Flag question

Question text

Over time, man’s efforts to find better ways to communicate with computers resulted to the
evolution of programming languages.

Select one:

a. True

b. False

Question 12
Correct

Mark 1.00 out of 1.00

Flag question

Question text

A deleted file or folder found in the Recycle Bin can still be restored.

Select one:

a. True

b. False

Question 13
Correct

Mark 1.00 out of 1.00

Flag question

Question text

He is known as the father of the Java programming language.

Select one:

a. Dennis Ritchie

b. Bjarne Stroustrup

c. James Gosling

d. J.W. Mauchly
Question 14
Correct

Mark 1.00 out of 1.00

Flag question

Question text

.MPEG, .MP3 and .MOV are filename extensions for videos.

Select one:

a. False

b. True

Question 15
Correct

Mark 1.00 out of 1.00

Flag question

Question text

Jamie finished debugging her program. What is the next step she should do?

Select one:

a. Design the Program

b. Formalize the Solution

c. Documentation

d. Test the Program


Question 16
Correct

Mark 1.00 out of 1.00

Flag question

Question text

The set of rules that must be strictly followed when using a programming language is
SYNTA
calledAnswer .

Question 17
Incorrect

Mark 0.00 out of 1.00

Flag question

Question text

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?

Select one:

a. I, IV, II, III, V

b. IV, I, V, III, II
c. III, I, V, IV, II

d. II, III, IV, V, I

Question 18
Correct

Mark 1.00 out of 1.00

Flag question

Question text

Jet is writing the pseudocode for his program. Which phase of program development life
cycle is he in?

Select one:

a. Formalize the Solution

b. Test the Program

c. Design the Program

d. Documentation

Question 19
Correct

Mark 1.00 out of 1.00

Flag question

Question text
Refer to the image below to answer the following question. What process is illustrated in
the diagram?

Select one:

a. Social media login limit.

b. Social media home page.

c. Password reset.

d. Password and username.

Question 20
Not answered

Marked out of 1.00


Flag question

Question text

Refer to the image below and write only the letter of the correct answer in the space
provided.
My headset is working but the microphone is not. Which port should I check?

Answer:
ICT-2300 WORK IMMERSION
Graded Items for College Success
AMALEAKS.BLOGSPOT.COM
Question 1

Correct

Mark 1.00 out of 1.00

Flag question

Question text

If you are concerned about not having enough time to work during school, you may find
________ to be the best solution.

Select one:

a. a summer job

Correct

b. a work-study program

c. an on-campus job

Question 2

Correct

Mark 1.00 out of 1.00

Flag question

Question text
Presenting someone else’s ideas as your own is best defined as
Select one:

a. cheating.

b. attributing.

c. plagiarism.

Correct

Question 3

Correct

Mark 1.00 out of 1.00

Flag question

Question text
If you include quotes in your paper, they

Select one:

a. always need to be cited.

Correct

b. only need to be cited if you use more than 3-4 sentences.

c. should be rewritten in your own words.

Question 4

Correct

Mark 1.00 out of 1.00

Flag question

Question text
A person with good mental health will realize his or her own abilities, can cope with the
normal stresses of life, and

Select one:
a. can maintain a happy countenance.

b. can see the good in every situation.

c. can work productively and fruitfully.

Correct

Question 5

Correct

Mark 1.00 out of 1.00

Flag question

Question text
Using web applications and tools to help you keep track of your sources and create your
citations is

Select one:

a. a good idea.

Correct

b. acceptable as long as you mention the tool in your works cited list.

c. frowned upon by most professors.

Question 6

Correct

Mark 1.00 out of 1.00

Flag question

Question text
Eating a healthy diet can reduce your risk of which of the following?

Select one:

a. heart disease
b. both heart disease and cancer

Correct

c. cancer

Question 7

Correct

Mark 1.00 out of 1.00

Flag question

Question text
Budgets should include

Select one:

a. all of your spending habits.

Correct

b. all expenses that would be considered “wants.”

c. all expenses that are considered “needs.”

Question 8

Correct

Mark 1.00 out of 1.00

Flag question

Question text
What are common signs of depression?

Select one:

a. anger, doubt, resentment, and feelings of disorganization

b. moving slowly, difficulty sleeping, feelings of pessimism. aches and pains

Correct
c. excessive cleaning, excessive exercise, feelings of panic, and feelings of euphoria

Question 9

Correct

Mark 1.00 out of 1.00

Flag question

Question text
If you rewrite a quote in your own words, it

Select one:

a. no longer needs to be cited

b. always need to be cited.

Correct

c. should be cited with you as the author of the new quote.

Question 10

Correct

Mark 1.00 out of 1.00

Flag question

Question text
Taking tests is valuable for which of the following reasons?

Select one:

a. Test taking creates optimal body chemistry which ensures a good grade.

b. Tests apply real-world decision-making skills to the course material.

c. The more often you retrieve information, the more likely you are to retain it for the long
term.

Correct
Question 1

Correct

Mark 1.00 out of 1.00

Flag question

Question text
What are the five steps for choosing a career?

Select one:

a. get to know your goals, get to know your personality, get to know your feelings, get to know
your ambitions, get to know your calling in life

b. get to know your coworkers, get to know your field, make a preliminary career decision,
achieve your career goal, retire

c. get to know yourself, get to know your field, prioritize your “deal makers” and rule out your
“deal breakers,” make a preliminary career decision and create a plan of action, go out and
achieve your career goal

Correct

Question 2

Correct

Mark 1.00 out of 1.00

Flag question

Question text
If you are looking for more information on choosing a major or career path from others who
can best relate to your current situation, you should talk to

Select one:

a. faculty and academic advisors.

b. fellow students and graduating seniors.

Correct
c. professionals in a career center.

Question 3

Correct

Mark 1.00 out of 1.00

Flag question

Question text
Katie is nervous about her upcoming job opportunities and wants to make sure that her
résumé is perfect. What is the best advice for her?

Select one:

a. Use action verbs and phrases.

Correct

b. Let typos remain to show that you’re not too picky or uptight.

c. Put in as many details as possible.

Question 4

Correct

Mark 1.00 out of 1.00

Flag question

Question text
What is the difference between a panel interview and a group interview?

Select one:

a. In a panel interview, the interview takes place over the phone. In a group interview, the
interview takes place in person.

b. In a panel interview, several interviewers meet with one interviewee. In a group interview, one
interviewer presents to several interviewees.

Correct
c. In a panel interview, one interviewer presents to several interviewees. In a group interview,
several interviewers meet with one interviewee.

Question 5

Correct

Mark 1.00 out of 1.00

Flag question

Question text
You are a college-ready student if you have the necessary knowledge, skills, and
professional behaviors to do which of the following?

Select one:

a. earn a certificate or degree in college

Correct

b. write a convincing cover letter and résumé

c. win a debate against your professor

Question 6

Correct

Mark 1.00 out of 1.00

Flag question

Question text
Which of the following are “soft skills”?

Select one:

a. being a good listener, demonstrating common sense, having the ability to work under
pressure

Correct

b. using Adobe Photoshop, operating a buzzsaw, speaking Chinese


c. changing a tire, being detail-oriented, piloting an airplane

Question 7

Correct

Mark 1.00 out of 1.00

Flag question

Question text
Bert works as a cashier in a bookstore for an hourly wage. He likes his work, but he doesn’t
want to be doing the same thing five years from now. On the other hand, Ernie works in a
different bookstore. He started as a cashier and was promoted to a manager. Ernie has been
learning about marketing, and five years from now he hopes to be working on marketing
projects for his current bookstore or perhaps a different bookstore. Which of the following
statements best fits this scenario?

Select one:

a. Both Bert and Ernie have careers.

b. Bert has a career; Ernie has a job.

c. Bert has a job; Ernie has a career.

Correct

Question 8

Correct

Mark 1.00 out of 1.00

Flag question

Question text
Which of the following are transferable skills?

Select one:

a. identifying specific organisms under a microscope

b. accepting constructive criticism


Correct

c. operating a forklift

Question 9

Correct

Mark 1.00 out of 1.00

Flag question

Question text
To be a career-ready person, which of the following must you have?

Select one:

a. a glowing recommendation from your teacher

b. a college degree in a major that applies to your desired field

c. the necessary knowledge and technical skills needed to be employed in your desired field

Correct

Question 10

Correct

Mark 1.00 out of 1.00

Flag question

Question text
Which of the following are examples of “hard skills”?

Select one:

a. sewing a dart in a dress, writing Python code, operating an x-ray machine

Correct

b. working well in a group, exuding confidence, treating others with respect

c. identifying a type of rock, having a good bedside manner, being able to encourage others

BL-HUMSS-2300-LEC-1922S WORK IMMERSION

 Dashboard
 My courses
 BL-HUMSS-2300-LEC-1922S
 Graded Items for College Success
 Q2WW1

Started on Monday, 27
January 2020,
1:13 PM

State Finished

Completed on Monday, 27
January 2020,
1:14 PM

Time taken 56 secs

Grade 10.00 out of 10.00


(100%)

Question 1

Correct

Mark 1.00 out of 1.00

Flag question

Question text
Isabella needs to create a mini-presentation with her group for an advertising campaign
project in her marketing class. What type of learning is she doing?

Select one:
a. active learning

Correct

b. 3 passive learning

c. discussion based learning

Question 2

Correct

Mark 1.00 out of 1.00

Flag question

Question text
Why are academic print resources generally more credible than online sources?

Select one:

a. Print resources include graphics and images instead of hyperlinks, audio, and video.

b. Print resources have been vetted by multiple authors and editors in order to reach
publication.

Correct

c. Print resources are sequentially organized.

Question 3

Correct

Mark 1.00 out of 1.00

Flag question

Question text
Which of the following are diversity and multicultural organizations?

Select one:

a. student government associations, leadership courses and retreats, and social change projects
b. philanthropy, activism, social entrepreneurship, advocacy, and direct service organizations

c. clubs focused on creating diverse, multicultural, and inclusive communities

Correct

Question 4

Correct

Mark 1.00 out of 1.00

Flag question

Question text
Which of the following is a positive effect of participating in diverse groups in an
educational setting?

Select one:

a. You can be comfortable working only with people like yourself.

b. You can perceive in new ways, seeing issues and problems from new angles.

Correct

c. You can be prevented from hearing differing opinions.

Question 5

Correct

Mark 1.00 out of 1.00

Flag question

Question text
Which resource below probably contains the most effective information to to help you write
your paper on death penalty laws in California?

Select one:

a. "How to Stop a Heart" blog post

b. "Polls Show Preference for Death Penalty Alternatives" news article


Correct

c. "Former DA Michael Millman accepts 'Lifetime Achievement Award'" news article

Question 6

Correct

Mark 1.00 out of 1.00

Flag question

Question text
Just one day after computer programming class, Suzanne was surprised to find that, like
most people, she forgot roughly ________ of what she learned in that class session.

Select one:

a. 30%

b. 20%

c. 80%

Correct

Question 7

Correct

Mark 1.00 out of 1.00

Flag question

Question text
What best defines “critical thinking”?

Select one:

a. spending significant amounts of time considering behavior

b. skepticism and examining assumptions

Correct
c. memorizing and repeating information

Question 8

Correct

Mark 1.00 out of 1.00

Flag question

Question text
When studying to remember things, it’s best to think about ________ rather than facts.

Select one:

a. concepts

Correct

b. notecards

c. textbook summaries

Question 9

Correct

Mark 1.00 out of 1.00

Flag question

Question text
Which tool can best enable students to observe and analyze the world or reimagine it in a
way that appeals to them?

Select one:

a. digital camcorders

Correct

b. interactive whiteboards

c. blogs
Question 10

Correct

Mark 1.00 out of 1.00

Flag question

Question text
What type of situation best inspires creativity?

Select one:

a. when there is an invention ahead

b. when there is a problem to solve

Correct

c. when there is a client requesting help

What is meant by the study tip “keep your studying bite-sized”?

Select one:

a. organize your readings and tasks into small chunks that are easy to accomplish

Correct

b. sandwich each big task with two smaller tasks

c. always have some food nearby while studying

Question 2

Correct

Mark 1.00 out of 1.00

Flag question

Question text
Multitasking is best defined as

Select one:
a. performing two or more tasks at the same time

b. taking fifteen-minute breaks between two tasks

c. switching back and forth between two or more tasks quickly

Correct

Question 3

Correct

Mark 1.00 out of 1.00

Flag question

Question text
Good goals should be

Select one:

a. selective, middling, achievable, relaxing, and tenacious.

b. spectacular, magnificent, awe-inspiring, redefining, and tantalizing.

c. specific, measurable, attainable, relevant, and time-bound.

Correct

Question 4

Correct

Mark 1.00 out of 1.00

Flag question

Question text
If you encounter a setback in your academic goals, which of the following should you do?

Select one:

a. keep working hard, try to pay better attention in class, do extra homework
b. define the problem, see how others are dealing with the problem, determine what solutions
exist and what is needed to implement those solutions

Correct

c. ignore the setback and deal with it later

Question 5

Correct

Mark 1.00 out of 1.00

Flag question

Question text
Diane has a goal of becoming fluent in Chinese by the time she graduates with a degree in
linguistics. She has been taking Chinese classes and reading Chinese news websites for two
years in preparation for a study abroad program in Beijing. However, the semester before
she is scheduled to start her study abroad program, the program’s funding is cut, resulting
in the program’s cancellation. Which of the following is the best way for Diane to deal with
this setback?

Select one:

a. She should go on a study abroad program to Japan instead.

b. She should continue her Chinese classes and reading Chinese news sites.

c. She should find a native Chinese speaker to tutor her or possibly even be her roommate.

Correct

Question 6

Correct

Mark 1.00 out of 1.00

Flag question

Question text
Which of the following definitions most closely describes a goal?

Select one:
a. a general ambition for the future

b. a desired result that you envision and then plan and commit to achieve

Correct

c. a hope and dream that is unrealistic

Question 7

Correct

Mark 1.00 out of 1.00

Flag question

Question text
Ideally, family members and friends will help you through college by

Select one:

a. providing distractions from challenging homework.

b. offering support and encouragement to reach your goals.

Correct

c. giving you test answers.

Question 8

Correct

Mark 1.00 out of 1.00

Flag question

Question text
How can students with an “improvisor” time management style overcome their tendency to
procrastinate?

Select one:

a. make plans to organize their time and ask their teachers for help before they fall behind

Correct
b. stop making excuses and pay more attention in class

c. ask their teachers for help and cut out all other activities to focus on class

Question 9

Correct

Mark 1.00 out of 1.00

Flag question

Question text
If your schedule varies from week to week, which of the following is the best option for
managing your time?

Select one:

a. keep track of everything in your head instead of making a schedule

b. create a new schedule each day to account for changes

c. leave space in your schedule to adjust events and reminders as needed

Correct

Question 10

Correct

Mark 1.00 out of 1.00

Flag question

Question text
Which is the best way to become more productive when you are tempted to multitask and
check your social media account while studying?

Select one:

a. Reward yourself with a social media break after every 5-10 minutes of studying.

b. Prioritize your day and focus on getting the least important tasks out of the way in the
beginning.

c. Have set times during the day for checking and responding to online messages.
Correct

Which of the following types of class delivery formats meets in-person the least amount of
time?

Select one:

a. hybrid/blended

Correct

b. web enhanced

c. face-to-face/traditional

Question 2

Correct

Mark 1.00 out of 1.00

Flag question

Question text
Which of the following traits is associated with a successful student?

Select one:

a. avoids socializing

b. stays up late and doesn’t get enough sleep

c. joins a study group or campus organization

Correct

Question 3

Correct

Mark 1.00 out of 1.00

Flag question
Question text
What would you least expect to find in school-wide policies?

Select one:

a. information about degree types and requirements

b. information about admissions and enrollment

c. information about your class reading assignments

Correct

Question 4

Correct

Mark 1.00 out of 1.00

Flag question

Question text
Which of the following is a strategy for achieving success in the classroom?

Select one:

a. attend class without reading the assigned text

b. avoid studying in groups

c. go to office hours and ask your instructor questions

Correct

Question 5

Correct

Mark 1.00 out of 1.00

Flag question

Question text
Which of the following is recommended as a good study habit?
Select one:

a. Keep a regular study schedule.

Correct

b. Copy homework answers from a fellow student.

c. Study in a loud, distracting place.

Question 6

Correct

Mark 1.00 out of 1.00

Flag question

Question text
Self-assessment surveys are useful in helping you evaluate your personal identity and can
help to recommend which of the following?

Select one:

a. roommate compatibility

b. potential career paths

Correct

c. potential life partners

Question 7

Correct

Mark 1.00 out of 1.00

Flag question

Question text
Which term describes your core beliefs and guiding principles that shape the roles you play
in daily life?

Select one:
a. personal values

Correct

b. personality traits

c. self-assessments

Question 8

Correct

Mark 1.00 out of 1.00

Flag question

Question text
Which of the life values self-assessment survey instruments allows you to arrange life values
in order of importance?

Select one:

a. Life Values Assessment

Correct

b. ISEEK Career Cluster Interest Survey

c. Values Clarification Questionnaire

Question 9

Correct

Mark 1.00 out of 1.00

Flag question

Question text
You are interested in identifying careers that might be a good fit for your interests, values,
and skills. Who would you contact?

Select one:

a. a faculty member
b. a transfer counselor

c. a career counselor

Correct

Question 10

Correct

Mark 1.00 out of 1.00

Flag question

Question text
If you need to find resources for your English paper, where should you go for help?

Select one:

a. the tutoring center

b. the reference librarian

Correct

c. the career services center

Which of the following should NOT be included on a résumé?

Select one:

a. volunteer experience

b. job-related skills

c. childhood hobbies

Correct

Question 2

Correct

Mark 1.00 out of 1.00

Flag question
Question text
Which of the following is the first step to preparing for an interview?

Select one:

a. send a thank-you note

b. reread the job posting or description

Correct

c. look up average pay for the position

Question 3

Correct

Mark 1.00 out of 1.00

Flag question

Question text
Which of the following is the most effective response to the interview question “What is
your greatest weakness?”

Select one:

a. “My biggest flaw is that I am a workaholic. I just get really involved in a task and can’t stop
until it is done. I just work, work, work.”

b. “Well, my last boss said I had a problem showing up on time to work.”

c. “In the past I haven’t been great at planning and prioritizing tasks. However, I am taking steps
to fix that by using a planning app and marking deadlines on my calendar.”

Correct

Question 4

Correct

Mark 1.00 out of 1.00

Flag question
Question text
Which of the following will be most beneficial to help you grow your professional network?

Select one:

a. consider getting business cards

b. connect with your parents’ friends as network contacts

Correct

c. update your LinkedIn profile picture every day

Question 5

Correct

Mark 1.00 out of 1.00

Flag question

Question text
Which of the following should a cover letter accomplish?

Select one:

a. explain what you did wrong in your last position that you would like to fix if you get this
position

b. give prospective employers an autobiography, listing every accomplishment from childhood


to the present

c. get the reader’s attention, reflect genuine interest in the position, and explain why you are the
best person for the position

Correct

Question 6

Correct

Mark 1.00 out of 1.00

Flag question
Question text
“Why should we hire you?” “What are your strengths and weaknesses?” “What attracted you
to this company?” These are all examples of

Select one:

a. brainteaser interview questions.

b. basic interview questions.

Correct

c. behavioral interview questions.

Question 7

Correct

Mark 1.00 out of 1.00

Flag question

Question text
Which of the following is the best technique to win a face-to-face interview from a
screening interview?

Select one:

a. compliment the interviewer

b. suggest unfavorable things about the other interviewees

c. try to stand out from the competition

Correct

Question 8

Correct

Mark 1.00 out of 1.00

Flag question
Question text
Which of the following should you AVOID in your cover letter?

Select one:

a. highlights of your skills or accomplishments

b. reasons why you left your last position

Correct

c. information about how you learned about the position or company

Question 9

Correct

Mark 1.00 out of 1.00

Flag question

Question text
Which traits are typical of the exploringstage of career development?

Select one:

a. selecting or entering a field and looking for upward growth

b. identifying your interests and aptitudes and trying out jobs

Correct

c. feeling stagnant and taking stock of where you are and where you want to go

Question 10

Correct

Mark 1.00 out of 1.00

Flag question

Question text
Which of the following should you include on a résumé?
Select one:

a. wage/salary expectations, what you expect from the position

b. education, work experience, relevant skills, contact information

Correct

c. social security number, date of birth, medical conditions

MAHAL KITA KAHIT BAOG KA 😂 -Michyy


AMALEAKS.BLOGSPOT.COM
ICT-2300 GRADE 12 WEEK1-10

1ST QUARTER EXAM ICT2300

1. Defined as “the place where work immersion of students is done".


Workplace Immersion Venue
Answer:

2. A behavior of a single individual or a group that has led to a systematic lack of


productivity, reliability, accountability and a growing sphere of unprofessional/unhealthy
relationships.
Negative work ethic
Answer:

3. The date where Labor Code of the Philippines took effect.


November 1, 1974
Answer:

4. A belief that work, hard work and diligence has a moral benefit and an inherent ability,
virtue or value to strengthen character.
Work ethic
Answer:

5. He states that "what was once understood as the work ethic—not just hard work but also
a set of accompanying virtues, whose crucial role in the development and sustaining of
free markets too few now recall".
Steven Malanga
Answer:

6. He revised the notion of work ethic as a means of management control that delude
workers about the actual reality for accumulated advantage, which is a form of avarice.
Frederick Winslow Taylor
Answer:

7. The normal hours of work of any employee.


Eight
Answer:

8. A written statement of
Resume
your educational and work
experience.
Answer:

9. It is a set of pictures by someone, or photographs of examples of their work, which they


use when entering competitions or applying for work.
Portfolio
Answer:

10. This is the more traditional format of a resume and is flexible and can be used for
applicants with any level of experience.
Reverse-Chronological
Answer:

Production portfolio

11. can also include budget sheets, idea pitches and marketing materials.

Labor Code of the Philippines

12. The governs employment practices and labor relations in the


Philippines.

13. When Labor Code of the Philippines was promulgated?


May 1, 1974
Answer:

14. As for overseas employment of Filipinos, foreign employers are not allowed to directly
hire Philippine nationals except through board and entities authorized by the
Secretary of Labor

15. Under whose regime the Labor Code of the Philippines does took effect?
Ferdinand Marcos
Answer:

1. On job interview, it is important to be aware of any inappropriate slang words or


references to age, race, religion, politics or sexual orientation—these topics could send
you out the door very
T
quickly.
Answer:

2. Functional format is flexible and can be used for applicants with any level of experience.
Chronological
Answer:

4. Negative work ethic is a behavior of a single individual or a group that has led to a
systematic lack of productivity, reliability, accountability and a growing sphere of
unprofessional/unhealthy relationships.
T
Answer:

3. Place the best and most relevant work first and start and finish with strong pieces of work
on your portfolio.

Answer: T

5. During interview, asking question is not wrong because it also gives you the opportunity
to find out if this is the right place for you.
T
Answer:

6. Only include your GPA below 3.0, round up to the first decimal place, and use this
format: GPA: 3.5/4.0.
above
Answer:

7. Having a solid education section doesn’t help you to display the foundation of your
knowledge and expertise.
does
Answer:
8. A portfolio is a set of pictures by someone, or photographs of examples of their work,
which they use when entering competitions or applying for work.
T
Answer:

9. Put your portfolio on a web site if possible as it is so easy to access.


T
Answer:

10. If you are putting on a performance to demonstrate your ability, overconfidence is bad.
T
Answer:

Choose five (5) job interview skills that a person should have.

Select one or more:

a. Appear desperate

b. Use appropriate language

c. Take care to answer the questions

d. Don't talk too much

e. Dress for the job or company


f. Don't be too familiar

g. Don't ask questions

What should the portfolio include? Choose at least 5 from the choices.

Select one or more:

a. Examples of your work with good documentation

b. An index of the contents

c. Your drafts for your report

d. Your key achievements and skills

e. Include a uniform examples of work you have done

f. Curriculum Vitae

g. A profile or personal statement

1. Workplace safety is important.


Select one:

True

False
2. The employer have the right to terminate an employee.

Select one:

True

False
3. The maximum age for employment is 18 years old.

Select one:

True

False
4. Absenteeism increases when effective safety programs are introduced.

Select one:

True

False

5. An employee needs to give respect to the company. That means honesty and integrity.

Select one:

True

False

LONG QUIZ 1 ICT2300

IDENTIFICATION
1.Defined as “the place where work immersion of students is done".
Workplace Immersion Venue
Answer:

IDENTIFICATION
2. A behavior of a single individual or a group that has led to a systematic lack of
productivity, reliability, accountability and a growing sphere of unprofessional/unhealthy
relationships.
Negative work ethic
Answer:

IDENTIFICATION
3. The date where Labor Code of the Philippines took effect.
November 1, 1974
Answer:

IDENTIFICATION
4. A belief that work, hard work and diligence has a moral benefit and an inherent ability,
virtue or value to strengthen character.
Work ethic
Answer:

IDENTIFICATION
5. He states that "what was once understood as the work ethic—not just hard work but also
a set of accompanying virtues, whose crucial role in the development and sustaining of
free markets too few now recall".
Steven Malanga
Answer:

He revised the notion of work ethic as a means of management control that delude workers
about the actual reality for accumulated advantage, which is a form of avarice.
Frederick Winslow Taylor
Answer:

The normal hours of work of any employee.


Eight
Answer:
A written statement of your educational and work experience.
Resume
Answer:

It is a set of pictures by someone, or photographs of examples of their work, which they use
when entering competitions or applying for work.
Portfolio
Answer:

This is the more traditional format of a resume and is flexible and can be used for applicants
with any level of experience.
Reverse-Chronological
Answer:

Under whose regime does the Labor Code of the Philippines took effect?

Select one:

a. Gloria Macapagal-Arroyo

b. Ninoy Aquino

c. Rodrigo Roa Duterte

d. Ferdinand Marcos

The Php 426 combined rate is locally referred to in the Philippines as "____________" due to
this regional disparity.

Select one:

a. Private Rate

b. Manila Rate

c. Public Rate

d. Province Rate
The duty of every employer to give his employees not less than ______ minutes time-off for
their regular meals.

Select one:

a. 40

b. 30

c. 50

d. 60

All employees have the right to have a __________ consecutive hours of rest day after every 6
days of work.

Select one:

a. 48

b. 12

c. 24

d. 6

________________ focuses on your abilities and skills and is more suitable for those with an
expert level of experience.

Select one:

a. Chronological

b. Functional

c. Combination

d. Reverse-Chronological
What should the portfolio include? Choose at least 5 from the choices.

Select one or more:

a. A profile or personal statement

b. Your drafts for your report

c. An index of the contents

d. Your key achievements and skills

e. Include a uniform examples of work you have done

f. Examples of your work with good documentation

g. Curriculum Vitae

QUIZ 1 ICT 2300

A belief that work, hard work and diligence has a moral benefit and an inherent ability,
virtue or value to strengthen character.
= Work ethic

A behavior of a single individual or a group that has led to a systematic lack of productivity,
reliability, accountability and a growing sphere of unprofessional/unhealthy relationships.

= Negative work ethic

He states that "what was once understood as the work ethic—not just hard work but also a
set of accompanying virtues, whose crucial role in the development and sustaining of free
markets too few now recall".

= Steven Malanga

Workplace safety is important.


Select one:

True

False

Absenteeism increases when effective safety programs are introduced.

Select one:

True

False

When does the Labor Code of the Philippines took effect?

= November 1, 1974

An employee needs to give respect to the company. That means honesty and integrity.

Select one:
True

False

Defined as “the place where work immersion of students is done".

= Workplace Immersion Venue

The employer have the right to terminate an employee.

Select one:

True

False

The maximum age for employment is 18 years old and above that age is not allowed.

Select one:

True

False
BL-ICT-2300 SECOND
QUARTERLY EXAM
AMALEAKS.BLOGSPOT.COM
Started on Monday, 13 January 2020, 2:10 PM
State Finished
Completed on Monday, 13 January 2020, 2:33 PM
Time taken 23 mins 44 secs
Grade 50.00 out of 50.00 (100%)
Question 1
Correct
Mark 1.00 out of 1.00

Flag question

Question text

He states that "what was once understood as the work ethic—not just hard work but also a
set of accompanying virtues, whose crucial role in the development and sustaining of free
markets too few now recall".

Steven Malanga
Answer:

Question 2
Correct
Mark 1.00 out of 1.00

Flag question

Question text

The normal hours of work of any employee.


eight
Answer:

Question 3
Correct
Mark 1.00 out of 1.00

Flag question

Question text

During interview, asking question is not wrong because it also gives you the opportunity to
find out if this is the right place for you.

Select one:
True
False
ANSWER: TRUE

Question 4
Correct
Mark 1.00 out of 1.00

Flag question

Question text

On job interview, it is important to be aware of any inappropriate slang words or references


to age, race, religion, politics or sexual orientation—these topics could send you out the
door very quickly.

Select one:
True
False
ANSWER: TRUE

Question 5
Correct
Mark 1.00 out of 1.00
Flag question

Question text

Labor Code of the Philippines


The governs employment practices and labor relations in the
Philippines.

Question 6
Correct
Mark 1.00 out of 1.00

Flag question

Question text

The qualifications summary is a bullet point list (ranging from 4 to 6 points) of your most
outstanding career achievements.

Select one:
True
False
ANSWER: TRUE

Question 7
Correct
Mark 1.00 out of 1.00

Flag question

Question text

24
All employees have the right to have a consecutive hours of rest day after every
6 days of work.
Question 8
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Having a solid education section doesn’t helps to display the foundation of your knowledge
and expertise.

Select one:
True
False
ANSWER: FALSE

Question 9
Correct
Mark 1.00 out of 1.00

Flag question

Question text
60
The duty of every employer to give his employees not less than minutes time-off for
their regular meals.

Question 10
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Credentials are documents that state the abilities and experience of a person and show that
the person is qualified for a particular job or activity.
Select one:
True
False
ANSWER: TRUE

Question 11
Correct
Mark 1.00 out of 1.00

Flag question

Question text

A good portfolio should have an index of the contents.

Select one:
True
False
ANSWER: TRUE

Question 12
Correct
Mark 1.00 out of 1.00

Flag question

Question text

A portfolio is a set of pictures by someone, or photographs of examples of their work, which


they use when entering competitions or applying for work.

Select one:
True
False
ANSWER: TRUE
Question 13
Correct
Mark 1.00 out of 1.00

Flag question

Question text

manila rate
The Php 426 combined rate is locally referred to in the Philippines as "Answer "
due to this regional disparity.

Question 14
Correct
Mark 1.00 out of 1.00

Flag question

Question text

A resume is a written statement of your educational and work experience.

Select one:
True
False
ANSWER: TRUE

Question 15
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Production Portfolio
Answer can also include budget sheets, idea pitches and marketing
materials.
Question 16
Correct
Mark 1.00 out of 1.00

Flag question

Question text

A written statement of your educational and work experience.

Resume
Answer:

Question 17
Correct
Mark 1.00 out of 1.00

Flag question

Question text

When Labor Code of the Philippines was promulgated?

May 1, 1974
Answer:

Question 18
Correct
Mark 1.00 out of 1.00

Flag question

Question text

All items need to be clear and easy to understand.

Select one:
True
False
ANSWER: TRUE

Question 19
Correct
Mark 1.00 out of 1.00

Flag question

Question text

It is important to know what to wear to an interview and to be well-groomed.

Select one:
True
False
ANSWER: TRUE

Question 20
Correct
Mark 1.00 out of 1.00

Flag question

Question text

A resume is a means of not advertising yourself to get a job that you want and will give a
short impression about you to the employers whether you attain their standards or not.

Select one:
True
False
ANSWER: FALSE
Question 21
Correct
Mark 1.00 out of 1.00

Flag question

Question text

The curriculum vitae including your interests and any evidence of project management skills
can be included in a portfolio.

Select one:
True
False
ANSWER: TRUE

Question 22
Correct
Mark 1.00 out of 1.00

Flag question

Question text

It is a set of pictures by someone, or photographs of examples of their work, which they use
when entering competitions or applying for work.

Portfolio
Answer:

Question 23
Correct
Mark 1.00 out of 1.00

Flag question

Question text
As for overseas employment of Filipinos, foreign employers are not allowed to directly hire
Secretary of L
Philippine nationals except through board and entities authorized by theAnswer .
ANSWER: SECRETARY OF LABOR

Question 24
Correct
Mark 1.00 out of 1.00

Flag question

Question text

When creating a portfolio, go for quantity not quality.

Select one:
True
False
ANSWER: FALSE

Question 25
Correct
Mark 1.00 out of 1.00

Flag question

Question text

It is important to bring energy and enthusiasm to the interview and to ask questions and it
is about making a new friend.

Select one:
True
False
ANSWER: FALSE

Question 26
Correct
Mark 1.00 out of 1.00
Flag question

Question text

Personal experience can also be referred as a career objective.

Select one:
True
False
ANSWER: FALSE

Question 27
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Functional format is more suitable for those with an expert level of experience.

Select one:
True
False
ANSWER: TRUE

Question 28
Correct
Mark 1.00 out of 1.00

Flag question

Question text
Combination format is generally reserved for beginners with less experience in a particular
industry.

Select one:
True
False
ANSWER: FALSE

Question 29
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Place the best and most relevant work first and start and finish with strong pieces of work
on your portfolio.

Select one:
True
False
ANSWER: TRUE

Question 30
Correct
Mark 1.00 out of 1.00

Flag question

Question text

A belief that work, hard work and diligence has a moral benefit and an inherent ability,
virtue or value to strengthen character.

Work Ethic
Answer:
Question 31
Correct
Mark 1.00 out of 1.00

Flag question

Question text

He revised the notion of work ethic as a means of management control that delude workers
about the actual reality for accumulated advantage, which is a form of avarice.

Frederick Winslow Taylor


Answer:

Question 32
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Functional format is flexible and can be used for applicants with any level of experience.

Select one:
True
False
ANSWER: FALSE

Question 33
Correct
Mark 1.00 out of 1.00

Flag question

Question text
Overconfidence is not bad if you are putting on a performance to demonstrate your ability.

Select one:
True
False
ANSWER: FALSE

Question 34
Correct
Mark 1.00 out of 1.00

Flag question

Question text

While chronological places emphasis on career progression, a functional format focuses on


your abilities and skills.

Select one:
True
False
ANSWER: TRUE

Question 35
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Remember to list your work experiences in reverse chronological order and only list
experience that is relevant to the job you are applying for.

Select one:
True
False
ANSWER: TRUE
Question 36
Correct
Mark 1.00 out of 1.00

Flag question

Question text

If an item is too large to take to the interview you can bring it to show with close ups to
elicit details.

Select one:
True
False
ANSWER: FALSE

Question 37
Correct
Mark 1.00 out of 1.00

Flag question

Question text

This is the more traditional format of a resume and is flexible and can be used for applicants
with any level of experience.

Reverse-Chronological
Answer:

Question 38
Correct
Mark 1.00 out of 1.00

Flag question

Question text
Chronological format is more of traditional format and is what you are most likely to come
across.

Select one:
True
False
ANSWER: FALSE

Question 39
Correct
Mark 1.00 out of 1.00

Flag question

Question text

The date where Labor Code of the Philippines took effect.

November 1, 1974
Answer:

Question 40
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Include your GPA from 5.0, round up to the first decimal place, and use this format: GPA:
3.5/4.0.

Select one:
True
False
ANSWER: FALSE
Question 41
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Practice good nonverbal communication is one of the necessary skills on job interview.

Select one:
True
False
ANSWER: TRUE

Question 42
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Production portfolios cannot be included such as budget sheets, idea pitches and marketing
materials.

Select one:
True
False
ANSWER: FALSE

Question 43
Correct
Mark 1.00 out of 1.00

Flag question
Question text

Defined as “the place where work immersion of students is done".

Workplace Immersion Venue


Answer:

Question 44
Correct
Mark 1.00 out of 1.00

Flag question

Question text

A combination of both the career objective and qualifications summary.

Professional Profile
Answer:

Question 45
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Professional Profile is also the most flexible of the three styles as it can be formatted as
short paragraph of bullet-point list.

Select one:
True
False
ANSWER: TRUE

Question 46
Correct
Mark 1.00 out of 1.00
Flag question

Question text

Make sure that the portfolio is carefully laid out and in the correct order.

Select one:
True
False
ANSWER: TRUE

Question 47
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Functional Format
focuses on your abilities and skills and is more suitable for those with an
expert level of experience.

Question 48
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Under whose regime the Labor Code of the Philippines does took effect?

Ferdinand Marcos
Answer:

Question 49
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Don’t put your portfolio on a web site if possible as it is so easy to access.

Select one:
True
False
ANSWER: FALSE

Question 50
Correct
Mark 1.00 out of 1.00

Flag question

Question text

A behavior of a single individual or a group that has led to a systematic lack of productivity,
reliability, accountability and a growing sphere of unprofessional/unhealthy relationships.

Negative Work Ethic


Answer:
BL-ICT-2300-LEC-1922S WORK
IMMERSION (SECOND QUARTERLY
EXAMINATION)
Started on Monday, 13 January 2020, 2:10 PM
State Finished
Completed on Monday, 13 January 2020, 2:33 PM
Time taken 23 mins 44 secs
Grade 50.00 out of 50.00 (100%)
Question 1
Correct
Mark 1.00 out of 1.00

Flag question

Question text

He states that "what was once understood as the work ethic—not just hard work but also a
set of accompanying virtues, whose crucial role in the development and sustaining of free
markets too few now recall".

Steven Malanga
Answer:

Question 2
Correct
Mark 1.00 out of 1.00

Flag question

Question text

The normal hours of work of any employee.

eight
Answer:
Question 3
Correct
Mark 1.00 out of 1.00

Flag question

Question text

During interview, asking question is not wrong because it also gives you the opportunity to
find out if this is the right place for you.

Select one:
True
False

Question 4
Correct
Mark 1.00 out of 1.00

Flag question

Question text

On job interview, it is important to be aware of any inappropriate slang words or references


to age, race, religion, politics or sexual orientation—these topics could send you out the
door very quickly.

Select one:
True
False

Question 5
Correct
Mark 1.00 out of 1.00

Flag question
Question text

Labor Code of the Philippines


TheAnswer governs employment practices and labor relations in the
Philippines.

Question 6
Correct
Mark 1.00 out of 1.00

Flag question

Question text

The qualifications summary is a bullet point list (ranging from 4 to 6 points) of your most
outstanding career achievements.

Select one:
True
False

Question 7
Correct
Mark 1.00 out of 1.00

Flag question

Question text

24
All employees have the right to have aAnswer consecutive hours of rest day after
every 6 days of work.

Question 8
Correct
Mark 1.00 out of 1.00

Flag question
Question text

Having a solid education section doesn’t helps to display the foundation of your knowledge
and expertise.

Select one:
True
False

Question 9
Correct
Mark 1.00 out of 1.00

Flag question

Question text

60
The duty of every employer to give his employees not less thanAnswer minutes
time-off for their regular meals.

Question 10
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Credentials are documents that state the abilities and experience of a person and show that
the person is qualified for a particular job or activity.

Select one:
True
False

Question 11
Correct
Mark 1.00 out of 1.00
Flag question

Question text

A good portfolio should have an index of the contents.

Select one:
True
False

Question 12
Correct
Mark 1.00 out of 1.00

Flag question

Question text

A portfolio is a set of pictures by someone, or photographs of examples of their work, which


they use when entering competitions or applying for work.

Select one:
True
False

Question 13
Correct
Mark 1.00 out of 1.00

Flag question

Question text
manila rate
The Php 426 combined rate is locally referred to in the Philippines as "Answer "
due to this regional disparity.

Question 14
Correct
Mark 1.00 out of 1.00

Flag question

Question text

A resume is a written statement of your educational and work experience.

Select one:
True
False

Question 15
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Production Portfolio
Answer can also include budget sheets, idea pitches and marketing
materials.

Question 16
Correct
Mark 1.00 out of 1.00

Flag question

Question text
A written statement of your educational and work experience.

Resume
Answer:

Question 17
Correct
Mark 1.00 out of 1.00

Flag question

Question text

When Labor Code of the Philippines was promulgated?

May 1, 1974
Answer:

Question 18
Correct
Mark 1.00 out of 1.00

Flag question

Question text

All items need to be clear and easy to understand.

Select one:
True
False

Question 19
Correct
Mark 1.00 out of 1.00

Flag question

Question text
It is important to know what to wear to an interview and to be well-groomed.

Select one:
True
False

Question 20
Correct
Mark 1.00 out of 1.00

Flag question

Question text

A resume is a means of not advertising yourself to get a job that you want and will give a
short impression about you to the employers whether you attain their standards or not.

Select one:
True
False

Question 21
Correct
Mark 1.00 out of 1.00

Flag question

Question text

The curriculum vitae including your interests and any evidence of project management skills
can be included in a portfolio.

Select one:
True
False

Question 22
Correct
Mark 1.00 out of 1.00
Flag question

Question text

It is a set of pictures by someone, or photographs of examples of their work, which they use
when entering competitions or applying for work.

Portfolio
Answer:

Question 23
Correct
Mark 1.00 out of 1.00

Flag question

Question text

As for overseas employment of Filipinos, foreign employers are not allowed to directly hire
Secretary of L
Philippine nationals except through board and entities authorized by theAnswer .

Question 24
Correct
Mark 1.00 out of 1.00

Flag question

Question text

When creating a portfolio, go for quantity not quality.

Select one:
True
False

Question 25
Correct
Mark 1.00 out of 1.00

Flag question

Question text

It is important to bring energy and enthusiasm to the interview and to ask questions and it
is about making a new friend.

Select one:
True
False

Question 26
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Personal experience can also be referred as a career objective.

Select one:
True
False

Question 27
Correct
Mark 1.00 out of 1.00

Flag question

Question text
Functional format is more suitable for those with an expert level of experience.

Select one:
True
False

Question 28
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Combination format is generally reserved for beginners with less experience in a particular
industry.

Select one:
True
False

Question 29
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Place the best and most relevant work first and start and finish with strong pieces of work
on your portfolio.

Select one:
True
False

Question 30
Correct
Mark 1.00 out of 1.00
Flag question

Question text

A belief that work, hard work and diligence has a moral benefit and an inherent ability,
virtue or value to strengthen character.

Work Ethic
Answer:

Question 31
Correct
Mark 1.00 out of 1.00

Flag question

Question text

He revised the notion of work ethic as a means of management control that delude workers
about the actual reality for accumulated advantage, which is a form of avarice.

Frederick Winslow Taylor


Answer:

Question 32
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Functional format is flexible and can be used for applicants with any level of experience.

Select one:
True
False
Question 33
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Overconfidence is not bad if you are putting on a performance to demonstrate your ability.

Select one:
True
False

Question 34
Correct
Mark 1.00 out of 1.00

Flag question

Question text

While chronological places emphasis on career progression, a functional format focuses on


your abilities and skills.

Select one:
True
False

Question 35
Correct
Mark 1.00 out of 1.00

Flag question

Question text
Remember to list your work experiences in reverse chronological order and only list
experience that is relevant to the job you are applying for.

Select one:
True
False

Question 36
Correct
Mark 1.00 out of 1.00

Flag question

Question text

If an item is too large to take to the interview you can bring it to show with close ups to
elicit details.

Select one:
True
False

Question 37
Correct
Mark 1.00 out of 1.00

Flag question

Question text

This is the more traditional format of a resume and is flexible and can be used for applicants
with any level of experience.

Reverse-Chronological
Answer:

Question 38
Correct
Mark 1.00 out of 1.00
Flag question

Question text

Chronological format is more of traditional format and is what you are most likely to come
across.

Select one:
True
False

Question 39
Correct
Mark 1.00 out of 1.00

Flag question

Question text

The date where Labor Code of the Philippines took effect.

November 1, 1974
Answer:

Question 40
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Include your GPA from 5.0, round up to the first decimal place, and use this format: GPA:
3.5/4.0.

Select one:
True
False

Question 41
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Practice good nonverbal communication is one of the necessary skills on job interview.

Select one:
True
False

Question 42
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Production portfolios cannot be included such as budget sheets, idea pitches and marketing
materials.

Select one:
True
False

Question 43
Correct
Mark 1.00 out of 1.00
Flag question

Question text

Defined as “the place where work immersion of students is done".

Workplace Immersion Venue


Answer:

Question 44
Correct
Mark 1.00 out of 1.00

Flag question

Question text

A combination of both the career objective and qualifications summary.

Professional Profile
Answer:

Question 45
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Professional Profile is also the most flexible of the three styles as it can be formatted as
short paragraph of bullet-point list.

Select one:
True
False
Question 46
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Make sure that the portfolio is carefully laid out and in the correct order.

Select one:
True
False

Question 47
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Functional Format
Answer focuses on your abilities and skills and is more suitable for those
with an expert level of experience.

Question 48
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Under whose regime the Labor Code of the Philippines does took effect?

Ferdinand Marcos
Answer:
Question 49
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Don’t put your portfolio on a web site if possible as it is so easy to access.

Select one:
True
False

Question 50
Correct
Mark 1.00 out of 1.00

Flag question

Question text

A behavior of a single individual or a group that has led to a systematic lack of productivity,
reliability, accountability and a growing sphere of unprofessional/unhealthy relationships.

Negative Work Ethic


Answer:
BL-ICT-2300-LEC-1922S WORK
IMMERSION (SECOND QUARTERLY
EXAMINATION)
Started on Monday, 13 January 2020, 2:10 PM
State Finished
Completed on Monday, 13 January 2020, 2:33 PM
Time taken 23 mins 44 secs
Grade 50.00 out of 50.00 (100%)
Question 1
Correct
Mark 1.00 out of 1.00

Flag question

Question text

He states that "what was once understood as the work ethic—not just hard work but also a
set of accompanying virtues, whose crucial role in the development and sustaining of free
markets too few now recall".

Steven Malanga
Answer:

Question 2
Correct
Mark 1.00 out of 1.00

Flag question

Question text

The normal hours of work of any employee.

eight
Answer:
Question 3
Correct
Mark 1.00 out of 1.00

Flag question

Question text

During interview, asking question is not wrong because it also gives you the opportunity to
find out if this is the right place for you.

Select one:
True
False
ANSWER: TRUE

Question 4
Correct
Mark 1.00 out of 1.00

Flag question

Question text

On job interview, it is important to be aware of any inappropriate slang words or references


to age, race, religion, politics or sexual orientation—these topics could send you out the
door very quickly.

Select one:
True
False
ANSWER: TRUE

Question 5
Correct
Mark 1.00 out of 1.00
Flag question

Question text

Labor Code of the Philippines


The governs employment practices and labor relations in the
Philippines.

Question 6
Correct
Mark 1.00 out of 1.00

Flag question

Question text

The qualifications summary is a bullet point list (ranging from 4 to 6 points) of your most
outstanding career achievements.

Select one:
True
False
ANSWER: TRUE

Question 7
Correct
Mark 1.00 out of 1.00

Flag question

Question text

24
All employees have the right to have a consecutive hours of rest day after every
6 days of work.
Question 8
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Having a solid education section doesn’t helps to display the foundation of your knowledge
and expertise.

Select one:
True
False
ANSWER: FALSE

Question 9
Correct
Mark 1.00 out of 1.00

Flag question

Question text
60
The duty of every employer to give his employees not less than minutes time-off for
their regular meals.

Question 10
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Credentials are documents that state the abilities and experience of a person and show that
the person is qualified for a particular job or activity.
Select one:
True
False
ANSWER: TRUE

Question 11
Correct
Mark 1.00 out of 1.00

Flag question

Question text

A good portfolio should have an index of the contents.

Select one:
True
False
ANSWER: TRUE

Question 12
Correct
Mark 1.00 out of 1.00

Flag question

Question text

A portfolio is a set of pictures by someone, or photographs of examples of their work, which


they use when entering competitions or applying for work.

Select one:
True
False
ANSWER: TRUE
Question 13
Correct
Mark 1.00 out of 1.00

Flag question

Question text

manila rate
The Php 426 combined rate is locally referred to in the Philippines as "Answer "
due to this regional disparity.

Question 14
Correct
Mark 1.00 out of 1.00

Flag question

Question text

A resume is a written statement of your educational and work experience.

Select one:
True
False
ANSWER: TRUE

Question 15
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Production Portfolio
Answer can also include budget sheets, idea pitches and marketing
materials.
Question 16
Correct
Mark 1.00 out of 1.00

Flag question

Question text

A written statement of your educational and work experience.

Resume
Answer:

Question 17
Correct
Mark 1.00 out of 1.00

Flag question

Question text

When Labor Code of the Philippines was promulgated?

May 1, 1974
Answer:

Question 18
Correct
Mark 1.00 out of 1.00

Flag question

Question text

All items need to be clear and easy to understand.

Select one:
True
False
ANSWER: TRUE

Question 19
Correct
Mark 1.00 out of 1.00

Flag question

Question text

It is important to know what to wear to an interview and to be well-groomed.

Select one:
True
False
ANSWER: TRUE

Question 20
Correct
Mark 1.00 out of 1.00

Flag question

Question text

A resume is a means of not advertising yourself to get a job that you want and will give a
short impression about you to the employers whether you attain their standards or not.

Select one:
True
False
ANSWER: FALSE
Question 21
Correct
Mark 1.00 out of 1.00

Flag question

Question text

The curriculum vitae including your interests and any evidence of project management skills
can be included in a portfolio.

Select one:
True
False
ANSWER: TRUE

Question 22
Correct
Mark 1.00 out of 1.00

Flag question

Question text

It is a set of pictures by someone, or photographs of examples of their work, which they use
when entering competitions or applying for work.

Portfolio
Answer:

Question 23
Correct
Mark 1.00 out of 1.00

Flag question

Question text
As for overseas employment of Filipinos, foreign employers are not allowed to directly hire
Secretary of L
Philippine nationals except through board and entities authorized by theAnswer .
ANSWER: SECRETARY OF LABOR

Question 24
Correct
Mark 1.00 out of 1.00

Flag question

Question text

When creating a portfolio, go for quantity not quality.

Select one:
True
False
ANSWER: FALSE

Question 25
Correct
Mark 1.00 out of 1.00

Flag question

Question text

It is important to bring energy and enthusiasm to the interview and to ask questions and it
is about making a new friend.

Select one:
True
False
ANSWER: FALSE

Question 26
Correct
Mark 1.00 out of 1.00
Flag question

Question text

Personal experience can also be referred as a career objective.

Select one:
True
False
ANSWER: FALSE

Question 27
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Functional format is more suitable for those with an expert level of experience.

Select one:
True
False
ANSWER: TRUE

Question 28
Correct
Mark 1.00 out of 1.00

Flag question

Question text
Combination format is generally reserved for beginners with less experience in a particular
industry.

Select one:
True
False
ANSWER: FALSE

Question 29
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Place the best and most relevant work first and start and finish with strong pieces of work
on your portfolio.

Select one:
True
False
ANSWER: TRUE

Question 30
Correct
Mark 1.00 out of 1.00

Flag question

Question text

A belief that work, hard work and diligence has a moral benefit and an inherent ability,
virtue or value to strengthen character.

Work Ethic
Answer:
Question 31
Correct
Mark 1.00 out of 1.00

Flag question

Question text

He revised the notion of work ethic as a means of management control that delude workers
about the actual reality for accumulated advantage, which is a form of avarice.

Frederick Winslow Taylor


Answer:

Question 32
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Functional format is flexible and can be used for applicants with any level of experience.

Select one:
True
False
ANSWER: FALSE

Question 33
Correct
Mark 1.00 out of 1.00

Flag question

Question text
Overconfidence is not bad if you are putting on a performance to demonstrate your ability.

Select one:
True
False
ANSWER: FALSE

Question 34
Correct
Mark 1.00 out of 1.00

Flag question

Question text

While chronological places emphasis on career progression, a functional format focuses on


your abilities and skills.

Select one:
True
False
ANSWER: TRUE

Question 35
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Remember to list your work experiences in reverse chronological order and only list
experience that is relevant to the job you are applying for.

Select one:
True
False
ANSWER: TRUE
Question 36
Correct
Mark 1.00 out of 1.00

Flag question

Question text

If an item is too large to take to the interview you can bring it to show with close ups to
elicit details.

Select one:
True
False
ANSWER: FALSE

Question 37
Correct
Mark 1.00 out of 1.00

Flag question

Question text

This is the more traditional format of a resume and is flexible and can be used for applicants
with any level of experience.

Reverse-Chronological
Answer:

Question 38
Correct
Mark 1.00 out of 1.00

Flag question

Question text
Chronological format is more of traditional format and is what you are most likely to come
across.

Select one:
True
False
ANSWER: FALSE

Question 39
Correct
Mark 1.00 out of 1.00

Flag question

Question text

The date where Labor Code of the Philippines took effect.

November 1, 1974
Answer:

Question 40
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Include your GPA from 5.0, round up to the first decimal place, and use this format: GPA:
3.5/4.0.

Select one:
True
False
ANSWER: FALSE
Question 41
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Practice good nonverbal communication is one of the necessary skills on job interview.

Select one:
True
False
ANSWER: TRUE

Question 42
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Production portfolios cannot be included such as budget sheets, idea pitches and marketing
materials.

Select one:
True
False
ANSWER: FALSE

Question 43
Correct
Mark 1.00 out of 1.00

Flag question
Question text

Defined as “the place where work immersion of students is done".

Workplace Immersion Venue


Answer:

Question 44
Correct
Mark 1.00 out of 1.00

Flag question

Question text

A combination of both the career objective and qualifications summary.

Professional Profile
Answer:

Question 45
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Professional Profile is also the most flexible of the three styles as it can be formatted as
short paragraph of bullet-point list.

Select one:
True
False
ANSWER: TRUE

Question 46
Correct
Mark 1.00 out of 1.00
Flag question

Question text

Make sure that the portfolio is carefully laid out and in the correct order.

Select one:
True
False
ANSWER: TRUE

Question 47
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Functional Format
focuses on your abilities and skills and is more suitable for those with an
expert level of experience.

Question 48
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Under whose regime the Labor Code of the Philippines does took effect?

Ferdinand Marcos
Answer:

Question 49
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Don’t put your portfolio on a web site if possible as it is so easy to access.

Select one:
True
False
ANSWER: FALSE

Question 50
Correct
Mark 1.00 out of 1.00

Flag question

Question text

A behavior of a single individual or a group that has led to a systematic lack of productivity,
reliability, accountability and a growing sphere of unprofessional/unhealthy relationships.

Negative Work Ethic


Answer:
1ST QUARTER EXAM ICT2300

1. Defined as “the place where work immersion of students is done".

Workplace Immersion Venue


Answer:

2. A behavior of a single individual or a group that has led to a systematic lack of


productivity, reliability, accountability and a growing sphere of unprofessional/unhealthy
relationships.

Negative work ethic


Answer:

3. The date where Labor Code of the Philippines took effect.

November 1, 1974
Answer:

4. A belief that work, hard work and diligence has a moral benefit and an inherent ability,
virtue or value to strengthen character.

Work ethic
Answer:

5. He states that "what was once understood as the work ethic—not just hard work but also
a set of accompanying virtues, whose crucial role in the development and sustaining of free
markets too few now recall".

Steven Malanga
Answer:

6. He revised the notion of work ethic as a means of management control that delude
workers about the actual reality for accumulated advantage, which is a form of avarice.

Frederick Winslow Taylor


Answer:

7. The normal hours of work of any employee.

Eight
Answer:

8. A written statement of your educational and work experience.


Resume
Answer:

9. It is a set of pictures by someone, or photographs of examples of their work, which they


use when entering competitions or applying for work.

Portfolio
Answer:

10. This is the more traditional format of a resume and is flexible and can be used for
applicants with any level of experience.

Reverse-Chronological
Answer:

Production portfolio
11. can also include budget sheets, idea pitches and marketing materials.

Labor Code of the Philippines


12. The governs employment practices and labor relations in the
Philippines.

13. When Labor Code of the Philippines was promulgated?

May 1, 1974
Answer:

14. As for overseas employment of Filipinos, foreign employers are not allowed to directly
hire Philippine nationals except through board and entities authorized by the
Secretary of Labor

15. Under whose regime the Labor Code of the Philippines does took effect?

Ferdinand Marcos
Answer:

1. On job interview, it is important to be aware of any inappropriate slang words or


references to age, race, religion, politics or sexual orientation—these topics could send you
out the door very quickly.
T
Answer:

2. Functional format is flexible and can be used for applicants with any level of experience.

Chronological
Answer:

4. Negative work ethic is a behavior of a single individual or a group that has led to a
systematic lack of productivity, reliability, accountability and a growing sphere of
unprofessional/unhealthy relationships.

T
Answer:

3. Place the best and most relevant work first and start and finish with strong pieces of work
on your portfolio.

Answer: T

5. During interview, asking question is not wrong because it also gives you the opportunity
to find out if this is the right place for you.

T
Answer:

6. Only include your GPA below 3.0, round up to the first decimal place, and use this format:
GPA: 3.5/4.0.

above
Answer:

7. Having a solid education section doesn’t help you to display the foundation of your
knowledge and expertise.

does
Answer:
8. A portfolio is a set of pictures by someone, or photographs of examples of their work,
which they use when entering competitions or applying for work.

T
Answer:
9. Put your portfolio on a web site if possible as it is so easy to access.

T
Answer:

10. If you are putting on a performance to demonstrate your ability, overconfidence is bad.

T
Answer:

Choose five (5) job interview skills that a person should have.

Select one or more:


a. Appear desperate
b. Use appropriate language
c. Take care to answer the questions
d. Don't talk too much
e. Dress for the job or company
f. Don't be too familiar
g. Don't ask questions

What should the portfolio include? Choose at least 5 from the choices.

Select one or more:


a. Examples of your work with good documentation
b. An index of the contents
c. Your drafts for your report
d. Your key achievements and skills

e. Include a uniform examples of work you have done


f. Curriculum Vitae
g. A profile or personal statement

1. Workplace safety is important.

Select one:
True
False
2. The employer have the right to terminate an employee.

Select one:
True
False
3. The maximum age for employment is 18 years old.

Select one:
True
False
4. Absenteeism increases when effective safety programs are introduced.

Select one:
True
False

5. An employee needs to give respect to the company. That means honesty and integrity.

Select one:
True
False
LONG QUIZ 1 ICT2300

IDENTIFICATION
1.Defined as “the place where work immersion of students is done".

Workplace Immersion Venue


Answer:

IDENTIFICATION
2. A behavior of a single individual or a group that has led to a systematic lack of
productivity, reliability, accountability and a growing sphere of unprofessional/unhealthy
relationships.

Negative work ethic


Answer:

IDENTIFICATION
3. The date where Labor Code of the Philippines took effect.

November 1, 1974
Answer:

IDENTIFICATION
4. A belief that work, hard work and diligence has a moral benefit and an inherent ability,
virtue or value to strengthen character.

Work ethic
Answer:

IDENTIFICATION
5. He states that "what was once understood as the work ethic—not just hard work but also
a set of accompanying virtues, whose crucial role in the development and sustaining of free
markets too few now recall".

Steven Malanga
Answer:

He revised the notion of work ethic as a means of management control that delude workers
about the actual reality for accumulated advantage, which is a form of avarice.

Frederick Winslow Taylor


Answer:
The normal hours of work of any employee.

Eight
Answer:

A written statement of your educational and work experience.

Resume
Answer:

It is a set of pictures by someone, or photographs of examples of their work, which they use
when entering competitions or applying for work.

Portfolio
Answer:

This is the more traditional format of a resume and is flexible and can be used for applicants
with any level of experience.

Reverse-Chronological
Answer:

Under whose regime does the Labor Code of the Philippines took effect?

Select one:
a. Gloria Macapagal-Arroyo
b. Ninoy Aquino
c. Rodrigo Roa Duterte
d. Ferdinand Marcos

The Php 426 combined rate is locally referred to in the Philippines as "____________" due to
this regional disparity.

Select one:
a. Private Rate
b. Manila Rate
c. Public Rate
d. Province Rate

The duty of every employer to give his employees not less than ______ minutes time-off for
their regular meals.
Select one:
a. 40
b. 30
c. 50
d. 60

All employees have the right to have a __________ consecutive hours of rest day after every 6
days of work.

Select one:
a. 48
b. 12
c. 24
d. 6

________________ focuses on your abilities and skills and is more suitable for those with an
expert level of experience.

Select one:
a. Chronological
b. Functional
c. Combination
d. Reverse-Chronological

What should the portfolio include? Choose at least 5 from the choices.
Select one or more:
a. A profile or personal statement
b. Your drafts for your report
c. An index of the contents
d. Your key achievements and skills

e. Include a uniform examples of work you have done

f. Examples of your work with good documentation


g. Curriculum Vitae

QUIZ 1 ICT 2300

A belief that work, hard work and diligence has a moral benefit and an inherent ability,
virtue or value to strengthen character.
= Work ethic

A behavior of a single individual or a group that has led to a systematic lack of productivity,
reliability, accountability and a growing sphere of unprofessional/unhealthy relationships.

= Negative work ethic

He states that "what was once understood as the work ethic—not just hard work but also a
set of accompanying virtues, whose crucial role in the development and sustaining of free
markets too few now recall".

= Steven Malanga

Workplace safety is important.

Select one:
True
False

Absenteeism increases when effective safety programs are introduced.

Select one:
True
False

When does the Labor Code of the Philippines took effect?

= November 1, 1974

An employee needs to give respect to the company. That means honesty and integrity.

Select one:
True
False

Defined as “the place where work immersion of students is done".

= Workplace Immersion Venue

The employer have the right to terminate an employee.

Select one:
True
False

The maximum age for employment is 18 years old and above that age is not allowed.

Select one:
True
False
A resume is a written statement of your educational and work experience.

Select one:

True

False

When Labor Code of the Philippines was promulgated?

May 1, 1974
Answer:

During interview, asking question is not wrong because it also gives you the opportunity to find out if
this is the right place for you.

Select one:

True

False

A written statement of your educational and work experience.

Resume
Answer:

A good portfolio should have an index of the contents.

Select one:

True

False

Functional format is flexible and can be used for applicants with any level of experience.

Select one:
True

False

It is important to know what to wear to an interview and to be well-groomed.

Select one:

True

False

A behavior of a single individual or a group that has led to a systematic lack of productivity, reliability,
accountability and a growing sphere of unprofessional/unhealthy relationships.

Negative work ethic


Answer:

Make sure that the portfolio is carefully laid out and in the correct order.

Select one:

True

False

The date where Labor Code of the Philippines took effect.

November 1, 1974
Answer:

Labor Code of the Philippines


The governs employment practices and labor relations in the Philippines.
The normal hours of work of any employee.

Eight
Answer:

Having a solid education section doesn’t helps to display the foundation of your knowledge and
expertise.

Select one:

True

False

Twenty-four
All employees have the right to have a consecutive hours of rest day after every 6 days of
work.

Overconfidence is not bad if you are putting on a performance to demonstrate your ability.

Select one:

True

False

A portfolio is a set of pictures by someone, or photographs of examples of their work, which they use
when entering competitions or applying for work.

Select one:

True
False

When creating a portfolio, go for quantity not quality.

Select one:

True

False

Sixty
The duty of every employer to give his employees not less thar minutes time-off for their
regular meals.

A belief that work, hard work and diligence has a moral benefit and an inherent ability, virtue or value to
strengthen character.

Work ethic
Answer:

Production portfolios cannot be included such as budget sheets, idea pitches and marketing materials.

Select one:

True

False

If an item is too large to take to the interview you can bring it to show with close ups to elicit details.

Select one:

True

False
Under whose regime the Labor Code of the Philippines does took effect?

Ferdinand Marcos
Answer:

Practice good nonverbal communication is one of the necessary skills on job interview.

Select one:

True

False

This is the more traditional format of a resume and is flexible and can be used for applicants with any
level of experience.

Reverse-Chronological
Answer:

Chronological format is more of traditional format and is what you are most likely to come across.

Select one:

True

False

The curriculum vitae including your interests and any evidence of project management skills can be
included in a portfolio.

Select one:

True

False
Place the best and most relevant work first and start and finish with strong pieces of work on your
portfolio.

Select one:

True

False

Credentials are documents that state the abilities and experience of a person and show that the person
is qualified for a particular job or activity.

Select one:

True

False

As for overseas employment of Filipinos, foreign employers are not allowed to directly hire Philippine
Secretary of L
nationals except through board and entities authorized by the .

A resume is a means of not advertising yourself to get a job that you want and will give a short
impression about you to the employers whether you attain their standards or not.

Select one:

True

False

Don’t put your portfolio on a web site if possible as it is so easy to access.

Select one:

True

False
He states that "what was once understood as the work ethic—not just hard work but also a set of
accompanying virtues, whose crucial role in the development and sustaining of free markets too few
now recall".

Steven Malanga
Answer:

The qualifications summary is a bullet point list (ranging from 4 to 6 points) of your most outstanding
career achievements.

Select one:

True

False

Combination format is generally reserved for beginners with less experience in a particular industry.

Select one:

True

False

- Production portfolio

can also include budget sheets, idea pitches and marketing materials.

While chronological places emphasis on career progression, a functional format focuses on your abilities
and skills.

Select one:

True

False
Defined as “the place where work immersion of students is done".

Workplace Immersion Venue


Answer:

Remember to list your work experiences in reverse chronological order and only list experience that is
relevant to the job you are applying for.

Select one:

True

False

Manila Rate
The Php 426 combined rate is locally referred to in the Philippines as " " due to this
regional disparity.

It is a set of pictures by someone, or photographs of examples of their work, which they use when
entering competitions or applying for work.

Portfolio
Answer:

Personal experience can also be referred as a career objective.

Select one:

True

False

All items need to be clear and easy to understand.

Select one:
True

False

Functional format

focuses on your abilities and skills and is more suitable for those with an expert level of experience.

It is important to bring energy and enthusiasm to the interview and to ask questions and it is about
making a new friend.

Select one:

True

False

Professional Profile is also the most flexible of the three styles as it can be formatted as short paragraph
of bullet-point list.

Select one:

True

False

Include your GPA from 5.0, round up to the first decimal place, and use this format: GPA: 3.5/4.0.

Select one:

True

False
A combination of both the career objective and qualifications summary.

Professional Profile
Answer:

He revised the notion of work ethic as a means of management control that delude workers about the
actual reality for accumulated advantage, which is a form of avarice.

Frederick Winslow Taylor


Answer:

Functional format is more suitable for those with an expert level of experience.

Select one:

True

False

On job interview, it is important to be aware of any inappropriate slang words or references to age,
race, religion, politics or sexual orientation—these topics could send you out the door very quickly.

Select one:

True

False
Grade 12 BL ICT

Defined as “the place where work immersion of students is done".

Workplace Immersion Venue


Answer:

Question 2
Correct
Mark 1.00 out of 1.00

Flag question

Question text

A behavior of a single individual or a group that has led to a systematic lack of productivity,
reliability, accountability and a growing sphere of unprofessional/unhealthy relationships.

Negative Work Ethic


Answer:

Question 3
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Workplace safety is important.

Select one:
True
False

Question 4
Correct
Mark 1.00 out of 1.00
Flag question

Question text

The employer have the right to terminate an employee.

Select one:
True
False

Question 5
Correct
Mark 1.00 out of 1.00

Flag question

Question text

When does the Labor Code of the Philippines took effect?

November 1, 1974
Answer:

Question 6
Correct
Mark 1.00 out of 1.00

Flag question

Question text

The maximum age for employment is 18 years old and above that age is not allowed.

Select one:
True
False
Question 7
Correct
Mark 1.00 out of 1.00

Flag question

Question text

A belief that work, hard work and diligence has a moral benefit and an inherent ability,
virtue or value to strengthen character.

Work Ethic
Answer:

Question 8
Correct
Mark 1.00 out of 1.00

Flag question

Question text

He states that "what was once understood as the work ethic—not just hard work but also a
set of accompanying virtues, whose crucial role in the development and sustaining of free
markets too few now recall".

Steven Malanga
Answer:

Question 9
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Absenteeism increases when effective safety programs are introduced.


Select one:
True
False

Question 10
Correct
Mark 1.00 out of 1.00

Flag question

Question text

An employee needs to give respect to the company. That means honesty and integrity.

Select one:
True
False
ICT
IMMERSION
SUBJECT
WEEK 1-10
Defined as “the place where work immersion of students is done".

Answer:
Feedback

The correct answer is: Workplace Immersion Venue

Question 2
Correct
Mark 1.00 out of 1.00

Flag question

Question text
Absenteeism increases when effective safety programs are introduced.

Select one:
True
False
Feedback

The correct answer is 'False'.

Question 3
Correct
Mark 1.00 out of 1.00

Flag question

Question text

The employer have the right to terminate an employee.

Select one:
True
False
Feedback

The correct answer is 'True'.

Question 4
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Workplace safety is important.

Select one:
True
False
Feedback

The correct answer is 'True'.

Question 5
Correct
Mark 1.00 out of 1.00

Flag question

Question text

An employee needs to give respect to the company. That means honesty and integrity.

Select one:
True
False
Feedback

The correct answer is 'True'.

Question 6
Correct
Mark 1.00 out of 1.00

Flag question

Question text

He states that "what was once understood as the work ethic—not just hard work but also a
set of accompanying virtues, whose crucial role in the development and sustaining of free
markets too few now recall".

Steven Malanga
Answer:
Feedback

The correct answer is: Steven Malanga

Question 7
Correct
Mark 1.00 out of 1.00

Flag question

Question text

A behavior of a single individual or a group that has led to a systematic lack of productivity,
reliability, accountability and a growing sphere of unprofessional/unhealthy relationships.

negative work ethic


Answer:
Feedback

The correct answer is: Negative work ethic

Question 8
Correct
Mark 1.00 out of 1.00

Flag question

Question text

A belief that work, hard work and diligence has a moral benefit and an inherent ability,
virtue or value to strengthen character.

Work ethic
Answer:
Feedback

The correct answer is: Work ethic

Question 9
Correct
Mark 1.00 out of 1.00
Flag question

Question text

When does the Labor Code of the Philippines took effect?

November 1, 1974
Answer:
Feedback

The correct answer is: November 1, 1974

Question 10
Correct
Mark 1.00 out of 1.00

Flag question

Question text

The maximum age for employment is 18 years old and above that age is not allowed.

Select one:
True
False
Feedback

The correct answer is 'False'.

IDENTIFICATION
1.Defined as “the place where work immersion of students is done".

Workplace Immersion Venue


Answer:
Feedback

The correct answer is: Workplace Immersion Venue

Question 2
Correct
Mark 1.00 out of 1.00

Flag question

Question text

IDENTIFICATION
2. A behavior of a single individual or a group that has led to a systematic lack of
productivity, reliability, accountability and a growing sphere of unprofessional/unhealthy
relationships.

Negative Work Ethic


Answer:
Feedback

The correct answer is: Negative Work Ethic

Question 3
Correct
Mark 1.00 out of 1.00

Flag question

Question text

IDENTIFICATION
3. The date where Labor Code of the Philippines took effect.

November 1, 1974
Answer:
Feedback

The correct answer is: November 1, 1974

Question 4
Correct
Mark 1.00 out of 1.00
Flag question

Question text

IDENTIFICATION
4. A belief that work, hard work and diligence has a moral benefit and an inherent ability,
virtue or value to strengthen character.

Work Ethic
Answer:
Feedback

The correct answer is: Work Ethic

Question 5
Correct
Mark 1.00 out of 1.00

Flag question

Question text

IDENTIFICATION
5. He states that "what was once understood as the work ethic—not just hard work but also
a set of accompanying virtues, whose crucial role in the development and sustaining of free
markets too few now recall".

Steven Malanga
Answer:
Feedback

The correct answer is: Steven Malanga

Question 6
Correct
Mark 1.00 out of 1.00
Flag question

Question text

He revised the notion of work ethic as a means of management control that delude workers
about the actual reality for accumulated advantage, which is a form of avarice.

Frederick Winslow Taylor


Answer:
Feedback

The correct answer is: Frederick Winslow Taylor

Question 7
Correct
Mark 1.00 out of 1.00

Flag question

Question text

The normal hours of work of any employee.

Eight
Answer:
Feedback

The correct answer is: Eight

Question 8
Correct
Mark 1.00 out of 1.00

Flag question

Question text
A written statement of your educational and work experience.

Resume
Answer:
Feedback

The correct answer is: Resume

Question 9
Correct
Mark 1.00 out of 1.00

Flag question

Question text

It is a set of pictures by someone, or photographs of examples of their work, which they use
when entering competitions or applying for work.

Portfolio
Answer:
Feedback

The correct answer is: Portfolio

Question 10
Correct
Mark 1.00 out of 1.00

Flag question

Question text

This is the more traditional format of a resume and is flexible and can be used for applicants
with any level of experience.

Reverse-Chronological
Answer:
Feedback

The correct answer is: Reverse-Chronological


Question 11
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Under whose regime does the Labor Code of the Philippines took effect?

Select one:
a. Rodrigo Roa Duterte
b. Ferdinand Marcos
c. Ninoy Aquino
d. Gloria Macapagal-Arroyo
Feedback

Your answer is correct.


The correct answer is: Ferdinand Marcos

Question 12
Correct
Mark 1.00 out of 1.00

Flag question

Question text

The Php 426 combined rate is locally referred to in the Philippines as "____________" due to
this regional disparity.

Select one:
a. Manila Rate
b. Province Rate
c. Private Rate
d. Public Rate
Feedback

Your answer is correct.


The correct answer is: Manila Rate

Question 13
Correct
Mark 1.00 out of 1.00

Flag question

Question text

The duty of every employer to give his employees not less than ______ minutes time-off for
their regular meals.

Select one:
a. 50
b. 30
c. 60
d. 40
Feedback

Your answer is correct.


The correct answer is: 60

Question 14
Correct
Mark 1.00 out of 1.00

Flag question

Question text

All employees have the right to have a __________ consecutive hours of rest day after every 6
days of work.

Select one:
a. 48
b. 6
c. 12
d. 24
Feedback

Your answer is correct.


The correct answer is: 24

Question 15
Correct
Mark 1.00 out of 1.00

Flag question

Question text

________________ focuses on your abilities and skills and is more suitable for those with an
expert level of experience.

Select one:
a. Combination
b. Reverse-Chronological
c. Functional
d. Chronological
Feedback

Your answer is correct.


The correct answer is: Functional

Question 16
Correct
Mark 5.00 out of 5.00

Flag question
Question text

What should the portfolio include? Choose at least 5 from the choices.

Select one or more:


a. Your key achievements and skills

b. Examples of your work with good documentation


c. Your drafts for your report
d. Curriculum Vitae
e. Include a uniform examples of work you have done

f. A profile or personal statement


g. An index of the contents
Feedback

Your answer is correct.


The correct answers are: An index of the contents, Your key achievements and skills

, Curriculum Vitae, A profile or personal statement, Examples of your work with good
documentation

4. Negative work ethic is a behavior of a single individual or a group that has led to a
systematic lack of productivity, reliability, accountability and a growing sphere of
unprofessional/unhealthy relationships.
T
Answer:

Feedback

The correct answer is: T

Question 2
Correct

Mark 1.00 out of 1.00


Flag question

Question text

Labor Code of the Philippines


12. TheAnswer governs employment practices and labor relations in
the Philippines.
Feedback

The correct answer is: Labor Code of the Philippines

Question 3
Correct

Mark 2.00 out of 2.00

Flag question

Question text

10. If you are putting on a performance to demonstrate your ability, overconfidence is bad.
T
Answer:

Feedback

The correct answer is: T

Question 4
Correct

Mark 1.00 out of 1.00

Flag question
Question text

6. He revised the notion of work ethic as a means of management control that delude
workers about the actual reality for accumulated advantage, which is a form of avarice.
Frederick Winslow Taylor
Answer:

Feedback

The correct answer is: Frederick Winslow Taylor

Question 5
Correct

Mark 2.00 out of 2.00

Flag question

Question text

5. During interview, asking question is not wrong because it also gives you the opportunity
to find out if this is the right place for you.

T
Answer:

Feedback

The correct answer is: T

Question 6
Correct

Mark 1.00 out of 1.00

Flag question
Question text

3. The date where Labor Code of the Philippines took effect.


November 1, 1974
Answer:

Feedback

The correct answer is: November 1, 1974

Question 7
Correct

Mark 1.00 out of 1.00

Flag question

Question text

3. The maximum age for employment is 18 years old.


Select one:

True

False

Feedback

minimum
The correct answer is 'False'.

Question 8
Correct

Mark 1.00 out of 1.00

Flag question
Question text

13. When Labor Code of the Philippines was promulgated?


May 1, 1974
Answer:

Feedback

The correct answer is: May 1, 1974

Question 9
Correct

Mark 2.00 out of 2.00

Flag question

Question text

1. On job interview, it is important to be aware of any inappropriate slang words or


references to age, race, religion, politics or sexual orientation—these topics could send you
out the door very quickly.
T
Answer:

Feedback

The correct answer is: T

Question 10
Correct

Mark 1.00 out of 1.00

Flag question

Question text

2. The employer have the right to terminate an employee.


Select one:

True

False

Feedback

The correct answer is 'True'.

Question 11
Correct

Mark 1.00 out of 1.00

Flag question

Question text

2. A behavior of a single individual or a group that has led to a systematic lack of


productivity, reliability, accountability and a growing sphere of unprofessional/unhealthy
relationships.
Negative Work Ethic
Answer:

Feedback

The correct answer is: Negative Work Ethic

Question 12
Correct

Mark 2.00 out of 2.00

Flag question

Question text
8. A portfolio is a set of pictures by someone, or photographs of examples of their work,
which they use when entering competitions or applying for work.
T
Answer:

Feedback

The correct answer is: T

Question 13
Correct

Mark 1.00 out of 1.00

Flag question

Question text

1. Defined as “the place where work immersion of students is done".


Workplace Immersion Venue
Answer:

Feedback

The correct answer is: Workplace Immersion Venue

Question 14
Correct

Mark 1.00 out of 1.00

Flag question

Question text

10. This is the more traditional format of a resume and is flexible and can be used for
applicants with any level of experience.
Reverse-Chronological
Answer:
Feedback

The correct answer is: Reverse-Chronological

Question 15
Correct

Mark 2.00 out of 2.00

Flag question

Question text

2. Functional format is flexible and can be used for applicants with any level of experience.
Chronological
Answer:

Feedback

The correct answer is: Chronological

Question 16
Correct

Mark 1.00 out of 1.00

Flag question

Question text

5. He states that "what was once understood as the work ethic—not just hard work but also
a set of accompanying virtues, whose crucial role in the development and sustaining of free
markets too few now recall".
Steven Malanga
Answer:

Feedback

The correct answer is: Steven Malanga


Question 17
Correct

Mark 1.00 out of 1.00

Flag question

Question text

5. An employee needs to give respect to the company. That means honesty and integrity.
Select one:

True

False

Feedback

The correct answer is 'True'.

Question 18
Correct

Mark 2.00 out of 2.00

Flag question

Question text

3. Place the best and most relevant work first and start and finish with strong pieces of work
on your portfolio.
T
Answer:

Feedback

The correct answer is: T


Question 19
Correct

Mark 5.00 out of 5.00

Flag question

Question text

Choose five (5) job interview skills that a person should have.
Select one or more:

a. Dress for the job or company

b. Use appropriate language

c. Don't be too familiar

d. Appear desperate

e. Don't talk too much

f. Take care to answer the questions

g. Don't ask questions

Feedback

Your answer is correct.

The correct answers are: Dress for the job or company , Don't talk too much , Use
appropriate language , Take care to answer the questions, Don't be too familiar

Question 20
Correct

Mark 1.00 out of 1.00


Flag question

Question text

8. A written statement of your educational and work experience.


Resume
Answer:

Feedback

The correct answer is: Resume

Question 21
Correct

Mark 1.00 out of 1.00

Flag question

Question text

9. It is a set of pictures by someone, or photographs of examples of their work, which they


use when entering competitions or applying for work.
Portfolio
Answer:

Feedback

The correct answer is: Portfolio

Question 22
Correct

Mark 1.00 out of 1.00


Flag question

Question text

14. As for overseas employment of Filipinos, foreign employers are not allowed to directly
hire Philippine nationals except through board and entities authorized by theAnswer
Secretary of Labor
.
Feedback

The correct answer is: Secretary of Labor

Question 23
Correct

Mark 1.00 out of 1.00

Flag question

Question text

1. Workplace safety is important.


Select one:

True

False

Feedback

The correct answer is 'True'.

Question 24
Correct

Mark 2.00 out of 2.00


Flag question

Question text

9. Put your portfolio on a web site if possible as it is so easy to access.


T
Answer:

Feedback

The correct answer is: T

Question 25
Correct

Mark 1.00 out of 1.00

Flag question

Question text

Production Portfolio
11.Answer can also include budget sheets, idea pitches and marketing
materials.
Feedback

The correct answer is: Production Portfolio

Question 26
Correct

Mark 2.00 out of 2.00

Flag question
Question text

7. Having a solid education section doesn’t help you to display the foundation of your
knowledge and expertise.
does
Answer:

Feedback

The correct answer is: does

Question 27
Correct

Mark 2.00 out of 2.00

Flag question

Question text

6. Only include your GPA below 3.0, round up to the first decimal place, and use this format:
GPA: 3.5/4.0.
above
Answer:

Feedback

The correct answer is: above

Question 28
Correct

Mark 1.00 out of 1.00

Flag question

Question text

7. The normal hours of work of any employee.


Eight
Answer:

Feedback

The correct answer is: Eight

Question 29
Correct

Mark 1.00 out of 1.00

Flag question

Question text

4. A belief that work, hard work and diligence has a moral benefit and an inherent ability,
virtue or value to strengthen character.
Work Ethic
Answer:

Feedback

The correct answer is: Work Ethic

Question 30
Correct

Mark 1.00 out of 1.00

Flag question

Question text

15. Under whose regime the Labor Code of the Philippines does took effect?
Ferdinand Marcos
Answer:

Feedback
The correct answer is: Ferdinand Marcos

Question 31
Correct

Mark 1.00 out of 1.00

Flag question

Question text

4. Absenteeism increases when effective safety programs are introduced.


Select one:

True

False

Feedback

decreases
The correct answer is 'False'.

Question 32
Correct

Mark 5.00 out of 5.00

Flag question

Question text

What should the portfolio include? Choose at least 5 from the choices.

Select one or more:


a. Your key achievements and skills

b. A profile or personal statement

c. Curriculum Vitae

d. An index of the contents

e. Examples of your work with good documentation

f. Include a uniform examples of work you have done

g. Your drafts for your report

Feedback

Your answer is correct.

The correct answers are: An index of the contents, Your key achievements and skills

, Curriculum Vitae, A profile or personal statement, Examples of your work with good
documentation

Finish review
1

ST QUARTER EXAM ICT2300

1. Defined as “the place where work immersion of students is done".

Answer:

Workplace Immersion Venue

2. A behavior of a single individual or a group that has led to a systematic lack of

productivity, reliability, accountability and a growing sphere of unprofessional/unhealthy

relationships.

Answer:

Negative w ork ethic

3. The date where Labor Code of the Philippines took effect.

Answer:

November 1, 1974

4. A belief that work, hard work and diligence has a moral benefit and an inherent
ability,

virtue or value to strengthen character.

Answer:

Work ethic
5. He states that "what was once understood as the work ethic—not just hard work but
also

a set of accompanying virtues, whose crucial role in the development and sustaining of
free

markets too few now recall".

Answer:

Steven Malanga

6. He revised the notion of work ethic as a means of management control that delude

workers about the actual reality for accumulated advantage, which is a form of avarice.

Answer:

Frederick Winslow Taylor

7. The normal hours of work of any employee.

Answer:

Eight

8. A written statement of your educational and work experience.

Answer:

Resume
9. It is a set of pictures by someone, or photographs of examples of their work, which
they

use when entering competitions or applying for work.

Answer:

Portfolio

10. This is the more traditional format of a resume and is flexible and can be used for

applicants with any level of experience.

Answer:

Reverse-Chronological

11.

Production portfolio

can also include budget sheets, idea pitches and marketing materials.

12. The

Labor Code of the Philippines

governs employment practices and labor relations in the

Philippines.

13. When Labor Code of the Philippines was promulgated?

Answer:
May 1, 1974

14. As for overseas employment of Filipinos, foreign employers are not allowed to
directly

hire Philippine nationals except through board and entities authorized by the

Secretary of Labor

15. Under whose regime the Labor Code of the Philippines does took effect?

Answer:

Ferdinand Marcos

1. On job interview, it is important to be aware of any inappropriate slang words or

references to age, race, religion, politics or sexual orientation—these topics could send
you

out the door very quickly.

Answer:

2. Functional format is flexible and can be used for applicants with any level of
experience.

Answer:

Chronological
4. Negative work ethic is a behavior of a single individual or a group that has led to a

systematic lack of productivity, reliability, accountability and a growing sphere of

unprofessional/unhealthy relationships.

Answer:

3. Place the best and most relevant work first and start and finish with strong pieces of
work

on your portfolio.

Answer: T

5. During interview, asking question is not wrong because it also gives you the
opportunity

to find out if this is the right place for you.

Answer:

6. Only include your GPA below 3.0, round up to the first decimal place, and use this
format:

GPA: 3.5/4.0.

Answer:

above

7. Having a solid education section doesn’t help you to display the foundation of your

knowledge and expertise.


Answer:

does

8. A portfolio is a set of pictures by someone, or photographs of examples of their work,

which they use when entering competitions or applying for work.

Answer:

9. Put your portfolio on a web site if possible as it is so easy to access.

Answer:

10. If you are putting on a performance to demonstrate your ability, overconfidence is


bad.

Answer:

Choose five (5) job interview skills that a person should have.

Select one or more:

a. Appear desperate

b. Use appropriate language

c. Take care to answer the questions

d. Don't talk too much

e. Dress for the job or company

f. Don't be too familiar


g. Don't ask questions

What should the portfolio include? Choose at least 5 from the choices.

Select one or more:

a. Examples of your work with good documentation

b. An index of the contents

c. Your drafts for your report

d. Your key achievements and skills

e. Include a uniform examples of work you have done

f. Curriculum Vitae

g. A profile or personal statement

1. Workplace safety is important.

Select one:

True

False

2. The employer have the right to terminate an employee.

Select one:

True

False

3. The maximum age for employment is 18 years old.

Select one:

True

False
4. Absenteeism increases when effective safety programs are introduced.

Select one:

True

False

5. An employee needs to give respect to the company. That means honesty and
integrity.

Select one:

True

False

LONG QUIZ 1 ICT2300

IDENTIFICATION

1.Defined as “the place where work immersion of students is done".

Answer:

Workplace Immersion Venue

IDENTIFICATION

2. A behavior of a single individual or a group that has led to a systematic lack of

productivity, reliability, accountability and a growing sphere of unprofessional/unhealthy

relationships.

Answer:

Negative w ork ethic


IDENTIFICATION

3. The date where Labor Code of the Philippines took effect.

Answer:

November 1, 1974

IDENTIFICATION

4. A belief that work, hard work and diligence has a moral benefit and an inherent
ability,

virtue or value to strengthen character.

Answer:

Work ethic

IDENTIFICATION

5. He states that "what was once understood as the work ethic—not just hard work but
also

a set of accompanying virtues, whose crucial role in the development and sustaining of
free

markets too few now recall".

Answer:

Steven Malanga

He revised the notion of work ethic as a means of management control that delude
workers
about the actual reality for accumulated advantage, which is a form of avarice.

Answer:

Frederick Winslow Taylor

The normal hours of work of any employee.

Answer:

Eight

A written statement of your educational and work experience.

Answer:

Resume

It is a set of pictures by someone, or photographs of examples of their work, which they


use

when entering competitions or applying for work.

Answer:

Portfolio

This is the more traditional format of a resume and is flexible and can be used for
applicants

with any level of experience.

Answer:

Reverse-Chronological
Under whose regime does the Labor Code of the Philippines took effect?

Select one:

a. Gloria Macapagal-Arroyo

b. Ninoy Aquino

c. Rodrigo Roa Duterte

d. Ferdinand Marcos

The Php 426 combined rate is locally referred to in the Philippines as "____________"
due to

this regional disparity.

Select one:

a. Private Rate

b. Manila Rate

c. Public Rate

d. Province Rate

The duty of every employer to give his employees not less than ______ minutes time-off
for

their regular meals.

Select one:

a. 40

b. 30

c. 50

d. 60

All employees have the right to have a __________ consecutive hours of rest day after
ICT-2300 WORK IMMERSION

by Zn

Includes answers for the following:


• Second Quarterly Exam
• Q1PT2
• Q1WW2
• Q2PT1
• Q2PT2
• Q2WW1
• Q2WW2

How can students with an “improvisor” time management style overcome their tendency to
procrastinate?

make plans to organize their time and ask their teachers for help before they fall behind

Which of the following definitions most closely describes a goal?

a desired result that you envision and then plan and commit to achieve

If your schedule varies from week to week, which of the following is the best option for
managing your time?

leave space in your schedule to adjust events and reminders as needed

Good goals should be

specific, measurable, attainable, relevant, and time-bound.

If you encounter a setback in your academic goals, which of the following should you do?

define the problem, see how others are dealing with the problem, determine what solutions exist
and what is needed to implement those solutions
Diane has a goal of becoming fluent in Chinese by the time she graduates with a degree in
linguistics. She has been taking Chinese classes and reading Chinese news websites for two
years in preparation for a study abroad program in Beijing. However, the semester before she is
scheduled to start her study abroad program, the program’s funding is cut, resulting in the
program’s cancellation. Which of the following is the best way for Diane to deal with this
setback?

She should find a native Chinese speaker to tutor her or possibly even be her roommate.

Which is the best way to become more productive when you are tempted to multitask and check
your social media account while studying?

Have set times during the day for checking and responding to online messages.

Ideally, family members and friends will help you through college by

offering support and encouragement to reach your goals.

Multitasking is best defined as

switching back and forth between two or more tasks quickly

What is meant by the study tip “keep your studying bite-sized”?

organize your readings and tasks into small chunks that are easy to accomplish

You are interested in identifying careers that might be a good fit for your interests, values, and
skills. Who would you contact?

a career counselor

Self-assessment surveys are useful in helping you evaluate your personal identity and can help
to recommend which of the following?

potential career paths

Which of the following types of class delivery formats meets in-person the least amount of time?
hybrid/blended

Which term describes your core beliefs and guiding principles that shape the roles you play in
daily life?

personal values

Which of the following is a strategy for achieving success in the classroom?

go to office hours and ask your instructor questions

If you need to find resources for your English paper, where should you go for help?

the reference librarian

Which of the life values self--assessment survey instruments allows you to arrange life values in
order of importance?

Life Values Assessment

What would you least expect to find in school-wide policies?

information about your class reading assignments

Which of the following is recommended as a good study habit?

Keep a regular study schedule.

Which of the following traits is associated with a successful student?

joins a study group or campus organization

What is the difference between a panel interview and a group interview?

In a panel interview, several interviewers meet with one interviewee. In a group interview, one
interviewer presents to several interviewees.
Which of the following are “soft skills”?

being a good listener, demonstrating common sense, having the ability to work under pressure

Which of the following are transferable skills?

accepting constructive criticism

You are a college-ready student if you have the necessary knowledge, skills, and professional
behaviors to do which of the following?

earn a certificate or degree in college

If you are looking for more information on choosing a major or career path from others who can
best relate to your current situation, you should talk to

fellow students and graduating seniors.

Bert works as a cashier in a bookstore for an hourly wage. He likes his work, but he doesn’t
want to be doing the same thing five years from now. On the other hand, Ernie works in a
different bookstore. He started as a cashier and was promoted to a manager. Ernie has been
learning about marketing, and five years from now he hopes to be working on marketing
projects for his current bookstore or perhaps a different bookstore. Which of the following
statements best fits this scenario?

Bert has a job; Ernie has a career.

What are the five steps for choosing a career?

get to know yourself, get to know your field, prioritize your “deal makers” and rule out your “deal
breakers,” make a preliminary career decision and create a plan of action, go out and achieve
your career goal

To be a career-ready person, which of the following must you have?

the necessary knowledge and technical skills needed to be employed in your desired field
Katie is nervous about her upcoming job opportunities and wants to make sure that her résumé
is perfect. What is the best advice for her?

Use action verbs and phrases.

Which of the following are examples of “hard skills”?

sewing a dart in a dress, writing Python code, operating an x-ray machine

Which traits are typical of the exploring stage of career development?

identifying your interests and aptitudes and trying out jobs

Which of the following should NOT be included on a résumé?

childhood hobbies

“Why should we hire you?” “What are your strengths and weaknesses?” “What attracted you to
this company?” These are all examples of

basic interview questions.

Which of the following should a cover letter accomplish?

get the reader’s attention, reflect genuine interest in the position, and explain why you are the
best person for the position

Which of the following is the best technique to win a face-to-face interview from a screening
interview?

try to stand out from the competition

Which of the following should you include on a résumé?

education, work experience, relevant skills, contact information


Which of the following will be most beneficial to help you grow your professional network?

connect with your parents’ friends as network contacts

Which of the following should you AVOID in your cover letter?

reasons why you left your last position

Which of the following is the most effective response to the interview question “What is your
greatest weakness?”

“In the past I haven’t been great at planning and prioritizing tasks. However, I am taking steps to
fix that by using a planning app and marking deadlines on my calendar.”

Which of the following is the first step to preparing for an interview?

reread the job posting or description

Which of the following are diversity and multicultural organizations?

clubs focused on creating diverse, multicultural, and inclusive communities

Why are academic print resources generally more credible than online sources?

Print resources have been vetted by multiple authors and editors in order to reach publication.

When studying to remember things, it’s best to think about ________ rather than facts.

Concepts

Just one day after computer programming class, Suzanne was surprised to find that, like most
people, she forgot roughly ________ of what she learned in that class session.

80%
Which of the following is a positive effect of participating in diverse groups in an educational
setting?

You can perceive in new ways, seeing issues and problems from new angles.

What type of situation best inspires creativity?

when there is a problem to solve

Isabella needs to create a mini-presentation with her group for an advertising campaign project
in her marketing class. What type of learning is she doing?

active learning

Which resource below probably contains the most effective information to to help you write your
paper on death penalty laws in California?

"Polls Show Preference for Death Penalty Alternatives" news article

Which tool can best enable students to observe and analyze the world or reimagine it in a way
that appeals to them?

digital camcorders

What best defines “critical thinking”?

skepticism and examining assumptions

Presenting someone else’s ideas as your own is best defined as

plagiarism.

Using web applications and tools to help you keep track of your sources and create your
citations is

a good idea.
Eating a healthy diet can reduce your risk of which of the following?

both heart disease and cancer

What are common signs of depression?

moving slowly, difficulty sleeping, feelings of pessimism. aches and pains

If you rewrite a quote in your own words, it

always need to be cited.

If you are concerned about not having enough time to work during school, you may find
________ to be the best solution.

a summer job

Budgets should include

all of your spending habits.

Taking tests is valuable for which of the following reasons?

The more often you retrieve information, the more likely you are to retain it for the long term.

If you include quotes in your paper, they

always need to be cited.

A person with good mental health will realize his or her own abilities, can cope with the normal
stresses of life, and

can work productively and fruitfully.


A good portfolio should have an index of the contents.

True

Defined as “the place where work immersion of students is done".

workplace immersion venue

Make sure that the portfolio is carefully laid out and in the correct order.

True

While chronological places emphasis on career progression, a functional format focuses on your
abilities and skills.

True

All items need to be clear and easy to understand.

True

He states that "what was once understood as the work ethic—not just hard work but also a set
of accompanying virtues, whose crucial role in the development and sustaining of free markets
too few now recall".

steven malanga

Chronological format is more of traditional format and is what you are most likely to come
across.

False

If an item is too large to take to the interview you can bring it to show with close ups to elicit
details.

False
A resume is a written statement of your educational and work experience.

True

Practice good nonverbal communication is one of the necessary skills on job interview.

True

When Labor Code of the Philippines was promulgated?

may 1, 1974

Personal experience can also be referred as a career objective.

False

Under whose regime the Labor Code of the Philippines does took effect?

ferdinand marcos

Overconfidence is not bad if you are putting on a performance to demonstrate your ability.

False

can also include budget sheets, idea pitches and marketing materials.

production portfolio

A behavior of a single individual or a group that has led to a systematic lack of productivity,
reliability, accountability and a growing sphere of unprofessional/unhealthy relationships.

negative work ethic

The normal hours of work of any employee.


eight

It is a set of pictures by someone, or photographs of examples of their work, which they use
when entering competitions or applying for work.

Portfolio

This is the more traditional format of a resume and is flexible and can be used for applicants
with any level of experience.

reverse-chronological

The qualifications summary is a bullet point list (ranging from 4 to 6 points) of your most
outstanding career achievements.

True

The date where Labor Code of the Philippines took effect.

november 1, 1974

The curriculum vitae including your interests and any evidence of project management skills can
be included in a portfolio.

True

It is important to know what to wear to an interview and to be well-groomed.

True

The Php 426 combined rate is locally referred to in the Philippines as "Answer" due to this
regional disparity.

manila rate
Functional format is flexible and can be used for applicants with any level of experience.

False

On job interview, it is important to be aware of any inappropriate slang words or references to


age, race, religion, politics or sexual orientation—these topics could send you out the door very
quickly.

True

A portfolio is a set of pictures by someone, or photographs of examples of their work, which they
use when entering competitions or applying for work.

True

Place the best and most relevant work first and start and finish with strong pieces of work on
your portfolio.

True

Credentials are documents that state the abilities and experience of a person and show that the
person is qualified for a particular job or activity.

True

focuses on your abilities and skills and is more suitable for those with an expert level of
experience.

functional format

A written statement of your educational and work experience.

resume

It is important to bring energy and enthusiasm to the interview and to ask questions and it is
about making a new friend.
False

Combination format is generally reserved for beginners with less experience in a particular
industry.

False

Remember to list your work experiences in reverse chronological order and only list experience
that is relevant to the job you are applying for.

True

A resume is a means of not advertising yourself to get a job that you want and will give a short
impression about you to the employers whether you attain their standards or not.

False

A belief that work, hard work and diligence has a moral benefit and an inherent ability, virtue or
value to strengthen character.

work ethic

When creating a portfolio, go for quantity not quality.

False

Include your GPA from 5.0, round up to the first decimal place, and use this format: GPA:
3.5/4.0.

False

Functional format is more suitable for those with an expert level of experience.

True
He revised the notion of work ethic as a means of management control that delude workers
about the actual reality for accumulated advantage, which is a form of avarice.

frederick winslow taylor

Production portfolios cannot be included such as budget sheets, idea pitches and marketing
materials.

False

A combination of both the career objective and qualifications summary.

professional profile

During interview, asking question is not wrong because it also gives you the opportunity to find
out if this is the right place for you.

True

Having a solid education section doesn’t helps to display the foundation of your knowledge and
expertise.

False

The duty of every employer to give his employees not less than Answer minutes time-off for
their regular meals.

60

All employees have the right to have a Answer consecutive hours of rest day after every 6 days
of work.

24

Don’t put your portfolio on a web site if possible as it is so easy to access.

False
The Answer governs employment practices and labor relations in the Philippines.

labor code of the philippines

Professional Profile is also the most flexible of the three styles as it can be formatted as short
paragraph of bullet-point list.

True

As for overseas employment of Filipinos, foreign employers are not allowed to directly hire
Philippine nationals except through board and entities authorized by the Answer.

secretary of labor
BL-ICT-2300-LEC-1922S WORK
IMMERSION (SECOND QUARTERLY
EXAMINATION)
Started on Monday, 13 January 2020, 2:10 PM
State Finished
Completed on Monday, 13 January 2020, 2:33 PM
Time taken 23 mins 44 secs
Grade 50.00 out of 50.00 (100%)
Question 1
Correct
Mark 1.00 out of 1.00

Flag question

Question text

He states that "what was once understood as the work ethic—not just hard work but also a
set of accompanying virtues, whose crucial role in the development and sustaining of free
markets too few now recall".

Steven Malanga
Answer:

Question 2
Correct
Mark 1.00 out of 1.00

Flag question

Question text

The normal hours of work of any employee.

eight
Answer:
Question 3
Correct
Mark 1.00 out of 1.00

Flag question

Question text

During interview, asking question is not wrong because it also gives you the opportunity to
find out if this is the right place for you.

Select one:
True
False

Question 4
Correct
Mark 1.00 out of 1.00

Flag question

Question text

On job interview, it is important to be aware of any inappropriate slang words or references


to age, race, religion, politics or sexual orientation—these topics could send you out the
door very quickly.

Select one:
True
False

Question 5
Correct
Mark 1.00 out of 1.00

Flag question
Question text

Labor Code of the Philippines


TheAnswer governs employment practices and labor relations in the
Philippines.

Question 6
Correct
Mark 1.00 out of 1.00

Flag question

Question text

The qualifications summary is a bullet point list (ranging from 4 to 6 points) of your most
outstanding career achievements.

Select one:
True
False

Question 7
Correct
Mark 1.00 out of 1.00

Flag question

Question text

24
All employees have the right to have aAnswer consecutive hours of rest day after
every 6 days of work.

Question 8
Correct
Mark 1.00 out of 1.00

Flag question
Question text

Having a solid education section doesn’t helps to display the foundation of your knowledge
and expertise.

Select one:
True
False

Question 9
Correct
Mark 1.00 out of 1.00

Flag question

Question text

60
The duty of every employer to give his employees not less thanAnswer minutes
time-off for their regular meals.

Question 10
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Credentials are documents that state the abilities and experience of a person and show that
the person is qualified for a particular job or activity.

Select one:
True
False

Question 11
Correct
Mark 1.00 out of 1.00
Flag question

Question text

A good portfolio should have an index of the contents.

Select one:
True
False

Question 12
Correct
Mark 1.00 out of 1.00

Flag question

Question text

A portfolio is a set of pictures by someone, or photographs of examples of their work, which


they use when entering competitions or applying for work.

Select one:
True
False

Question 13
Correct
Mark 1.00 out of 1.00

Flag question

Question text
manila rate
The Php 426 combined rate is locally referred to in the Philippines as "Answer "
due to this regional disparity.

Question 14
Correct
Mark 1.00 out of 1.00

Flag question

Question text

A resume is a written statement of your educational and work experience.

Select one:
True
False

Question 15
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Production Portfolio
Answer can also include budget sheets, idea pitches and marketing
materials.

Question 16
Correct
Mark 1.00 out of 1.00

Flag question

Question text
A written statement of your educational and work experience.

Resume
Answer:

Question 17
Correct
Mark 1.00 out of 1.00

Flag question

Question text

When Labor Code of the Philippines was promulgated?

May 1, 1974
Answer:

Question 18
Correct
Mark 1.00 out of 1.00

Flag question

Question text

All items need to be clear and easy to understand.

Select one:
True
False

Question 19
Correct
Mark 1.00 out of 1.00

Flag question

Question text
It is important to know what to wear to an interview and to be well-groomed.

Select one:
True
False

Question 20
Correct
Mark 1.00 out of 1.00

Flag question

Question text

A resume is a means of not advertising yourself to get a job that you want and will give a
short impression about you to the employers whether you attain their standards or not.

Select one:
True
False

Question 21
Correct
Mark 1.00 out of 1.00

Flag question

Question text

The curriculum vitae including your interests and any evidence of project management skills
can be included in a portfolio.

Select one:
True
False

Question 22
Correct
Mark 1.00 out of 1.00
Flag question

Question text

It is a set of pictures by someone, or photographs of examples of their work, which they use
when entering competitions or applying for work.

Portfolio
Answer:

Question 23
Correct
Mark 1.00 out of 1.00

Flag question

Question text

As for overseas employment of Filipinos, foreign employers are not allowed to directly hire
Secretary of L
Philippine nationals except through board and entities authorized by theAnswer .

Question 24
Correct
Mark 1.00 out of 1.00

Flag question

Question text

When creating a portfolio, go for quantity not quality.

Select one:
True
False

Question 25
Correct
Mark 1.00 out of 1.00

Flag question

Question text

It is important to bring energy and enthusiasm to the interview and to ask questions and it
is about making a new friend.

Select one:
True
False

Question 26
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Personal experience can also be referred as a career objective.

Select one:
True
False

Question 27
Correct
Mark 1.00 out of 1.00

Flag question

Question text
Functional format is more suitable for those with an expert level of experience.

Select one:
True
False

Question 28
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Combination format is generally reserved for beginners with less experience in a particular
industry.

Select one:
True
False

Question 29
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Place the best and most relevant work first and start and finish with strong pieces of work
on your portfolio.

Select one:
True
False

Question 30
Correct
Mark 1.00 out of 1.00
Flag question

Question text

A belief that work, hard work and diligence has a moral benefit and an inherent ability,
virtue or value to strengthen character.

Work Ethic
Answer:

Question 31
Correct
Mark 1.00 out of 1.00

Flag question

Question text

He revised the notion of work ethic as a means of management control that delude workers
about the actual reality for accumulated advantage, which is a form of avarice.

Frederick Winslow Taylor


Answer:

Question 32
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Functional format is flexible and can be used for applicants with any level of experience.

Select one:
True
False
Question 33
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Overconfidence is not bad if you are putting on a performance to demonstrate your ability.

Select one:
True
False

Question 34
Correct
Mark 1.00 out of 1.00

Flag question

Question text

While chronological places emphasis on career progression, a functional format focuses on


your abilities and skills.

Select one:
True
False

Question 35
Correct
Mark 1.00 out of 1.00

Flag question

Question text
Remember to list your work experiences in reverse chronological order and only list
experience that is relevant to the job you are applying for.

Select one:
True
False

Question 36
Correct
Mark 1.00 out of 1.00

Flag question

Question text

If an item is too large to take to the interview you can bring it to show with close ups to
elicit details.

Select one:
True
False

Question 37
Correct
Mark 1.00 out of 1.00

Flag question

Question text

This is the more traditional format of a resume and is flexible and can be used for applicants
with any level of experience.

Reverse-Chronological
Answer:

Question 38
Correct
Mark 1.00 out of 1.00
Flag question

Question text

Chronological format is more of traditional format and is what you are most likely to come
across.

Select one:
True
False

Question 39
Correct
Mark 1.00 out of 1.00

Flag question

Question text

The date where Labor Code of the Philippines took effect.

November 1, 1974
Answer:

Question 40
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Include your GPA from 5.0, round up to the first decimal place, and use this format: GPA:
3.5/4.0.

Select one:
True
False

Question 41
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Practice good nonverbal communication is one of the necessary skills on job interview.

Select one:
True
False

Question 42
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Production portfolios cannot be included such as budget sheets, idea pitches and marketing
materials.

Select one:
True
False

Question 43
Correct
Mark 1.00 out of 1.00
Flag question

Question text

Defined as “the place where work immersion of students is done".

Workplace Immersion Venue


Answer:

Question 44
Correct
Mark 1.00 out of 1.00

Flag question

Question text

A combination of both the career objective and qualifications summary.

Professional Profile
Answer:

Question 45
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Professional Profile is also the most flexible of the three styles as it can be formatted as
short paragraph of bullet-point list.

Select one:
True
False
Question 46
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Make sure that the portfolio is carefully laid out and in the correct order.

Select one:
True
False

Question 47
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Functional Format
Answer focuses on your abilities and skills and is more suitable for those
with an expert level of experience.

Question 48
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Under whose regime the Labor Code of the Philippines does took effect?

Ferdinand Marcos
Answer:
Question 49
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Don’t put your portfolio on a web site if possible as it is so easy to access.

Select one:
True
False

Question 50
Correct
Mark 1.00 out of 1.00

Flag question

Question text

A behavior of a single individual or a group that has led to a systematic lack of productivity,
reliability, accountability and a growing sphere of unprofessional/unhealthy relationships.

Negative Work Ethic


Answer:
BL-ICT-2300-LEC-1922S WORK
IMMERSION (SECOND QUARTERLY
EXAMINATION)
Started on Monday, 13 January 2020, 2:10 PM
State Finished
Completed on Monday, 13 January 2020, 2:33 PM
Time taken 23 mins 44 secs
Grade 50.00 out of 50.00 (100%)
Question 1
Correct
Mark 1.00 out of 1.00

Flag question

Question text

He states that "what was once understood as the work ethic—not just hard work but also a
set of accompanying virtues, whose crucial role in the development and sustaining of free
markets too few now recall".

Steven Malanga
Answer:

Question 2
Correct
Mark 1.00 out of 1.00

Flag question

Question text

The normal hours of work of any employee.

eight
Answer:
Question 3
Correct
Mark 1.00 out of 1.00

Flag question

Question text

During interview, asking question is not wrong because it also gives you the opportunity to
find out if this is the right place for you.

Select one:
True
False
ANSWER: TRUE

Question 4
Correct
Mark 1.00 out of 1.00

Flag question

Question text

On job interview, it is important to be aware of any inappropriate slang words or references


to age, race, religion, politics or sexual orientation—these topics could send you out the
door very quickly.

Select one:
True
False
ANSWER: TRUE

Question 5
Correct
Mark 1.00 out of 1.00
Flag question

Question text

Labor Code of the Philippines


The governs employment practices and labor relations in the
Philippines.

Question 6
Correct
Mark 1.00 out of 1.00

Flag question

Question text

The qualifications summary is a bullet point list (ranging from 4 to 6 points) of your most
outstanding career achievements.

Select one:
True
False
ANSWER: TRUE

Question 7
Correct
Mark 1.00 out of 1.00

Flag question

Question text

24
All employees have the right to have a consecutive hours of rest day after every
6 days of work.
Question 8
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Having a solid education section doesn’t helps to display the foundation of your knowledge
and expertise.

Select one:
True
False
ANSWER: FALSE

Question 9
Correct
Mark 1.00 out of 1.00

Flag question

Question text
60
The duty of every employer to give his employees not less than minutes time-off for
their regular meals.

Question 10
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Credentials are documents that state the abilities and experience of a person and show that
the person is qualified for a particular job or activity.
Select one:
True
False
ANSWER: TRUE

Question 11
Correct
Mark 1.00 out of 1.00

Flag question

Question text

A good portfolio should have an index of the contents.

Select one:
True
False
ANSWER: TRUE

Question 12
Correct
Mark 1.00 out of 1.00

Flag question

Question text

A portfolio is a set of pictures by someone, or photographs of examples of their work, which


they use when entering competitions or applying for work.

Select one:
True
False
ANSWER: TRUE
Question 13
Correct
Mark 1.00 out of 1.00

Flag question

Question text

manila rate
The Php 426 combined rate is locally referred to in the Philippines as "Answer "
due to this regional disparity.

Question 14
Correct
Mark 1.00 out of 1.00

Flag question

Question text

A resume is a written statement of your educational and work experience.

Select one:
True
False
ANSWER: TRUE

Question 15
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Production Portfolio
Answer can also include budget sheets, idea pitches and marketing
materials.
Question 16
Correct
Mark 1.00 out of 1.00

Flag question

Question text

A written statement of your educational and work experience.

Resume
Answer:

Question 17
Correct
Mark 1.00 out of 1.00

Flag question

Question text

When Labor Code of the Philippines was promulgated?

May 1, 1974
Answer:

Question 18
Correct
Mark 1.00 out of 1.00

Flag question

Question text

All items need to be clear and easy to understand.

Select one:
True
False
ANSWER: TRUE

Question 19
Correct
Mark 1.00 out of 1.00

Flag question

Question text

It is important to know what to wear to an interview and to be well-groomed.

Select one:
True
False
ANSWER: TRUE

Question 20
Correct
Mark 1.00 out of 1.00

Flag question

Question text

A resume is a means of not advertising yourself to get a job that you want and will give a
short impression about you to the employers whether you attain their standards or not.

Select one:
True
False
ANSWER: FALSE
Question 21
Correct
Mark 1.00 out of 1.00

Flag question

Question text

The curriculum vitae including your interests and any evidence of project management skills
can be included in a portfolio.

Select one:
True
False
ANSWER: TRUE

Question 22
Correct
Mark 1.00 out of 1.00

Flag question

Question text

It is a set of pictures by someone, or photographs of examples of their work, which they use
when entering competitions or applying for work.

Portfolio
Answer:

Question 23
Correct
Mark 1.00 out of 1.00

Flag question

Question text
As for overseas employment of Filipinos, foreign employers are not allowed to directly hire
Secretary of L
Philippine nationals except through board and entities authorized by theAnswer .
ANSWER: SECRETARY OF LABOR

Question 24
Correct
Mark 1.00 out of 1.00

Flag question

Question text

When creating a portfolio, go for quantity not quality.

Select one:
True
False
ANSWER: FALSE

Question 25
Correct
Mark 1.00 out of 1.00

Flag question

Question text

It is important to bring energy and enthusiasm to the interview and to ask questions and it
is about making a new friend.

Select one:
True
False
ANSWER: FALSE

Question 26
Correct
Mark 1.00 out of 1.00
Flag question

Question text

Personal experience can also be referred as a career objective.

Select one:
True
False
ANSWER: FALSE

Question 27
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Functional format is more suitable for those with an expert level of experience.

Select one:
True
False
ANSWER: TRUE

Question 28
Correct
Mark 1.00 out of 1.00

Flag question

Question text
Combination format is generally reserved for beginners with less experience in a particular
industry.

Select one:
True
False
ANSWER: FALSE

Question 29
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Place the best and most relevant work first and start and finish with strong pieces of work
on your portfolio.

Select one:
True
False
ANSWER: TRUE

Question 30
Correct
Mark 1.00 out of 1.00

Flag question

Question text

A belief that work, hard work and diligence has a moral benefit and an inherent ability,
virtue or value to strengthen character.

Work Ethic
Answer:
Question 31
Correct
Mark 1.00 out of 1.00

Flag question

Question text

He revised the notion of work ethic as a means of management control that delude workers
about the actual reality for accumulated advantage, which is a form of avarice.

Frederick Winslow Taylor


Answer:

Question 32
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Functional format is flexible and can be used for applicants with any level of experience.

Select one:
True
False
ANSWER: FALSE

Question 33
Correct
Mark 1.00 out of 1.00

Flag question

Question text
Overconfidence is not bad if you are putting on a performance to demonstrate your ability.

Select one:
True
False
ANSWER: FALSE

Question 34
Correct
Mark 1.00 out of 1.00

Flag question

Question text

While chronological places emphasis on career progression, a functional format focuses on


your abilities and skills.

Select one:
True
False
ANSWER: TRUE

Question 35
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Remember to list your work experiences in reverse chronological order and only list
experience that is relevant to the job you are applying for.

Select one:
True
False
ANSWER: TRUE
Question 36
Correct
Mark 1.00 out of 1.00

Flag question

Question text

If an item is too large to take to the interview you can bring it to show with close ups to
elicit details.

Select one:
True
False
ANSWER: FALSE

Question 37
Correct
Mark 1.00 out of 1.00

Flag question

Question text

This is the more traditional format of a resume and is flexible and can be used for applicants
with any level of experience.

Reverse-Chronological
Answer:

Question 38
Correct
Mark 1.00 out of 1.00

Flag question

Question text
Chronological format is more of traditional format and is what you are most likely to come
across.

Select one:
True
False
ANSWER: FALSE

Question 39
Correct
Mark 1.00 out of 1.00

Flag question

Question text

The date where Labor Code of the Philippines took effect.

November 1, 1974
Answer:

Question 40
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Include your GPA from 5.0, round up to the first decimal place, and use this format: GPA:
3.5/4.0.

Select one:
True
False
ANSWER: FALSE
Question 41
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Practice good nonverbal communication is one of the necessary skills on job interview.

Select one:
True
False
ANSWER: TRUE

Question 42
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Production portfolios cannot be included such as budget sheets, idea pitches and marketing
materials.

Select one:
True
False
ANSWER: FALSE

Question 43
Correct
Mark 1.00 out of 1.00

Flag question
Question text

Defined as “the place where work immersion of students is done".

Workplace Immersion Venue


Answer:

Question 44
Correct
Mark 1.00 out of 1.00

Flag question

Question text

A combination of both the career objective and qualifications summary.

Professional Profile
Answer:

Question 45
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Professional Profile is also the most flexible of the three styles as it can be formatted as
short paragraph of bullet-point list.

Select one:
True
False
ANSWER: TRUE

Question 46
Correct
Mark 1.00 out of 1.00
Flag question

Question text

Make sure that the portfolio is carefully laid out and in the correct order.

Select one:
True
False
ANSWER: TRUE

Question 47
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Functional Format
focuses on your abilities and skills and is more suitable for those with an
expert level of experience.

Question 48
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Under whose regime the Labor Code of the Philippines does took effect?

Ferdinand Marcos
Answer:

Question 49
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Don’t put your portfolio on a web site if possible as it is so easy to access.

Select one:
True
False
ANSWER: FALSE

Question 50
Correct
Mark 1.00 out of 1.00

Flag question

Question text

A behavior of a single individual or a group that has led to a systematic lack of productivity,
reliability, accountability and a growing sphere of unprofessional/unhealthy relationships.

Negative Work Ethic


Answer:
1ST QUARTER EXAM ICT2300

1. Defined as “the place where work immersion of students is done".

Workplace Immersion Venue


Answer:

2. A behavior of a single individual or a group that has led to a systematic lack of


productivity, reliability, accountability and a growing sphere of unprofessional/unhealthy
relationships.

Negative work ethic


Answer:

3. The date where Labor Code of the Philippines took effect.

November 1, 1974
Answer:

4. A belief that work, hard work and diligence has a moral benefit and an inherent ability,
virtue or value to strengthen character.

Work ethic
Answer:

5. He states that "what was once understood as the work ethic—not just hard work but also
a set of accompanying virtues, whose crucial role in the development and sustaining of free
markets too few now recall".

Steven Malanga
Answer:

6. He revised the notion of work ethic as a means of management control that delude
workers about the actual reality for accumulated advantage, which is a form of avarice.

Frederick Winslow Taylor


Answer:

7. The normal hours of work of any employee.

Eight
Answer:

8. A written statement of your educational and work experience.


Resume
Answer:

9. It is a set of pictures by someone, or photographs of examples of their work, which they


use when entering competitions or applying for work.

Portfolio
Answer:

10. This is the more traditional format of a resume and is flexible and can be used for
applicants with any level of experience.

Reverse-Chronological
Answer:

Production portfolio
11. can also include budget sheets, idea pitches and marketing materials.

Labor Code of the Philippines


12. The governs employment practices and labor relations in the
Philippines.

13. When Labor Code of the Philippines was promulgated?

May 1, 1974
Answer:

14. As for overseas employment of Filipinos, foreign employers are not allowed to directly
hire Philippine nationals except through board and entities authorized by the
Secretary of Labor

15. Under whose regime the Labor Code of the Philippines does took effect?

Ferdinand Marcos
Answer:

1. On job interview, it is important to be aware of any inappropriate slang words or


references to age, race, religion, politics or sexual orientation—these topics could send you
out the door very quickly.
T
Answer:

2. Functional format is flexible and can be used for applicants with any level of experience.

Chronological
Answer:

4. Negative work ethic is a behavior of a single individual or a group that has led to a
systematic lack of productivity, reliability, accountability and a growing sphere of
unprofessional/unhealthy relationships.

T
Answer:

3. Place the best and most relevant work first and start and finish with strong pieces of work
on your portfolio.

Answer: T

5. During interview, asking question is not wrong because it also gives you the opportunity
to find out if this is the right place for you.

T
Answer:

6. Only include your GPA below 3.0, round up to the first decimal place, and use this format:
GPA: 3.5/4.0.

above
Answer:

7. Having a solid education section doesn’t help you to display the foundation of your
knowledge and expertise.

does
Answer:
8. A portfolio is a set of pictures by someone, or photographs of examples of their work,
which they use when entering competitions or applying for work.

T
Answer:
9. Put your portfolio on a web site if possible as it is so easy to access.

T
Answer:

10. If you are putting on a performance to demonstrate your ability, overconfidence is bad.

T
Answer:

Choose five (5) job interview skills that a person should have.

Select one or more:


a. Appear desperate
b. Use appropriate language
c. Take care to answer the questions
d. Don't talk too much
e. Dress for the job or company
f. Don't be too familiar
g. Don't ask questions

What should the portfolio include? Choose at least 5 from the choices.

Select one or more:


a. Examples of your work with good documentation
b. An index of the contents
c. Your drafts for your report
d. Your key achievements and skills

e. Include a uniform examples of work you have done


f. Curriculum Vitae
g. A profile or personal statement

1. Workplace safety is important.

Select one:
True
False
2. The employer have the right to terminate an employee.

Select one:
True
False
3. The maximum age for employment is 18 years old.

Select one:
True
False
4. Absenteeism increases when effective safety programs are introduced.

Select one:
True
False

5. An employee needs to give respect to the company. That means honesty and integrity.

Select one:
True
False
LONG QUIZ 1 ICT2300

IDENTIFICATION
1.Defined as “the place where work immersion of students is done".

Workplace Immersion Venue


Answer:

IDENTIFICATION
2. A behavior of a single individual or a group that has led to a systematic lack of
productivity, reliability, accountability and a growing sphere of unprofessional/unhealthy
relationships.

Negative work ethic


Answer:

IDENTIFICATION
3. The date where Labor Code of the Philippines took effect.

November 1, 1974
Answer:

IDENTIFICATION
4. A belief that work, hard work and diligence has a moral benefit and an inherent ability,
virtue or value to strengthen character.

Work ethic
Answer:

IDENTIFICATION
5. He states that "what was once understood as the work ethic—not just hard work but also
a set of accompanying virtues, whose crucial role in the development and sustaining of free
markets too few now recall".

Steven Malanga
Answer:

He revised the notion of work ethic as a means of management control that delude workers
about the actual reality for accumulated advantage, which is a form of avarice.

Frederick Winslow Taylor


Answer:
The normal hours of work of any employee.

Eight
Answer:

A written statement of your educational and work experience.

Resume
Answer:

It is a set of pictures by someone, or photographs of examples of their work, which they use
when entering competitions or applying for work.

Portfolio
Answer:

This is the more traditional format of a resume and is flexible and can be used for applicants
with any level of experience.

Reverse-Chronological
Answer:

Under whose regime does the Labor Code of the Philippines took effect?

Select one:
a. Gloria Macapagal-Arroyo
b. Ninoy Aquino
c. Rodrigo Roa Duterte
d. Ferdinand Marcos

The Php 426 combined rate is locally referred to in the Philippines as "____________" due to
this regional disparity.

Select one:
a. Private Rate
b. Manila Rate
c. Public Rate
d. Province Rate

The duty of every employer to give his employees not less than ______ minutes time-off for
their regular meals.
Select one:
a. 40
b. 30
c. 50
d. 60

All employees have the right to have a __________ consecutive hours of rest day after every 6
days of work.

Select one:
a. 48
b. 12
c. 24
d. 6

________________ focuses on your abilities and skills and is more suitable for those with an
expert level of experience.

Select one:
a. Chronological
b. Functional
c. Combination
d. Reverse-Chronological

What should the portfolio include? Choose at least 5 from the choices.
Select one or more:
a. A profile or personal statement
b. Your drafts for your report
c. An index of the contents
d. Your key achievements and skills

e. Include a uniform examples of work you have done

f. Examples of your work with good documentation


g. Curriculum Vitae

QUIZ 1 ICT 2300

A belief that work, hard work and diligence has a moral benefit and an inherent ability,
virtue or value to strengthen character.
= Work ethic

A behavior of a single individual or a group that has led to a systematic lack of productivity,
reliability, accountability and a growing sphere of unprofessional/unhealthy relationships.

= Negative work ethic

He states that "what was once understood as the work ethic—not just hard work but also a
set of accompanying virtues, whose crucial role in the development and sustaining of free
markets too few now recall".

= Steven Malanga

Workplace safety is important.

Select one:
True
False

Absenteeism increases when effective safety programs are introduced.

Select one:
True
False

When does the Labor Code of the Philippines took effect?

= November 1, 1974

An employee needs to give respect to the company. That means honesty and integrity.

Select one:
True
False

Defined as “the place where work immersion of students is done".

= Workplace Immersion Venue

The employer have the right to terminate an employee.

Select one:
True
False

The maximum age for employment is 18 years old and above that age is not allowed.

Select one:
True
False
A resume is a written statement of your educational and work experience.

Select one:

True

False

When Labor Code of the Philippines was promulgated?

May 1, 1974
Answer:

During interview, asking question is not wrong because it also gives you the opportunity to find out if
this is the right place for you.

Select one:

True

False

A written statement of your educational and work experience.

Resume
Answer:

A good portfolio should have an index of the contents.

Select one:

True

False

Functional format is flexible and can be used for applicants with any level of experience.

Select one:
True

False

It is important to know what to wear to an interview and to be well-groomed.

Select one:

True

False

A behavior of a single individual or a group that has led to a systematic lack of productivity, reliability,
accountability and a growing sphere of unprofessional/unhealthy relationships.

Negative work ethic


Answer:

Make sure that the portfolio is carefully laid out and in the correct order.

Select one:

True

False

The date where Labor Code of the Philippines took effect.

November 1, 1974
Answer:

Labor Code of the Philippines


The governs employment practices and labor relations in the Philippines.
The normal hours of work of any employee.

Eight
Answer:

Having a solid education section doesn’t helps to display the foundation of your knowledge and
expertise.

Select one:

True

False

Twenty-four
All employees have the right to have a consecutive hours of rest day after every 6 days of
work.

Overconfidence is not bad if you are putting on a performance to demonstrate your ability.

Select one:

True

False

A portfolio is a set of pictures by someone, or photographs of examples of their work, which they use
when entering competitions or applying for work.

Select one:

True
False

When creating a portfolio, go for quantity not quality.

Select one:

True

False

Sixty
The duty of every employer to give his employees not less thar minutes time-off for their
regular meals.

A belief that work, hard work and diligence has a moral benefit and an inherent ability, virtue or value to
strengthen character.

Work ethic
Answer:

Production portfolios cannot be included such as budget sheets, idea pitches and marketing materials.

Select one:

True

False

If an item is too large to take to the interview you can bring it to show with close ups to elicit details.

Select one:

True

False
Under whose regime the Labor Code of the Philippines does took effect?

Ferdinand Marcos
Answer:

Practice good nonverbal communication is one of the necessary skills on job interview.

Select one:

True

False

This is the more traditional format of a resume and is flexible and can be used for applicants with any
level of experience.

Reverse-Chronological
Answer:

Chronological format is more of traditional format and is what you are most likely to come across.

Select one:

True

False

The curriculum vitae including your interests and any evidence of project management skills can be
included in a portfolio.

Select one:

True

False
Place the best and most relevant work first and start and finish with strong pieces of work on your
portfolio.

Select one:

True

False

Credentials are documents that state the abilities and experience of a person and show that the person
is qualified for a particular job or activity.

Select one:

True

False

As for overseas employment of Filipinos, foreign employers are not allowed to directly hire Philippine
Secretary of L
nationals except through board and entities authorized by the .

A resume is a means of not advertising yourself to get a job that you want and will give a short
impression about you to the employers whether you attain their standards or not.

Select one:

True

False

Don’t put your portfolio on a web site if possible as it is so easy to access.

Select one:

True

False
He states that "what was once understood as the work ethic—not just hard work but also a set of
accompanying virtues, whose crucial role in the development and sustaining of free markets too few
now recall".

Steven Malanga
Answer:

The qualifications summary is a bullet point list (ranging from 4 to 6 points) of your most outstanding
career achievements.

Select one:

True

False

Combination format is generally reserved for beginners with less experience in a particular industry.

Select one:

True

False

- Production portfolio

can also include budget sheets, idea pitches and marketing materials.

While chronological places emphasis on career progression, a functional format focuses on your abilities
and skills.

Select one:

True

False
Defined as “the place where work immersion of students is done".

Workplace Immersion Venue


Answer:

Remember to list your work experiences in reverse chronological order and only list experience that is
relevant to the job you are applying for.

Select one:

True

False

Manila Rate
The Php 426 combined rate is locally referred to in the Philippines as " " due to this
regional disparity.

It is a set of pictures by someone, or photographs of examples of their work, which they use when
entering competitions or applying for work.

Portfolio
Answer:

Personal experience can also be referred as a career objective.

Select one:

True

False

All items need to be clear and easy to understand.

Select one:
True

False

Functional format

focuses on your abilities and skills and is more suitable for those with an expert level of experience.

It is important to bring energy and enthusiasm to the interview and to ask questions and it is about
making a new friend.

Select one:

True

False

Professional Profile is also the most flexible of the three styles as it can be formatted as short paragraph
of bullet-point list.

Select one:

True

False

Include your GPA from 5.0, round up to the first decimal place, and use this format: GPA: 3.5/4.0.

Select one:

True

False
A combination of both the career objective and qualifications summary.

Professional Profile
Answer:

He revised the notion of work ethic as a means of management control that delude workers about the
actual reality for accumulated advantage, which is a form of avarice.

Frederick Winslow Taylor


Answer:

Functional format is more suitable for those with an expert level of experience.

Select one:

True

False

On job interview, it is important to be aware of any inappropriate slang words or references to age,
race, religion, politics or sexual orientation—these topics could send you out the door very quickly.

Select one:

True

False
Grade 12 BL ICT

Defined as “the place where work immersion of students is done".

Workplace Immersion Venue


Answer:

Question 2
Correct
Mark 1.00 out of 1.00

Flag question

Question text

A behavior of a single individual or a group that has led to a systematic lack of productivity,
reliability, accountability and a growing sphere of unprofessional/unhealthy relationships.

Negative Work Ethic


Answer:

Question 3
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Workplace safety is important.

Select one:
True
False

Question 4
Correct
Mark 1.00 out of 1.00
Flag question

Question text

The employer have the right to terminate an employee.

Select one:
True
False

Question 5
Correct
Mark 1.00 out of 1.00

Flag question

Question text

When does the Labor Code of the Philippines took effect?

November 1, 1974
Answer:

Question 6
Correct
Mark 1.00 out of 1.00

Flag question

Question text

The maximum age for employment is 18 years old and above that age is not allowed.

Select one:
True
False
Question 7
Correct
Mark 1.00 out of 1.00

Flag question

Question text

A belief that work, hard work and diligence has a moral benefit and an inherent ability,
virtue or value to strengthen character.

Work Ethic
Answer:

Question 8
Correct
Mark 1.00 out of 1.00

Flag question

Question text

He states that "what was once understood as the work ethic—not just hard work but also a
set of accompanying virtues, whose crucial role in the development and sustaining of free
markets too few now recall".

Steven Malanga
Answer:

Question 9
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Absenteeism increases when effective safety programs are introduced.


Select one:
True
False

Question 10
Correct
Mark 1.00 out of 1.00

Flag question

Question text

An employee needs to give respect to the company. That means honesty and integrity.

Select one:
True
False
ICT
IMMERSION
SUBJECT
WEEK 1-10
Defined as “the place where work immersion of students is done".

Answer:
Feedback

The correct answer is: Workplace Immersion Venue

Question 2
Correct
Mark 1.00 out of 1.00

Flag question

Question text
Absenteeism increases when effective safety programs are introduced.

Select one:
True
False
Feedback

The correct answer is 'False'.

Question 3
Correct
Mark 1.00 out of 1.00

Flag question

Question text

The employer have the right to terminate an employee.

Select one:
True
False
Feedback

The correct answer is 'True'.

Question 4
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Workplace safety is important.

Select one:
True
False
Feedback

The correct answer is 'True'.

Question 5
Correct
Mark 1.00 out of 1.00

Flag question

Question text

An employee needs to give respect to the company. That means honesty and integrity.

Select one:
True
False
Feedback

The correct answer is 'True'.

Question 6
Correct
Mark 1.00 out of 1.00

Flag question

Question text

He states that "what was once understood as the work ethic—not just hard work but also a
set of accompanying virtues, whose crucial role in the development and sustaining of free
markets too few now recall".

Steven Malanga
Answer:
Feedback

The correct answer is: Steven Malanga

Question 7
Correct
Mark 1.00 out of 1.00

Flag question

Question text

A behavior of a single individual or a group that has led to a systematic lack of productivity,
reliability, accountability and a growing sphere of unprofessional/unhealthy relationships.

negative work ethic


Answer:
Feedback

The correct answer is: Negative work ethic

Question 8
Correct
Mark 1.00 out of 1.00

Flag question

Question text

A belief that work, hard work and diligence has a moral benefit and an inherent ability,
virtue or value to strengthen character.

Work ethic
Answer:
Feedback

The correct answer is: Work ethic

Question 9
Correct
Mark 1.00 out of 1.00
Flag question

Question text

When does the Labor Code of the Philippines took effect?

November 1, 1974
Answer:
Feedback

The correct answer is: November 1, 1974

Question 10
Correct
Mark 1.00 out of 1.00

Flag question

Question text

The maximum age for employment is 18 years old and above that age is not allowed.

Select one:
True
False
Feedback

The correct answer is 'False'.

IDENTIFICATION
1.Defined as “the place where work immersion of students is done".

Workplace Immersion Venue


Answer:
Feedback

The correct answer is: Workplace Immersion Venue

Question 2
Correct
Mark 1.00 out of 1.00

Flag question

Question text

IDENTIFICATION
2. A behavior of a single individual or a group that has led to a systematic lack of
productivity, reliability, accountability and a growing sphere of unprofessional/unhealthy
relationships.

Negative Work Ethic


Answer:
Feedback

The correct answer is: Negative Work Ethic

Question 3
Correct
Mark 1.00 out of 1.00

Flag question

Question text

IDENTIFICATION
3. The date where Labor Code of the Philippines took effect.

November 1, 1974
Answer:
Feedback

The correct answer is: November 1, 1974

Question 4
Correct
Mark 1.00 out of 1.00
Flag question

Question text

IDENTIFICATION
4. A belief that work, hard work and diligence has a moral benefit and an inherent ability,
virtue or value to strengthen character.

Work Ethic
Answer:
Feedback

The correct answer is: Work Ethic

Question 5
Correct
Mark 1.00 out of 1.00

Flag question

Question text

IDENTIFICATION
5. He states that "what was once understood as the work ethic—not just hard work but also
a set of accompanying virtues, whose crucial role in the development and sustaining of free
markets too few now recall".

Steven Malanga
Answer:
Feedback

The correct answer is: Steven Malanga

Question 6
Correct
Mark 1.00 out of 1.00
Flag question

Question text

He revised the notion of work ethic as a means of management control that delude workers
about the actual reality for accumulated advantage, which is a form of avarice.

Frederick Winslow Taylor


Answer:
Feedback

The correct answer is: Frederick Winslow Taylor

Question 7
Correct
Mark 1.00 out of 1.00

Flag question

Question text

The normal hours of work of any employee.

Eight
Answer:
Feedback

The correct answer is: Eight

Question 8
Correct
Mark 1.00 out of 1.00

Flag question

Question text
A written statement of your educational and work experience.

Resume
Answer:
Feedback

The correct answer is: Resume

Question 9
Correct
Mark 1.00 out of 1.00

Flag question

Question text

It is a set of pictures by someone, or photographs of examples of their work, which they use
when entering competitions or applying for work.

Portfolio
Answer:
Feedback

The correct answer is: Portfolio

Question 10
Correct
Mark 1.00 out of 1.00

Flag question

Question text

This is the more traditional format of a resume and is flexible and can be used for applicants
with any level of experience.

Reverse-Chronological
Answer:
Feedback

The correct answer is: Reverse-Chronological


Question 11
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Under whose regime does the Labor Code of the Philippines took effect?

Select one:
a. Rodrigo Roa Duterte
b. Ferdinand Marcos
c. Ninoy Aquino
d. Gloria Macapagal-Arroyo
Feedback

Your answer is correct.


The correct answer is: Ferdinand Marcos

Question 12
Correct
Mark 1.00 out of 1.00

Flag question

Question text

The Php 426 combined rate is locally referred to in the Philippines as "____________" due to
this regional disparity.

Select one:
a. Manila Rate
b. Province Rate
c. Private Rate
d. Public Rate
Feedback

Your answer is correct.


The correct answer is: Manila Rate

Question 13
Correct
Mark 1.00 out of 1.00

Flag question

Question text

The duty of every employer to give his employees not less than ______ minutes time-off for
their regular meals.

Select one:
a. 50
b. 30
c. 60
d. 40
Feedback

Your answer is correct.


The correct answer is: 60

Question 14
Correct
Mark 1.00 out of 1.00

Flag question

Question text

All employees have the right to have a __________ consecutive hours of rest day after every 6
days of work.

Select one:
a. 48
b. 6
c. 12
d. 24
Feedback

Your answer is correct.


The correct answer is: 24

Question 15
Correct
Mark 1.00 out of 1.00

Flag question

Question text

________________ focuses on your abilities and skills and is more suitable for those with an
expert level of experience.

Select one:
a. Combination
b. Reverse-Chronological
c. Functional
d. Chronological
Feedback

Your answer is correct.


The correct answer is: Functional

Question 16
Correct
Mark 5.00 out of 5.00

Flag question
Question text

What should the portfolio include? Choose at least 5 from the choices.

Select one or more:


a. Your key achievements and skills

b. Examples of your work with good documentation


c. Your drafts for your report
d. Curriculum Vitae
e. Include a uniform examples of work you have done

f. A profile or personal statement


g. An index of the contents
Feedback

Your answer is correct.


The correct answers are: An index of the contents, Your key achievements and skills

, Curriculum Vitae, A profile or personal statement, Examples of your work with good
documentation

4. Negative work ethic is a behavior of a single individual or a group that has led to a
systematic lack of productivity, reliability, accountability and a growing sphere of
unprofessional/unhealthy relationships.
T
Answer:

Feedback

The correct answer is: T

Question 2
Correct

Mark 1.00 out of 1.00


Flag question

Question text

Labor Code of the Philippines


12. TheAnswer governs employment practices and labor relations in
the Philippines.
Feedback

The correct answer is: Labor Code of the Philippines

Question 3
Correct

Mark 2.00 out of 2.00

Flag question

Question text

10. If you are putting on a performance to demonstrate your ability, overconfidence is bad.
T
Answer:

Feedback

The correct answer is: T

Question 4
Correct

Mark 1.00 out of 1.00

Flag question
Question text

6. He revised the notion of work ethic as a means of management control that delude
workers about the actual reality for accumulated advantage, which is a form of avarice.
Frederick Winslow Taylor
Answer:

Feedback

The correct answer is: Frederick Winslow Taylor

Question 5
Correct

Mark 2.00 out of 2.00

Flag question

Question text

5. During interview, asking question is not wrong because it also gives you the opportunity
to find out if this is the right place for you.

T
Answer:

Feedback

The correct answer is: T

Question 6
Correct

Mark 1.00 out of 1.00

Flag question
Question text

3. The date where Labor Code of the Philippines took effect.


November 1, 1974
Answer:

Feedback

The correct answer is: November 1, 1974

Question 7
Correct

Mark 1.00 out of 1.00

Flag question

Question text

3. The maximum age for employment is 18 years old.


Select one:

True

False

Feedback

minimum
The correct answer is 'False'.

Question 8
Correct

Mark 1.00 out of 1.00

Flag question
Question text

13. When Labor Code of the Philippines was promulgated?


May 1, 1974
Answer:

Feedback

The correct answer is: May 1, 1974

Question 9
Correct

Mark 2.00 out of 2.00

Flag question

Question text

1. On job interview, it is important to be aware of any inappropriate slang words or


references to age, race, religion, politics or sexual orientation—these topics could send you
out the door very quickly.
T
Answer:

Feedback

The correct answer is: T

Question 10
Correct

Mark 1.00 out of 1.00

Flag question

Question text

2. The employer have the right to terminate an employee.


Select one:

True

False

Feedback

The correct answer is 'True'.

Question 11
Correct

Mark 1.00 out of 1.00

Flag question

Question text

2. A behavior of a single individual or a group that has led to a systematic lack of


productivity, reliability, accountability and a growing sphere of unprofessional/unhealthy
relationships.
Negative Work Ethic
Answer:

Feedback

The correct answer is: Negative Work Ethic

Question 12
Correct

Mark 2.00 out of 2.00

Flag question

Question text
8. A portfolio is a set of pictures by someone, or photographs of examples of their work,
which they use when entering competitions or applying for work.
T
Answer:

Feedback

The correct answer is: T

Question 13
Correct

Mark 1.00 out of 1.00

Flag question

Question text

1. Defined as “the place where work immersion of students is done".


Workplace Immersion Venue
Answer:

Feedback

The correct answer is: Workplace Immersion Venue

Question 14
Correct

Mark 1.00 out of 1.00

Flag question

Question text

10. This is the more traditional format of a resume and is flexible and can be used for
applicants with any level of experience.
Reverse-Chronological
Answer:
Feedback

The correct answer is: Reverse-Chronological

Question 15
Correct

Mark 2.00 out of 2.00

Flag question

Question text

2. Functional format is flexible and can be used for applicants with any level of experience.
Chronological
Answer:

Feedback

The correct answer is: Chronological

Question 16
Correct

Mark 1.00 out of 1.00

Flag question

Question text

5. He states that "what was once understood as the work ethic—not just hard work but also
a set of accompanying virtues, whose crucial role in the development and sustaining of free
markets too few now recall".
Steven Malanga
Answer:

Feedback

The correct answer is: Steven Malanga


Question 17
Correct

Mark 1.00 out of 1.00

Flag question

Question text

5. An employee needs to give respect to the company. That means honesty and integrity.
Select one:

True

False

Feedback

The correct answer is 'True'.

Question 18
Correct

Mark 2.00 out of 2.00

Flag question

Question text

3. Place the best and most relevant work first and start and finish with strong pieces of work
on your portfolio.
T
Answer:

Feedback

The correct answer is: T


Question 19
Correct

Mark 5.00 out of 5.00

Flag question

Question text

Choose five (5) job interview skills that a person should have.
Select one or more:

a. Dress for the job or company

b. Use appropriate language

c. Don't be too familiar

d. Appear desperate

e. Don't talk too much

f. Take care to answer the questions

g. Don't ask questions

Feedback

Your answer is correct.

The correct answers are: Dress for the job or company , Don't talk too much , Use
appropriate language , Take care to answer the questions, Don't be too familiar

Question 20
Correct

Mark 1.00 out of 1.00


Flag question

Question text

8. A written statement of your educational and work experience.


Resume
Answer:

Feedback

The correct answer is: Resume

Question 21
Correct

Mark 1.00 out of 1.00

Flag question

Question text

9. It is a set of pictures by someone, or photographs of examples of their work, which they


use when entering competitions or applying for work.
Portfolio
Answer:

Feedback

The correct answer is: Portfolio

Question 22
Correct

Mark 1.00 out of 1.00


Flag question

Question text

14. As for overseas employment of Filipinos, foreign employers are not allowed to directly
hire Philippine nationals except through board and entities authorized by theAnswer
Secretary of Labor
.
Feedback

The correct answer is: Secretary of Labor

Question 23
Correct

Mark 1.00 out of 1.00

Flag question

Question text

1. Workplace safety is important.


Select one:

True

False

Feedback

The correct answer is 'True'.

Question 24
Correct

Mark 2.00 out of 2.00


Flag question

Question text

9. Put your portfolio on a web site if possible as it is so easy to access.


T
Answer:

Feedback

The correct answer is: T

Question 25
Correct

Mark 1.00 out of 1.00

Flag question

Question text

Production Portfolio
11.Answer can also include budget sheets, idea pitches and marketing
materials.
Feedback

The correct answer is: Production Portfolio

Question 26
Correct

Mark 2.00 out of 2.00

Flag question
Question text

7. Having a solid education section doesn’t help you to display the foundation of your
knowledge and expertise.
does
Answer:

Feedback

The correct answer is: does

Question 27
Correct

Mark 2.00 out of 2.00

Flag question

Question text

6. Only include your GPA below 3.0, round up to the first decimal place, and use this format:
GPA: 3.5/4.0.
above
Answer:

Feedback

The correct answer is: above

Question 28
Correct

Mark 1.00 out of 1.00

Flag question

Question text

7. The normal hours of work of any employee.


Eight
Answer:

Feedback

The correct answer is: Eight

Question 29
Correct

Mark 1.00 out of 1.00

Flag question

Question text

4. A belief that work, hard work and diligence has a moral benefit and an inherent ability,
virtue or value to strengthen character.
Work Ethic
Answer:

Feedback

The correct answer is: Work Ethic

Question 30
Correct

Mark 1.00 out of 1.00

Flag question

Question text

15. Under whose regime the Labor Code of the Philippines does took effect?
Ferdinand Marcos
Answer:

Feedback
The correct answer is: Ferdinand Marcos

Question 31
Correct

Mark 1.00 out of 1.00

Flag question

Question text

4. Absenteeism increases when effective safety programs are introduced.


Select one:

True

False

Feedback

decreases
The correct answer is 'False'.

Question 32
Correct

Mark 5.00 out of 5.00

Flag question

Question text

What should the portfolio include? Choose at least 5 from the choices.

Select one or more:


a. Your key achievements and skills

b. A profile or personal statement

c. Curriculum Vitae

d. An index of the contents

e. Examples of your work with good documentation

f. Include a uniform examples of work you have done

g. Your drafts for your report

Feedback

Your answer is correct.

The correct answers are: An index of the contents, Your key achievements and skills

, Curriculum Vitae, A profile or personal statement, Examples of your work with good
documentation

Finish review
1

ST QUARTER EXAM ICT2300

1. Defined as “the place where work immersion of students is done".

Answer:

Workplace Immersion Venue

2. A behavior of a single individual or a group that has led to a systematic lack of

productivity, reliability, accountability and a growing sphere of unprofessional/unhealthy

relationships.

Answer:

Negative w ork ethic

3. The date where Labor Code of the Philippines took effect.

Answer:

November 1, 1974

4. A belief that work, hard work and diligence has a moral benefit and an inherent
ability,

virtue or value to strengthen character.

Answer:

Work ethic
5. He states that "what was once understood as the work ethic—not just hard work but
also

a set of accompanying virtues, whose crucial role in the development and sustaining of
free

markets too few now recall".

Answer:

Steven Malanga

6. He revised the notion of work ethic as a means of management control that delude

workers about the actual reality for accumulated advantage, which is a form of avarice.

Answer:

Frederick Winslow Taylor

7. The normal hours of work of any employee.

Answer:

Eight

8. A written statement of your educational and work experience.

Answer:

Resume
9. It is a set of pictures by someone, or photographs of examples of their work, which
they

use when entering competitions or applying for work.

Answer:

Portfolio

10. This is the more traditional format of a resume and is flexible and can be used for

applicants with any level of experience.

Answer:

Reverse-Chronological

11.

Production portfolio

can also include budget sheets, idea pitches and marketing materials.

12. The

Labor Code of the Philippines

governs employment practices and labor relations in the

Philippines.

13. When Labor Code of the Philippines was promulgated?

Answer:
May 1, 1974

14. As for overseas employment of Filipinos, foreign employers are not allowed to
directly

hire Philippine nationals except through board and entities authorized by the

Secretary of Labor

15. Under whose regime the Labor Code of the Philippines does took effect?

Answer:

Ferdinand Marcos

1. On job interview, it is important to be aware of any inappropriate slang words or

references to age, race, religion, politics or sexual orientation—these topics could send
you

out the door very quickly.

Answer:

2. Functional format is flexible and can be used for applicants with any level of
experience.

Answer:

Chronological
4. Negative work ethic is a behavior of a single individual or a group that has led to a

systematic lack of productivity, reliability, accountability and a growing sphere of

unprofessional/unhealthy relationships.

Answer:

3. Place the best and most relevant work first and start and finish with strong pieces of
work

on your portfolio.

Answer: T

5. During interview, asking question is not wrong because it also gives you the
opportunity

to find out if this is the right place for you.

Answer:

6. Only include your GPA below 3.0, round up to the first decimal place, and use this
format:

GPA: 3.5/4.0.

Answer:

above

7. Having a solid education section doesn’t help you to display the foundation of your

knowledge and expertise.


Answer:

does

8. A portfolio is a set of pictures by someone, or photographs of examples of their work,

which they use when entering competitions or applying for work.

Answer:

9. Put your portfolio on a web site if possible as it is so easy to access.

Answer:

10. If you are putting on a performance to demonstrate your ability, overconfidence is


bad.

Answer:

Choose five (5) job interview skills that a person should have.

Select one or more:

a. Appear desperate

b. Use appropriate language

c. Take care to answer the questions

d. Don't talk too much

e. Dress for the job or company

f. Don't be too familiar


g. Don't ask questions

What should the portfolio include? Choose at least 5 from the choices.

Select one or more:

a. Examples of your work with good documentation

b. An index of the contents

c. Your drafts for your report

d. Your key achievements and skills

e. Include a uniform examples of work you have done

f. Curriculum Vitae

g. A profile or personal statement

1. Workplace safety is important.

Select one:

True

False

2. The employer have the right to terminate an employee.

Select one:

True

False

3. The maximum age for employment is 18 years old.

Select one:

True

False
4. Absenteeism increases when effective safety programs are introduced.

Select one:

True

False

5. An employee needs to give respect to the company. That means honesty and
integrity.

Select one:

True

False

LONG QUIZ 1 ICT2300

IDENTIFICATION

1.Defined as “the place where work immersion of students is done".

Answer:

Workplace Immersion Venue

IDENTIFICATION

2. A behavior of a single individual or a group that has led to a systematic lack of

productivity, reliability, accountability and a growing sphere of unprofessional/unhealthy

relationships.

Answer:

Negative w ork ethic


IDENTIFICATION

3. The date where Labor Code of the Philippines took effect.

Answer:

November 1, 1974

IDENTIFICATION

4. A belief that work, hard work and diligence has a moral benefit and an inherent
ability,

virtue or value to strengthen character.

Answer:

Work ethic

IDENTIFICATION

5. He states that "what was once understood as the work ethic—not just hard work but
also

a set of accompanying virtues, whose crucial role in the development and sustaining of
free

markets too few now recall".

Answer:

Steven Malanga

He revised the notion of work ethic as a means of management control that delude
workers
about the actual reality for accumulated advantage, which is a form of avarice.

Answer:

Frederick Winslow Taylor

The normal hours of work of any employee.

Answer:

Eight

A written statement of your educational and work experience.

Answer:

Resume

It is a set of pictures by someone, or photographs of examples of their work, which they


use

when entering competitions or applying for work.

Answer:

Portfolio

This is the more traditional format of a resume and is flexible and can be used for
applicants

with any level of experience.

Answer:

Reverse-Chronological
Under whose regime does the Labor Code of the Philippines took effect?

Select one:

a. Gloria Macapagal-Arroyo

b. Ninoy Aquino

c. Rodrigo Roa Duterte

d. Ferdinand Marcos

The Php 426 combined rate is locally referred to in the Philippines as "____________"
due to

this regional disparity.

Select one:

a. Private Rate

b. Manila Rate

c. Public Rate

d. Province Rate

The duty of every employer to give his employees not less than ______ minutes time-off
for

their regular meals.

Select one:

a. 40

b. 30

c. 50

d. 60

All employees have the right to have a __________ consecutive hours of rest day after
ICT-2300 WORK IMMERSION

by Zn

Includes answers for the following:


• Second Quarterly Exam
• Q1PT2
• Q1WW2
• Q2PT1
• Q2PT2
• Q2WW1
• Q2WW2

How can students with an “improvisor” time management style overcome their tendency to
procrastinate?

make plans to organize their time and ask their teachers for help before they fall behind

Which of the following definitions most closely describes a goal?

a desired result that you envision and then plan and commit to achieve

If your schedule varies from week to week, which of the following is the best option for
managing your time?

leave space in your schedule to adjust events and reminders as needed

Good goals should be

specific, measurable, attainable, relevant, and time-bound.

If you encounter a setback in your academic goals, which of the following should you do?

define the problem, see how others are dealing with the problem, determine what solutions exist
and what is needed to implement those solutions
Diane has a goal of becoming fluent in Chinese by the time she graduates with a degree in
linguistics. She has been taking Chinese classes and reading Chinese news websites for two
years in preparation for a study abroad program in Beijing. However, the semester before she is
scheduled to start her study abroad program, the program’s funding is cut, resulting in the
program’s cancellation. Which of the following is the best way for Diane to deal with this
setback?

She should find a native Chinese speaker to tutor her or possibly even be her roommate.

Which is the best way to become more productive when you are tempted to multitask and check
your social media account while studying?

Have set times during the day for checking and responding to online messages.

Ideally, family members and friends will help you through college by

offering support and encouragement to reach your goals.

Multitasking is best defined as

switching back and forth between two or more tasks quickly

What is meant by the study tip “keep your studying bite-sized”?

organize your readings and tasks into small chunks that are easy to accomplish

You are interested in identifying careers that might be a good fit for your interests, values, and
skills. Who would you contact?

a career counselor

Self-assessment surveys are useful in helping you evaluate your personal identity and can help
to recommend which of the following?

potential career paths

Which of the following types of class delivery formats meets in-person the least amount of time?
hybrid/blended

Which term describes your core beliefs and guiding principles that shape the roles you play in
daily life?

personal values

Which of the following is a strategy for achieving success in the classroom?

go to office hours and ask your instructor questions

If you need to find resources for your English paper, where should you go for help?

the reference librarian

Which of the life values self--assessment survey instruments allows you to arrange life values in
order of importance?

Life Values Assessment

What would you least expect to find in school-wide policies?

information about your class reading assignments

Which of the following is recommended as a good study habit?

Keep a regular study schedule.

Which of the following traits is associated with a successful student?

joins a study group or campus organization

What is the difference between a panel interview and a group interview?

In a panel interview, several interviewers meet with one interviewee. In a group interview, one
interviewer presents to several interviewees.
Which of the following are “soft skills”?

being a good listener, demonstrating common sense, having the ability to work under pressure

Which of the following are transferable skills?

accepting constructive criticism

You are a college-ready student if you have the necessary knowledge, skills, and professional
behaviors to do which of the following?

earn a certificate or degree in college

If you are looking for more information on choosing a major or career path from others who can
best relate to your current situation, you should talk to

fellow students and graduating seniors.

Bert works as a cashier in a bookstore for an hourly wage. He likes his work, but he doesn’t
want to be doing the same thing five years from now. On the other hand, Ernie works in a
different bookstore. He started as a cashier and was promoted to a manager. Ernie has been
learning about marketing, and five years from now he hopes to be working on marketing
projects for his current bookstore or perhaps a different bookstore. Which of the following
statements best fits this scenario?

Bert has a job; Ernie has a career.

What are the five steps for choosing a career?

get to know yourself, get to know your field, prioritize your “deal makers” and rule out your “deal
breakers,” make a preliminary career decision and create a plan of action, go out and achieve
your career goal

To be a career-ready person, which of the following must you have?

the necessary knowledge and technical skills needed to be employed in your desired field
Katie is nervous about her upcoming job opportunities and wants to make sure that her résumé
is perfect. What is the best advice for her?

Use action verbs and phrases.

Which of the following are examples of “hard skills”?

sewing a dart in a dress, writing Python code, operating an x-ray machine

Which traits are typical of the exploring stage of career development?

identifying your interests and aptitudes and trying out jobs

Which of the following should NOT be included on a résumé?

childhood hobbies

“Why should we hire you?” “What are your strengths and weaknesses?” “What attracted you to
this company?” These are all examples of

basic interview questions.

Which of the following should a cover letter accomplish?

get the reader’s attention, reflect genuine interest in the position, and explain why you are the
best person for the position

Which of the following is the best technique to win a face-to-face interview from a screening
interview?

try to stand out from the competition

Which of the following should you include on a résumé?

education, work experience, relevant skills, contact information


Which of the following will be most beneficial to help you grow your professional network?

connect with your parents’ friends as network contacts

Which of the following should you AVOID in your cover letter?

reasons why you left your last position

Which of the following is the most effective response to the interview question “What is your
greatest weakness?”

“In the past I haven’t been great at planning and prioritizing tasks. However, I am taking steps to
fix that by using a planning app and marking deadlines on my calendar.”

Which of the following is the first step to preparing for an interview?

reread the job posting or description

Which of the following are diversity and multicultural organizations?

clubs focused on creating diverse, multicultural, and inclusive communities

Why are academic print resources generally more credible than online sources?

Print resources have been vetted by multiple authors and editors in order to reach publication.

When studying to remember things, it’s best to think about ________ rather than facts.

Concepts

Just one day after computer programming class, Suzanne was surprised to find that, like most
people, she forgot roughly ________ of what she learned in that class session.

80%
Which of the following is a positive effect of participating in diverse groups in an educational
setting?

You can perceive in new ways, seeing issues and problems from new angles.

What type of situation best inspires creativity?

when there is a problem to solve

Isabella needs to create a mini-presentation with her group for an advertising campaign project
in her marketing class. What type of learning is she doing?

active learning

Which resource below probably contains the most effective information to to help you write your
paper on death penalty laws in California?

"Polls Show Preference for Death Penalty Alternatives" news article

Which tool can best enable students to observe and analyze the world or reimagine it in a way
that appeals to them?

digital camcorders

What best defines “critical thinking”?

skepticism and examining assumptions

Presenting someone else’s ideas as your own is best defined as

plagiarism.

Using web applications and tools to help you keep track of your sources and create your
citations is

a good idea.
Eating a healthy diet can reduce your risk of which of the following?

both heart disease and cancer

What are common signs of depression?

moving slowly, difficulty sleeping, feelings of pessimism. aches and pains

If you rewrite a quote in your own words, it

always need to be cited.

If you are concerned about not having enough time to work during school, you may find
________ to be the best solution.

a summer job

Budgets should include

all of your spending habits.

Taking tests is valuable for which of the following reasons?

The more often you retrieve information, the more likely you are to retain it for the long term.

If you include quotes in your paper, they

always need to be cited.

A person with good mental health will realize his or her own abilities, can cope with the normal
stresses of life, and

can work productively and fruitfully.


A good portfolio should have an index of the contents.

True

Defined as “the place where work immersion of students is done".

workplace immersion venue

Make sure that the portfolio is carefully laid out and in the correct order.

True

While chronological places emphasis on career progression, a functional format focuses on your
abilities and skills.

True

All items need to be clear and easy to understand.

True

He states that "what was once understood as the work ethic—not just hard work but also a set
of accompanying virtues, whose crucial role in the development and sustaining of free markets
too few now recall".

steven malanga

Chronological format is more of traditional format and is what you are most likely to come
across.

False

If an item is too large to take to the interview you can bring it to show with close ups to elicit
details.

False
A resume is a written statement of your educational and work experience.

True

Practice good nonverbal communication is one of the necessary skills on job interview.

True

When Labor Code of the Philippines was promulgated?

may 1, 1974

Personal experience can also be referred as a career objective.

False

Under whose regime the Labor Code of the Philippines does took effect?

ferdinand marcos

Overconfidence is not bad if you are putting on a performance to demonstrate your ability.

False

can also include budget sheets, idea pitches and marketing materials.

production portfolio

A behavior of a single individual or a group that has led to a systematic lack of productivity,
reliability, accountability and a growing sphere of unprofessional/unhealthy relationships.

negative work ethic

The normal hours of work of any employee.


eight

It is a set of pictures by someone, or photographs of examples of their work, which they use
when entering competitions or applying for work.

Portfolio

This is the more traditional format of a resume and is flexible and can be used for applicants
with any level of experience.

reverse-chronological

The qualifications summary is a bullet point list (ranging from 4 to 6 points) of your most
outstanding career achievements.

True

The date where Labor Code of the Philippines took effect.

november 1, 1974

The curriculum vitae including your interests and any evidence of project management skills can
be included in a portfolio.

True

It is important to know what to wear to an interview and to be well-groomed.

True

The Php 426 combined rate is locally referred to in the Philippines as "Answer" due to this
regional disparity.

manila rate
Functional format is flexible and can be used for applicants with any level of experience.

False

On job interview, it is important to be aware of any inappropriate slang words or references to


age, race, religion, politics or sexual orientation—these topics could send you out the door very
quickly.

True

A portfolio is a set of pictures by someone, or photographs of examples of their work, which they
use when entering competitions or applying for work.

True

Place the best and most relevant work first and start and finish with strong pieces of work on
your portfolio.

True

Credentials are documents that state the abilities and experience of a person and show that the
person is qualified for a particular job or activity.

True

focuses on your abilities and skills and is more suitable for those with an expert level of
experience.

functional format

A written statement of your educational and work experience.

resume

It is important to bring energy and enthusiasm to the interview and to ask questions and it is
about making a new friend.
False

Combination format is generally reserved for beginners with less experience in a particular
industry.

False

Remember to list your work experiences in reverse chronological order and only list experience
that is relevant to the job you are applying for.

True

A resume is a means of not advertising yourself to get a job that you want and will give a short
impression about you to the employers whether you attain their standards or not.

False

A belief that work, hard work and diligence has a moral benefit and an inherent ability, virtue or
value to strengthen character.

work ethic

When creating a portfolio, go for quantity not quality.

False

Include your GPA from 5.0, round up to the first decimal place, and use this format: GPA:
3.5/4.0.

False

Functional format is more suitable for those with an expert level of experience.

True
He revised the notion of work ethic as a means of management control that delude workers
about the actual reality for accumulated advantage, which is a form of avarice.

frederick winslow taylor

Production portfolios cannot be included such as budget sheets, idea pitches and marketing
materials.

False

A combination of both the career objective and qualifications summary.

professional profile

During interview, asking question is not wrong because it also gives you the opportunity to find
out if this is the right place for you.

True

Having a solid education section doesn’t helps to display the foundation of your knowledge and
expertise.

False

The duty of every employer to give his employees not less than Answer minutes time-off for
their regular meals.

60

All employees have the right to have a Answer consecutive hours of rest day after every 6 days
of work.

24

Don’t put your portfolio on a web site if possible as it is so easy to access.

False
The Answer governs employment practices and labor relations in the Philippines.

labor code of the philippines

Professional Profile is also the most flexible of the three styles as it can be formatted as short
paragraph of bullet-point list.

True

As for overseas employment of Filipinos, foreign employers are not allowed to directly hire
Philippine nationals except through board and entities authorized by the Answer.

secretary of labor
Question 1
Complete
Mark 1.00 out of 1.00

Question text
Observe the following statements and decide whether the
variable result’s value is TRUE or FALSE.
Given that:
int x = -77; The last line of code, with a close brace { symbol, is properly
indented.
int z = 43;
indented.
result = (z != 43) ? true : false;
Select one:
Select one:
True
True
False
False
Question 3
Question 2 Complete
Complete Mark 1.00 out of 1.00
Mark 1.00 out of 1.00
Question text
Question text
True or False: Brackets [] are also separators used in declaring
Read each statement carefully and decide whether it’s TRUE arrays.
or FALSE.
Answer:
True

Question 4
Complete
Mark 1.00 out of 1.00

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
There are no errors in the program.
Question 5 Select one:
Complete
Mark 1.00 out of 1.00 False

Question text Question 7


Complete
True or False: Operators, in Java programming language, use Mark 0.00 out of 1.00
special symbols to call methods and their objects.
Question text
Answer:
Refer to the block of codes below. Read each statement
False
carefully and decide whether it’s TRUE or FALSE.
Question 6
Complete
Mark 0.00 out of 1.00

Question text
Read each statement carefully and decide whether it’s TRUE
or FALSE.

Line 9 uses a traditional comment which uses double forward


slash.
Answer: FALSE result = (x = 100) >= z;

Question 8 Select one:


Complete True
Mark 1.00 out of 1.00
False
Question text
True or False: Many programmers can be literate with Java
programming language for it is intended to be that way.
Answer:
True

Question 9
Complete
Mark 1.00 out of 1.00

Question text
True or False: You’ll know there’s an error if you see a red
circle with an exclamation point in Netbeans IDE.
Answer:
True

Question 10
Complete
Mark 1.00 out of 1.00

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;
Question 1 If there are no errors and this simple program runs through CLI,
Complete the first line will display: Hi, students!
Mark 1.00 out of 1.00
Select one:
Question text
False
Observe the following statements and decide whether the
variable result’s value is TRUE or FALSE. Question 3
Complete
Given that: Mark 1.00 out of 1.00

int x = -77; Question text


int z = 43; Refer to the block of codes below. Read each statement carefully
result = (x * z + (z += 7)) >= 100; and decide whether it’s TRUE or FALSE.

Select one:
If there are no errors in the program, the first line of output would
True read Hi, I’m a normal person.
False Answer:
FALSE
Question 2
Complete
Mark 0.00 out of 1.00 Question 4
Complete
Question text Mark 1.00 out of 1.00

Read each statement carefully and decide whether it’s


TRUE or FALSE.

Flag question

Question text
Refer to the block of codes below. Read each statement carefully
and decide whether it’s TRUE or FALSE.

When the program runs, and assuming there are no errors, its
first line will be begin printing.
Answer: Complete
Mark 1.00 out of 1.00
FALSE
Question text
Question 6
Complete
True or False: When you run javac in a command line interface, it
Mark 1.00 out of 1.00 will automatically create another file with a filename extension
.class.
Question text
Answer:
True or False: The conditional AND operator uses two True
ampersand (&&) symbols.
Answer:
True

Question 8
Complete
Mark 1.00 out of 1.00

Question text
True or False: A boolean variable can only have two values; it is
either true or false.
Answer:
True

Question 9
Complete
Mark 0.00 out of 1.00

Question text
Refer to the block of codes below. Read each statement carefully
and decide whether it’s TRUE or FALSE.

There are keywords found in line 7.


Answer: true

Question 10
Question 1 On line 6, average is equal to 0. But on line 9, average will be
Complete equal to 100.
Mark 1.00 out of 1.00
Select one:
Question text
True
Refer to the block of codes below. Read each statement carefully False
and decide whether it’s TRUE or FALSE.
Question 4
Complete
If there are no errors in the program, line 9 would display I weigh Mark 1.00 out of 1.00
160.
Question text
Answer:
FALSE Refer to the program below. Read each statement carefully and
write the output for each line specified.
Question 2
Complete 18
Mark 1.00 out of 1.00 Line 13 will display Answer on the screen.
Question text Question 5
Complete
True or False: The subtraction assignment operator subtracts the Mark 1.00 out of 1.00
left and right operand and assigns the difference to the operand
at the right.
Question text
Answer:
False Observe the following statements and decide whether the
variable result’s value is TRUE or FALSE.
Question 3 Given that:
Complete
Mark 1.00 out of 1.00 int x = -77;

Question text int z = 43;


result = 43 <= z;
Read each statement carefully and decide whether it’s
TRUE or FALSE.
Select one:
True
False
Question 6
Complete
Mark 1.00 out of 1.00
The file is accurately named – Students.java.
Question text
Refer to the block of codes below. Read each statement carefully Select one:
and decide whether it’s TRUE or FALSE.
False
The last line of code will output 100.0. Question 9
Complete
Answer: Mark 1.00 out of 1.00
TRUE
Question text
Question 7 True or False: Java is a low level programming language.
Complete
Mark 1.00 out of 1.00 Answer:
False

Question 10
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Question text
True or False: Traditional comments start with /** (forward slash
True or False: Single equal sign (=) is used for assigning values and two asterisks) and ends with */ (asterisk and forward slash).
while double equal sign (==) is used in comparing values.
Answer:
Answer: False
True

Question 8
Complete
Mark 0.00 out of 1.00

Question text

Read each statement carefully and decide whether it’s


TRUE or FALSE.
Question 1 There are three (3) separators found in line 13.
Complete
Mark 1.00 out of 1.00 Answer:
False
Question text
True or False: An exclamation point in Java means NOT. Question 4
Therefore, != means not equal to. Complete
Mark 1.00 out of 1.00
Answer:
Question text
True
True or False: Syntax is basically the spelling and grammar errors
Question 2 compiled in a Java programming language. It should be avoided
Complete in writing apps and applets.
Mark 1.00 out of 1.00
Answer:
Question text False

Observe the following statements and decide whether the


variable result’s value is TRUE or FALSE. Question 5
Complete
Given that: Mark 1.00 out of 1.00
int x = -77; Question text
int z = 43; Refer to the block of codes below. Read each statement carefully
result = (z != 43) ? true : false; and decide whether it’s TRUE or FALSE.

Select one:
True
False

Question 3
Complete
Mark 1.00 out of 1.00

Question text
There are five (5) separators used in line 8.
Refer to the block of codes below. Read each statement carefully
and decide whether it’s TRUE or FALSE. Answer:
True
Question 6
Complete
Mark 1.00 out of 1.00

Question text
True or False: The subtraction assignment operator subtracts the
left and right operand and assigns the difference to the operand
at the right.
Answer:
False Select one:
True
Question 7
Complete False
Mark 1.00 out of 1.00
Question 9
Question text Complete
Mark 1.00 out of 1.00
True or False: Single equal sign (=) is used for assigning values
while double equal sign (==) is used in comparing values. Question text
Answer: Observe the following statements and decide whether the
True variable result’s value is TRUE or FALSE.
Given that:
Question 8
Complete int x = -77;
Mark 1.00 out of 1.00
int z = 43;
Question text
result = (z < x && 1 != 10) ? true : false;
Read each statement carefully and decide whether it’s
TRUE or FALSE. result = (x = 100) >= z;

There are no errors in the program. Select one:


True
False

Question 10
Complete
Mark 1.00 out of 1.00
Flag question

Question text
True or False: JDK or Java Design Kit is required to compile and
run Java apps and applets.
Answer:
True
Mark 1.00 out of 1.00
Question 1
Complete Question text
Mark 1.00 out of 1.00

Question text Observe the following statements and decide whether the
variable result’s value is TRUE or FALSE.
Refer to the block of codes below. Read each statement carefully
Given that:
and decide whether it’s TRUE or FALSE.
int x = -77;
There are keywords found in line 7. int z = 43;
Answer: result = (x * z + (z += 7)) >= 100;
true
Select one:
True
Question 2
Complete False
Mark 1.00 out of 1.00

Question text Question 5


Complete
Refer to the block of codes below. Read each statement carefully Mark 1.00 out of 1.00
and decide whether it’s TRUE or FALSE. Question text
True or False: There are five types of integer data types – byte,
There is an error in line 9. short, int, long and float.
Answer: Answer:
true
false

Question 3
Question 7
Complete
Complete
Mark 0.00 out of 1.00
Mark 1.00 out of 1.00
Question text Question text
True or False: Java’s ternary operator is a short hand for the if- True or False: A boolean variable can only have two values; it is
then-else statement which uses a question mark and a colon. either true or false.
Answer: True Answer:
true
Question 4
Complete
Question 8 int z = 43;
Question 9 result = 90 < x || -1 < z;
Complete
Mark 1.00 out of 1.00 Select one:
Question text True

True or False: You’ll know there’s an error if you see a red circle False
with an exclamation point in Netbeans IDE.
Answer: True or False: The modulus operator returns the remainder of a
division operation instead of the quotient.
true
Answer:
Question 10 true
Complete
Mark 1.00 out of 1.00 True or False: Identifiers in Java are, in simple words, name that
you give to Java class, variables and methods.
Question text
Answer:
Refer to the block of codes below. Read each statement carefully
true
and decide whether it’s TRUE or

Line 14 will yield an error. It will be corrected if you place */ after


the method.
Answer: FALSE
True or False: Public, static and void are sample of Java reserved
keywords.
Answer:
true

Observe the following statements and decide whether the


variable result’s value is TRUE or FALSE.
Given that:
int x = -77;
Question 1 False
Complete
Mark 1.00 out of 1.00
Question 4
Question text Complete
Mark 1.00 out of 1.00
True or False: Brackets [] are also separators used in declaring
Question text
arrays.
Answer: Read each statement carefully and decide whether it’s
True
TRUE or FALSE.

Question 2
Complete
Mark 1.00 out of 1.00 If you run this program, the second line of output will read Your
Question text score is:

True or False: Operators, in Java programming language, use


special symbols to call methods and their objects.
Select one:
Answer: True
False
False
Question 3 Question 5
Complete Complete
Mark 1.00 out of 1.00 Mark 1.00 out of 1.00
Question text Question text
Observe the following statements and decide whether the Read each statement carefully and decide whether it’s
variable result’s value is TRUE or FALSE.
TRUE or FALSE.
Given that:
int x = -77;
int z = 43;
result = -(-z) == 43; The last line of code, with a close brace { symbol, is properly
indented.
Select one:
Select one:
True
True Question 8
Complete
False Mark 1.00 out of 1.00

Question 6 Question text


Complete
Mark 1.00 out of 1.00
Refer to the block of codes below. Read each statement carefully
and decide whether it’s TRUE or FALSE.
Question text
Observe the following statements and decide whether the The person’s weight is declared correctly with the correct data
variable result’s value is TRUE or FALSE. type (byte) and value (160).
Given that: Answer:
int x = -77; FALSE

int z = 43;
Question 9
result = (z < x && 1 != 10) ? true : false; Complete
Mark 1.00 out of 1.00

Question text

Read each statement carefully and decide whether it’s


Select one:
TRUE or FALSE.
True
False The second line of output will be: You are in Year 11.
Question 7 Select one:
Complete
Mark 1.00 out of 1.00 True

Question text False

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

In line 11, the value of personage is 18. Question text

Answer: Refer to the block of codes below. Read each statement carefully
and decide whether it’s TRUE or FALSE.
TRUE
The last line of code will output 100.0.

Answer:
TRUE
Question 1 Assuming there are no errors in the code, line 13 would display
Complete When I graduate, I’d be 18.
Mark 1.00 out of 1.00
Answer:
Question text TRUE

Read each statement carefully and decide whether it’s


TRUE or FALSE. Question 4
Complete
Mark 1.00 out of 1.00
If there are no errors and this simple program runs through CLI, Question text
the first line will display: Hi, students!
Refer to the block of codes below. Read each statement carefully
Select one: and decide whether it’s TRUE or FALSE.
True
False If there are no errors in the program, line 9 would display I weigh
160.
Question 2
Complete Answer:
Mark 1.00 out of 1.00 FALSE

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

Question text
There are no errors on line 8.
True or False: Semicolon (;) is a separator used to end a Java
Answer: statement.
FALSE
Answer:
True
Question 3
Complete
Mark 1.00 out of 1.00 Question 6
Complete
Question text Mark 1.00 out of 1.00

Refer to the block of codes below. Read each statement carefully Question text
and decide whether it’s TRUE or FALSE.
True or False: When you run javac in a command line interface, it Answer:
will automatically create another file with a filename extension True
.class.
Answer: Question 9
Complete
True Mark 1.00 out of 1.00

Question 7
Question text
Complete Observe the following statements and decide whether the
Mark 1.00 out of 1.00
variable result’s value is TRUE or FALSE.
Question text
Given that:
Read each statement carefully and decide whether it’s int x = -77;
TRUE or FALSE.
int z = 43;
result = !((x * 10) < z);

Select one:
True
False
figure shows the Netbeans Integrated Development Environment.
Question 10
Select one: Complete
True Mark 1.00 out of 1.00

False Question text

Question 8
True or False: Logical OR operator will result to false if one of the
Complete expressions is false.
Mark 1.00 out of 1.00
Answer:
Question text False

True or False: The conditional AND operator uses two


ampersand (&&) symbols. Question 2
Complete
Question 6
Mark 1.00 out of 1.00
Complete
Question text Mark 1.00 out of 1.00

True or False: Public, private and protected are some of the Question text
return types used in Java programming. Determine the output.
Answer:
False
Select one:
Question 3 a. 123
Complete
Mark 1.00 out of 1.00
b. 169
c. error
Question text
d. 155

Question 9
TRUE OR FALSE: This is an example of concatenation. Complete
Mark 1.00 out of 1.00
Select one:
True Question text

False True or False: Divide and conquer strategy, in programming, is


also known as the top-down design.
Question 4
Complete Answer:
Mark 1.00 out of 1.00 True

Question text
Question 15
Determine the output. Complete
Mark 1.00 out of 1.00

Question text
Select one:
True or False: You’ll know that a variable is a class variable when
a. error you see that variable inside a class with the word static.
b. 4298
Answer:
c. 5698 True
d. 6492
Question 17 True
Complete
Mark 1.00 out of 1.00 False
Question text Question 20
Complete
Strings can be declared with str. Mark 1.00 out of 1.00

Select one: Question text


True True or False: Variable names in Java are not necessarily case
False sensitive.

Question 18
Complete
Mark 1.00 out of 1.00

Question text Answer:


False
Determine the output.
Question 1
Complete
Select one: Mark 1.00 out of 1.00

a. 4 Question text
b. 36 True or False: Procedural programming involves instructing the
c. error system as to how to complete a task.
d. 351 Answer:
True
Question 19
Complete
Mark 1.00 out of 1.00 Question 2
Complete
Question text Mark 1.00 out of 1.00

Question text

TRUE OR FALSE: The output of this code is “The quick True or False: Variable 1st_num is a good variable name in Java
brown fox” programming.

Select one:
Answer: Question 11
False Complete
Mark 1.00 out of 1.00
Question 5
Complete Question text
Mark 1.00 out of 1.00
Languages which use procedural programming include
Question text C++
C, Answer , FORTRAN, Pascal and BASIC.
True or False: Local variables are declared inside the default
method. Question 12
Complete
Answer: Mark 0.00 out of 1.00
False
Question text
Question 9 Determine the output.
Complete
Mark 1.00 out of 1.00

Question text Select one:


Strings can be declared with str. a. bar
Select one: b. foobar
True c. error
False d. foo

Question 13
Question 10
Complete
Complete
Mark 1.00 out of 1.00
Mark 1.00 out of 1.00

Question text Question text

True or False: Variable names in Java are not necessarily case In procedural programming, a step-by-step sequence of
Task
sensitive. instructions is followed to perform a Answer .
Answer: Question 14
False Complete
Mark 1.00 out of 1.00
Question text Question text
True or False: Instance variables are declared inside a method
but outside a class.
TRUE OR FALSE: This is an example of concatenation.
Answer:
Select one:
False
True
Question 15 False
Complete
Mark 1.00 out of 1.00 Question 18
Complete
Question text Mark 1.00 out of 1.00

Question text
TRUE OR FALSE: The output of this code is “The quick
brown fox”
TRUE OR FALSE: “val_2” contains “The”.
Select one:
Select one:
True
False
True
Question 16 False
Complete
Mark 1.00 out of 1.00 Question 19
Complete
Question text Mark 1.00 out of 1.00
True or False: Divide and conquer strategy, in programming, is Question text
also known as the top-down design.
True or False: You’ll know that a variable is a class variable
Answer: when you see that variable inside a class with the word static.
True
Answer:
True
Question 17
Complete
Mark 1.00 out of 1.00 Question 20
Complete
Mark 1.00 out of 1.00

Question text
Fill in the blank: In designing the program specification,
Output
determine first the input, then the Answer and then
analyze the problem.
Question 1
Answer saved

Marked out of 1.00

Flag question

Question text
Method invocations are statements
Flag question
Select one:
Question text
Refer to the block of codes below. Read each statement carefully a. False
and decide whether it’s TRUE or FALSE.
b. True

Question 3
Answer saved

Marked out of 1.00

Line 9 comment can also be changed to another type of comment


Flag question
by replacing // with /* and it will function the same.
Answer: Question text
FALSE A reference variable can be reassigned to other objects provided
that it is not declared _.
Question 2
Answer saved Select one:

Marked out of 1.00


a. Inheritance

b. Final
Marked out of 1.00
c. Abstract class

d. Directly

e. Parent class

f. Encapsulation Flag question

Question text
g. Private
True or False: In this expression – counter++ - a value of 1 is
h. More than one added to counter twice.

Answer:
i. Different forms True

j. Super class
Question 6
Answer saved
Question 4
Answer saved Marked out of 1.00

Marked out of 1.00

Flag question

Flag question Question text


Question text Fill in the blank:
True or False: A method could be declared without any
parameters.

Answer:
False

Question 5
Answer saved
Answer:
a. False
barfoo

b. True
Question 7
Answer saved Question 9
Answer saved
Marked out of 1.00
Marked out of 1.00

Flag question
Flag question
Question text
Question text
True or False: Keywords are Java reserved words which are used
as identifier for interface, constants and constructs.

Answer:
True TRUE OR FALSE: The assigned values of “val_1” & “val_2”
are integers.
Question 8 Select one:
Answer saved

Marked out of 1.00 True

False

Question 10
Answer saved

Flag question Marked out of 1.00

Question text
An array can be infinitely long.
Select one:
Question text
1+2+3/4*5 is an unambiguous expression
Select one:

Flag question
a. False
Question text
b. True
simplify
In programming, abstracting a problem means Answer it.
Question 13
Answer saved
Question 11
Answer saved Marked out of 1.00

Marked out of 1.00

Flag question
Flag question Question text
Question text Refer to the block of codes below. Read each statement carefully
Fill in the blank: Procedural programming is done and decide whether it’s TRUE or FALSE.
applica
because Answer cannot decide on their own what
sequence of tasks should be followed.

Question 12
Answer saved

Marked out of 1.00

There are no errors on line 11 but the variable ageFuture is not


used in the program.

Flag question
Answer: Answer:
TRUE False

Question 14 Question 16
Answer saved Answer saved

Marked out of 1.00 Marked out of 1.00

Flag question Flag question

Question text Question text


True or False: Comments are considered part of Java’s internal Fill in the blank:
documentation and it is therefore read and executed by the
compiler.

Answer:
False

Question 15
Answer saved Answer:
Marked out of 1.00 foo

Question 17
Answer saved

Marked out of 1.00

Flag question

Question text
True or False: Non-procedural programming focuses on how a
task is done rather than on what task should be done. Flag question
Question text
True or False: There are standard naming convention for Java
classes, methods, variables and constants.
Answer:
Flag question
True
Question text
Question 18
Answer saved
The term of each pass through a loop makes is called?

Marked out of 1.00 Select one:

a. cycle

b. turn around

Flag question
c. loop

Question text d. iteration


Inner class methods can be called by constructing the inner class.
Question 20
Answer saved
Select one:
Marked out of 1.00
a. False

b. True

Question 19
Answer saved
Flag question
Marked out of 1.00
Question text
Determine the output.
Question 22
Answer saved

Marked out of 1.00

Select one:
Remove flag

a. error Question text

b. hodog Refer to the code snippet below. Identify what part of a method is
shown in each number (the underlined one).
c. dogehot

d. hotdog

Question 21
Answer saved

Marked out of 1.00

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


Answer:
method body

Flag question
Question 23
Question text Answer saved

Marked out of 1.00


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

Answer:
False
Answer saved

Marked out of 1.00

Flag question

Question text
An int can be used even if it is declared outside a for-loop. Flag question

Select one: Question text


This type of declaration is discouraged: “int myArray[ ]”
a. False
Select one:
b. True
a. False
Question 24
Answer saved b. True
Marked out of 1.00
Question 26
Answer saved

Marked out of 1.00

Flag question

Question text

Strings can directly concatenated to an int. Flag question

Select one: Question text


Procedural programming will be tricky for Answer
True small
applications.
False
Question 27
Answer saved
Question 25
Marked out of 1.00

Flag question

Question text
An iteration of a loop is equivalent to one pass through. Select one:
Select one:
a. error
a. True
b. fudgee bar
b. False
c. chocolate bar
Question 28
Answer saved d. foo chocolate
Marked out of 1.00
Question 29
Answer saved

Marked out of 1.00

Flag question

Question text
Determine the output. Flag question

Question text
The Arrays.sort( ) method sorts an array into order.
Select one:

a. descending
b. None of the choices

c. All of the choices

d. ascending Flag question

e. random Question text


If-if is more logical than else-if.
Question 30
Answer saved Select one:
Marked out of 1.00
a. True

b. False

Question 32
Answer saved
Flag question
Marked out of 1.00
Question text
Loops must always have a continue or break statement.

Select one:

a. True Flag question

b. Maybe Question text


Please refer to figure 1 to answer the question below:
c. Doesn’t matter What the break statement in this example does is .

d. False Select one:

Question 31 a. Ends the whole instance of the loop


Answer saved

Marked out of 1.00 b. Ends an iteration of the loop.


c. Creates a new loop Read each statement carefully and decide whether it’s
TRUE or FALSE.
d. Ends the program

Question 33
Answer saved

Marked out of 1.00

Flag question

Question text
Infine for-loops can be declared as for( ){ }.
Select one: The filename of the Java file above is computesum.java.

True

False The last line of code, with a close brace { symbol, is properly
Question 34 indented.
Answer saved

Marked out of 1.00


Select one:

True

False

Question 35
Flag question Answer saved

Question text Marked out of 1.00


Marked out of 1.00

Flag question

Question text Remove flag

Refer to the block of codes below. Read each statement carefully Question text
and decide whether it’s TRUE or FALSE.
Determine the output.

Select one:

a. f o

b. o f

c. o o

d. error

There are no errors in line 11. Question 37


Answer saved
Answer:
Marked out of 1.00
TRUE

Question 36
Answer saved
Question 38
Answer saved

Marked out of 1.00

Flag question

Question text
Read each statement carefully and decide whether it’s
TRUE or FALSE. Flag question

Question text
A loop can contain no expressions or statements inside.
Select one:

a. False

b. True

Question 39
Answer saved

Marked out of 1.00

There are no bugs and errors in the program.

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

indented.
Question text
Select one:

True Select one:

False a. Index
b. object

c. bytes

d. 3-d or 3-dimensional Flag question

e. int[ ] Question text


Conditional statements are the same as declaration statements.
f. boolean
Select one:
g. 2-d or 2-dimensional
a. True
h. discouraged
b. False
i. 255
Question 41
Answer saved
j. Allocate
Marked out of 1.00
k. can

l. arraycopy( )

m. any
Flag question
n. Fills
Question text
o. one The equivalent of clauses in coding is?

Question 40 Select one:


Answer saved

Marked out of 1.00


a. Blocks

b. Expressions

c. Statements
Answer:
d. Paragraphs
local variable
Question 42
Answer saved Question 43
Answer saved
Marked out of 1.00
Marked out of 1.00

Flag question

Question text
Question text
Refer to the code snippet below. Determine whether the given is
a local variable, instance variable, access modifier or a class Encapsulated data are hidden from other classes.
name.

a. True

b. False

Question 44
Answer saved

Marked out of 1.00

Flag question

Question text

GIVEN: String bossName


Abstract methods need sub-classes to contain their
implementations.

Select one:

a. False Flag question

b. True Question text


Refer to the code snippet below. Identify what part of a method is
Question 45 shown in each number (the underlined one).
Answer saved

Marked out of 1.00

Flag question

Question text GIVEN: int getArea

The last part in a for loop setup can be an _. Answer:


return type
Select one:
Question 47
a. decrement Answer saved

Marked out of 1.00


b. increment

c. both

d. none of the two

Question 46 Flag question


Answer saved
Question text
Marked out of 1.00
Int num = 1; for(num=num;num<=10;num++) is an acceptable Marked out of 1.00
code snippet.

Select one:

a. True
Flag question
b. False
Question text
Question 48
Answer saved Refer to the code snippet below. Identify what part of a method is
shown in each number (the underlined one).
Marked out of 1.00

Flag question

Question text
Please refer to figure 1 to answer the question below: GIVEN: public int getArea
If the increment num=num+2 is changed to num++, the final value Answer:
of num will be . modifier

Select one:
Question 50
Answer saved
a. 5
Marked out of 1.00
b. 10

c. 0

d. 12
Flag question
Question 49
Answer saved Question text
You cannot use inherited methods directly in a child class. What the break statement in this example does is
Select one:
.
-Ends the whole instance of the loop
a. True The random( ) method sorts the array randomly.
-False
b. False The last part in a for loop setup can be an .
- both
The “1” in arrayName[1] is called an .
FOURTH QUARTER EXAM JAVA -Index
PROGRAMMING (PROG-111A) The continue; statement ends all the iterations of a loop.
- False
43/50 Which is not a proper increment?
- n+-;
Infine for-loops can be declared as for( ){ }.
BY: JOSHUA UNGAB - False
If-if is more logical than else-if.
(NOTE: WAG NYO SANA GAMITIN PANG - False
BEBENTA SA IBA JUSKO. SHARE NYO The else statement can be removed if not needed.
SA IBA GUYS) -True
Expressions, Statements and Blocks are like composing
sentences and paragraphs.
-True
The equivalent of clauses in coding is? You can declare a new method in the subclass which is
-Expressions not declared in the superclass.
Int num = 1; for(num=num;num<=10;num++) is an -True
acceptable code snippet. The return value of the equals( ) method is .
-true -None of the choices
Loop that has a pre-determined number of iterations The Arrays.sort( ) method sorts an array into
-while order.
An int can be used even if it is declared outside a for- -Ascending
loop. This type of declaration is discouraged: “int myArray[ ]”
-true - True
Overload methods must be the same name as the class An if-else-if-else statement is a block.
-true
-True -0
If the increment num=num+2 is changed to num++, the Ifs and else-ifs test expressions return true or false.
final value of num will be . - True
-5 classes increase the encapsulation of you
The term of each pass through a loop makes is called? methods and data.
-iteration - nesting
Loops must always have a continue or break statement. Constructed methods are initialized with 0 or null
-False depending on the data type.
1+2+3/4*5 is an unambiguous expression - true
-False The else statement catches whatever argument the if and
Conditional statements can contain more conditional else-if didn’t
statements. - True
- True An iteration of a loop is equivalent to one pass through.
int num = 1; - true
if(num==1 && num<=1){ 38. If we change the initial value of num in line 6 to “num
body; = 0”, the println output will be
} -0
The else-if statement can be used alone.
The conditional statement will . - false
- execute the body Abstract methods need sub-classes to contain their
byte( ][ ][ ) myArray; is an example of . implementations.
- An error -true
An array hold objects. The method arraycopy( ) does what?
- can - Copies the contents of an array to a destination
A reference variable can be reassigned to other objects array.
provided that it is not declared . An array can be infinitely long.
- final - False
The test expression of conditional statement cannot A loop can contain no expressions or statements inside.
contain - true
-! Conditional statements are the same as declaration
Each pass through of a loop is called a cycle. statements.
- True - False
If the increment “num = num + 2” is changed to “num = You cannot use inherited methods directly in a child
num + 1” the final output will be .
class.
- False
The equals( ) method compares 2 arrays.
- True
Method invocations are statements
- True
To implement encapsulation, you have to declare class
variables with the private modifier.
- True
Inner class methods can be called by constructing the Answer: val_1 + val_2
inner class.
- False
Encapsulated data are hidden from other classes. Read each statement carefully and decide whether it’s
- True
TRUE or FALSE.

Refer to the code snippet below. Identify what part of a


method is shown in each number (the underlined one).

GIVEN: public int getArea


Answer: Method Name

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


Fill in the blanks with the correct answer.
Answer: False
Refer to the code snippet below. Identify what part of a Strings can directly concatenated to an int.
method is shown in each number (the underlined one).
Answer: False

GIVEN: int getArea


Answer: Return Type

Fill in the blank:


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

Fill in the blank:

Answer: foo
Procedural programming will be tricky for
applications.
Answer: small
Answer: barfoo
Refer to the code snippet below. Determine whether the
given is a local variable, instance variable, access
modifier or a class name.

TRUE OR FALSE: The assigned values of “val_1” &


“val_2” are integers.
Answer: FALSE

Fill in the blank:


GIVEN: private class EmployeeRecord
Answer: access modifier

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

Fill in the blank:

There are no errors in line 11.


Answer: TRUE
Determine the output.
Answer: foo
Refer to the block of codes below. Read each statement
carefully and decide whether it’s TRUE or FALSE.

Answer: error
True or False: Non-procedural programming focuses on Determine the output.
how a task is done rather than on what task should be
done.
Answer: False
Refer to the code snippet below. Determine whether the
given is a local variable, instance variable, access
modifier or a class name.

Answer: chocolate bar


True or False: If you are running a program through CLI,
the class name and the file name should be different.
Answer: False
Fill in the blank:

GIVEN: private class EmployeeRecord


Answer: class name
Answer: 6
The “indexOf( )” method returns the first instance of the
specified character.
Answer: True
Please refer to figure 1 to answer the question below:
If we change the initial value of num in line 6 to “num =
0”, the println output will be

GIVEN: int noOfEmployee


Answer: local variable
Answer: 0 True or False: After compiling a Java program through
Strings can readily accept int values. the CLI, run it using the java and press Enter.

Answer: True Answer: True

True or False: Keywords are Java reserved words which


are used as identifier for interface, constants and
constructs.
Answer: True
Refer to the code snippet below. Determine whether the
given is a local variable, instance variable, access
modifier or a class name.
Refer to the program below. Read each statement Question text
carefully and write the output for each line specified. 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
Question text
True or False: Operators, in Java programming language, use special
symbols to call methods and their objects.
Answer:
Line 22 will display on the screen. False
Question text
Answer: 1 Read each statement carefully and decide whether it’s TRUE or FALSE.
There are no errors in the program.
Select one:
False
Question text -True
Refer to the block of codes below. Read each statement carefully and
decide whether it’s TRUE or FALSE. The last line of code, with a close brace { symbol, is properly
Line 9 uses a traditional comment which uses double forward slash. indented.
Answer: False -False
Question text
True or False: Many programmers can be literate with Java Assuming there are no errors in the code, line 13 would display
programming language for it is intended to be that way. When I graduate, I’d be 18.
Answer:
-True
True
Question text Figure 2 shows the Netbeans Integrated Development
True or False: You’ll know there’s an error if you see a red circle with Environment.
an exclamation point in Netbeans IDE.
Answer: -True
True
The last line of code will output 100.0.
Question text
Observe the following statements and decide whether the variable -True
result’s value is TRUE or FALSE.
True or False: An exclamation point in Java means NOT.
Given that: Therefore, != means not equal to.
int x = -77;
int z = 43; -True
result = (z < x && 1 != 10) ? true : false;
result = (x = 100) >= z; There are two types of comments used in the program above –
Select one: end of line and Javadoc comments.
True
-True
The file is accurately named – Students.java.
result = (z < x && 1 != 10) ? true : false;
-false
-False
There are three (3) separators found in line 13.
There are keywords found in line 7.
-FALSE
-True
There is an error in line 9.
In line 11, the value of personage is 18.
-True
-TRUE
result = 90 < x || -1 < z;
If there are no errors in the program, the first line of output would True or False: Identifiers in Java are, in simple words, name that
read Hi, I’m a normal person. you give to Java class, variables and methods.
-False -True
result = (x * z + (z += 7)) >= 100; True or False: When you run javac in a command line interface, it
will automatically create another file with a filename extension
-False .class.
True or False: Logical OR operator will result to false if one of the -True
expressions is false.
Line 9 uses a traditional comment which uses double forward
-False slash.
True or False: Semicolon (;) is a separator used to end a Java -FALSE
statement.
There are five (5) separators used in line 8.
-True
-TRUE
True or False: There are five types of integer data types – byte,
short, int, long and float. There are no errors on line 8.
-False -FALSE
True or False: Single equal sign (=) is used for assigning values True or False: Syntax is basically the spelling and grammar errors
while double equal sign (==) is used in comparing values. compiled in a Java programming language. It should be avoided
in writing apps and applets.
-True
-False
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 or False: Operators, in Java programming language, use
special symbols to call methods and their objects.
-True
-False
True or False: JDK or Java Design Kit is required to compile and
run Java apps and applets. If you run this program, the second line of output will read Your
score is:.
-True
-True
On line 6, average is equal to 0. But on line 9, average will be
equal to 100. True or False: Java is a low level programming language.
-False
-False -True
There are also punctuators used in line 10, in between System, True or False: Instance variables are declared inside a method
out and println, the parentheses and semicolon. but outside a class.

-TRUE -False

If there are no errors and this simple program runs through CLI, True or False: Variable names in Java are not necessarily case
the first line will display: Hi, students! sensitive.
-False -False

True or False: Brackets [] are also separators used in declaring Determine the output
arrays.
-36
-True
True or False: Public, private and protected are some of the
Substrings can contain 1 or 2 arguments. return types used in Java programming.

-true -False

Determine the output. True or False: Divide and conquer strategy, in programming, is
also known as the top-down design.
-bar -True
The index of the letter “y” in string “Doggy” is 5. If there are no errors in the program, line 9 would display I weigh
160.
-False
-False
Determine the output.
-foo True or False: A boolean variable can only have two values; it is
either true or false.
TRUE OR FALSE: The value “val_3” is a white space “ “.
-True
-False
result = !((x * 10) < z);
True or False: Variable 1st_num is a good variable name in Java -False
programming.
result = -(-z) == 43;
-False
-True
TRUE OR FALSE: “val_2” contains “The”
True or False: If you get an error while running the javac TRUE OR FALSE: This is an example of concatenation.
command in the CLI, it could be resolved by editing the Path
value in Environment Variables. -True

-True TRUE OR FALSE: The value of “val_4” is “fox”


True or False: The subtraction assignment operator subtracts the -False
left and right operand and assigns the difference to the operand
at the right. TRUE OR FALSE: “val_2” contains “The”.
-False -True

x += x; Determine the output.


result = x == 154; -f6
-False Languages which use procedural programming include C,
The second line of output will be: You are in Year 11. (Answer) FORTRAN, Pascal and BASIC.

-True -C++

True or False: The conditional AND operator uses two True or False: Local variables are declared inside the default
ampersand (&&) symbols. method.

-True -False

result = 43 <= z; Strings can be declared with str.


-True -False
True or False: You’ll know that a variable is a class variable when True or False: Procedural programming involves instructing the
you see that variable inside a class with the word static. system as to how to complete a task.
-True -True

The string method “length( )” returns the number of TRUE OR FALSE: The output of this code is “The quick
characters within a string. brown fox”
-True -False
A string can contain numbers. Among the expressions below which is a statement?
-True -True
Expressions can be long and complex. -Integers
-true The operator “new” allocates a memory block the size of what is
declared.
number++; is an expression
-true
-true
A class block can be an expression
For-loops has a set number of iterations before starting.
-False
-True
Statements can be expressions.
The equals( ) method can compare more than 2 arrays.
-False
-False
Integer arrays can be populated with characters.
While loops can use Booleans at test expressions.
-False
-True
Declaration clauses are declared as “number + 1”.
The test expression of the if statement is
-False
-less than or equal to
Loops can be stopped with a break; statement.
There are four (4) major features of an object-oriented
programming language – encapsulation, inheritance, -True
polymorphism and abstraction.
The equivalent of Paragraphs in coding is?
-True
-Expressions
Using a break; statement causes the loop to jump to the next
iteration. If statements cannot be nested in switches
-False -true

x+1 is example of a statement. The length( ) method returns the size (number of indices) has.

-False -True

number++; is a block When polymorphism is used, the Java object can only take one
form. Subclasses should have the same function with the parent
-False class.
Arrays are -False
Arrays can contain (Answer) number of elements. Switches are always used with if-else statements
-Any -False

“||” and “&&” can be used in conditional statements. True or False: The modulus operator returns the remainder of a
division operation instead of the quotient.
-True
-true
A class statement has three (3) major parts – declaration,
initialization and instantiation. Determine the output.
-False String val_1 = “564298”;

Declaring an object in Java uses the new keyword to create a -5698


new object.
Determine the output.
-False String val_1 = “35”;
Please refer to Figure 2 to answer the question below: If the -4
expression “num = 0” is changed to “num = 5” the final output will
be The return value of the length( ) method is an integer

-5 -true

Expressions can be statements. A superclass is also known as a parent class.

-True -true

Blocks can contain more blocks of code. For-loops can be nested in while loops.

-True -true

If-else statements can be nested in? In instantiating an object, the keyword instance is used.

-All of the choices -False

Statements are equivalent to paragraphs. Object oriented programming utilizes the top down method

-False -False

A (answer) array is an array containing true or false values. Expressions are like clauses.

-boolean -true
The sort( ) method is always ascending. -bar
-true Determine the output.
Arrays are data types. String val_1 = “foo”

-False String val_2 = “bar”

Variables must be declared as (Answer) for it to be fully hidden. val_2 = val_1;

-private val_1 = val_3;

While statements check the test expression at the end. System.out.println(val_2);


-False -foo
The else statement can be used alone. Switches can work properly even without the “break” expression.
-False -True
The fill( ) method (Answer) the array with specific values. Blocks can be one liner or huge classes.
-Fills -True

The output of println is The test expressions in conditional statements can be left empty.

-55555 -False

The person’s weight is declared correctly with the correct data Abstraction works by hiding the implementation details and
type (byte) and value (160). showing only the functions necessary.

-FALSE -True

Determine the output. A single array can hold multiple data types
String val_1 = “foo” -False
String val_2 = “bar” A polymorphic object can pass more than one Is-a test.
val_2 = val_1; -True

val_1 = val_3; Another loop can be used as test expression.

System.out.println(val_1); -False
True or False: Public, static and void are sample of Java reserved Abstraction shows the every bit of detail and implementation on
keywords. how an application does something.
-True -False
The value of “pStr” in line 24 is Initialization is a process where the constructor is called for.
-True -True

The default syntax of a constructor is <class_name>(parameter, The default syntax of a constructor is <class_name>( ){ }
parameter){ }
-True
-False
Classes cannot be nested.
A nested class is not an inner class.
-False
-False
Abstract classes cannot have nested classes.
Nested classes causes them to become abstracted
-False
-False
The parent class of a nested class is called an outer class
A nested class is also called
-True
-inner class
An inner class can be constructed directly without reference to
If you want some variables and methods hidden from other the outer class.
classes, you could implement encapsulation where these
-False
variables and methods are wrapped in a single unit.
-True Arrays can be read backwards
-True
A constructor can only have 1-2 overloads or parameters.
-False A single array can hold

All possible data types of an array can be retuned as a string by -One data type
the toString( ) method. Abstracted methods already have implementations inside.
-True -False
Abstracted classes can contain 1 or more abstract methods. are special methods to initialize objects.
-True
-constructors Parallelsorting utilizes
Constructors have 3 basic rules to follow. -More cpu processing cores
-False method can copy one array to another.
Nesting classes increases encapsulation. -arraycopy()
-True LONG QUIZ PROG 112
LONG QUIZ 3
Each index can only contain (Answer) element. 1.Fill in the blanks with the correct answer.
-one Choose the appropriate word from the given
choices.
The sort( ) method can be set to sort only a part of an array. A.A large amount of nested loops are
, due to the time and effort it takes
-False to execute.
ANSWER: discouraged
Subclasses or child classes could have different behaviors but B. After a for loop checks the test expression,
still share the same functions from their parent class. it executes the
-True ANSWER: BODY
C.for(int x=0;x<9;x++), What is the last value
Abstract methods must have an explicit return value of ‘x’ at the end of the loop given there are no
break or continue statement inside?
-False ANSWER: 9
D. statement can stop a loop from
An abstract class must not contain abstract methods. performing anymore iterations.
-False ANSWER: BREAK
E. are best kind of loop to use when
Abstracted classes can be nested. the number of iterations is pre-calculated.
ANSWER: for/for loops
-True F. The difference between while and do-while
loops is do-while loops test expression is at
A subclass constructor cannot invoke a superclass constructor.
the
-False ANSWER: END
G. is the term for ever cycle the
A class acquiring fields and methods of another class is called loop makes.
inheritance. ANSWER: ITERATION
H.for(_ ) is an infinite for-loop
-True ANSWER: ;;
I. Loops can be nested inside other
ANSWER: LOOP is changed to then the value of “pStr”
J. loop checks the test expression in line 24 will be changed as well
at the end. ANSWER: TRUE
ANSWER: DO-WHILE 11. Please refer to Figure 2 to answer the
K. The makes a loop end a cycle question below: The value of “pStr” in line 24
prematurely and start the next iteration is
ANSWER: CONTINUE ANSWER: TRALSE
L. are what’s inside the parentheses 12. Statements are equivalent to paragraphs
( ) after the ’for’ ANSWER: FALSE
ANSWER: Test expression 13. The else statement can be used alone
M. The short form of “num = num + 1; is ANSWER: FALSE
ANSWER: num++ 14.The equivalent of Paragraphs in coding is?
N. loops are loops within loops. ANSWER: BLOCKS
ANSWER: NESTED 15. The test expressions in conditional
In a set of nested loops, the_ most is statements can be left empty.
executed the most times ANSWER: FALSE
ANSWER: INNER 16. What can come before an else statement?
2.A class block can be an expression ANSWER: ALL OF THE CHOICES.
ANSWER: FALSE LONG QUIZ NO. 4
3. Among the expressions below which is a 1.A class acquiring fields and methods of
statement? another class is called inheritance.
ANSWER: number++; ANSWER: TRUE
4. Blocks can contain more blocks of code. 2. A class which contains the abstract keyword
ANSWER: TRUE in its declaration is known as an
5. Declaration clauses are declared as “number + ANSWER: Abstract class
1”. 3. A constructor contain an explicit
ANSWER: FALSE return type
6. If-else statements can be nested in? ANSWER: CANNOT
ANSWER” ALL OF THE CHOICIES 4.A nested class is not an inner class
7. number++; is a block ANSWER: FALSE
ANSWER: FALSE 5. A single array can hold
8. Please refer to figure 1 to answer the ANSWER: ONE DATA TYPE
question below: The output of println is 6.A subclass constructor cannot invoke a
ANSWER: 55555 superclass constructor
9. Please refer to Figure 2 to answer the ANSWER: FALSE
question below: Figure 2 is an example of? 7. Abstract classes cannot have nested classes
ANSWER: If-else-if nested in a switch ANSWER: FALSE
10. Please refer to Figure 2 to answer the 8.Abstracted classes can be nested
question below: If the value of “pStr” in line 7 ANSWER: TRUE
9. Abstracted classes can contain 1 or more 22. The abstract keyword can be used for
abstract methods. and
ANSWER: TRUE ANSWER: methods; classes
10.Abstraction shows the every bit of detail and 23.The limit of dimensions an array can have
implementation on how an application does without errors is
something ANSWER 255.
ANSWER: FALSE 24. The parent class of a nested class is called
11. All possible data types of an array can be an outer class:
retuned as a string by the toString( ) method ANSWER: TRUE
ANSWER: TRUE. 25. The sort( ) method can be set to sort only a
12.An abstract class must not contain abstract part of an array.:
methods ANSWER: FALSE
ANSWER:FALSE 26. The method can copy one array to
13.An array of integers should be declared as another.
ANSWER: arraycopy( )
ANSWER:int[ ] 27. You can also declare new fields in the child
14. Arrays can be read backwards: class which are not in the
ANSWER: TRUE ANSWER: PARENT CLASS
15.Byte[ ] myArray is an array of 28. are special methods to initialize
ANSWER: BYTES objects.
16.Each index can only contain element ANSWER: CONSTRUCTORS
ANSWER: ONE 29. is the process of acquiring fields
17.If you want some variables and methods hidden and methods of a parent class or super class.
from other classes, you could implement ANSWER: INHERITANCE
encapsulation where these variables and methods SHORT QUIZ PROG 112
are wrapped in a single unit.
ANSWER: TRUE SHORT QUIZ 6
18. Initialization is a process where the
constructor is called for. 1. If statements cannot be nested in switches
ANSWER: TRUE
19. Parallelsorting utilizes _. Select one:
ANSWER: More cpu processing cores a. True
20. Polymorphism is the ability of a Java object
to take b. False
ANSWER: Different forms 2. “||” and “&&” can be used in conditional statements.
21. Subclasses or child classes could have
different behaviors but still share the same Select one:
functions from their parent class a. False
ANSWER: TRUE
Select one:
b. True
3. Expressions are like clauses. a. pStr

Select one: b. switch(str)

a. True c. case “me”:

b. False d. “tralse”;
4. x+1 is example of a statement. e. no error

Select one:
a. True 7. Switches are always used with if-else statements
b. False Select one:
5. Switches can work properly even without the “break” a. True
expression.
b. False
Select one:
a. True 8. number++; is an expression
b. False
Select one:
a. True
6. Please refer to Figure 2 to answer the question below:
b. False
The error in Figure 2 is _.

9. Among the statements below which is only an expression


Select one:
a. System.out.println(“Hi!”);
b. “string1” + “string2”
c. system.in.read( );
d. bool
e. true;

10. Expressions can be long and complex.


Select one: ANSWER: FALSE
a. True 8. Loops can be stopped with a break; statement.
b. False
ANSWER: TRUE

9. The type of loop that checks the test expression at the end.
ANSWER: Do-While

10. Which of these is a proper decrement?

ANSWER: X or x—
SHORT QUIZ 7

1. Another loop can be used as test expression.


SHORT QUIZ 7.1
ANSWER: FALSE
1. The expression int[ ] myArray = new int[10] will
2. For-loops can check the test expression at the end. memory that can contain 10 integers.

ANSWER: FALSE ANSWER:ALLOCATE

3. If the test expression “num <= 10” is changed to “num <= 2”, 2. It is to declare an array like this: int array[];.
the final value of num would be .
ANSWER: discouraged
ANSWER: 4
3. The sort( ) method is always ascending.
4. The final value of num in the output is
ANSWER: TRUE
ANSWER: 12

5. The final output of the code snippet is .


4. Arrays are .
ANSWER 12
ANSWER: OBJECTS
6. While statements check the test expression at the end.
5. An array is always an .
ANSWER: FALSE
ANSWER: OBJECT
7. Using a break; statement causes the loop to jump to the next
6. A array is an array containing true or false values.
iteration.
ANSWER: BOOLEAN
7. Integer arrays can be populated with characters. 6. When polymorphism is used, the Java object can only take one
form. Subclasses should have the same function with the parent
ANSWER:FALSE class.
8. The fill( ) method the array with specific values. ANSWER: FALSE
ANSWER: FILLS 7. Declaring an object in Java uses the new keyword to create a
9. String[ ][ ][ ] myArray is a declaration of _ array. new object.

ANSWER: 3-d or 3-dimensional ANSWER: FALSE

10. A single array can hold multiple data types 8. Variables must be declared as for it to be fully hidden.

ANSWER: FALSE ANSWER: PRIVATE

9. is also known as a parent class.

SHORT QUIZ 8 ANSWER: SUPER CLASS

1. Abstraction works by hiding the implementation details and 10. Inherited fields and methods can be used by child
showing only the functions necessary. classes.

ANSWER: TRUE ANSWER: DIRECTLY

2. is one of the four fundamental concepts, this is also known as


data hiding.
SHORT QUIZ 8.1
ANSWER: ENCAPSULATION
1. Constructors can have overloads
3. A child class inherits all the methods of every other class.
ANSWER: ANY NUMBER
ANSWER: FALSE
2. A nested class is also called
4. Polymorphic objects can pass Is-a test.
ANSWER: INNER CLASS
ANSWER: MORE THAN ONE
3. The default syntax of a constructor is <class_name>( ){ }
5. A polymorphic object can pass more than one Is-a test.
ANSWER: TRUE
ANSWER:TRUE
4. The default syntax of a constructor is
<class_name>(parameter, parameter){ }
ANSWER: FALSE

5. The terms nested and inner can be used

ANSWER: interchangeably
6. Classes cannot be nested.
ANSWER: FALSE

7. Constructors have 3 basic rules to follow.

ANSWER: FALSE

8. A constructor can only have 1-2 overloads or parameters.

ANSWER: FALSE
9. An inner class can be constructed directly without reference to
the outer class.
ANSWER: FALSE
10. Abstracted methods need for implementations.S
ANSWER: SUB-CLASSES
FOURTH QUARTER EXAM

1. The method arraycopy( ) does what? 5. If the increment num=num+2 is changed to num++, the final value of num will be
.
Select one:
Select one:
a. Copies the contents of an array and makes a new one.
a. 0
b. Create multiple array duplicates.
b. 10
c. Copies the contents of an array and deletes the old one.
c. 5
d. Copies the contents of an array to a destination array.
d. 12

2. Loop that has a pre-determined number of iterations


6. If we change the initial value of num in line 6 to “num = 0”, the println output will be
Select one:

a. for Select one:


b. all of the choices a. 0
c. while b. 12345
d. none of the choices c. error
e. do-while d. 55555

3. The else-if statement can be used alone. 7. The else statement catches whatever argument the if and else-if didn’t
Select one: Select one:
a. True a. False
b. False b. True

4. An iteration of a loop is equivalent to one pass through. 8. byte( ][ ][ ) myArray; is an example of .


Select one: Select one:
a. False a. An error
b. True b. A 3-dimensional array

c. A 2-dimensional array

d. A Byte array
9. An array can be infinitely long. 13. The equivalent of clauses in coding is?

Select one: Select one:

a. Paragraphs
a. False
b. Statements
b. True
10. An array can be infinitely long. An array can be infinitely long. c. Blocks

Select one: d. Expressions


14. Loops must always have a continue or break statement.
a. True
Select one:
b. False
11.A reference variable can be reassigned to other objects provided that it is not a. Doesn’t matter
declared
b. False
Select one:
c. True
a. Parent class
d. Maybe
b. Encapsulation

c. Private 15. Constructed methods are initialized with 0 or null depending on the data type.

d. Super class Select one:

e. Directly a. True

f. More than one b. False

g. Different forms
16. Conditional statements are the same as declaration statements.
h. Final
Select one:
i. Inheritance
a. True
j. Abstract class
12. The return value of the equals( ) method is . b. False
17. The “1” in arrayName[1] is called an .
Select one:
Select one:
a. All of the choices
a. boolean
b. A double
b. any
c. An int
c. int[ ]
d. A string
d. Fills
e. None of the choices
e. Allocate
Select one:
f. Index
a. same
g. object
b. constructors
h. bytes
c. nesting
i. one
d. sub-classes
j. 3-d or 3-dimensional
e. methods
k. arraycopy( )
f. any number
l. can
g. classes
m. discouraged
h. inner class
n. 2-d or 2-dimensional
i. interchangeably
o. 255
j. cannot

18. Which is not a proper increment?


21. What the break statement in this example does is .
Select one:
Select one:
a. n+n;
a. Ends an iteration of the loop.
b. n+-;
b. Ends the whole instance of the loop
c. n+2;
c. Ends the program
d. n
d. Creates a new loop
e. n++;

f. n 22. You cannot use inherited methods directly in a child class.

Select one:

a. True

b. False
19. This type of declaration is discouraged: “int myArray[ ]”

Select one:

a. False

b. True 23. An int can be used even if it is declared outside a for-loop.

Select one:
20. classes increase the encapsulation of you methods and data
Select one:
a. True
a. True
b. False
b. False

24. The last part in a for loop setup can be an .

Select one:

a. decrement

b. none of the two


29. The Arrays.sort( ) method sorts an array into order.
c. both

d. increment Select one:


25. Expressions, Statements and Blocks are like composing sentences and
a. descending
paragraphs.
b. random
Select one:
c. ascending
a. True
d. None of the choices
b. False
e. All of the choices

26. If the increment “num = num + 2” is changed to “num = num + 1” the final output
will be . 30. An if-else-if-else statement is a block.

Select one: Select one:

a. 12 a. True

b. 10 b. False

c. 2
31. The else statement can be removed if not needed.
d. 0
Select one:
27. The random( ) method sorts the array randomly. a. False

Select one: b. True

a. True
32. If-if is more logical than else-if.
b. False
Select one:
28. 1+2+3/4*5 is an unambiguous expression a. False
Select one:
b. True
a. False

33. Infine for-loops can be declared as for( ){ }. b. True

Select one:
39. Ifs and else-ifs test expressions return true or false.
True
Select one:
False
a. True

34. Method invocations are statements b. False


40 . Encapsulated data are hidden from other classes.
Select one:
Select one:
a. True
a. False
b. False
b. True

35. Each pass through of a loop is called a cycle.


41. Inner class methods can be called by constructing the inner class.
Select one:
Select one:
a. True
a. True
b. False
b. False
42. The continue; statement ends all the iterations of a loop.
36. A loop can contain no expressions or statements inside.
Select one:
Select one:
a. True
a. True
b. False
b. False 43. Conditional statements can contain more conditional statements.

Select one:
37. Overload methods must be the same name as the class
a. True
Select one:
b. False
a. True 44. Int num = 1; for(num=num;num<=10;num++) is an acceptable code snippet.

b. False Select one:

a. False
38. You can declare a new method in the subclass which is not declared in the
b. True
superclass.
45. The term of each pass through a loop makes is called?
c. go to the else statement
Select one:
d. skip the body
a. turn around

b. iteration 49. An array hold objects.

c. cycle Select one:


d. loop a. arraycopy( )

b. 3-d or 3-dimensional
46. The test expression of conditional statement cannot contain
c. Index
Select one:
d. object
a. !
e. Allocate
b. <
f. bytes

g. 255
47. The equals( ) method compares 2 arrays.
h. Fills
Select one:
i. int[ ]
a. True
j. boolean
b. False
k. 2-d or 2-dimensional

l. one

m. any

n. discouraged

48. In the code snippet: o. can


50. Abstract methods need sub-classes to contain their implementations.
int num = 1;
if(num==1 && num<=1){ Select one:
body;
a. False
}
b. True
The conditional statement will .
Select one:

a. execute the body

b. produce an error
e. Fills
Question 1
Complete f. Allocate
Mark 1.00 out of 1.00
g. can
h. boolean
i. Index
j. 255
Flag question k. int[ ]
Question text l. discouraged
number++; is an expression m. one
Select one: n. object
a. False o. any
b. True Question 3
Complete
Question 2 Mark 1.00 out of 1.00
Complete
Mark 1.00 out of 1.00

Flag question

Flag question Question text


Question text Arrays can contain number of elements.
A array is an array containing true or false values. Select one:
Select one: a. boolean
a. 2-d or 2-dimensional b. Index
b. arraycopy( ) c. Fills
c. 3-d or 3-dimensional d. 255
d. bytes e. 2-d or 2-dimensional
f. discouraged Question 5
Complete
g. arraycopy( ) Mark 1.00 out of 1.00

h. 3-d or 3-dimensional
i. bytes
j. object
k. int[ ] Flag question
l. can Question text
m. one
Please refer to figure 1 to answer the question below:
n. Allocate The output of println is
o. any

Question 4
Complete
Mark 1.00 out of 1.00

Remove flag

Question text
Which of these is a proper decrement?
Select one: Select one:
a. x-10; a. 55555
b. x++; b. 0
c. x c. error
d. x d. 12345
e. x -- 10
Question 6
f. x+-; Complete
Mark 1.00 out of 1.00
Flag question Flag question

Question text Question text


The fill( ) method the array with specific values. While statements check the test expression at the end.
Select one: Select one:
a. int[ ] a. False
b. 3-d or 3-dimensional b. True
c. Allocate
Question 8
d. boolean Complete
Mark 1.00 out of 1.00
e. bytes
f. 255
g. Fills
h. object
Flag question
i. 2-d or 2-dimensional
j. discouraged Question text

k. can A single array can hold multiple data types


l. Index Select one:
m. one a. False
n. arraycopy( ) b. True
o. any Question 9
Complete
Question 7 Mark 1.00 out of 1.00
Complete
Mark 1.00 out of 1.00
Flag question Flag question

Question text Question text


String[ ][ ] myArray is a declaration of array. x+1 is example of a statement.
Select one: Select one:
a. can a. True
b. bytes b. False
c. int[ ]
Question 1
d. discouraged Complete
Mark 1.00 out of 1.00
e. any
f. Fills
g. one
h. boolean
Flag question
i. Allocate
j. Index Question text

k. 3-d or 3-dimensional Please refer to figure 1 to answer the question below:


The test expression of the if statement is
l. 255
m. object
n. 2-d or 2-dimensional
o. arraycopy( )

Question 10
Complete
Mark 1.00 out of 1.00
b. False

Question 3
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Another loop can be used as test expression.
Select one:
Select one:
a. less than
a. True
b. greater than or equal to
b. False
c. greater than
Question 4
d. less than equal to Complete
Mark 1.00 out of 1.00
Question 2
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Flag question
is also known as a parent class.
Question text
Select one:
Integer arrays can be populated with characters.
a. Abstract class
Select one:
b. Final
a. True
c. Inheritance
d. Different forms
e. Private
f. Directly
g. More than one
h. Parent class
i. Super class
j. Encapsulation

Question 5
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Please refer to Figure 2 to answer the question below:
If the value of “pStr” in line 7 is changed to then the
value of “pStr” in line 24 will be changed as well.

Select one:
a. you
b. tralse
c. default
d. True
Question 6
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Flag question
Please refer to figure 1 to answer the question below: The final
Question text value of num in the output is

is one of the four fundamental concepts, this is also


known as data hiding.
Select one:
a. Final
b. Super class
c. Inheritance
d. Parent class
e. Different forms
f. Private
g. Directly
h. More than one
i. Encapsulation
j. Abstract class
Select one:
Question 7 a. 10
Complete
Mark 1.00 out of 1.00 b. 0
c. 5
d. 12

Question 8
Complete
Mark 0.00 out of 1.00

Flag question
Remove flag
Question text
Question text
Please refer to Figure 2 to answer the question below:
Conditional test expressions can contain declarations The value of “pStr” in line 24 is .
Select one:
a. True Select one:
Question 9
Complete
a. tralse
Mark 1.00 out of 1.00 c. True
d. you

Flag question

Question text
Blocks can be one liner or huge classes.
Select one:
a. True
b. False

Question 10
Complete
Mark 0.00 out of 1.00
Please refer to Figure 2 to answer the question below:
c. case “me”:
The error in Figure 2 is _.
d. no error
e. switch(str)

Question 2
Complete
Mark 1.00 out of 1.00

Flag question

Question text
“||” and “&&” can be used in conditional statements.
Select one:
a. False
b. True

Question 3
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Select one: Statements are equivalent to paragraphs.
a. “tralse”; Select one:
b. pStr a. False
b. True

Question 4
Complete
Mark 1.00 out of 1.00
Flag question Flag question
Question text Question text
Loops can be stopped with a break; statement. Expressions can be statements.
Select one: Select one:
a. False a. False
b. True b. True
Question 5 Question 7
Complete Complete
Mark 1.00 out of 1.00
Mark 1.00 out of 1.00

Flag question Flag question


Question text Question text
The sort( ) method is always ascending. The return value of the length( ) method is an integer
Select one: Select one:
a. True a. False
b. False b. True
Question 6 Question 8
Complete Complete
Mark 1.00 out of 1.00 Mark 0.00 out of 1.00
Question text
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.
Flag question Select one:
Question text a. False
The operator “new” allocates a memory block the size of what is b. True
declared.
Question 4
Select one: Complete
Mark 1.00 out of 1.00
a. True
Question 1
Question text
Complete
Mark 0.00 out of 1.00
The default syntax of a constructor is <class_name>(parameter,
parameter){ }
Question text
Select one:
Initialization is a process where the constructor is called for.
True
Select one: False
b. True
Question 5
Question 2 Complete
Mark 1.00 out of 1.00
Complete
Mark 1.00 out of 1.00
Question text
Question text The method can copy one array to another.
The default syntax of a constructor is <class_name>( ){ }
Select one:
Select one: a. any
True b. Allocate
False c. 2-d or 2-dimensional
Question 3 d. boolean
Complete
Mark 1.00 out of 1.00
e. discouraged
f. can
Complete
g. one Mark 1.00 out of 1.00
h. 3-d or 3-dimensional Question text
i. int[ ]
are special methods to initialize objects.
j. Index
Select one:
k. arraycopy( )
a. classes
l. Fills
b. interchangeably
m. 255
c. any number
n. object
d. nesting
o. bytes
e. cannot
Question 7 f. same
Complete
Mark 1.00 out of 1.00 g. methods
Question text h. sub-classes
The parent class of a nested class is called an outer class i. inner class

Select one: j. constructors

a. True Question 10
Complete
b. False Mark 1.00 out of 1.00

Question 8 Question text


Complete
Mark 1.00 out of 1.00 Constructors can have overloads
Question text Select one:
A class acquiring fields and methods of another class is called a. interchangeably
inheritance. b. sub-classes
Select one: c. nesting
a. True d. same
b. False e. cannot

Question 9
f. constructors
g. methods b. False
h. any number
Question 16
i. inner class Complete
Mark 1.00 out of 1.00
j. classes
Question text
Question 12
Complete
Arrays can be read backwards
Mark 1.00 out of 1.00
Select one:
Question text a. False
Abstract classes cannot have nested classes. b. True
Select one:
Question 17
a. False Complete
Mark 1.00 out of 1.00
b. True
Question text
Question 13
Complete
Parallelsorting utilizes _.
Mark 1.00 out of 1.00
Select one:
Question text a. More cpu processing cores
Nesting classes increases encapsulation. b. More memory
Select one: c. More sorting methods
a. True d. The video card
b. False
uestion 20
Complete
Question 14 Mark 1.00 out of 1.00
Complete
Mark 1.00 out of 1.00 Question text
Question text An abstract class must not contain abstract methods.
Abstracted methods already have implementations inside. Select one:
Select one: a. False
a. True b. True
Question 1 A nested class is not an inner class.
Complete
Mark 1.00 out of 1.00 Select one:

Question text a. False


b. True
Classes cannot be nested.
Select one: Question 6
Complete
a. True Mark 1.00 out of 1.00

b. False Question text

Question 3 Abstract methods must have an explicit return value


Complete
Select one:

Question text a. False


b. True
The sort( ) method can be set to sort only a part of an array.
Select one: Question 7
Complete
b. False Mark 1.00 out of 1.00

Question 4
Question text
Complete
Byte[ ] myArray is an array of .
Mark 1.00 out of 1.00

Question text Select one:


a. any
Abstraction shows the every bit of detail and implementation on
how an application does something. b. arraycopy( )
Select one: c. bytes
a. True d. 3-d or 3-dimensional
b. False e. 255
f. Allocate
Question 5
Complete g. int[ ]
Mark 1.00 out of 1.00
h. object
Question text i. Index
Nested classes causes them to become abstracted
j. discouraged
k. one Select one:
l. can a. True
m. Fills b. False
n. boolean Question 10
Complete
o. 2-d or 2-dimensional Mark 1.00 out of 1.00

Question 8 Question text


Complete
Mark 1.00 out of 1.00 Abstracted classes can be nested.
Question text Select one:
A class which contains the abstract keyword in its declaration is a. False
known as an . b. True
Select one:
Question 11
a. Super class Complete
Mark 1.00 out of 1.00
b. More than one
Question text
c. Encapsulation
d. Private An inner class can be constructed directly without reference to
the outer class.
e. Inheritance
Select one:
f. Parent class
a. False
g. Different forms
b. True
h. Final
i. Abstract class Question 15
Complete
j. Directly Mark 1.00 out of 1.00

Question 9
Complete
Mark 1.00 out of 1.00

Question text
b. object
c. int[ ]
d. bytes

Flag question e. can


f. arraycopy( )
Question text
g. 3-d or 3-dimensional
Subclasses or child classes could have different behaviors but
still share the same functions from their parent class. h. one

Select one: i. 255

a. False j. discouraged

b. True k. Allocate
l. Fills
Question 16
Complete m. 2-d or 2-dimensional
Mark 1.00 out of 1.00
n. Index
Question text o. boolean
Constructors have 3 basic rules to follow.
Question 19
Select one: Complete
Mark 1.00 out of 1.00
a. False
Question text
b. True
A subclass constructor cannot invoke a superclass constructor.
Question 17
Select one:
Question 18
Complete a. True
Mark 1.00 out of 1.00
b. False
Question text
Question 20
Each index can only contain element. Complete
Mark 1.00 out of 1.00
Select one:
Question text
a. any
A constructor can only have 1-2 overloads or parameters.
Select one:
r a. True
r- b. False
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
Question text
True or False: Operators, in Java programming language, use special symbols to call methods and
their objects.
Answer:
False
Question text
Read each statement carefully and decide whether it’s TRUE or FALSE.
There are no errors in the program.
Select one:
False
Question text
Refer to the block of codes below. Read each statement carefully and decide whether it’s TRUE or
FALSE.
Line 9 uses a traditional comment which uses double forward slash.
Answer: False
Question text
True or False: Many programmers can be literate with Java programming language for it is intended
to be that way.
Answer:
True
Question text
True or False: You’ll know there’s an error if you see a red circle with an exclamation point in
Netbeans IDE.
Answer:
True
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 = (x = 100) >= z;
Select one:
True
The file is accurately named – Students.java.
-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.
-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

The last line of code will output 100.0.

-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

There are keywords found in line 7.

-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 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.

-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

Substrings can contain 1 or 2 arguments.


-true

Determine the output.

-bar

The index of the letter “y” in string “Doggy” is 5.


-False

Determine the output.


-foo

TRUE OR FALSE: The value “val_3” is a white space “ “.

-False

True or False: Variable 1st_num is a good variable name in Java programming.

-False

TRUE OR FALSE: “val_2” contains “The”

-True

True or False: Instance variables are declared inside a method but outside a class.

-False

True or False: Variable names in Java are not necessarily case sensitive.

-False

Determine the output

-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

result = !((x * 10) < z);


-False

result = -(-z) == 43;


-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

x += x;
result = x == 154;
-False

The second line 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

A string can contain numbers.

-True

TRUE OR FALSE: This is an example of concatenation.


-True

TRUE OR FALSE: The value of “val_4” is “fox”


-False

TRUE OR FALSE: “val_2” contains “The”.


-True

Determine the output.

-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
Strings can be declared with str.
-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

Among the expressions below which is a statement?

-True

Expressions can be long and complex.

-true

number++; is an expression

-true

For-loops has a set number of iterations before starting.

-True

The equals( ) method can compare more than 2 arrays.

-False

While loops can use Booleans at test expressions.

-True

The test expression of the if statement is


-less than or equal to

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

x+1 is example of a statement.

-False

number++; is a block

-False

Arrays are

-Objects

The operator “new” allocates a memory block the size of what is declared.

-true

A class block can be an expression

-False
Statements can be expressions.

-False

Integer arrays can be populated with characters.

-False

Declaration clauses are declared as “number + 1”.

-False

Loops can be stopped with a break; statement.

-True

The equivalent of Paragraphs in coding is?

-Expressions

If statements cannot be nested in switches

-true

The length( ) method returns the size (number of indices) has.

-True

When polymorphism is used, the Java object can only take one form. Subclasses should have the
same function with the parent class.

-False

Arrays can contain (Answer) number of elements.

-Any

“||” and “&&” can be used in conditional statements.

-True

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

Expressions can be statements.

-True

Blocks can contain more blocks of code.

-True

If-else statements can be nested in?

-All of the choices

Statements are equivalent to paragraphs.


-False

A (answer) array is an array containing true or false values.

-boolean

Switches are always used with if-else statements

-False

True or False: The modulus operator returns the remainder of a division operation instead of the
quotient.

-true

Determine the output.


String val_1 = “564298”;

-5698

Determine the output.


String val_1 = “35”;

-4

The return value of the length( ) method is an integer

-true

A superclass is also known as a parent class.

-true

For-loops can be nested in while loops.

-true

In instantiating an object, the keyword instance is used.

-False

Object oriented programming utilizes the top down method

-False

Expressions are like clauses.

-true

The sort( ) method is always ascending.

-true

Arrays are data types.

-False

Variables must be declared as (Answer) for it to be fully hidden.

-private

While statements check the test expression at the end.

-False

The else statement can be used alone.


-False

The fill( ) method (Answer) the array with specific values.

-Fills

The output of println is

-55555

The person’s weight is declared correctly with the correct data type (byte) and value (160).

-FALSE

Determine the output.


String val_1 = “foo”

String val_2 = “bar”

val_2 = val_1; val_1 =

val_3;

System.out.println(val_1);

-bar

Determine the output.


String val_1 = “foo”

String val_2 = “bar”

val_2 = val_1; val_1 =

val_3;

System.out.println(val_2);

-foo

Switches can work properly even without the “break” expression.

-True

Blocks can be one liner or huge classes.

-True

The test expressions in conditional statements can be left empty.

-False

Abstraction works by hiding the implementation details and showing only the functions necessary.

-True

A single array can hold multiple data types

-False

A polymorphic object can pass more than one Is-a test.

-True

Another loop can be used as test expression.


-False

True or False: Public, static and void are sample of Java reserved keywords.

-True

The value of “pStr” in line 24 is

-True

The default syntax of a constructor is <class_name>(parameter, parameter){ }

-False

A nested class is not an inner class.

-False

Nested classes causes them to become abstracted

-False

A nested class is also called

-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

A constructor can only have 1-2 overloads or parameters.

-False

All possible data types of an array can be retuned as a string by the toString( ) method.

-True

Abstracted classes can contain 1 or more abstract methods.

-True

Abstraction shows the every bit of detail and implementation on how an application does something.

-False

Initialization is a process where the constructor is called for.

-True

The default syntax of a constructor is <class_name>( ){ }

-True

Classes cannot be nested.

-False

Abstract classes cannot have nested classes.

-False

The parent class of a nested class is called an outer class

-True
An inner class can be constructed directly without reference to the outer class.

-False

Arrays can be read backwards

-True

A single array can hold

-One data type

Abstracted methods already have implementations inside.

-False

are special methods to initialize objects.

-constructors

Constructors have 3 basic rules to follow.

-False

Nesting classes increases encapsulation.

-True

Each index can only contain (Answer) element.

-one

The sort( ) method can be set to sort only a part of an array.

-False

Subclasses or child classes could have different behaviors but still share the same functions from
their parent class.

-True

Abstract methods must have an explicit return value

-False

An abstract class must not contain abstract methods.

-False

Abstracted classes can be nested.

-True

A subclass constructor cannot invoke a superclass constructor.

-False

A class acquiring fields and methods of another class is called inheritance.

-True

Parallelsorting utilizes

-More cpu processing cores

method can copy one array to another.


-arraycopy()

Conditional test expressions can contain declarations

-True

A child class inherits all the methods of every other class.

-False

f the value of “pStr” in line 7 is changed to then the value of “pStr” in line 24 will be changed
as well.

-True

The type of loop that checks the test expression at the end.

-do-while

An array of integers should be declared as

-int[]

A class which contains the abstract keyword in its declaration is known as an

-abstract class

Please refer to figure 1 to answer the question below: In figure 1 if(x==5) is

-skipped

The first line of the code should have either a yes or no value.

-False

Determine the output.

String val_1 = “25”;

String val_2 = “80”;

-200

What does ‘new’ in int[ ] myArray = new int[n] do?

-Assigns memory for the array

is also known as a parent class.

-Super class

Determine the output.


String val_1 = “foobar”;

String val_2 = “”;

-boar

Polymorphic objects can pass (answer) Is-a test.

-More than one

True or False: Traditional comments start with /** (forward slash and two asterisks) and ends with
*/ (asterisk and forward slash).
-False

True or False: Netbeans is one of the IDEs or Integrated Development Environment to run Java
programs.

-True

For-loops can check the test expression at the end.

-False

Polymorphism is the ability of a Java object to take

-Directly

Constructors can have

-any number

When the program runs, and assuming there are no errors, its first line will be begin printing.

-FALSE

Which of these is a proper decrement?

-x-10;

All are methods of the array class except

-substring()

The error in Figure 2 is

-“tralse”;

A constructor (answer) contain an explicit return type

-cannot

Abstracted methods need (answer) for implementations.

-sub-classes

Line 14 will yield an error. It will be corrected if you place */ after the method.

-FALSE

The name of a constructor must be (answer) as your class.

-same

The limit of dimensions an array can have without errors is

-255

This type of declaration is discouraged.

-String myArray[ ];

The following figure shows the Netbeans Integrated Development Environment.

-True

The equivalent of clauses in coding is?


-Expressions
Int num = 1; for(num=num;num<=10;num++) is an acceptable code snippet.
-true
Loop that has a pre-determined number of iterations
-while
An int can be used even if it is declared outside a for-loop.
-true
Overload methods must be the same name as the class
-true
What the break statement in this example does is .
-Ends the whole instance of the loop
The random( ) method sorts the array randomly.
-False
The last part in a for loop setup can be an .
- both
The “1” in arrayName[1] is called an .
-Index
The continue; statement ends all the iterations of a loop.
- False
Which is not a proper increment?
- n+-;
Infine for-loops can be declared as for( ){ }.
- False
If-if is more logical than else-if.
- False
The else statement can be removed if not needed.
-True
Expressions, Statements and Blocks are like composing sentences and paragraphs.
-True
You can declare a new method in the subclass which is not declared in the superclass.
-True
The return value of the equals( ) method is .
-None of the choices
The Arrays.sort( ) method sorts an array into order.
-Ascending
This type of declaration is discouraged: “int myArray[ ]”
- True
An if-else-if-else statement is a block.
-True
If the increment num=num+2 is changed to num++, the final value of num will be
.
-5
The term of each pass through a loop makes is called?
-iteration
Loops must always have a continue or break statement.
-False
1+2+3/4*5 is an unambiguous expression
-False
Conditional statements can contain more conditional statements.
- True
int num = 1;
if(num==1 && num<=1){
body;
}
The conditional statement will .
- execute the body
byte( ][ ][ ) myArray; is an example of .
- An error
An array hold objects.
- can
A reference variable can be reassigned to other objects provided that it is not declared
.
- final
The test expression of conditional statement cannot contain
-!
Each pass through of a loop is called a cycle.
- True
If the increment “num = num + 2” is changed to “num = num + 1” the final output will be
.
-0
Ifs and else-ifs test expressions return true or false.
- True
classes increase the encapsulation of you methods and data.
- nesting
Constructed methods are initialized with 0 or null depending on the data type.
- true
The else statement catches whatever argument the if and else-if didn’t
- True
An iteration of a loop is equivalent to one pass through.
- true
38. If we change the initial value of num in line 6 to “num = 0”, the println output will be

-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
A loop can contain no expressions or statements inside.
- true
Conditional statements are the same as declaration statements.
- False
You cannot use inherited methods directly in a child class.
- False
The equals( ) method compares 2 arrays.
- True
Method invocations are statements
- True
To implement encapsulation, you have to declare class variables with the private
modifier.
- True
Inner class methods can be called by constructing the inner class.
- False
Encapsulated data are hidden from other classes.
- True

Refer to the code snippet below. Identify what part of a method is shown in each
number (the underlined one).
GIVEN: public int getArea

Answer: Method Name

Fill in the blanks with the correct answer.

Answer: val_1 + val_2

Read each statement carefully and decide whether it’s TRUE or FALSE.

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

Answer: False

Refer to the code snippet below. Identify what part of a method is shown in each
number (the underlined one).
GIVEN: int getArea

Answer: Return Type

Fill in the blank:

Answer: foo

Procedural programming will be tricky for applications.

Answer: small

Strings can directly concatenated to an int.

Answer: False

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

Answer: FALSE

Fill in the blank:


Answer: barfoo

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

GIVEN: private class EmployeeRecord

Answer: access modifier

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

Answer: FALSE

Fill in the blank:


Answer: 200

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

Answer: False

Fill in the blank:

Answer: foo

Refer to the block of codes below. Read each statement carefully and decide whether
it’s TRUE or FALS
E.
There are no errors in line 11.

Answer: TRUE

Determine the output.

Answer: error

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

Answer: False

Refer to the code snippet below. Determine whether the given is a local variable,
instance variable, access modifier or a class name.
GIVEN: private class EmployeeRecord

Answer: class name

Determine the output.

Answer: chocolate bar

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

Answer: False

Fill in the blank:

Answer: 6

The “indexOf( )” method returns the first instance of the specified character.

Answer: True
Please refer to figure 1 to answer the question below:

If we change the initial value of num in line 6 to “num = 0”, the println output will be

Answer: 0

Strings can readily accept int values.

Answer: True

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

Answer: True

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

GIVEN: int noOfEmployee

Answer: local variable

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

Answer: True

Refer to the program below. Read each statement carefully and write the output for
each line specified.

Line 22 will display on the screen.

Answer: 1
String val_1 = "foobar";

int num = val_1.length()

System.out.println(num);

Output:6

String val_1 = "foobar";

val_1 = val_1.substring(0,3);

System.out.println(val_1);

Output:foo

GIVEN: areaRect = length * width;

Constructor

String val_1 = "foobar";

String val_2 = "fudgee chocolate";

val_1 = val_2.substring(val_1.length()/2,6);

val_2 = val_2.substring(0,(val_2.length()/2)-1);

String val_3 = val_2 + val_1;

System.out.println(val_3);
Output: fudgee gee

String val_1 = "hot";

String val_2 = "dog";

String val_3 = val_1 + val_2;

System.out.println(val_3);

Answer: val_1 + val_2

int num = 0;

if (num <= 0){

num = 0;

}else{

num = num + 43210;

System.out.println(num);

Answer:0

int x = -77;

int z = 43;

System.out.println(x * x);

System.out.println(z * z);

Answer:false

String val_1 = "123";

int num = 0;

num = num + Integer.valueOf(val_1.substring(0,1));

num = num + Integer.valueOf(val_1.substring(1,2));

num = num + Integer.valueOf(val_1.substring(2,3));

System.out.println(num);

Answer:6

int counter = 19;

int answer = 10;

boolean result;

System.out.println(counter);

counter++;

System.out.println(counter);
counter *= 9;

System.out.println(counter);

counter /= 10;

System.out.println(counter);

result = ! (counter > 20);

System.out.println(result);

result = (counter % 3) == 0;

System.out.println(result);

answer = (counter % 4) * (counter-1);

System.out.println(answer);

System.out.println(!result);

answer = (counter * 123) / 7 + (90 % 4);

System.out.println(counter);

System.out.println(answer);

Line 22 answer:18

String val_1 = "foobar";

String val_2 = val_1;

val_1 = String.valueOf(val_1.indexOf("b"));

String val_3 = val_2.substring(0,Integer.valueOf(val_1));

System.out.println(val_3);

Answer:foo

String val_1 = "foobar";

val_1 = val_1 + val_1;

System.out.println(val_2);

Answer:error

String val_1 = "foobar";

String temp = val_1;

val_1 = val_1.substring(3,6);

val_1 = val_1 + temp.substring(0,3);

System.out.println(val_1)

Answer:barfoo

String val_1 = "foo";

String val_2 = val_1.substring(0,1) + val_1.substring(1,2);


val_2 = val_2 + val_1.substring(4,5);

System.out.println(val_2);

Answer:error

int counter = 19;

int answer = 10;

boolean result;

System.out.println(counter);

counter++;

System.out.println(counter);

counter *= 9;

System.out.println(counter);

counter /= 10;

System.out.println(counter);

result = ! (counter > 20);

System.out.println(result);

result = (counter % 3) == 0;

System.out.println(result);

answer = (counter % 4) * (counter-1);

System.out.println(answer);

System.out.println(!result);

answer = (counter * 123) / 7 + (90 % 4);

System.out.println(counter);

System.out.println(answer);

Answer:line 20 false

String val_1 = "100";

String val_2 = "200";

int num_1 = Integer.valueOf(val_1);

int num_2 = Integer.valueOf(val_2.substring(0,1));

val_1 = String.valueOf(num_1 * num_2);

System.out.println(val_1);

Answer:200

String val_1 = "foobar";

String val_2 = "fudgee chocolate";


val_1 = val_1.substring(val_1.length()/2, val_1.length());

val_2 = val_2.substring((val_2.length()/2)-1,16);

String val_3 = val_2 + "" + val_1;

System.out.println(val_3);

Answer:chocolate bar

String val_1 = "Foobar";

String val_2 = "hotdog";

String val_3 = String.valueOf(val_1.length()+ val_2.length());

System.out.println(val_3);

Answer:12

String val_1 = "25";

String val_2 = "80";

int num1 = Integer.valueOf(val_1);

int num2 = Integer.valueOf(val_2.substring(0,1));

val_1 = String.valueOf(num1 * num2);

System.out.println(val_1);

Answer:200

String val_1 = "foo";

String val_2 = "bar";

String val_3 = val_2;

val_2 = val_1;

val_1 = val_3;

System.out.println(val_1);

Answer:bar

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
Question text
True or False: Operators, in Java programming language, use special symbols to call methods and their
objects.
Answer:
False
Question text
Read each statement carefully and decide whether it’s TRUE or FALSE.
There are no errors in the program.
Select one:
False
Question text
Refer to the block of codes below. Read each statement carefully and decide whether it’s TRUE or FALSE.
Line 9 uses a traditional comment which uses double forward slash.
Answer: False
Question text
True or False: Many programmers can be literate with Java programming language for it is intended to be that
way.
Answer:
True
Question text
True or False: You’ll know there’s an error if you see a red circle with an exclamation point in Netbeans IDE.
Answer:
True
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 = (x = 100) >= z;
Select one:
True
The file is accurately named – Students.java.

-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.
-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

The last line of code will output 100.0.

-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

There are keywords found in line 7.

-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 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.

-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

Substrings can contain 1 or 2 arguments.


-true

Determine the output.

-bar

The index of the letter “y” in string “Doggy” is 5.


-False

Determine the output.


-foo

TRUE OR FALSE: The value “val_3” is a white space “ “.

-False

True or False: Variable 1st_num is a good variable name in Java programming.

-False

TRUE OR FALSE: “val_2” contains “The”

-True

True or False: Instance variables are declared inside a method but outside a class.

-False

True or False: Variable names in Java are not necessarily case sensitive.

-False

Determine the output

-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

result = !((x * 10) < z);


-False

result = -(-z) == 43;

-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

x += x;
result = x == 154;
-False

The second line 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

A string can contain numbers.

-True

TRUE OR FALSE: This is an example of concatenation.


-True

TRUE OR FALSE: The value of “val_4” is “fox”


-False

TRUE OR FALSE: “val_2” contains “The”.


-True

Determine the output.

-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

Strings can be declared with str.


-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

Among the expressions below which is a statement?

-True

Expressions can be long and complex.

-true

number++; is an expression

-true

For-loops has a set number of iterations before starting.

-True

The equals( ) method can compare more than 2 arrays.

-False

While loops can use Booleans at test expressions.

-True

The test expression of the if statement is _


-less than or equal to

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

x+1 is example of a statement.

-False

number++; is a block

-False

Arrays are

-Integers

The operator “new” allocates a memory block the size of what is declared.

-true

A class block can be an expression

-False

Statements can be expressions.


-False

Integer arrays can be populated with characters.

-False

Declaration clauses are declared as “number + 1”.

-False

Loops can be stopped with a break; statement.

-True

The equivalent of Paragraphs in coding is?

-Expressions

If statements cannot be nested in switches

-true

The length( ) method returns the size (number of indices) has.

-True

When polymorphism is used, the Java object can only take one form. Subclasses should have the
same function with the parent class.

-False

Arrays can contain (Answer) number of elements.

-Any

“||” and “&&” can be used in conditional statements.

-True

A class , 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

Expressions can be statements.

-True

Blocks can contain more blocks of code.

-True

If-else statements can be nested in?

-All of the choices

Statements are equivalent to paragraphs.

-False
A (answer) array is an array containing true or false values.

-boolean

Switches are always used with if-else statements

-False

True or False: The modulus operator returns the remainder of a division operation instead of the
quotient.

-true

Determine the output.


String val_1 = “564298”;

-5698

Determine the output.


String val_1 = “35”;

-4

The return value of the length( ) method is an integer

-true

A superclass is also known as a parent class.

-true

For-loops can be nested in while loops.

-true

In instantiating an object, the keyword instance is used.

-False

Object oriented programming utilizes the top down method

-False

Expressions are like clauses.

-true

The sort( ) method is always ascending.

-true

Arrays are data types.

-False

Variables must be declared as for it to be fully hidden.

-private

While statements check the test expression at the end.

-False

The else statement can be used alone.

-False
The fill( ) method (Answer) the array with specific values.

-Fills

The output of println is

-55555

The person’s weight is declared correctly with the correct data type (byte) and value (160).

-FALSE

Determine the output.


String val_1 = “foo”

String val_2 = “bar”

val_2 = val_1;

val_1 = val_3;

System.out.println(val_1);

-bar

Determine the output.


String val_1 = “foo”

String val_2 = “bar”

val_2 = val_1;

val_1 = val_3;

System.out.println(val_2);

-foo

Switches can work properly even without the “break” expression.

-True

Blocks can be one liner or huge classes.

-True

The test expressions in conditional statements can be left empty.

-False

Abstraction works by hiding the implementation details and showing only the functions necessary.

-True

A single array can hold multiple data types

-False

A polymorphic object can pass more than one Is-a test.

-True

Another loop can be used as test expression.

-False
True or False: Public, static and void are sample of Java reserved keywords.

-True

The value of “pStr” in line 24 is

-True

The default syntax of a constructor is <class_name>(parameter, parameter){ }

-False

A nested class is not an inner class.

-False

Nested classes causes them to become abstracted

-False

The terms nested and inner can be used

-same

A nested class is also called

-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

A constructor can only have 1-2 overloads or parameters.

-False

All possible data types of an array can be retuned as a string by the toString( ) method.

-True

Abstracted classes can contain 1 or more abstract methods.

-True

Abstraction shows the every bit of detail and implementation on how an application does something.

-False

The sort( ) method can be set to sort only a part of an array.

-True

Constructors can have overloads

-any number

The default syntax of a constructor is <class_name>( ){ }

-True

Classes cannot be nested.

-False

Abstract classes cannot have nested classes.

-False
The parent class of a nested class is called an outer class

-True

An inner class can be constructed directly without reference to the outer class.

-False

Arrays can be read backwards

-True

A single array can hold _ _.

-One data type

Abstracted methods already have implementations inside.

-False

are special methods to initialize objects.

-constructors

Constructors have 3 basic rules to follow.

-False

Nesting classes increases encapsulation.

-True

Polymorphism is the ability of a Java object to take _ .

-Different forms

Each index can only contain _ element.

-one

The sort( ) method can be set to sort only a part of an array.

-False

Subclasses or child classes could have different behaviors but still share the same functions from
their parent class.

-True

Abstract methods must have an explicit return value

-False

An abstract class must not contain abstract methods.

-False

Abstracted classes can be nested.

-True

A subclass constructor cannot invoke a superclass constructor.

-False

A class acquiring fields and methods of another class is called inheritance.

-True
Parallelsorting utilizes _.

-More cpu processing cores

method can copy one array to another.

-arraycopy()

Fill in the blank: In procedural programming, a step-by-step sequence of instructions is followed to


perform a -TASK

Fill in the blank: In designing the program specification, determine first the input, then
output
the and then analyze the problem.

Conditional test expressions can contain declarations

=True

Byte[ ] myArray is an array of

=bytes
Observe the following statements and decide whether the vari able result's value i s TRUE or FALSE.
Given that:
of
int x = -77;
int z = 43;
result = !((x • 10) < z);

Select one:
True

False

True o·False: 01-/ide no conquer· trutcgy,in progrnmming,is 1 30 kno..vn us :he top-cown design.

Answer: 1rue

Fill ir the hlnk·

S:rir.a "·al_1 = "focbar';


:rir.g vaU = "h::ltdog";
S:rir.val_3 = tring.v&!ueOf(val_l.lengthf) + val_2.leng:hf )'I;
Gysteu1ou:.priutln(nl_3);

Output:

Answer: 12

In procedural programming,a step-by-step sequence of instructions is followed to perfonm a task


Refer to the program below. Read each statement carefully and write the output for each line specified.
3 inc counter •19;
4 int answer = 0;
5 boolean result:;
6
7 System.out.println(counter);
e counter++;
9 System.out.prineln(counter);
10 counel!r •• 9;
11 System.out.println(counter);
12 counter /= 10;
13 System.out.println(counter);
l4 result= !(counter> 20);
15 System.out.println(resu1e);
16 result •(counter % 3) -- O;
17 Syseem.out.println(resu1t);
18 answer = (counter\ 4) k (counter-1);
19 System.out.println(answer);
20 System.out.println(!result);
21 answer= (counter • 123) I 7 + (90% 4);
System.out.println(counter);
221
23 Syseem.out.println(answer);

Line 7 will display 19 on the screen.

Determine the output


String val_1 = "25";
String val_2 = "80";
int num_1 = Integer.value0f(val_1);
int num_2 = Integer.value0f(val_2.substring(0,1));
va l_1 = String.va lue0f(num_1 * num_2);
System.out.println (val_1);

Output:

Select one:
a.2580
b . error

c.200
d.105
Read each statement carefully and decide whether it's TRUE or FALSE.

:of
:J --·- tfllp

public class Test I


public static void main(String[) args)
I
int yearlevel = 11;
System.out.println("Hi,student!");
System.out.println("You are in Year" + yearlevel};
}

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

indented. Select one:


True

False

A stnng can contain numbers.

Select one:
True

False

public soaoic void maLn(SorinQ() arQs) (


S ring val 1 "l";
S rino val 2 "2";
S rinq val 3 val 1 + val_2;

System.out.println(val_3);

Fi.gure 1.

Please refer to Figure 1.

TRUE OR FALSE: This is an example of concatenation.

Select one:
True

False
Questoin 7 True or False: Operators.in Java programming language, use special symbols to call methods and their objects.
Comp
lete

Mark 0.00 out of


1.00
Answer: - x_o-.\
V flag
question

:luest on 2 True or False: There are five types ofinteger data types - byte, short,int,long and noat.

Answer: ¥ - fc:d_.S e
V flag
uestion

Fillin the blanK:In proceduralprogramming, a step-by-step sequence of instructions is followed to perform a , tas -

Quesoon 2 True or False:Variable 1st_num is a good variable namein Java programming.


Complete

Mark 0.00 out of


1 00 Answer:_ -:('1\_t S,'f..
'f' Flag
queston

i e the output
Determn

String val_!= "5642 98";


String temp =val_;!
val_!= val_l.substring(4,6);
val_!=val_!+ temp.substring(0,2);
System.out.println(val_!);

Output:

Select one:
a.. error
b.S492
• c.. 5698
d.4298
public static void main(String() args) {
String va l 1 nThe quick brown fox 11 ;
String va l 2 val_l.substring(0,4);
String val 3 val_l.substring(4);
String val_4 val_l.substring(6,7);
System.out.println(val_2 + 11 \n" +val 3 + "\n" + va1_4};

Figure 2.

Please refer to Figure 2.

TRUE OR FALSE: The value of "val_4" is "fox"

Se!ect one:
True
False

public cacic void main(Scring(J arg) {


Scring val l "7e qu ck b=o!ex";
Scr ng val 2 val_l.subscrng(0,4);
Scring val 3 •val_l. ub cring();
Scring val val_l.subscring(6,7);
Sys:cem.out.prin'Cln(val_2 + 11 \n" +val 3 + "\n" + val_ };

Figure 2.

Please refer to Figure 2.

TRUE OR FALSE: The output of this code is "The quick brown fox"

Select one:
True y._

False V'
FOURTH QUARTER EXAM JAVA PROGRAMMING
(PROG-111A) 43/50
BY: JOSHUA UNGAB
(NOTE: WAG NYO SANA GAMITIN PANG BEBENTA SA IBA
JUSKO. SHARE NYO SA IBA GUYS)

The equivalent of clauses in coding is?


-Expressions
Int num = 1; for(num=num;num<=10;num++) is an acceptable code snippet.
-true
Loop that has a pre-determined number of iterations
-while
An int can be used even if it is declared outside a for-loop.
-true
Overload methods must be the same name as the class
-true
What the break statement in this example does is .
-Ends the whole instance of the loop
The random( ) method sorts the array randomly.
-False
The last part in a for loop setup can be an .
- both
The “1” in arrayName[1] is called an .
-Index
The continue; statement ends all the iterations of a loop.
- False
Which is not a proper increment?
- n+-;
Infine for-loops can be declared as for( ){ }.
- False
If-if is more logical than else-if.
- False
The else statement can be removed if not needed.
-True
Expressions, Statements and Blocks are like composing sentences and paragraphs.
-True
You can declare a new method in the subclass which is not declared in the superclass.
-True
The return value of the equals( ) method is .
-None of the choices
The Arrays.sort( ) method sorts an array into order.
-Ascending
This type of declaration is discouraged: “int myArray[ ]”
- True
An if-else-if-else statement is a block.
-True
If the increment num=num+2 is changed to num++, the final value of num will be
.
-5
The term of each pass through a loop makes is called?
-iteration
Loops must always have a continue or break statement.
-False
1+2+3/4*5 is an unambiguous expression
-False
Conditional statements can contain more conditional statements.
- True
int num = 1;
if(num==1 && num<=1){
body;
}
The conditional statement will .
- execute the body
byte( ][ ][ ) myArray; is an example of .
- An error
An array hold objects.
- can
A reference variable can be reassigned to other objects provided that it is not declared
.
- final
The test expression of conditional statement cannot contain
-!
Each pass through of a loop is called a cycle.
- True
If the increment “num = num + 2” is changed to “num = num + 1” the final output will be
.
-0
Ifs and else-ifs test expressions return true or false.
- True
classes increase the encapsulation of you methods and data.
- nesting
Constructed methods are initialized with 0 or null depending on the data type.
- true
The else statement catches whatever argument the if and else-if didn’t
- True
An iteration of a loop is equivalent to one pass through.
- true
38. If we change the initial value of num in line 6 to “num = 0”, the println output will be

-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
A loop can contain no expressions or statements inside.
- true
Conditional statements are the same as declaration statements.
- False
You cannot use inherited methods directly in a child class.
- False
The equals( ) method compares 2 arrays.
- True
Method invocations are statements
- True
There are no errors on line 11 but the variable ageFuture is not used in the program.

FALSE
To implement encapsulation, you have to declare class variables with the private
modifier.
- True
Inner class methods can be called by constructing the inner class.
- False
Encapsulated data are hidden from other classes.
- True

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

GIVEN: public int getArea

Answer: Method Name

Fill in the blanks with the correct answer.

Answer: val_1 + val_2


Read each statement carefully and decide whether it’s TRUE or FALSE.

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

Answer: False

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

GIVEN: int getArea

Answer: Return Type

Fill in the blank:

Answer: foo

Procedural programming will be tricky for applications.

Answer: small

Strings can directly concatenated to an int.


Answer: False

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

Answer: FALSE

Fill in the blank:

Answer: barfoo

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

GIVEN: private class EmployeeRecord


Answer: access modifier

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

Answer: FALSE

Fill in the blank:

Answer: 200

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

Answer: False

Fill in the blank:


Answer: foo

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

There are no errors in line 11.

Answer: TRUE

Determine the output.

Answer: error

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

Answer: False

Refer to the code snippet below. Determine whether the given is a local variable,
instance variable, access modifier or a class name.
GIVEN: private class EmployeeRecord

Answer: class name

Determine the output.

Answer: chocolate bar

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

Answer: False

Fill in the blank:

Answer: 6

The “indexOf( )” method returns the first instance of the specified character.

Answer: True
Please refer to figure 1 to answer the question below:

If we change the initial value of num in line 6 to “num = 0”, the println output will be

Answer: 0

Strings can readily accept int values.

Answer: True

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

Answer: True

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

GIVEN: int noOfEmployee

Answer: local variable

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

Answer: True
Refer to the program below. Read each statement carefully and write the output for
each line specified.

Line 22 will display on the screen.

Answer: 1
True
True or False: When you run javac in a command line interface, it will automatically
create another file with a filename extension .class.

applications
Nonprocedural programming, on the other hand, are limited to small <blank> and the
scope of tasks they can do.

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.

False
Strings can be declared with str.

bar
Determine the output.

String val = "foobar";


val_1 = val_1.substring(4,7);
System.out.println(val_1)

True
True or False: Divide and conquer strategy, in programming, is also known as the top-
down design.

169
Determine the output.

String val_1 = "54174";


int num = 0
num= num + Integer.valueOf(val_1.substring(0,2));
num= num + Integer.valueOf(val_1.substring(3,6));
num= num + Integer.valueOf(val_1.substring(1,3));
System.out.println(num)
sub-problems
In top down approach, problems are broken down into smaller

True
True or False: Procedural programming involves instructing the system as to how to
complete a task.

False
please refer to the figure 2....
TRUE OR FALSE: The value "val_3" is a white space " ".

4
Determine the output.

String val_1 = "35";


int num = 1;
val_1 = Val_1.substring(0,1);
num = num + Integer.valueOf(val_1);
SOP(num)

variable
A Java <blank> is simply a storage with a name.
True
Please refer to figure 2.
TRUE OR FALSE: "val_2" contains "The".

boar
Determine the output.

String val_1 = "foobar";


String val_2 = "";
char ch = val_1.charAt(3);
val_2 = String.valueOf(ch);
ch = val_1.charAt(1);
val_2 = val_2 + ch;
val_2 = val_2 + val_1.substring(4,6);
SOP(val_2);

200
Determine the output.

String val_1 = "25";


String val_2 = "80";
int num_1 = Integer.valueOf(val_1);
int num_2 = Integer.valueOf(val_2.substring(0,1));
val_1= String.valueOf(num_1 * num_2);
SOP(val_1);

error
Determine the output

String val = "foobar";


int num = val_1.length( );
val_1 = val_1 + Integer.valueOf(num);
val_1 = val_1.substring(0,1) + val_1.substring(7,8);
SOP(val_1);
task
In procedural programming, a step-by-step sequence of instructions is followed to
perform a <blank>

task
Fill in the blank: In procedural programming, a step-by-step sequence of instructions is
followed to perform a <blank>

False
True or False: Local variables are declared inside the default method.

f6
Determine the output

String val = "foobar";


int num = val_1.length( );
val_1 = val_1 + Integer.valueOf(num);
val_1 = val_1.substring(0,1) + val_1.substring(6,7);
SOP(val_1);

bar
Determine the output.

String val_1 = "foo";


String val_2 = "bar";
String val_3 = val_2;
val_2 = val_1;
val_1 = val_3;
SOP(val_1);

True
The string method "length( )" returns the number of characters within a string.

False
True or False: Variable 1st_num is a good variable name in Java programming

True
A string can contain numbers.

False
Please refer to figure 2.
TRUE OR FALSE: The value of "val_4" is "fox"

5698
Determine the output.

String val_1 = "564298";


String temp = val_1;
val_1 = val_1.substring(4,6);
val_1 = val_1 + temp.substring(0,2);
SOP(val_1);

False
True or False: Instance variables are declared inside a method but outside a class.

java
Languages which use procedural programming include C, <blank> FORTRAN, Pascal
and BASIC.

True
Substrings can contain 1 or 2 arguments.

False
True or False: Public, private and protected are some of the return types used in Java
programming.

foo
Determine the output.

String val_1 = "foo";


String val_2 = "bar";
String val_3 = val_2;
val_2 = val_1;
val_1 = val_3;
SOP(val_2);

False
Please refer to figure 2...
TRUE OR FALSE: The value "val_3" is a white space " ".

function
Fill in the blank: In programming, another term for method is <blank> But Java uses the
term "method".

False
Please refer to figure 2...
TRUE OR FALSE: The output of this code is "The quick brown fox"

output
Fill in the blank: In designing the program specification, determine first the input, then
the <blank> and then analyze the problem.

False
The index of the letter "y" in string "Doggy" is 5

False
True or False: Variable names in Java are not necessarily case sensitive.

20
Refer to the program below. Read each statement carefully and write the output for
each line specified. Line 9 will display <blank> on the screen.

true
Refer to the program below. Read each statement carefully and write the output for
each line specified.

Line 15 will display <blank> on the screen.

TRUE
Refer to the block of codes below. Read each statement carefully and decide whether
it's TRUE or FALSE. There are two types of comments used in the program above - end
of line and Javadoc comments.

FALSE
Refer to the block of codes below. Read each statement carefully and decide whether
it's TRUE or FALSE. There are three (3) separators found in line 13.

TRUE
Refer to the block of codes below. Read each statement carefully and decide whether
it's TRUE or FALSE. There are five (5) separators used in 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
Read each statement carefully and decide whether it's TRUE or FALSE.
The file is accurately named - Students.java.

True
True or False: An exclamation point in Java means NOT. Therefore, != means not equal
to.

true
True or False: Single equal sign (=) is used for assigning values while double equal sign
(==) is used in comparing values.

False
Read each statement carefully and decide whether it's TRUE or FALSE.

19
Refer to the program below. Read each statement carefully and write the output for
each line specified. Line 7 will display <blank> on the screen.

False
Observe the following statements and decide whether the variable result's value is
TRUE or FALSE.

result = (x * z + (z += 7)) >= 100;

FALSE
Refer to the block of codes below. Read each statement carefully and decide whether
it's TRUE or FALSE. The person's weight is declared correctly with the correct data
type (byte) and value (160).

FALSE
Refer to the block of codes below. Read each statement carefully and decide whether
it's TRUE or FALSE. The first line of the code should have either a yes or no value.

True
Read each statement carefully and decide whether it's TRUE or FALSE.If you run this
program, the second line of output will read Your score is:

False
Observe the following statements and decide whether the variable result's value is
TRUE or FALSE.

x += x;

result = x == 154;

TRUE
Refer to the block of codes below. Read each statement carefully and decide whether
it's TRUE or FALSE.

There are also punctuators used in line 10, in between System, out and println, the
parentheses and semicolon.

FALSE
Refer to the block of codes below. Read each statement carefully and decide whether
it's TRUE or FALSE.

If there are no errors in the program, the first line of output would read Hi, I'm a normal
person.

TRUE
Refer to the block of codes below. Read each statement carefully and decide whether
it's TRUE or FALSE.
In line 11, the value of personage is 18.

True
The following figure shows the Netbeans Integrated Development Environment.

False
True or False: Java is a low level programming language.

FALSE
Line 9 uses a traditional comment which uses double forward slash.

TRUE
Assuming there are no errors in the code, line 13 would display When I graduate, I'd be
18.
180
Line 11 will display <blank> on the screen.

True
True or False: You'll know there's an error if you see a red circle with an exclamation
point in Netbeans IDE.

18
Line 13 will display <blank> on the screen.

True
result = 43 <= z;

FALSE
If there are no errors in the program, line 9 would display I weigh 160.

true
Line 17 will display <blank> on the screen.
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
Question text True or False: Operators, in Java programming language, use special symbols to call methods
and their objects. Answer: False
Question text Read each statement carefully and decide whether it’s TRUE or FALSE. There are no errors in
the program. Select one: False
Question text Refer to the block of codes below. Read each statement carefully and decide whether it’s TRUE
or FALSE. Line 9 uses a traditional comment which uses double forward slash. Answer: False
Question text True or False: Many programmers can be literate with Java programming language for it is
intended to be that way. Answer: True
Question text True or False: You’ll know there’s an error if you see a red circle with an exclamation point in
Netbeans IDE. Answer: True
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 = (x = 100) >= z; Select one:
True
The file is accurately named – Students.java.
-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.
-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
The last line of code will output 100.0.
-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
There are keywords found in line 7.
-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 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.
-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
Substrings can contain 1 or 2 arguments.
-true
Determine the output.
-bar
The index of the letter “y” in string “Doggy” is 5.
-False
Determine the output.
-foo
TRUE OR FALSE: The value “val_3” is a white space “ “.
-False
True or False: Variable 1st_num is a good variable name in Java programming.
-False
TRUE OR FALSE: “val_2” contains “The”
-True
True or False: Instance variables are declared inside a method but outside a class.
-False
True or False: Variable names in Java are not necessarily case sensitive.
-False
Determine the output
-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
result = !((x * 10) < z);
-False
result = -(-z) == 43;
-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
x += x;
result = x == 154;
-False
The second line 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
A string can contain numbers.
-True
TRUE OR FALSE: This is an example of concatenation.
-True
TRUE OR FALSE: The value of “val_4” is “fox”
-False
TRUE OR FALSE: “val_2” contains “The”.
-True
Determine the output.
-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
Strings can be declared with str.
-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
Among the expressions below which is a statement?
-True
Expressions can be long and complex.
-true
number++; is an expression
-true
For-loops has a set number of iterations before starting.
-True
The equals( ) method can compare more than 2 arrays.
-False
While loops can use Booleans at test expressions.
-True
The test expression of the if statement is _
-less than or equal to
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
x+1 is example of a statement.
-False
number++; is a block
-False
Arrays are
-Integers
The operator “new” allocates a memory block the size of what is declared.
-true
A class block can be an expression
-False
Statements can be expressions.
-False
Integer arrays can be populated with characters.
-False
Declaration clauses are declared as “number + 1”.
-False
Loops can be stopped with a break; statement.
-True
The equivalent of Paragraphs in coding is?
-Expressions
If statements cannot be nested in switches
-true
The length( ) method returns the size (number of indices) has.
-True
When polymorphism is used, the Java object can only take one form. Subclasses should have the
same function with the parent class.
-False
Arrays can contain (Answer) number of elements.
-Any
“||” and “&&” can be used in conditional statements.
-True
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
Expressions can be statements.
-True
Blocks can contain more blocks of code.
-True
If-else statements can be nested in?
-All of the choices
Statements are equivalent to paragraphs.
-False
A (answer) array is an array containing true or false values.
-boolean
Switches are always used with if-else statements
-False
True or False: The modulus operator returns the remainder of a division operation instead of the
quotient.
-true
Determine the output.
String val_1 = “564298”;
-5698
Determine the output.
String val_1 = “35”;
-4
The return value of the length( ) method is an integer
-true
A superclass is also known as a parent class.
-true
For-loops can be nested in while loops.
-true
In instantiating an object, the keyword instance is used.
-False
Object oriented programming utilizes the top down method
-False
Expressions are like clauses.
-true
The sort( ) method is always ascending.
-true
Arrays are data types.
-False
Variables must be declared as (Answer) for it to be fully hidden.
-private
While statements check the test expression at the end.
-False
The else statement can be used alone.
-False
The type of loop that checks the test expression at the end.

-do while loop


The “indexOf( )” method returns the first instance of the specified character.
True
The fill( ) method (Answer) the array with specific values.
-Fills
The output of println is
-55555
The person’s weight is declared correctly with the correct data type (byte) and value (160).
-FALSE
Determine the output.
String val_1 = “foo”
String val_2 = “bar”
val_2 = val_1; val_1 =
val_3;
System.out.println(val_1);
-bar
Determine the output.
String val_1 = “foo”
String val_2 = “bar”
val_2 = val_1;
val_1 = val_3;
System.out.println(val_2);
-foo
Switches can work properly even without the “break” expression.
-True
Blocks can be one liner or huge classes.
-True
The test expressions in conditional statements can be left empty.
-False
Abstraction works by hiding the implementation details and showing only the functions necessary.
-True
A single array can hold multiple data types
-False
A polymorphic object can pass more than one Is-a test.
-True
Another loop can be used as test expression.
-False
True or False: Public, static and void are sample of Java reserved keywords.
-True
The value of “pStr” in line 24 is
-True
The default syntax of a constructor is <class_name>(parameter, parameter){ }
-False
A nested class is not an inner class.
-False
Nested classes causes them to become abstracted
-False
A nested class is also called
-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
A constructor can only have 1-2 overloads or parameters.
-False
All possible data types of an array can be retuned as a string by the toString( ) method.
-True
Abstracted classes can contain 1 or more abstract methods.
-True
Abstraction shows the every bit of detail and implementation on how an application does som ething.
-False
Initialization is a process where the constructor is called for.
-True
The default syntax of a constructor is <class_name>( ){ }
-True
Classes cannot be nested.
-False
Abstract classes cannot have nested classes.
-False
The parent class of a nested class is called an outer class
-True
An inner class can be constructed directly without reference to the outer class.
-False
A class which contains the abstract keyword in its declaration is known as an _ .
Abstract class
The limit of dimensions an array can have without errors is .
255
Arrays can be read backwards
-True
A single array can hold
-One data type
Abstracted methods already have implementations inside.
-False
Abstracted methods need for implementations.
sub-classes
are special methods to initialize objects.
-constructors
Constructors have 3 basic rules to follow.
-False
Nesting classes increases encapsulation.
-True
Each index can only contain (Answer) element.
-one
The sort( ) method can be set to sort only a part of an array.
-False
Subclasses or child classes could have different behaviors but still share the same functions from their parent class.
-True
Abstract methods must have an explicit return value
-False
An abstract class must not contain abstract methods.
-False
Abstracted classes can be nested.
-True
A subclass constructor cannot invoke a superclass constructor.
-False
A class acquiring fields and methods of another class is called inheritance.
-True
_ is the process of acquiring fields and methods of a parent class or super class.
-inheritance.
The name of a constructor must be as your class.
-same
Parallelsorting utilizes
-More cpu processing cores
The _ method can copy one array to another.

-arraycopy()

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

-true
Inherited fields and methods can be used _ by child classes.

Directly
_ is one of the four fundamental concepts, this is also known as data hiding.

Encapsulation
An array is always an _ .

int[ ]
GIVEN: public String welcomeNote

instance variable

In programming, abstracting a problem means


solve
Started on Thursday, 16 January 2020, 1:59 PM
State Finished
Completed on Thursday, 16 January 2020, 2:01 PM
Time taken 2 mins 5 secs
Grade 10.00 out of 10.00 (100%)
Question 1
Correct
Mark 1.00 out of 1.00

Flag question

Question text

The more you know the theories of computer science field, the better
programmer you become.

Select one:
True
False

Question 2
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Computer Programming is the study of computers and computational


systems.

Select one:
True
False

Question 3
Correct
Mark 1.00 out of 1.00
Flag question

Question text

Programming is instructing the computer by means of a programming


language to perform certain tasks for your desired output.

Select one:
True
False

Question 4
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Computer Programming is the scientific and practical approach to


computation and its applications.

Select one:
True
False

Question 5
Correct
Mark 1.00 out of 1.00

Flag question

Question text

_________ runs a set of instructions.


Select one:
a. CPU
b. RAM
Feedback

Your answer is correct.

Question 6
Correct
Mark 1.00 out of 1.00

Flag question

Question text

There is a valid expression in almost all programming languages.

Select one:
True
False

Question 7
Correct
Mark 1.00 out of 1.00

Flag question

Question text

This works as a temporary storage to help the CPU achieve the desired
output/outcome.

Select one:
a. CD
b. RAM
c. ROM
Feedback
Your answer is correct.

Question 8
Correct
Mark 1.00 out of 1.00

Flag question

Question text

The moment we write var X or var Y, a/an ________ is allocated in RAM


because unlike mathematical variables which exist mainly in our brains,
the variables of a program resides in an actual physical location.

Select one:
a. space
b. hollow
c. ordinal
d. numeral
Feedback

Your answer is correct.

Question 9
Correct
Mark 1.00 out of 1.00

Flag question

Question text

A programming language is a language which the computer


understands.

Select one:
True
False

Question 10
Correct
Mark 1.00 out of 1.00

Flag question

Question text

A program is a set of instructions loaded in the CPU that the CPU


executes to achieve an outcome.

Select one:
True
False

Started on Thursday, 16 January 2020, 2:01 PM


State Finished
Completed on Thursday, 16 January 2020, 2:03 PM
Time taken 2 mins 15 secs
Grade 10.00 out of 10.00 (100%)
Question 1
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Assembly language uses short ______________ codes for instructions and


allows the programmer to introduce names for blocks of memory that
hold data

Select one:
a. mnemonic
b. rhythm
c. duplicated
d. poetic
Feedback
Your answer is correct.

Question 2
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Such instructions can be executed directly when they are in the


computer manufacturer-specific numerical form known asAnswer
machine language
.

Question 3
Correct
Mark 1.00 out of 1.00

Flag question

Question text

This is one level above machine language.

Select one:
a. assembly language
b. VS
c. BASIC
d. BASIC.NET
Feedback

Your answer is correct.

Question 4
Correct
Mark 1.00 out of 1.00
Flag question

Question text

Machine and assembly languages are “low-level,” requiring a


programmer to manage explicitly all of a computer’sAnswer
idiosyncratic
features of data storage and operation.

Question 5
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Machine language
Answer instructions typically use some bits to represent
operations, such as addition, and some to represent operands, or
perhaps the location of the next instruction.

Question 6
Correct
Mark 1.00 out of 1.00

Flag question

Question text

machine langua
AAnswer consists of the numeric codes for the operations
that a particular computer can execute directly.

Question 7
Correct
Mark 1.00 out of 1.00
Flag question

Question text

Computer programming language, any of various languages for


expressing a set of detailed instructions for a digitalAnswer
computer
.

Question 8
Correct
Mark 1.00 out of 1.00

Flag question

Question text

codes
TheAnswer are strings of 0s and 1s, or binary digits (“bits”),
which are frequently converted both from and to hexadecimal (base 16)
for human viewing and modification.

Question 9
Correct
Mark 1.00 out of 1.00

Flag question

Question text

_______________ is difficult to read and write, since it does not resemble


conventional mathematical notation or human language, and its codes
vary from computer to computer.

Select one:
a. Notation
b. machine language
c. Social Network
d. BASIC
Feedback

Your answer is correct.

Question 10
Correct
Mark 1.00 out of 1.00

Flag question

Question text

After a simple substitution process when expressed in a


assembly language
correspondingAnswer .

Match the Microsoft Office terminologies with their descriptions and


functions.
Answer 1
Another name for a file created using Microsoft Word.
Document

You can force Word to end a paragraph and move to the next line by Answer 2
pressing the enter key. Hard Return

This is the software manufacturer's preset option for a particular command Answer 3
or function. Default

Answer 4
Special characters or symbols that are used to set off a paragraph.
Bullets

Answer 5
Pre-designed images that can be placed within a document.
Clip Art

The amount of space measured from the page margin that is applied to a Answer 6
paragraph or an area of a document. Indentation

Answer 7
This adds previously copied or cut text at the insertion point.
Paste

The amount of blank space, usually measured in inches or characters, Answer 8


above and below and to the right and left of the main body of a document. Margin
Answer 9
This is a style of typeface.
Font

The placement of a line of text in the center of the screen or page where
Answer 10
the left-most and right-most characters in the line are the same distance
Centering
from the left and right margins.
Feedback

Your answer is correct.

Match the Internet terminologies with their functions and descriptions.


Answer 1
This stands for mega.
M

The capacity of an electronic line, such as a


Answer 2
communications network or computer channel, to
bandwidth
transmit bits per second (bps).
This is a way of storing your favorite sites on the Answer 3
Internet. Bookmark

This is derives from the term for a barrier that prevents Answer 4
fires from spreading. Firewall

Answer 5
This stands for tera.
T

Answer 6
This stands for kilo.
K

This is an animation software used to develop interactive


graphics for Web sites as well as desktop presentations Answer 7
and games (Windows and Mac) by the company Flash
Macromedia.
This is a text-based computer conference over the
Answer 8
Internet between two or more people who must be online
Instant Messaging
at the same time.
Answer 9
This stands for giga.
G

This is a specification for transferring information


Answer 10
between a Web server and a CGI program, designed to
Common Gateway Interface script
receive and and return data.
Feedback

Your answer is correct.


Match the Internet terminologies with their descriptions and functions.
This a computer language, developed by Sun Microsystems, that lets you
Answer 1
encode applications, such as animated objects or computer programs, on
JAVA
the Internet.
Using file transfer protocol software to receive from upload) or send to
Answer 2
(download) files (text, pictures, spreadsheets, etc.) from one
FTP
computer/server to another.
The hypertext transfer protocol (http) that enables html documents to be Answer 3
read on the Internet. HTTP

The number or name of the computer from which you send and receive Answer 4
information on the Internet. IP Address

Text, images, graphics that, when clicked with a mouse (or activated by Answer 5
keystrokes) will connect the user to a new Web site. Hyperlink

A type of text code in Hypertext Markup Language which, when


Answer 6
embedded in a document, allows that document to be read and distributed
HTML
across the Internet.
A graphics formatting technique that causes an image to gradually appear Answer 7
on your screen instead of appearing all at once. Interlaced

Answer 8
A Web scripting language developed by Netscape.
Javascript

Answer 9
An e-mail list of e-mail addresses of people with common interests.
Listserv

A global network of thousands of computer networks linked by data lines Answer 10


and wireless systems. Internet

Feedback

Your answer is correct.


Match the terminologies with their descriptions and functions.
This is embedded within tags, so the author author can move
Answer 1
between HTML and PHP instead of using large amounts of
Hypertext Preprocessor
code.
A line in computer graphics designated by its end points (x-y or Answer 2
x-y-z coordinates). Vector

Format for compressing video with audio for playback from


Answer 3
storage media with low data transfer rates such as CDROMs or
MPEG-1
over the network at VHS quality.
A term that applies to programs/applets (macros and intelligent Answer 4
agents) used on the Internet. Web Bot

A three dimensional (3D) animation technology/format created Answer 5


by the Macromedia company. Shockwave

A device that connects your computer to the Internet, when you


Answer 6
are not connected via a LAN (local area network, such as at
Modem
work or on a campus.)
This is a specialized software, such as AltaVista and Yahoo, that
Answer 7
lets WWW browser users search for information on the Web by
Search Engine
using keywords, phrases, and boolean logic.
Format for compressing video with audio at broadcast
Answer 8
quality resolution for playback in higher data transfer rate
MPEG-2
environments.
Answer 9
The command to log on to another computer on the Internet.
Telnet

An XML format for sharing content among different Web sites Answer 10
such as news items. RSS/ RDF

Feedback

Your answer is correct.


Started on Thursday, 16 January 2020, 2:14 PM
State Finished
Completed on Thursday, 16 January 2020, 2:24 PM
Time taken 9 mins 49 secs
Grade 50.00 out of 50.00 (100%)
Question 1
Correct
Mark 1.00 out of 1.00

Flag question

Question text

The improved BASIC language for Altair was the __________ product
Microsoft sold.

Select one:
a. first
b. second
c. fourth
d. third
Feedback

Your answer is correct.

Question 2
Correct
Mark 1.00 out of 1.00

Flag question

Question text

In the _________, computers ran on gigantic mainframe machines,


requiring their special rooms with powerful air-conditioning to keep
them cool

Select one:
a. 1990s
b. 1960s
c. 19670s
d. 1980s
Feedback

Your answer is correct.

Question 3
Correct
Mark 1.00 out of 1.00

Flag question

Question text

They were the first high-level languages.


Select one:
a. Algorithmic languages
b. Algorithmic language
Feedback

Your answer is correct.

Question 4
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Gates and Microsoft wrote versions of BASIC for the Apple computer.

Select one:
True
False

Question 5
Correct
Mark 13.00 out of 13.00

Flag question

Question text

Match the earliest basic languages developed at Dartmouth with its


description.
log in HELLO
Answer 1
erase the current program without clearing its name SCRATCH
Answer 2
clear the current program from permanent storage UNSAVE
Answer 3
save the current program in permanent storage SAVE
Answer 4
display the names of programs in permanent storage CATALOG
Answer 5
change the name of the current program without erasing it RENAME
Answer 6
display the current program LIST
Answer 7
start BASIC mode BASIC
Answer 8
name and begin writing a program NEW
Answer 9
interrupt the currently running program STOP
Answer 10
retrieve a previously named program from permanent storage OLD
Answer 11
execute the current programs RUN
Answer 12
log off BYE
Answer 13
Feedback

Your answer is correct.

Question 6
Correct
Mark 1.00 out of 1.00

Flag question

Question text

VB was based on BASIC and relied on some of its commands and


structure but invaluable in many small business applications.

Select one:
True
False

Question 7
Correct
Mark 1.00 out of 1.00

Flag question

Question text
This contributed a notation for describing the structure of a
programming language, Backus–Naur Form.
ALGOL
Answer:

Question 8
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Visual basic is introduced in_______________.

Select one:
a. 2011
b. 2001
c. 1981
d. 1991
Feedback

Your answer is correct.

Question 9
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Paul Allen and Galileo wrote a version of BASIC for the Altair personal
computer.

Select one:
True
False
Question 10
Correct
Mark 1.00 out of 1.00

Flag question

Question text

The first important algorithmic language was FORTRAN. This is


designed in 1957 by an _________ team led by John Backus.

Select one:
a. MIT
b. Apple
c. Dell
d. IBM
Feedback

Your answer is correct.

Question 11
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Visual Basic is written by Microsoft.

Select one:
True
False

Question 12
Correct
Mark 1.00 out of 1.00
Flag question

Question text

This is the so-called DO-loops.


repetitive loops
Answer:

Question 13
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Who is not one of the founding fathers of Microsoft?

Select one:
a. Paul Allen
b. Bill Gates
c. Both of them
d. None of them
Feedback

Your answer is correct.

Question 14
Correct
Mark 1.00 out of 1.00

Flag question

Question text
FORTRAN
Answer made it convenient to have subprograms for
common mathematical operations, and built libraries of them.

Question 15
Correct
Mark 1.00 out of 1.00

Flag question

Question text

BASIC was traditionally one of the most commonly used computer


programming languages.

Select one:
True
False

Question 16
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Like machine language, assembly language requires detailed knowledge


of internal________________.

Select one:
a. computer code
b. computer data
c. computer architecture
d. data distribution
Feedback

Your answer is correct.


Question 17
Correct
Mark 1.00 out of 1.00

Flag question

Question text

These are the descendants of ALGOL.

Select one:
a. Pascal
b. Both of them.
c. Ada
d. Neither of Them.
Feedback

Your answer is correct.

Question 18
Correct
Mark 1.00 out of 1.00

Flag question

Question text

BASIC.NET matched the functionality of Java and C# with the syntax of


______________.

Select one:
a. BASIC
b. Internet
c. www
d. Microsoft Office
Feedback
Your answer is correct.

Question 19
Correct
Mark 1.00 out of 1.00

Flag question

Question text

By the _____________, the mania for programming personal computers


had subsided in the wake of running professional software created by
others.

Select one:
a. mid-1990s
b. mid-1980s
c. mid-1970s
d. mid-2000s
Feedback

Your answer is correct.

Question 20
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Assembly language is designed to be easily translated into machine


language.

Select one:
a. Disagree
b. Agree
Feedback
Your answer is correct.

Question 21
Correct
Mark 1.00 out of 1.00

Flag question

Question text

It was developed by Dartmouth mathematicians John George Kemeny


and Tom Kurtzas as a teaching tool for undergraduates.

Select one:
a. BASIC
b. Microsoft Office
c. computer science
d. computer theory
Feedback

Your answer is correct.

Question 22
Correct
Mark 1.00 out of 1.00

Flag question

Question text

A ___________ program is a function applied to data, rather than being a


sequence of procedural steps as in FORTRAN and ALGOL.

Select one:
a. BASIC
b. LISP
c. VC
d. ALGOL
Feedback

Your answer is correct.

Question 23
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Visual Basic is game changer.

Select one:
True
False

Question 24
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Assembly language is useful when such details are important, as in


programming a computer to interact with _______________ (printers,
scanners, storage devices, and so forth).

Select one:
a. hardware
b. software
c. commands
d. input/output devices
Feedback

Your answer is correct.


Question 25
Correct
Mark 1.00 out of 1.00

Flag question

Question text

The BASIC language was designed for _____________.

Select one:
a. working people
b. children
c. hobbyists
d. professionals
Feedback

Your answer is correct.

Question 26
Correct
Mark 1.00 out of 1.00

Flag question

Question text

BASIC was intended to be a ________________for generalists to use to


unlock the power of the computer in business and other realms of
academia

Select one:
a. code
b. computer language
c. website
d. social media content
Feedback
Your answer is correct.

Question 27
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Algorithmic languag
Answer are designed to express mathematical or
symbolic computations.

Question 28
Correct
Mark 1.00 out of 1.00

Flag question

Question text

The language BASIC was an acronym for Beginner's All-Purpose


Symbolic Instruction Code.

Select one:
a. Disagree
b. Agree
Feedback

Your answer is correct.

Question 29
Correct
Mark 1.00 out of 1.00

Flag question
Question text

FORTRAN was intended for scientific computations with_______________


and collections of them organized as one- or multidimensional arrays.

Select one:
a. real numbers
b. association
c. development
d. coding
Feedback

Your answer is correct.

Question 30
Correct
Mark 1.00 out of 1.00

Flag question

Question text

This was designed by a committee of American and European computer


scientists during 1958–60 for publishing algorithms.

Select one:
a. ALGOL
b. FORTRAN
c. BASIC
d. BASIC.NET
Feedback

Your answer is correct.

Question 31
Correct
Mark 1.00 out of 1.00
Flag question

Question text

BASIC was the most widely known computer language among


developers.

Select one:
True
False

Question 32
Correct
Mark 1.00 out of 1.00

Flag question

Question text

FORTRAN is more powerful than BASIC.

Select one:
True
False

Question 33
Correct
Mark 1.00 out of 1.00

Flag question

Question text

BASIC, a computer language written at________________ in 1963, would


change that.
Select one:
a. University of America
b. Dartmouth college
c. Harvard University
d. MIT
Feedback

Your answer is correct.

Question 34
Correct
Mark 1.00 out of 1.00

Flag question

Question text

They can express algebraic operations in notation similar to


mathematics and allow the use of subprograms that package commonly
used operations for reuse.
Algorithmic languages
Answer:

Question 35
Correct
Mark 1.00 out of 1.00

Flag question

Question text

This uses an English-like notation—novel when introduced.

Select one:
a. Pascal
b. COBOL
c. BASIC
d. Ada
Feedback

Your answer is correct.

Question 36
Correct
Mark 1.00 out of 1.00

Flag question

Question text

The mainframes received their instructions from _____________ by


computer operators, and any instructions given to a mainframe required
writing a new piece of software, which was the realm of mathematicians
and computer scientists.

Select one:
a. development
b. codes
c. commands
d. punch cards
Feedback

Your answer is correct.

Question 37
Correct
Mark 1.00 out of 1.00

Flag question

Question text

GOTO
AAnswer statement that allowed non-sequential execution
of program code.
Question 38
Correct
Mark 1.00 out of 1.00

Flag question

Question text

This is released by Microsoft in 2001.

Select one:
a. BASIC.NET
b. BASIC
c. C++
d. VB
Feedback

Your answer is correct.


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
Question text
True or False: Operators, in Java programming language, use special symbols to call methods and their
objects.
Answer:
False
Question text
Read each statement carefully and decide whether it’s TRUE or FALSE.
There are no errors in the program.
Select one:
False
Question text
Refer to the block of codes below. Read each statement carefully and decide whether it’s TRUE or FALSE.
Line 9 uses a traditional comment which uses double forward slash.
Answer: False
Question text
True or False: Many programmers can be literate with Java programming language for it is intended to be that
way.
Answer:
True
Question text
True or False: You’ll know there’s an error if you see a red circle with an exclamation point in Netbeans IDE.
Answer:
True
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 = (x = 100) >= z;
Select one:
True
The file is accurately named – Students.java.

-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.
-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

The last line of code will output 100.0.

-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

There are keywords found in line 7.

-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 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.

-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

Substrings can contain 1 or 2 arguments.


-true

Determine the output.

-bar

The index of the letter “y” in string “Doggy” is 5.


-False

Determine the output.


-foo

TRUE OR FALSE: The value “val_3” is a white space “ “.

-False

True or False: Variable 1st_num is a good variable name in Java programming.

-False

TRUE OR FALSE: “val_2” contains “The”

-True

True or False: Instance variables are declared inside a method but outside a class.

-False

True or False: Variable names in Java are not necessarily case sensitive.

-False

Determine the output

-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

result = !((x * 10) < z);


-False

result = -(-z) == 43;

-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

x += x;
result = x == 154;
-False

The second line 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

A string can contain numbers.

-True

TRUE OR FALSE: This is an example of concatenation.


-True

TRUE OR FALSE: The value of “val_4” is “fox”


-False

TRUE OR FALSE: “val_2” contains “The”.


-True

Determine the output.

-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

Strings can be declared with str.


-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

Among the expressions below which is a statement?

-True

Expressions can be long and complex.

-true

number++; is an expression

-true

For-loops has a set number of iterations before starting.

-True

The equals( ) method can compare more than 2 arrays.

-False

While loops can use Booleans at test expressions.

-True

The test expression of the if statement is _______


-less than or equal to

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

x+1 is example of a statement.

-False

number++; is a block

-False

Arrays are

-Integers

The operator “new” allocates a memory block the size of what is declared.

-true

A class block can be an expression

-False

Statements can be expressions.


-False

Integer arrays can be populated with characters.

-False

Declaration clauses are declared as “number + 1”.

-False

Loops can be stopped with a break; statement.

-True

The equivalent of Paragraphs in coding is?

-Expressions

If statements cannot be nested in switches

-true

The length( ) method returns the size (number of indices) has.

-True

When polymorphism is used, the Java object can only take one form. Subclasses should have the
same function with the parent class.

-False

Arrays can contain (Answer) number of elements.

-Any

“||” and “&&” can be used in conditional statements.

-True

A class , 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

Expressions can be statements.

-True

Blocks can contain more blocks of code.

-True

If-else statements can be nested in?

-All of the choices

Statements are equivalent to paragraphs.

-False
A (answer) array is an array containing true or false values.

-boolean

Switches are always used with if-else statements

-False

True or False: The modulus operator returns the remainder of a division operation instead of the
quotient.

-true

Determine the output.


String val_1 = “564298”;

-5698

Determine the output.


String val_1 = “35”;

-4

The return value of the length( ) method is an integer

-true

A superclass is also known as a parent class.

-true

For-loops can be nested in while loops.

-true

In instantiating an object, the keyword instance is used.

-False

Object oriented programming utilizes the top down method

-False

Expressions are like clauses.

-true

The sort( ) method is always ascending.

-true

Arrays are data types.

-False

Variables must be declared as _______ for it to be fully hidden.

-private

While statements check the test expression at the end.

-False

The else statement can be used alone.

-False
The fill( ) method (Answer) the array with specific values.

-Fills

The output of println is

-55555

The person’s weight is declared correctly with the correct data type (byte) and value (160).

-FALSE

Determine the output.


String val_1 = “foo”

String val_2 = “bar”

val_2 = val_1;

val_1 = val_3;

System.out.println(val_1);

-bar

Determine the output.


String val_1 = “foo”

String val_2 = “bar”

val_2 = val_1;

val_1 = val_3;

System.out.println(val_2);

-foo

Switches can work properly even without the “break” expression.

-True

Blocks can be one liner or huge classes.

-True

The test expressions in conditional statements can be left empty.

-False

Abstraction works by hiding the implementation details and showing only the functions necessary.

-True

A single array can hold multiple data types

-False

A polymorphic object can pass more than one Is-a test.

-True

Another loop can be used as test expression.

-False
True or False: Public, static and void are sample of Java reserved keywords.

-True

The value of “pStr” in line 24 is

-True

The default syntax of a constructor is <class_name>(parameter, parameter){ }

-False

A nested class is not an inner class.

-False

Nested classes causes them to become abstracted

-False

The terms nested and inner can be used _______

-same

A nested class is also called

-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

A constructor can only have 1-2 overloads or parameters.

-False

All possible data types of an array can be retuned as a string by the toString( ) method.

-True

Abstracted classes can contain 1 or more abstract methods.

-True

Abstraction shows the every bit of detail and implementation on how an application does something.

-False

The sort( ) method can be set to sort only a part of an array.

-True

Constructors can have ________ overloads

-any number

The default syntax of a constructor is <class_name>( ){ }

-True

Classes cannot be nested.

-False

Abstract classes cannot have nested classes.

-False
The parent class of a nested class is called an outer class

-True

An inner class can be constructed directly without reference to the outer class.

-False

Arrays can be read backwards

-True

A single array can hold ________.

-One data type

Abstracted methods already have implementations inside.

-False

are special methods to initialize objects.

-constructors

Constructors have 3 basic rules to follow.

-False

Nesting classes increases encapsulation.

-True

Polymorphism is the ability of a Java object to take _______.

-Different forms

Each index can only contain ________ element.

-one

The sort( ) method can be set to sort only a part of an array.

-False

Subclasses or child classes could have different behaviors but still share the same functions from
their parent class.

-True

Abstract methods must have an explicit return value

-False

An abstract class must not contain abstract methods.

-False

Abstracted classes can be nested.

-True

A subclass constructor cannot invoke a superclass constructor.

-False

A class acquiring fields and methods of another class is called inheritance.

-True
Parallelsorting utilizes ________.

-More cpu processing cores

method can copy one array to another.

-arraycopy()

Fill in the blank: In procedural programming, a step-by-step sequence of instructions is followed to


perform a -TASK

Fill in the blank: In designing the program specification, determine first the input, then
output
the and then analyze the problem.

Conditional test expressions can contain declarations

=True

Byte[ ] myArray is an array of

=bytes
FOURTH QUARTER EXAM JAVA PROGRAMMING
(PROG-111A) 43/50
BY: JOSHUA UNGAB
(NOTE: WAG NYO SANA GAMITIN PANG BEBENTA SA IBA
JUSKO. SHARE NYO SA IBA GUYS)

The equivalent of clauses in coding is?


-Expressions
Int num = 1; for(num=num;num<=10;num++) is an acceptable code snippet.
-true
Loop that has a pre-determined number of iterations
-while
An int can be used even if it is declared outside a for-loop.
-true
Overload methods must be the same name as the class
-true
What the break statement in this example does is ________.
-Ends the whole instance of the loop
The random( ) method sorts the array randomly.
-False
The last part in a for loop setup can be an ________.
- both
The “1” in arrayName[1] is called an ________.
-Index
The continue; statement ends all the iterations of a loop.
- False
Which is not a proper increment?
- n+-;
Infine for-loops can be declared as for( ){ }.
- False
If-if is more logical than else-if.
- False
The else statement can be removed if not needed.
-True
Expressions, Statements and Blocks are like composing sentences and paragraphs.
-True
You can declare a new method in the subclass which is not declared in the superclass.
-True
The return value of the equals( ) method is ________ .
-None of the choices
The Arrays.sort( ) method sorts an array into _________ order.
-Ascending
This type of declaration is discouraged: “int myArray[ ]”
- True
An if-else-if-else statement is a block.
-True
If the increment num=num+2 is changed to num++, the final value of num will be
________.
-5
The term of each pass through a loop makes is called?
-iteration
Loops must always have a continue or break statement.
-False
1+2+3/4*5 is an unambiguous expression
-False
Conditional statements can contain more conditional statements.
- True
int num = 1;
if(num==1 && num<=1){
body;
}
The conditional statement will _______.
- execute the body
byte( ][ ][ ) myArray; is an example of ________.
- An error
An array _______ hold objects.
- can
A reference variable can be reassigned to other objects provided that it is not declared
________.
- final
The test expression of conditional statement cannot contain _______
-!
Each pass through of a loop is called a cycle.
- True
If the increment “num = num + 2” is changed to “num = num + 1” the final output will be
_______.
-0
Ifs and else-ifs test expressions return true or false.
- True
_______ classes increase the encapsulation of you methods and data.
- nesting
Constructed methods are initialized with 0 or null depending on the data type.
- true
The else statement catches whatever argument the if and else-if didn’t
- True
An iteration of a loop is equivalent to one pass through.
- true
38. If we change the initial value of num in line 6 to “num = 0”, the println output will be
_______
-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
A loop can contain no expressions or statements inside.
- true
Conditional statements are the same as declaration statements.
- False
You cannot use inherited methods directly in a child class.
- False
The equals( ) method compares 2 arrays.
- True
Method invocations are statements
- True
There are no errors on line 11 but the variable ageFuture is not used in the program.

FALSE
To implement encapsulation, you have to declare class variables with the private
modifier.
- True
Inner class methods can be called by constructing the inner class.
- False
Encapsulated data are hidden from other classes.
- True

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

GIVEN: public int getArea

Answer: Method Name

Fill in the blanks with the correct answer.

Answer: val_1 + val_2


Read each statement carefully and decide whether it’s TRUE or FALSE.

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

Answer: False

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

GIVEN: int getArea

Answer: Return Type

Fill in the blank:

Answer: foo

Procedural programming will be tricky for applications.

Answer: small

Strings can directly concatenated to an int.


Answer: False

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

Answer: FALSE

Fill in the blank:

Answer: barfoo

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

GIVEN: private class EmployeeRecord


Answer: access modifier

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

Answer: FALSE

Fill in the blank:

Answer: 200

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

Answer: False

Fill in the blank:


Answer: foo

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

There are no errors in line 11.

Answer: TRUE

Determine the output.

Answer: error

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

Answer: False

Refer to the code snippet below. Determine whether the given is a local variable,
instance variable, access modifier or a class name.
GIVEN: private class EmployeeRecord

Answer: class name

Determine the output.

Answer: chocolate bar

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

Answer: False

Fill in the blank:

Answer: 6

The “indexOf( )” method returns the first instance of the specified character.

Answer: True
Please refer to figure 1 to answer the question below:

If we change the initial value of num in line 6 to “num = 0”, the println output will be

Answer: 0

Strings can readily accept int values.

Answer: True

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

Answer: True

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

GIVEN: int noOfEmployee

Answer: local variable

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

Answer: True
Refer to the program below. Read each statement carefully and write the output for
each line specified.

Line 22 will display on the screen.

Answer: 1
True
True or False: When you run javac in a command line interface, it will automatically
create another file with a filename extension .class.

applications
Nonprocedural programming, on the other hand, are limited to small <blank> and the
scope of tasks they can do.

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.

False
Strings can be declared with str.

bar
Determine the output.

String val = "foobar";


val_1 = val_1.substring(4,7);
System.out.println(val_1)

True
True or False: Divide and conquer strategy, in programming, is also known as the top-
down design.

169
Determine the output.

String val_1 = "54174";


int num = 0
num= num + Integer.valueOf(val_1.substring(0,2));
num= num + Integer.valueOf(val_1.substring(3,6));
num= num + Integer.valueOf(val_1.substring(1,3));
System.out.println(num)
sub-problems
In top down approach, problems are broken down into smaller

True
True or False: Procedural programming involves instructing the system as to how to
complete a task.

False
please refer to the figure 2....
TRUE OR FALSE: The value "val_3" is a white space " ".

4
Determine the output.

String val_1 = "35";


int num = 1;
val_1 = Val_1.substring(0,1);
num = num + Integer.valueOf(val_1);
SOP(num)

variable
A Java <blank> is simply a storage with a name.
True
Please refer to figure 2.
TRUE OR FALSE: "val_2" contains "The".

boar
Determine the output.

String val_1 = "foobar";


String val_2 = "";
char ch = val_1.charAt(3);
val_2 = String.valueOf(ch);
ch = val_1.charAt(1);
val_2 = val_2 + ch;
val_2 = val_2 + val_1.substring(4,6);
SOP(val_2);

200
Determine the output.

String val_1 = "25";


String val_2 = "80";
int num_1 = Integer.valueOf(val_1);
int num_2 = Integer.valueOf(val_2.substring(0,1));
val_1= String.valueOf(num_1 * num_2);
SOP(val_1);

error
Determine the output

String val = "foobar";


int num = val_1.length( );
val_1 = val_1 + Integer.valueOf(num);
val_1 = val_1.substring(0,1) + val_1.substring(7,8);
SOP(val_1);
task
In procedural programming, a step-by-step sequence of instructions is followed to
perform a <blank>

task
Fill in the blank: In procedural programming, a step-by-step sequence of instructions is
followed to perform a <blank>

False
True or False: Local variables are declared inside the default method.

f6
Determine the output

String val = "foobar";


int num = val_1.length( );
val_1 = val_1 + Integer.valueOf(num);
val_1 = val_1.substring(0,1) + val_1.substring(6,7);
SOP(val_1);

bar
Determine the output.

String val_1 = "foo";


String val_2 = "bar";
String val_3 = val_2;
val_2 = val_1;
val_1 = val_3;
SOP(val_1);

True
The string method "length( )" returns the number of characters within a string.

False
True or False: Variable 1st_num is a good variable name in Java programming

True
A string can contain numbers.

False
Please refer to figure 2.
TRUE OR FALSE: The value of "val_4" is "fox"

5698
Determine the output.

String val_1 = "564298";


String temp = val_1;
val_1 = val_1.substring(4,6);
val_1 = val_1 + temp.substring(0,2);
SOP(val_1);

False
True or False: Instance variables are declared inside a method but outside a class.

java
Languages which use procedural programming include C, <blank> FORTRAN, Pascal
and BASIC.

True
Substrings can contain 1 or 2 arguments.

False
True or False: Public, private and protected are some of the return types used in Java
programming.

foo
Determine the output.

String val_1 = "foo";


String val_2 = "bar";
String val_3 = val_2;
val_2 = val_1;
val_1 = val_3;
SOP(val_2);

False
Please refer to figure 2...
TRUE OR FALSE: The value "val_3" is a white space " ".

function
Fill in the blank: In programming, another term for method is <blank> But Java uses the
term "method".

False
Please refer to figure 2...
TRUE OR FALSE: The output of this code is "The quick brown fox"

output
Fill in the blank: In designing the program specification, determine first the input, then
the <blank> and then analyze the problem.

False
The index of the letter "y" in string "Doggy" is 5

False
True or False: Variable names in Java are not necessarily case sensitive.

20
Refer to the program below. Read each statement carefully and write the output for
each line specified. Line 9 will display <blank> on the screen.

true
Refer to the program below. Read each statement carefully and write the output for
each line specified.

Line 15 will display <blank> on the screen.

TRUE
Refer to the block of codes below. Read each statement carefully and decide whether
it's TRUE or FALSE. There are two types of comments used in the program above - end
of line and Javadoc comments.

FALSE
Refer to the block of codes below. Read each statement carefully and decide whether
it's TRUE or FALSE. There are three (3) separators found in line 13.

TRUE
Refer to the block of codes below. Read each statement carefully and decide whether
it's TRUE or FALSE. There are five (5) separators used in 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
Read each statement carefully and decide whether it's TRUE or FALSE.
The file is accurately named - Students.java.

True
True or False: An exclamation point in Java means NOT. Therefore, != means not equal
to.

true
True or False: Single equal sign (=) is used for assigning values while double equal sign
(==) is used in comparing values.

False
Read each statement carefully and decide whether it's TRUE or FALSE.

19
Refer to the program below. Read each statement carefully and write the output for
each line specified. Line 7 will display <blank> on the screen.

False
Observe the following statements and decide whether the variable result's value is
TRUE or FALSE.

result = (x * z + (z += 7)) >= 100;

FALSE
Refer to the block of codes below. Read each statement carefully and decide whether
it's TRUE or FALSE. The person's weight is declared correctly with the correct data
type (byte) and value (160).

FALSE
Refer to the block of codes below. Read each statement carefully and decide whether
it's TRUE or FALSE. The first line of the code should have either a yes or no value.

True
Read each statement carefully and decide whether it's TRUE or FALSE.If you run this
program, the second line of output will read Your score is:

False
Observe the following statements and decide whether the variable result's value is
TRUE or FALSE.

x += x;

result = x == 154;

TRUE
Refer to the block of codes below. Read each statement carefully and decide whether
it's TRUE or FALSE.

There are also punctuators used in line 10, in between System, out and println, the
parentheses and semicolon.

FALSE
Refer to the block of codes below. Read each statement carefully and decide whether
it's TRUE or FALSE.

If there are no errors in the program, the first line of output would read Hi, I'm a normal
person.

TRUE
Refer to the block of codes below. Read each statement carefully and decide whether
it's TRUE or FALSE.
In line 11, the value of personage is 18.

True
The following figure shows the Netbeans Integrated Development Environment.

False
True or False: Java is a low level programming language.

FALSE
Line 9 uses a traditional comment which uses double forward slash.

TRUE
Assuming there are no errors in the code, line 13 would display When I graduate, I'd be
18.
180
Line 11 will display <blank> on the screen.

True
True or False: You'll know there's an error if you see a red circle with an exclamation
point in Netbeans IDE.

18
Line 13 will display <blank> on the screen.

True
result = 43 <= z;

FALSE
If there are no errors in the program, line 9 would display I weigh 160.

true
Line 17 will display <blank> on the screen.
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
Question text True or False: Operators, in Java programming language, use special symbols to call methods
and their objects. Answer: False
Question text Read each statement carefully and decide whether it’s TRUE or FALSE. There are no errors in
the program. Select one: False
Question text Refer to the block of codes below. Read each statement carefully and decide whether it’s TRUE
or FALSE. Line 9 uses a traditional comment which uses double forward slash. Answer: False
Question text True or False: Many programmers can be literate with Java programming language for it is
intended to be that way. Answer: True
Question text True or False: You’ll know there’s an error if you see a red circle with an exclamation point in
Netbeans IDE. Answer: True
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 = (x = 100) >= z; Select one:
True
The file is accurately named – Students.java.
-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.
-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
The last line of code will output 100.0.
-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
There are keywords found in line 7.
-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 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.
-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
Substrings can contain 1 or 2 arguments.
-true
Determine the output.
-bar
The index of the letter “y” in string “Doggy” is 5.
-False
Determine the output.
-foo
TRUE OR FALSE: The value “val_3” is a white space “ “.
-False
True or False: Variable 1st_num is a good variable name in Java programming.
-False
TRUE OR FALSE: “val_2” contains “The”
-True
True or False: Instance variables are declared inside a method but outside a class.
-False
True or False: Variable names in Java are not necessarily case sensitive.
-False
Determine the output
-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
result = !((x * 10) < z);
-False
result = -(-z) == 43;
-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
x += x;
result = x == 154;
-False
The second line 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
A string can contain numbers.
-True
TRUE OR FALSE: This is an example of concatenation.
-True
TRUE OR FALSE: The value of “val_4” is “fox”
-False
TRUE OR FALSE: “val_2” contains “The”.
-True
Determine the output.
-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
Strings can be declared with str.
-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
Among the expressions below which is a statement?
-True
Expressions can be long and complex.
-true
number++; is an expression
-true
For-loops has a set number of iterations before starting.
-True
The equals( ) method can compare more than 2 arrays.
-False
While loops can use Booleans at test expressions.
-True
The test expression of the if statement is _______
-less than or equal to
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
x+1 is example of a statement.
-False
number++; is a block
-False
Arrays are
-Integers
The operator “new” allocates a memory block the size of what is declared.
-true
A class block can be an expression
-False
Statements can be expressions.
-False
Integer arrays can be populated with characters.
-False
Declaration clauses are declared as “number + 1”.
-False
Loops can be stopped with a break; statement.
-True
The equivalent of Paragraphs in coding is?
-Expressions
If statements cannot be nested in switches
-true
The length( ) method returns the size (number of indices) has.
-True
When polymorphism is used, the Java object can only take one form. Subclasses should have the
same function with the parent class.
-False
Arrays can contain (Answer) number of elements.
-Any
“||” and “&&” can be used in conditional statements.
-True
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
Expressions can be statements.
-True
Blocks can contain more blocks of code.
-True
If-else statements can be nested in?
-All of the choices
Statements are equivalent to paragraphs.
-False
A (answer) array is an array containing true or false values.
-boolean
Switches are always used with if-else statements
-False
True or False: The modulus operator returns the remainder of a division operation instead of the
quotient.
-true
Determine the output.
String val_1 = “564298”;
-5698
Determine the output.
String val_1 = “35”;
-4
The return value of the length( ) method is an integer
-true
A superclass is also known as a parent class.
-true
For-loops can be nested in while loops.
-true
In instantiating an object, the keyword instance is used.
-False
Object oriented programming utilizes the top down method
-False
Expressions are like clauses.
-true
The sort( ) method is always ascending.
-true
Arrays are data types.
-False
Variables must be declared as (Answer) for it to be fully hidden.
-private
While statements check the test expression at the end.
-False
The else statement can be used alone.
-False
The type of loop that checks the test expression at the end.

-do while loop


The “indexOf( )” method returns the first instance of the specified character.
True
The fill( ) method (Answer) the array with specific values.
-Fills
The output of println is
-55555
The person’s weight is declared correctly with the correct data type (byte) and value (160).
-FALSE
Determine the output.
String val_1 = “foo”
String val_2 = “bar”
val_2 = val_1;
val_1 = val_3;
System.out.println(val_1);
-bar
Determine the output.
String val_1 = “foo”
String val_2 = “bar”
val_2 = val_1;
val_1 = val_3;
System.out.println(val_2);
-foo
Switches can work properly even without the “break” expression.
-True
Blocks can be one liner or huge classes.
-True
The test expressions in conditional statements can be left empty.
-False
Abstraction works by hiding the implementation details and showing only the functions necessary.
-True
A single array can hold multiple data types
-False
A polymorphic object can pass more than one Is-a test.
-True
Another loop can be used as test expression.
-False
True or False: Public, static and void are sample of Java reserved keywords.
-True
The value of “pStr” in line 24 is
-True
The default syntax of a constructor is <class_name>(parameter, parameter){ }
-False
A nested class is not an inner class.
-False
Nested classes causes them to become abstracted
-False
A nested class is also called
-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
A constructor can only have 1-2 overloads or parameters.
-False
All possible data types of an array can be retuned as a string by the toString( ) method.
-True
Abstracted classes can contain 1 or more abstract methods.
-True
Abstraction shows the every bit of detail and implementation on how an application does something.
-False
Initialization is a process where the constructor is called for.
-True
The default syntax of a constructor is <class_name>( ){ }
-True
Classes cannot be nested.
-False
Abstract classes cannot have nested classes.
-False
The parent class of a nested class is called an outer class
-True
An inner class can be constructed directly without reference to the outer class.
-False
A class which contains the abstract keyword in its declaration is known as an __________.
Abstract class
The limit of dimensions an array can have without errors is ________.
255
Arrays can be read backwards
-True
A single array can hold
-One data type
Abstracted methods already have implementations inside.
-False
Abstracted methods need _______ for implementations.
sub-classes
are special methods to initialize objects.
-constructors
Constructors have 3 basic rules to follow.
-False
Nesting classes increases encapsulation.
-True
Each index can only contain (Answer) element.
-one
The sort( ) method can be set to sort only a part of an array.
-False
Subclasses or child classes could have different behaviors but still share the same functions from
their parent class.
-True
Abstract methods must have an explicit return value
-False
An abstract class must not contain abstract methods.
-False
Abstracted classes can be nested.
-True
A subclass constructor cannot invoke a superclass constructor.
-False
A class acquiring fields and methods of another class is called inheritance.
-True
________ is the process of acquiring fields and methods of a parent class or super class.
-inheritance.
The name of a constructor must be ______ as your class.
-same
Parallelsorting utilizes
-More cpu processing cores
The _______ method can copy one array to another.

-arraycopy()

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

-true

Inherited fields and methods can be used _______ by child classes.

Directly
________ is one of the four fundamental concepts, this is also known as data hiding.

Encapsulation
An array is always an _______.

int[ ]
GIVEN: public String welcomeNote

instance variable

In programming, abstracting a problem means


solve
AMALEAKS.BLOGSPOT.COM
PROG-3114 GRADE 12

LONG QUIZ NO. 4

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 – like additional characters and skills.”
ANSWER: 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
6. Kyoto protocol addresses environmental issues through the campaign of
____________________.
ANSWER: reducing greenhouse gas emissions

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
9. ____________________ is when you conduct regular audits and inspections to evaluate your
work performance.
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 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.
“One good thing I find with XYZ as when my laptop shuts down accidentally, my game score and
status can still be recovered. No need to repeat a level.”
ANSWER: Reliability
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

17. 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.
“I find it really enjoying to play XYZ since I can invite my friends from social media profile. It works
well with this social media app!”
ANSWER: Compatibility
18. 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.
“XYZ is so cool! I tried to install it in my old computer and it still runs smoothly. Given that the
computer’s video card is a bit faulty.“
ANSWER: Reliability

19. ____________________ is setting the best practices in the workplace as your work standards.
ANSWER: Seiketsu
20. The 5S Method is a Japanese perspective technique developed by Eiichiro Oda.
ANSWER: FALSER

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
28. Montreal protocol protects the ozone layer by ____________________.
ANSWER: phasing out harmful substances
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
LONG QUIZ NO. 6
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?

ANSWER: display Overweight


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
10. Java is an example of
ANSWER: HIGH-LEVEL LANGUAGE

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
13. He is known as the father of the Java programming language.

ANSWER: JAMES GOSLING


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
interpreters or compilers.
ANSWER: TRUE
17. was the first language implemented for BINAC.

ANSWER: Short Code


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?
ANSWER: ASK FOR HEIGHT

22. A_________is the code or language that allows a user to instruct a computer to perform specific
tasks.
ANSWER: Programming Language
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
26. Who is considered as a user (component of an operating system)?

ANSWER: ALL OF THE CHOICES


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
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
Question text
True or False: Operators, in Java programming language, use special symbols to call methods and their
objects.
Answer:
False
Question text
Read each statement carefully and decide whether it’s TRUE or FALSE.
There are no errors in the program.
Select one:
False
Question text
Refer to the block of codes below. Read each statement carefully and decide whether it’s TRUE or FALSE.
Line 9 uses a traditional comment which uses double forward slash.
Answer: False
Question text
True or False: Many programmers can be literate with Java programming language for it is intended to be that
way.
Answer:
True
Question text
True or False: You’ll know there’s an error if you see a red circle with an exclamation point in Netbeans IDE.
Answer:
True
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 = (x = 100) >= z;
Select one:
True
The file is accurately named – Students.java.
-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.
-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
The last line of code will output 100.0.
-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
There are keywords found in line 7.
-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 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.
-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

Substrings can contain 1 or 2 arguments.


-true
Determine the output.

-bar

The index of the letter “y” in string “Doggy” is 5.


-False
Determine the output.
-foo
TRUE OR FALSE: The value “val_3” is a white space “ “.
-False
True or False: Variable 1st_num is a good variable name in Java programming.
-False

TRUE OR FALSE: “val_2” contains “The”


-True
True or False: Instance variables are declared inside a method but outside a class.
-False
True or False: Variable names in Java are not necessarily case sensitive.
-False
Determine the output

-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
result = !((x * 10) < z);
-False

result = -(-z) == 43;


-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
x += x;
result = x == 154;
-False
The second line 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
A string can contain numbers.
-True

TRUE OR FALSE: This is an example of concatenation.


-True

TRUE OR FALSE: The value of “val_4” is “fox”


-False
TRUE OR FALSE: “val_2” contains “The”.
-True
Determine the output.
-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

Strings can be declared with str.


-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
Among the expressions below which is a statement?
-True

Expressions can be long and complex.


-true
number++; is an expression
-true

For-loops has a set number of iterations before starting.


-True
The equals( ) method can compare more than 2 arrays.
-False
While loops can use Booleans at test expressions.
-True
The test expression of the if statement is _______
-less than or equal to
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
x+1 is example of a statement.
-False
number++; is a block
-False

Arrays are
-Integers
The operator “new” allocates a memory block the size of what is declared.
-true
A class block can be an expression
-False
Statements can be expressions.
-False

Integer arrays can be populated with characters.


-False
Declaration clauses are declared as “number + 1”.
-False

Loops can be stopped with a break; statement.


-True
The equivalent of Paragraphs in coding is?
-Expressions
If statements cannot be nested in switches
-true
The length( ) method returns the size (number of indices) has.
-True
When polymorphism is used, the Java object can only take one form. Subclasses should have the
same function with the parent class.
-False
Arrays can contain (Answer) number of elements.
-Any
“||” and “&&” can be used in conditional statements.
-True
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
Expressions can be statements.
-True
Blocks can contain more blocks of code.
-True
If-else statements can be nested in?
-All of the choices
Statements are equivalent to paragraphs.
-False

A (answer) array is an array containing true or false values.


-boolean
Switches are always used with if-else statements
-False
True or False: The modulus operator returns the remainder of a division operation instead of the
quotient.
-true
Determine the output.
String val_1 = “564298”;

-5698
Determine the output.
String val_1 = “35”;
-4
The return value of the length( ) method is an integer
-true
A superclass is also known as a parent class.
-true
For-loops can be nested in while loops.
-true
In instantiating an object, the keyword instance is used.
-False
Object oriented programming utilizes the top down method
-False
Expressions are like clauses.
-true
The sort( ) method is always ascending.
-true
Arrays are data types.
-False
Variables must be declared as (Answer) for it to be fully hidden.

-private
While statements check the test expression at the end.
-False
The else statement can be used alone.
-False
The fill( ) method (Answer) the array with specific values.
-Fills
The output of println is

-55555
The person’s weight is declared correctly with the correct data type (byte) and value (160).
-FALSE

Determine the output.


String val_1 = “foo”
String val_2 = “bar”

val_2 = val_1;
val_1 = val_3;
System.out.println(val_1);
-bar
Determine the output.
String val_1 = “foo”
String val_2 = “bar”
val_2 = val_1;

val_1 = val_3;
System.out.println(val_2);
-foo
Switches can work properly even without the “break” expression.
-True
Blocks can be one liner or huge classes.
-True
The test expressions in conditional statements can be left empty.
-False
Abstraction works by hiding the implementation details and showing only the functions necessary.
-True
A single array can hold multiple data types
-False
A polymorphic object can pass more than one Is-a test.
-True
Another loop can be used as test expression.
-False
True or False: Public, static and void are sample of Java reserved keywords.
-True

The value of “pStr” in line 24 is


-True
The default syntax of a constructor is <class_name>(parameter, parameter){ }
-False

A nested class is not an inner class.


-False
Nested classes causes them to become abstracted
-False
A nested class is also called
-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
A constructor can only have 1-2 overloads or parameters.
-False
All possible data types of an array can be retuned as a string by the toString( ) method.
-True
Abstracted classes can contain 1 or more abstract methods.
-True
Abstraction shows the every bit of detail and implementation on how an application does something.
-False
Initialization is a process where the constructor is called for.
-True

The default syntax of a constructor is <class_name>( ){ }


-True
Classes cannot be nested.
-False

Abstract classes cannot have nested classes.


-False
The parent class of a nested class is called an outer class
-True

An inner class can be constructed directly without reference to the outer class.
-False
Arrays can be read backwards
-True

A single array can hold


-One data type
Abstracted methods already have implementations inside.
-False
are special methods to initialize objects.
-constructors
Constructors have 3 basic rules to follow.
-False
Nesting classes increases encapsulation.
-True

Each index can only contain (Answer) element.


-one
The sort( ) method can be set to sort only a part of an array.
-False

Subclasses or child classes could have different behaviors but still share the same functions from
their parent class.
-True

Abstract methods must have an explicit return value


-False
An abstract class must not contain abstract methods.
-False
Abstracted classes can be nested.
-True
A subclass constructor cannot invoke a superclass constructor.
-False
A class acquiring fields and methods of another class is called inheritance.
-True
Parallelsorting utilizes

-More cpu processing cores


method can copy one array to another.
-arraycopy

SHORT QUIZ PROG 111- PROG111 - Programming (Java) NC II Part 1


SHORT QUIZ 8.
1. The 5s method is based on the ____________________.
ANSWER: Toyota Production Sytem
2. Environmental issues have no relation to the workplace
ANSWER: FALSE
3. Protecting the environment and natural resources also means protecting
stable employment.
ANSWER: TRUE
4. In the 5S method, this stage refers to arranging items in a way that they are
easy to find and pick up.
ANSWER: SEITON
5. Seiso refers to cleaning your workplace on a regular basis.
ANSWER: TRUE
6. Humans rely on natural resources for survival.
ANSWER: TRUE
7. These are developed by industries as a guide for establishments and
business enterprises to conduct their operations in a way that prevents or
reduces environmental harm.
ANSWER: Environmental codes of practice
8. Business industries will not be affected by the environmental crisis.
ANSWER: FALSE
9. Presidential Decree No. 856, one of the Philippine environmental laws, is
also known as ____________________.
ANSWER: Code on Sanitation of the Philippines
10. The protection of the natural resources is possible through the collective
efforts of each group in the society.
ANSWER: TRUE
SHORT QUIZ 9
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.
“Thanks to XYZ, I can baby sit my little brother. It’s so easy to use that a 5-year
old can play it as well.”
ANSWER: Usability
2. Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s
product quality model and write the letter that corresponds 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
the ISO/IEC 25010:2011. Read their feedback below and decide which product
quality attribute is being described.
“XYZ is so cool I can play it with my phone, laptop, Xbox and PS4!”
ANSWER: Portability
7. 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.
“Finally we can play XYZ! Surprising enough, all features and functions are
present. It has all the controls a gamer needs.”
ANSWER: Functional Stability
8. Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s
product quality model and write the letter that corresponds 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
2. Ctrl + S is the shortcut key for Save while Ctrl + S + A is the shortcut key for
Save As.
ANSWER: FALSE
3. The earphones is an example of a _______________, while Internet Explorer is
an example of _______________.
ANSWER: peripheral device, application program
4. I’ve purchased a modern gaming mouse but it doesn’t have a PS/2 plug.
Where I connect it?
ANSWER: D
5. Arlan right clicked on his taskbar and unchecked the Lock Taskbar. What
will happen if he drags his taskbar to the right side of his screen?
ANSWER: Taskbar will display vertically at the right.
6. Something’s wrong with the serial port. Which port should I investigate?
ANSWER: C
7. Windows is to Personal Computer (PC) while Mac OSX is to Mac laptops and
computers.
ANSWER: TRUE
8. An operating system has three major components – hardware, application
program or software and the user.
ANSWER: FALSE
9. Which of the following is not a default margin options when setting up the
page for printing?
ANSWER: REGULAR
10. If you are confused on what to do, press F2 on your keyboard and the
Windows Help feature will open.
ANSWER: FALSE

SHORT QUIZ 11
1. This type of programming language uses series of 0s and 1s to represent
data.
ANSWER: Machine language
2. C++, an extension of the C language, introduced object-oriented
programming.
ANSWER: True
3. C# has features that are directly based on the Short Code.
ANSWER: FALSE
4. COBOL stands for Convenient Business Oriented Language.
ANSWER: FALSE
5. Which of the following statements is TRUE?
ANSWER: A programming language may have its own area of
specialization.

6. Using the language, you can write windowed applications, build


databases, as well as control handheld devices.
ANSWER: Java

7. is the father of computer.


ANSWER: CHARLES BABBAGE
8. Since natural languages are vaguely structured, they cannot be used for
programming.
ANSWER: TRUE
9. COBOL is the programming language ideally used for _________________________
purposes.
ANSWER: Business
10. PASCAL is an example of a low-level language.
ANSWER: FALSE

SHORT QUIZ 12
1. Refer to the image below to answer the following question. What happens
every time the given username and password is incorrect?
ANSWER: 1 IS ADDED TO THE LIMIT
2. Refer to the image below to answer the following question. What symbol is
used to begin and end the program?
ANSWER: Terminal
3. Observe the names of the following variables and routines and decide
whether its format is CORRECT or WRONG. limitIsReached for a Boolean
variable.
ANSWER: CORRECT
4. Refer to the image below to answer the following question. When will the
program end?
ANSWER: When home page is loaded.
5. Jet is writing the pseudocode for his program. Which phase of program
development life cycle is he in?
ANSWER: Design the Program.
6. Ana is working on a new project and she was asking for the program’s
purpose, processes, algorithm, restrictions and some notes. According to the
program development life cycle, in which phase is Ana working on?
ANSWER: ANALYZE THE PROBLEM
7. Observe the names of the following variables and routines and decide
whether its format is CORRECT or WRONG.
ContactNumber for a column name in the table “Student”.
ANSWER: CORRECT
8. Observe the names of the following variables and routines and decide
whether its format is CORRECT or WRONG.
PresentAdress for a column name in the table “Student”
ANSWER: WRONG
9. Refer to the image below to answer the following question. What will
happen if the username is incorrect but the password given is correct?
ANSWER: 3
10. Refer to the image below to answer the following question. What happens
when Limit is equal to 3?
ANSWER: Program goes back to login page

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
Enforcing environmental policies is one of the major causes of job loss and
unemployment. - False
True or False: Dates in file names should be written in YYYY-MM-DD format. - False
Big business companies are the only ones responsible for enforcing environmental
policies since they can afford alternative cleaner technology. - False
Pre-review activities in the review process includes review planning, preparation and
individual review. - true
Increase work productivity by arranging items in such a way that they are easy to find
and pick up. - true
Montreal protocol protects the ozone layer by ____________________. - phasing out
harmful substances
Business industries will not be affected by the environmental crisis. - False
True or False: Protocols are set of standards rules which describes how something
should be done and different companies have different protocols as well. - true
Presidential Decree No. 856 is an international treaty that imposes limitations on the
greenhouse gas emissions of several countries. - True
True or False: Organizational aims are different from the mission statement; they refer
to the results an organization is aspiring for. - true
The cost / benefit analysis document is appropriately named. - False
A printed progress report to be submitted to the adviser. - purpose
True or False: Statutory requirements are identified by the vendors or suppliers and
they include value, stability, diversity and capacity. - False
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. - False
Identify whether the statement is a strength, weakness, opportunity or threat: The
student record system could be used by other schools other than Ricka’s school. -
opportunity
True or False: Reviewing the related literature includes review of concepts, theories and
previous research findings. - true
Companies can freely make their own set of environmental policies without consulting
the workers’ union, or any local or national laws about it. - False
Kyoto protocol addresses environmental issues through the campaign of
____________________. - reducing greenhouse gas emissions
Humans rely on natural resources for survival. - true
Quantitative research, compared to qualitative research, uses measurable - Data
ISO/IEC 25010:2011’s product quality model has eight (8) major characteristics. - true
True or False: Usually, the summary of the report is the first thing that’s being read. -
true
____________________ is when you conduct regular audits and inspections to
evaluate your work performance. - Shitsuke
“XYZ is so cool! I tried to install it in my old computer and it still runs smoothly. Given
that the computer’s video card is a bit faulty.“ - Reliability
True or False: There are five main elements of a written report – topic, style, structure,
facts and contents. - false
True or False: To gather data, you can either conduct an interview, survey, observation,
mail questionnaire, coding and tabulation. - false

LONG QUIZ PROG-111

LONG QUIZ NO. 4

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 – like additional characters and skills.”
ANSWER: 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
6. Kyoto protocol addresses environmental issues through the campaign of
____________________.
ANSWER: reducing greenhouse gas emissions
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
9. ____________________ is when you conduct regular audits and inspections to evaluate your
work performance.
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 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.
“One good thing I find with XYZ as when my laptop shuts down accidentally, my game score and
status can still be recovered. No need to repeat a level.”
ANSWER: Reliability
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
17. 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.
“I find it really enjoying to play XYZ since I can invite my friends from social media profile. It works
well with this social media app!”
ANSWER: Compatibility
18. 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.
“XYZ is so cool! I tried to install it in my old computer and it still runs smoothly. Given that the
computer’s video card is a bit faulty.“

ANSWER: Reliability

19. ____________________ is setting the best practices in the workplace as your work standards.
ANSWER: Seiketsu

20. The 5S Method is a Japanese perspective technique developed by Eiichiro Oda.


ANSWER: FALSER
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
28. Montreal protocol protects the ozone layer by ____________________.
ANSWER: phasing out harmful substances
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
LONG QUIZ NO. 6
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?
ANSWER: display Overweight
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
10. Java is an example of
ANSWER: HIGH-LEVEL LANGUAGE

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
13. He is known as the father of the Java programming language.
ANSWER: JAMES GOSLING

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
interpreters or compilers.
ANSWER: TRUE
17. was the first language implemented for BINAC.

ANSWER: Short Code


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?
ANSWER: ASK FOR HEIGHT
22. A_________is the code or language that allows a user to instruct a computer to perform specific
tasks.
ANSWER: Programming Language
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
26. Who is considered as a user (component of an operating system)?
ANSWER: ALL OF THE CHOICES
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

PROG-113A / ► Week 18: Designing PL/SQL / ► Short Quiz 14


Which of the following is the syntax to open a cursor varial
Answer: OPEN cursor_variable_name
FOR select_statement;
Which of the following is the syntax to define a REF CURSOR type?
Answer: TYPE ref_type_name IS REF CURSOR
[RETURN return_type];
Weak REF CURSOR is very flexible.
Answer: True
Evaluate the following. What will be the output?
DECLARE
SUBTYPE Accumulator IS NUMBER (4,2);
v_amount accumulator;
v_num1 NUMBER;
v_num2 NUMBER;
v_num3 NUMBER;
BEGIN
v_amount := 10.50;
v_num1 := 1;
v_num2 := 2;
v_num3 := 3;
v_num1 := v_amount;
v_num2 := v_num1 + v_amount;
v_num2 := v_num2 - v_num3;
dbms_output.put_line('Total is: ' || v_num2);
END;
Answer: 18
Which of the following is the syntax to fetch from a cursor variable?
Answer: FETCH cursor_variable_name INTO variable_name1
[,variable_name2,. . .] | record_name;
Fetch into a record when fetching from a cursor.
Answer: True
Which of the following is the syntax to close a cursor?
Answer: CLOSE cursor_variable_name;
This is a subset of an existing data type that may place a constraint on its base type.
Answer: Subtype
Which of the following rules is INCORRECT about cursor variables?
Answer: None of the choices.
Use column aliases in cursors for calculated columns fetched into records declared with %COLUMNTYPE.
Answer: False

PROG-113A / ► Week 18: Designing PL/SQL / ► Learning Activity 14

Which of the following rules is INCORRECT about cursor variables?


Answer: None of the choices.
Which of the following describes weak REF CURSOR?
Answer: Associates with any query
Restrictive, specifies a RETURN type, associates only with type-compatible queries are
description of a ________________.
Answer: Strong REF CURSOR
Which of the following is INCORRECT about the guidelines for cursor design?
Answer: Use column aliases in cursors for calculated columns fetched into records declared with
%COLUMNTYPE.
This is a subset of an existing data type that may place a constraint on its base type.
Answer: Subtype

PROG-113A / ► Week 17: / ► Short Quiz 13


Evaluate the following PL/SQL.
CREATE OR REPLACE PROCEDURE query_employee
(p_id IN employees.employee_id%TYPE,
p_name OUT employees.last_name%TYPE,
p_salary OUT employees.salary%TYPE) IS
BEGIN SELECT last_name, salary INTO p_name, p_salary
FROM employeesWHERE employee_id = p_id;
END query_employee
Answer: No error
Evaluate the following PL/SQL. Which of the following will line creates an error?
CREATE OR REPLACE PROCEDURE query_emp
(
p_department_id IN employees.department_id%TYPE,
p_name OUT employees.last_name%TYPE,
p_salary OUT employees.salary%TYPE
)
IS
BEGIN
SELECT last_name, salary, department_id INTO p_name, p_salary, p_department_id
FROM employees
WHERE salary >= p_salary AND department_id = p_department_id ;
END query_emp;
Answer: Line 3
These are local variables declared in the parameter list of a subprogram specification.
Answer: Formal parameter
Given the answer in item __________, which of the folllowing stored procedure will display the
employee id and salary of Steven King?
Answer: DECLARE
v_employee_id employees.employee_id%TYPE;
v_emp_sal employees.salary%TYPE;
BEGIN
query_emp('King', 'Steven', v_employee_id, v_emp_sal);
DBMS_OUTPUT.PUT_LINE('Employee ID ' || v_employee_id ||' earns '|| to_char(v_emp_sal,
'$999,999.00'));
END;

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

PROG-113A / ► Week 16: Creating Procedures / ► Learning Activity 13


Procedure can be stored in the database as a schema object.
Answer: True
The PL/SQL code block helps modularize code by using:
Answer: All of the choices
Which of the following command is used to create a stand-alone procedure that is stored in the Oracle
database?
Answer: CREATE PROCEDURE
Which of the folllowing 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
Answer: iii & v
Which if the following is NOT a benefits of using modular program constructs?
Answer: None of the choices

PROG-113A / ► Week 18: Designing PL/SQL / ► Short Quiz 14


Which of the following is the syntax to open a cursor varial
Answer: OPEN cursor_variable_name
FOR select_statement;
Which of the following is the syntax to define a REF CURSOR type?
Answer: TYPE ref_type_name IS REF CURSOR
[RETURN return_type];
Weak REF CURSOR is very flexible.
Answer: True
Evaluate the following. What will be the output?
DECLARE
SUBTYPE Accumulator IS NUMBER (4,2);
v_amount accumulator;
v_num1 NUMBER;
v_num2 NUMBER;
v_num3 NUMBER;
BEGIN
v_amount := 10.50;
v_num1 := 1;
v_num2 := 2;
v_num3 := 3;
v_num1 := v_amount;
v_num2 := v_num1 + v_amount;
v_num2 := v_num2 - v_num3;
dbms_output.put_line('Total is: ' || v_num2);
END;
Answer: 18
Which of the following is the syntax to fetch from a cursor variable?
Answer: FETCH cursor_variable_name INTO variable_name1
[,variable_name2,. . .] | record_name;
Fetch into a record when fetching from a cursor.
Answer: True
Which of the following is the syntax to close a cursor?
Answer: CLOSE cursor_variable_name;
This is a subset of an existing data type that may place a constraint on its base type.
Answer: Subtype
Which of the following rules is INCORRECT about cursor variables?
Answer: None of the choices.
Use column aliases in cursors for calculated columns fetched into records declared with %COLUMNTYPE.
Answer: False

PROG-113A / ► Week 18: Designing PL/SQL / ► Learning Activity 14

Which of the following rules is INCORRECT about cursor variables?


Answer: None of the choices.
Which of the following describes weak REF CURSOR?
Answer: Associates with any query
Restrictive, specifies a RETURN type, associates only with type-compatible queries are
description of a ________________.
Answer: Strong REF CURSOR
Which of the following is INCORRECT about the guidelines for cursor design?
Answer: Use column aliases in cursors for calculated columns fetched into records declared with
%COLUMNTYPE.
This is a subset of an existing data type that may place a constraint on its base type.
Answer: Subtype

PROG-113A / ► Week 15: Long Quiz / ► Long Quiz 3 (30/30)


(Correction)
How do you test the output of a PL/SQL block?
Answer: Use a predefined Oracle package and its procedure
Which of the folllowing statement describes PL/SQL?
Answer: PL/SQL is an Oracle proprietary, procedural, 3GL programming language
Which of the following syntax to declare EXCEPTION named e_invalid_id?
Answer: e_invalid_id EXCEPTION;
In PL/SQL Block Structure, which of the following are mandatory?
Answer: BEGIN and END
This is a type of cursor which is created and managed internally by the Oracle server to process
SQL statements
Answer: Implicit
PL/SQL stands for
Answer: Procedural Language extension to SQL
Which of the following PL/SQL will execute successfully?
Answer: DECLARE
v_salary INTEGER(20);
BEGIN
SELECT salary INTO v_salary FROM employees WHERE employee_id = 150;
END;
What is the last clause in trapping exceptions?
Answer: WHEN OTHERS
PL/SQL Provides a block structure for executable units of ________________.
Answer: Code
Evaluate the following PL/SQL.
DECLARE
v_email VARCHAR(20);
BEGIN
SELECT email INTO v_email FROM EMPLOYEES WHERE email like 'D%';
DBMS_OUTPUT.PUT_LINE ('Employees whose email address starts with letter D :'
|| v_email);
EXCEPTION
WHEN TOO_MANY_ROWS THEN
DBMS_OUTPUT.PUT_LINE (' Your select statement retrieved multiple rows.');
END;
Answer: The PL/SQL block will run successfully.
Which of the folllowing is TRUE?
Answer: SQL code are embedded within PL/SQL statements
You can trap any error by including a corresponding handler within the exception-handling
section of the PL/SQL block.
Answer: True
When an exception is user defined, the exception is raised ____________ .
Answer: Explicitly
Evaluate the PL/SQL
DECLARE
v_first_name VARCHAR2(50);
v_last_name VARCHAR2(50);
v_salary INTEGER(20);
BEGIN
SELECT first_name, last_name, salary INTO v_first_name, v_last_name, v_salary FROM
employees WHERE department_id = 60;
DBMS_OUTPUT.PUT_LINE('Firstname : '|| v_first_name);
DBMS_OUTPUT.PUT_LINE('Lastname : '|| v_last_name);
DBMS_OUTPUT.PUT_LINE('Salary : '|| v_salary);
END;
Answer: Error in Line 6.
Evaluate the following PL/SQL.
DECLARE
v_employee_id employees.employee_id%TYPE := 114;
BEGIN
DELETE employees WHERE employee_id = v_employee_id;
END;
Answer: The PL/SQL will delete employee number 114.
Which of the following does NOT describes SELECT Statement in a PL/SQL.
Answer: Queries must return only one column.
What are the three PL/SQL block types?
Answer: Anonymous, Procedure, Function
What is the exception name when PL/SQL has an internal problem
Answer: PROGRAM_ERROR
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?
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;
What is the error trapping function that returns the numeric value of the error code?
Answer: SQLCODE
What is the exception name when single row SELECT returned no data.
Answer: NO_DATA_FOUND
Which of the following DOES NOT describes an exception?
Answer: Exception is a PL/SQL error that is raised before program execution.
Evaluate the following PL/SQL.
DECLARE
v_employee_id employees.employee_id%TYPE := 114;
BEGIN
DELETE employees WHERE employee_id = v_employee_id;
END;
Answer: The PL/SQL will delete employee number 114.
In the DECLARE section of the PL/SQL block,
Answer: All of the choices
When an exception is predefined by Oracle server, the exception is raised ____________ .
Answer: Explicitly
Which of the will display the Employee ID and number of years in service with employee ID
150?
Answer: DECLARE
v_salaryemployees.salary%TYPE := 10000;
v_employee_idemployees.employee_id%TYPE := 150;
v_years INTEGER(10);
BEGIN
SELECT employee_id, ROUND((SYSDATE - hire_date) /365,0) INTO v_employee_id, v_years
FROM employees WHERE employee_id = v_employee_id ;
DBMS_OUTPUT.PUT_LINE('Employee ID:' || v_employee_id);
DBMS_OUTPUT.PUT_LINE('Number of years : ' || v_years);
END;
Actions are being performed when error occurs during PL/SQL execution in the
Answer: EXCEPTION
You can use this procedure to issue user-defined error messages from stored subprograms.
Answer: RAISE_APPLICATION_ERROR

PROG-113A / ► Week 14: Handling Exceptions / ► Short Quiz 12

Evaluate the following PL/SQL.


DECLARE
v_email VARCHAR(20);
BEGIN
SELECT email INTO v_email FROM EMPLOYEES WHERE email like 'D%';
DBMS_OUTPUT.PUT_LINE ('Employees whose email address starts with letter D :'
|| v_email);
EXCEPTION
WHEN TOO_MANY_ROWS THEN
DBMS_OUTPUT.PUT_LINE (' Your select statement retrieved multiple rows.');
END;
Answer: The PL/SQL block will run successfully.
Which of the following DOES NOT describes an exception?
Answer: Exception is a PL/SQL error that is raised before program execution.
What is the exception name when single row SELECT returned no data.
Answer: NO_DATA_FOUND
RAISE_APPLICATION_ERROR is used in two different places. These are
___________________.
Answer: Executable and exceptions section
What is the error trapping function that returns the numeric value of the error code?
Answer: SQLCODE
What is the exception name when PL/SQL has an internal problem
Answer: PROGRAM_ERROR
Evaluate the following PL/SQL. At what line number is the error of the PL/SQL?
DECLARE
v_deptno NUMBER := 800;
e_invalid EXCEPTION;
BEGIN
DELETE FROM departments
WHERE department_id = v_deptno;
IF SQL % NOT_FOUND THEN
RAISE e_invalid;
END IF;
COMMIT;
EXCEPTION
WHEN e_invalid THEN
DBMS_OUTPUT.PUT_LINE('No such department id.');
END;
Answer: 7
What is the last clause in trapping exceptions?
Answer: WHEN OTHERS
Complete the diagram in Trapping Non-Predefined Oracle Server Errors.
Answer: Declare, Associate, Reference

PROG-113A / ► Week 14: Handling Exceptions / ► Learning Activity 12

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

PROG-113A / ► Week 13: Interacting with Oracle Server / ► Learning Activity 11

Which of the following does NOT describes SELECT Statement in a PL/SQL.


Answer: Queries must return only one column.
Evaluate the following PL/SQL.
1 DECLARE

2 v_employee_id employees.employee_id%TYPE := 114;

3 BEGIN
4 DELETE employees WHERE employee_id = 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;

PROG-113A / ► Week 12: Introduction to PLSQL / ► Short Quiz 10

Which of the folllowing is TRUE?


Answer: SQL code are embedded withing PL/SQL statements
In the DECLARE section of the PL/SQL block
Answer: All of the choices
In PL/SQL Block Structure, which of the following are OPTIONAL?
Answer: None of the choices
What are the three PL/SQL block types?
Answer: Anonymous, Procedure, Function
How do you test the output of a PL/SQL block?
Answer: Use a predefined Oracle package and its procedure
You want to display the name, salary and tax of employee #150. Which of the PL/SQL will
execute successfully? Note tax is computed as 2% of the salary.
Answer: DECLARE
v_first_name VARCHAR2(50);
v_last_name VARCHAR2(50);
v_salary INTEGER(20);
v_tax INTEGER(10);
BEGIN
SELECT first_name, last_name, salary, salary * 0.02 INTO v_first_name, v_last_name,
v_salary, v_tax FROM employees WHERE employee_id = 150;
DBMS_OUTPUT.PUT_LINE('Firstname : '|| v_first_name);
DBMS_OUTPUT.PUT_LINE('Lastname : '|| v_last_name);
DBMS_OUTPUT.PUT_LINE('Salary : '|| v_salary);
DBMS_OUTPUT.PUT_LINE('Tax : '|| v_tax);
END;
Which of the folllowing statement describes PL/SQL?
Answer: PL/SQL is an Oracle proprietary, procedural, 3GL programming language

PROG-113A / ► Week 12: Introduction to PLSQL / ► Learning Activity 10


PL/SQL stands for
Answer: Procedural Language extension to SQL
PL/SQL Provides a block structure for executable units of ________________.
Answer: Code
In PL/SQL Block Structure, which of the following are mandatory?
Answer: BEGIN and END
Which of the following PL/SQL will execute successfully?
Answer: DECLARE
v_salary INTEGER(20);
BEGIN
SELECT salary INTO v_salary FROM employees WHERE employee_id = 150;
END;
Actions are being performed when error occurs during PL/SQL execution in the
Answer: EXCEPTION

PROG-113A / ► Week 11: Using Subqueries to Solve Queries / ► Short Quiz 9

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')

Evaluate the SQL command


SELECT employee_id, job_id, salary from employees where salary < ALL (SELECT salary
FROM employees WHERE job_id = 'FI_ACCOUNT') AND job_id = 'IT_PROG'
Answer: This has no error.

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')

Evaluate the SQL command


SELECT employee_id, last_name, first_name, job_id FROM employees WHERE department_id
= (SELECT max(department_id) FROM employees GROUP BY department_id)
Answer: This will return an error. Single-row subquery returns more than one row.

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)

PROG-113A / ► Week 11: Using Subqueries to Solve Queries / ► Learning Activity 9


Which of the following is INCORRECT?
Answer: Use single-row operators with multiple-row subqueries
Which of the folllowing is required in a subquery?
Answer: SELECT
Which of the following is CORRECT about sub-queries?
Answer: Subquery execute before the main query executes.
Evaluate the SQL Command
SELECT job_id, job_title FROM jobs J WHERE INCLUDES
(SELECT * FROM employees WHERE J.job_id = e.job_id );
Answer: The SQL will return an error. Invalid "INCLUDES" parameter.
Evaluate the SQL command
SELECT employee_id, salary from employees where salary = ANY (SELECT salary FROM employees
WHERE job_id = 'IT_PROG') AND job_id = 'ST_CLERK'
Answer: This has no error.

True or False: Foreign co-workers having conversation issues with


everyone in the office are better left off on their own.
A: False

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

True or False: Understanding everyone’s interest is the second step in the


problem solving process. This is when you choose the optimal solution.
Answer: false

These kind of words or terms are often discouraged to be used during a


presentation, especially if the audience is not that familiar with
programming terms.
A: technical words

Referring to the figure below, determine if the statement is TRUE or


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 :)

Which of the following does NOT describes SELECT Statement in a PL/SQL.


Answer: Queries must return only one column.
You want to display all the records of employee the same with the salary employee number 103.
Answer: SELECT * FROM employees WHERE salary = (SELECT salary from employees where
employee_id= 103)
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;
Which of the folllowing is TRUE?
Answer: SQL code are embedded within PL/SQL statements
When an exception is user defined, the exception is raised ____________ .
Answer: Explicitly
Which of the folllowing is TRUE?
Answer: SQL code are embedded withing PL/SQL statements
Weak REF CURSOR is very flexible.
Answer: True
How do you test the output of a PL/SQL block?
Answer: Use a predefined Oracle package and its procedure
Restrictive, specifies a RETURN type, associates only with type-compatible queries are description
of a ________________.
Answer: Strong REF CURSOR
Which of the following DOES NOT describes an exception?
Answer: Exception is a PL/SQL error that is raised before program execution.
These are local variables declared in the parameter list of a subprogram specification.
Answer: Formal parameter
Which of the following rules is INCORRECT about cursor variables?
Answer: None of the choices.
When an exception is predefined by Oracle server, the exception is raised ____________ .
Answer: Explicitly
Which of the following DOES NOT describes an exception?
Answer: Exception is a PL/SQL error that is raised before program execution.
Evaluate the following PL/SQL.
CREATE OR REPLACE PROCEDURE query_employee
(p_id IN employees.employee_id%TYPE,
p_name OUT employees.last_name%TYPE,
p_salary OUT employees.salary%TYPE) IS
BEGIN SELECT last_name, salary INTO p_name, p_salary
FROM employeesWHERE employee_id = p_id;
END query_employee
Answer: No error
You want to know the total number of employees whose firstname starts with letter D.
Which of the folllowing PLS/SQL executes successfully?
Answer: DECLARE
v_first_name employees.first_name%TYPE := 'D%';
BEGIN
SELECT COUNT(*) INTO v_first_name FROM employees WHERE first_name LIKE v_first_name;
DBMS_OUTPUT.PUT_LINE(v_first_name);
END;
What is the error trapping function that returns the numeric value of the error code?
Answer: SQLCODE
You want to display the name, salary and tax of employee #150. Which of the PL/SQL will execute
successfully? Note tax is computed as 2% of the salary.
Answer: DECLARE
v_first_name VARCHAR2(50);
v_last_name VARCHAR2(50);
v_salary INTEGER(20);
v_tax INTEGER(10);
BEGIN
SELECT first_name, last_name, salary, salary * 0.02 INTO v_first_name, v_last_name, v_salary,
v_tax FROM employees WHERE employee_id = 150;
DBMS_OUTPUT.PUT_LINE('Firstname : '|| v_first_name);
DBMS_OUTPUT.PUT_LINE('Lastname : '|| v_last_name);
DBMS_OUTPUT.PUT_LINE('Salary : '|| v_salary);
DBMS_OUTPUT.PUT_LINE('Tax : '|| v_tax);
END;
Which of the following is the syntax to close a cursor?
Answer: CLOSE cursor_variable_name;
Which of the following rules is INCORRECT about cursor variables?
Answer: None of the choices.
What are the three PL/SQL block types?
Answer: Anonymous, Procedure, Function
You can trap any error by including a corresponding handler within the exception-handling section of
the PL/SQL block.
Answer: True
Which of the following describes weak REF CURSOR?
Answer: Associates with any query
Given the answer in item __________, which of the folllowing stored procedure will display the
employee id and salary of Steven King?
Answer: DECLARE
v_employee_id employees.employee_id%TYPE;
v_emp_sal employees.salary%TYPE;
BEGIN
query_emp('King', 'Steven', v_employee_id, v_emp_sal);
DBMS_OUTPUT.PUT_LINE('Employee ID ' || v_employee_id ||' earns '|| to_char(v_emp_sal,
'$999,999.00'));
END;
You have been tasked to update the database by creating a PL/SQL to increase the salary of all IT
Programmer employees by 50% 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 *0.50 WHERE job_id = v_job_id;
END;
Which of the folllowing is required in a subquery?
Answer: SELECT
What is the exception name when PL/SQL has an internal problem
Answer: PROGRAM_ERROR
In the DECLARE section of the PL/SQL block,
Answer: All of the choices
Actions are being performed when error occurs during PL/SQL execution in the
Answer: EXCEPTION
What is the exception name when PL/SQL has an internal problem
Answer: PROGRAM_ERROR
Which of the folllowing statement describes PL/SQL?
Answer: PL/SQL is an Oracle proprietary, procedural, 3GL programming language
Evaluate the following PL/SQL.
DECLARE
v_employee_id employees.employee_id%TYPE := 114;
BEGIN
DELETE employees WHERE employee_id = v_employee_id;
END;
Answer: The PL/SQL will delete employee number 114.
Which of the following command is used to create a stand-alone procedure that is stored in the
Oracle database?
Answer: CREATE PROCEDURE
Evaluate the following PL/SQL.
DECLARE
v_email VARCHAR(20);
BEGIN
SELECT email INTO v_email FROM EMPLOYEES WHERE email like 'D%';
DBMS_OUTPUT.PUT_LINE ('Employees whose email address starts with letter D :'
|| v_email);
EXCEPTION
WHEN TOO_MANY_ROWS THEN
DBMS_OUTPUT.PUT_LINE (' Your select statement retrieved multiple rows.');
END;
Answer: The PL/SQL block will run successfully.
Which of the following is the syntax to define a REF CURSOR type?
Answer: TYPE ref_type_name IS REF CURSOR
[RETURN return_type];
The PL/SQL code block helps modularize code by using:
Answer: All of the choices
Which of the following is the syntax to fetch from a cursor variable?
Answer: FETCH cursor_variable_name INTO variable_name1
[,variable_name2,. . .] | record_name;
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')
Procedure can be stored in the database as a schema object.
Answer: True
In PL/SQL Block Structure, which of the following are mandatory?
Answer: BEGIN and END
PL/SQL stands for
Answer: Procedural Language extension to SQL
Which of the following is CORRECT about sub-queries?
Answer: Subquery execute before the main query executes.
Which of the following does NOT describes SELECT Statement in a PL/SQL.
Answer: Queries must return only one column.
PL/SQL Provides a block structure for executable units of ________________.
Answer: Code
Evaluate the SQL command
SELECT employee_id, salary from employees where salary = ANY (SELECT salary FROM
employees WHERE job_id = 'IT_PROG') AND job_id = 'ST_CLERK'
Answer: This has no error.
Which of the following PL/SQL will execute successfully?
Answer: DECLARE
v_salary INTEGER(20);
BEGIN
SELECT salary INTO v_salary FROM employees WHERE employee_id = 150;
END;
In PL/SQL Block Structure, which of the following are OPTIONAL?
Answer: None of the choices
Evaluate the following PL/SQL. At what line number is the error of the PL/SQL?
DECLARE
v_deptno NUMBER := 800;
e_invalid EXCEPTION;
BEGIN
DELETE FROM departments
WHERE department_id = v_deptno;
IF SQL % NOT_FOUND THEN
RAISE e_invalid;
END IF;
COMMIT;
EXCEPTION
WHEN e_invalid THEN
DBMS_OUTPUT.PUT_LINE('No such department id.');
END;
Answer: 7
What is the error trapping function that returns the numeric value of the error code?
Answer: SQLCODE
Fetch into a record when fetching from a cursor.
Answer: True

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’;

Which of the following SQL commands will display all stocks whose class is HW or AP.
SELECT * FROM parts WHERE IN class ('HW', '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?
SELECT employee_id, hire_date, TO_CHAR(hire_date,'Month') AS "Hired Month" FROM employees;

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;

John want to know how many employees receiving salary below 10,000. What SQL command he need to
run?
SELECT COUNT(*) FROM employees WHERE salary < 10000;

----------------------------------------
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%'

What will be the output of the following SQL?


SELECT * FROM parts WHERE (warehouse = 1 or warehouse = 2) AND class IN ('HW', 'AP') AND (price >
200 AND price < 500);
2 rows returned

What will be the output of the SQL command?


SELECT SUM(onhand) FROM PARTS where class = 'HW' OR class = 'AP' AND warehouse = 1;
137

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
output?
SELECT first_name, last_name, job_id, min_salary, max_salary FROM employees JOIN jobs USING
(job_id);
What will be the output of the SQL command below?
SELECT first_name, last_name, job_title FROM employees CROSS JOIN jobs ORDER BY last_name;
A Cartesian product

What will be the output of the SQL command below?


SELECT last_name, job_id, job_title FROM employees NATURAL JOIN jobs
List of names and job title of matched records from the employees and jobs table

----------------------------------------
SQ6

Given the SQL command


SELECT * FROM employees JOIN departments USING (department_id)
Which of the following describes the SQL command?
Joined table from the employees and department table

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

Display the manager id and employee id of every employee


SELECT E.employee_id, D.manager_id FROM employees E JOIN departments D ON E.department_id =
D.department_id

Given the SQL command


SELECT employees.first_name, employees.last_name, employees.salary,departments.department_name
FROM employees, departments
WHERE employees.department_id = departments.department_id;
Which of the following describes the SQL command?
List of employees name, salary and department name

----------------------------------------
LA7

Remove the Shareholder Services department in the department table


DELETE FROM departments WHERE department_name = ‘Shareholder Services’

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 update the information in the department table.
INSERT INTO departments VALUES (300, 'Training', 203, 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)

Remove all Manager positions in the department table.


DELETE FROM jobs WHERE job_title LIKE '%Manager%';
----------------------------------------
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 describes the command below?


SELECT * FROM employees WHERE department = 60 FOR UPDATE
Locks the rows in the EMPLOYEES table with department id is 60.

Which of the following will erase all records in the departments table
TRUNCATE TABLE departments

SQL command to create a marker in the current transaction.


SAVEPOINT

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

You want to cancel the privilege of matt to add records from the employees table.
REVOKE insert ON employees FROM 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 provide privilege to update the employees table?


GRANT update (salary) ON employees TO matt

Which of the following will is the correct command to create a role.


CREATE ROLE gen_manager

Matt wants to change his password from 1234 to abcd.


Which of the following will perform the task?
ALTER USER matt IDENTIFIED abcd;

The DBA will create a new user name sales.


Which of the following SQL command will perform the creation?
CREATE sales ACCESS 1234

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

What privileges that manipulates the content of the database objects.


Object Privileges

----------------------------------------
1st Q Exam

Evaluate the following SQL command


SELECT employee_id, salary, department_id FROM employees WHERE department_id IN (60,70)
The SQL command will display employees with department id 60 or 70.

True or False. The AND, OR, NOT are comparison operators.


False

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

List all employees except for IT_PROG job id.


All of the choices

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

Evaluate the following SQL command


SELECT * FROM jobs WHERE job_title LIKE 'Manager%'
No records will be displayed

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

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 last_name, TO_INTEGER(salary, $999,999.99) AS "MONTHLY SALARY" FROM employees
WHERE salary < 10000 WHERE last_name IN 'D%'

In creating Joins,the NATURALJOIN and USING clauses are____________


Mutually Exclusive

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
Question text
True or False: Operators, in Java programming language, use special symbols to call methods and their
objects.
Answer:
False
Question text
Read each statement carefully and decide whether it’s TRUE or FALSE.
There are no errors in the program.
Select one:
False
Question text
Refer to the block of codes below. Read each statement carefully and decide whether it’s TRUE or FALSE.
Line 9 uses a traditional comment which uses double forward slash.
Answer: False
Question text
True or False: Many programmers can be literate with Java programming language for it is intended to be that
way.
Answer:
True
Question text
True or False: You’ll know there’s an error if you see a red circle with an exclamation point in Netbeans IDE.
Answer:
True
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 = (x = 100) >= z;
Select one:
True
The file is accurately named – Students.java.
-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.
-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
The last line of code will output 100.0.
-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

There are keywords found in line 7.


-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 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.
-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

Substrings can contain 1 or 2 arguments.


-true
Determine the output.

-bar

The index of the letter “y” in string “Doggy” is 5.


-False
Determine the output.
-foo
TRUE OR FALSE: The value “val_3” is a white space “ “.
-False
True or False: Variable 1st_num is a good variable name in Java programming.
-False

TRUE OR FALSE: “val_2” contains “The”


-True
True or False: Instance variables are declared inside a method but outside a class.
-False

True or False: Variable names in Java are not necessarily case sensitive.
-False
Determine the output
-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
result = !((x * 10) < z);
-False

result = -(-z) == 43;


-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
x += x;
result = x == 154;
-False
The second line 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
A string can contain numbers.
-True

TRUE OR FALSE: This is an example of concatenation.


-True

TRUE OR FALSE: The value of “val_4” is “fox”


-False

TRUE OR FALSE: “val_2” contains “The”.


-True
Determine the output.
-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
Strings can be declared with str.
-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
Among the expressions below which is a statement?
-True
Expressions can be long and complex.
-true

number++; is an expression
-true
For-loops has a set number of iterations before starting.
-True

The equals( ) method can compare more than 2 arrays.


-False
While loops can use Booleans at test expressions.
-True

The test expression of the if statement is _______


-less than or equal to
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
x+1 is example of a statement.
-False

number++; is a block
-False
Arrays are
-Integers
The operator “new” allocates a memory block the size of what is declared.
-true
A class block can be an expression
-False
Statements can be expressions.
-False

Integer arrays can be populated with characters.


-False
Declaration clauses are declared as “number + 1”.
-False

Loops can be stopped with a break; statement.


-True
The equivalent of Paragraphs in coding is?
-Expressions

If statements cannot be nested in switches


-true
The length( ) method returns the size (number of indices) has.
-True
When polymorphism is used, the Java object can only take one form. Subclasses should have the
same function with the parent class.
-False
Arrays can contain (Answer) number of elements.
-Any
“||” and “&&” can be used in conditional statements.
-True
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
Expressions can be statements.
-True
Blocks can contain more blocks of code.
-True
If-else statements can be nested in?
-All of the choices

Statements are equivalent to paragraphs.


-False
A (answer) array is an array containing true or false values.
-boolean
Switches are always used with if-else statements
-False
True or False: The modulus operator returns the remainder of a division operation instead of the
quotient.
-true
Determine the output.
String val_1 = “564298”;
-5698
Determine the output.
String val_1 = “35”;
-4

The return value of the length( ) method is an integer


-true
A superclass is also known as a parent class.
-true

For-loops can be nested in while loops.


-true
In instantiating an object, the keyword instance is used.
-False

Object oriented programming utilizes the top down method


-False
Expressions are like clauses.
-true
The sort( ) method is always ascending.
-true
Arrays are data types.
-False
Variables must be declared as (Answer) for it to be fully hidden.

-private
While statements check the test expression at the end.
-False
The else statement can be used alone.
-False
The fill( ) method (Answer) the array with specific values.
-Fills
The output of println is

-55555
The person’s weight is declared correctly with the correct data type (byte) and value (160).
-FALSE
Determine the output.
String val_1 = “foo”
String val_2 = “bar”

val_2 = val_1;
val_1 = val_3;
System.out.println(val_1);
-bar
Determine the output.
String val_1 = “foo”
String val_2 = “bar”

val_2 = val_1;
val_1 = val_3;
System.out.println(val_2);
-foo
Switches can work properly even without the “break” expression.
-True
Blocks can be one liner or huge classes.
-True
The test expressions in conditional statements can be left empty.
-False

Abstraction works by hiding the implementation details and showing only the functions necessary.
-True
A single array can hold multiple data types
-False

A polymorphic object can pass more than one Is-a test.


-True
Another loop can be used as test expression.
-False

True or False: Public, static and void are sample of Java reserved keywords.
-True
The value of “pStr” in line 24 is
-True

The default syntax of a constructor is <class_name>(parameter, parameter){ }


-False
A nested class is not an inner class.
-False
Nested classes causes them to become abstracted
-False
A nested class is also called

-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
A constructor can only have 1-2 overloads or parameters.
-False
All possible data types of an array can be retuned as a string by the toString( ) method.
-True
Abstracted classes can contain 1 or more abstract methods.
-True
Abstraction shows the every bit of detail and implementation on how an application does something.
-False
Initialization is a process where the constructor is called for.
-True
The default syntax of a constructor is <class_name>( ){ }
-True
Classes cannot be nested.
-False
Abstract classes cannot have nested classes.
-False
The parent class of a nested class is called an outer class
-True
An inner class can be constructed directly without reference to the outer class.
-False
Arrays can be read backwards
-True
A single array can hold
-One data type

Abstracted methods already have implementations inside.


-False
are special methods to initialize objects.
-constructors

Constructors have 3 basic rules to follow.


-False
Nesting classes increases encapsulation.
-True

Each index can only contain (Answer) element.


-one
The sort( ) method can be set to sort only a part of an array.
-False
Subclasses or child classes could have different behaviors but still share the same functions from
their parent class.
-True

Abstract methods must have an explicit return value


-False
An abstract class must not contain abstract methods.
-False

Abstracted classes can be nested.


-True
A subclass constructor cannot invoke a superclass constructor.
-False
A class acquiring fields and methods of another class is called inheritance.
-True
Parallelsorting utilizes

-More cpu processing cores


method can copy one array to another.
-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.
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
Question text
True or False: Operators, in Java programming language, use special symbols to call methods and their
objects.
Answer:
False
Question text
Read each statement carefully and decide whether it’s TRUE or FALSE.
There are no errors in the program.
Select one:
False
Question text
Refer to the block of codes below. Read each statement carefully and decide whether it’s TRUE or FALSE.
Line 9 uses a traditional comment which uses double forward slash.
Answer: False
Question text
True or False: Many programmers can be literate with Java programming language for it is intended to be that
way.
Answer:
True
Question text
True or False: You’ll know there’s an error if you see a red circle with an exclamation point in Netbeans IDE.
Answer:
True
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 = (x = 100) >= z;
Select one:
True
The file is accurately named – Students.java.
-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.
-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
The last line of code will output 100.0.
-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
There are keywords found in line 7.
-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 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.
-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

Substrings can contain 1 or 2 arguments.


-true
Determine the output.

-bar

The index of the letter “y” in string “Doggy” is 5.


-False
Determine the output.
-foo
TRUE OR FALSE: The value “val_3” is a white space “ “.

-False
True or False: Variable 1st_num is a good variable name in Java programming.
-False

TRUE OR FALSE: “val_2” contains “The”


-True
True or False: Instance variables are declared inside a method but outside a class.
-False
True or False: Variable names in Java are not necessarily case sensitive.
-False

Determine the output


-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
result = !((x * 10) < z);
-False
result = -(-z) == 43;
-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

x += x;
result = x == 154;
-False
The second line 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
A string can contain numbers.
-True

TRUE OR FALSE: This is an example of concatenation.


-True

TRUE OR FALSE: The value of “val_4” is “fox”


-False

TRUE OR FALSE: “val_2” contains “The”.


-True
Determine the output.
-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

Strings can be declared with str.


-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

Among the expressions below which is a statement?


-True
Expressions can be long and complex.
-true
number++; is an expression
-true
For-loops has a set number of iterations before starting.
-True
The equals( ) method can compare more than 2 arrays.
-False
While loops can use Booleans at test expressions.
-True
The test expression of the if statement is _______
-less than or equal to
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
x+1 is example of a statement.
-False
number++; is a block
-False
Arrays are
-Integers
The operator “new” allocates a memory block the size of what is declared.
-true
A class block can be an expression
-False
Statements can be expressions.
-False
Integer arrays can be populated with characters.
-False
Declaration clauses are declared as “number + 1”.
-False
Loops can be stopped with a break; statement.
-True
The equivalent of Paragraphs in coding is?
-Expressions
If statements cannot be nested in switches
-true

The length( ) method returns the size (number of indices) has.


-True
When polymorphism is used, the Java object can only take one form. Subclasses should have the
same function with the parent class.
-False
Arrays can contain (Answer) number of elements.
-Any

“||” and “&&” can be used in conditional statements.


-True
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

Expressions can be statements.


-True
Blocks can contain more blocks of code.
-True

If-else statements can be nested in?


-All of the choices
Statements are equivalent to paragraphs.
-False

A (answer) array is an array containing true or false values.


-boolean
Switches are always used with if-else statements
-False
True or False: The modulus operator returns the remainder of a division operation instead of the
quotient.
-true
Determine the output.
String val_1 = “564298”;
-5698
Determine the output.
String val_1 = “35”;
-4
The return value of the length( ) method is an integer
-true
A superclass is also known as a parent class.
-true
For-loops can be nested in while loops.
-true
In instantiating an object, the keyword instance is used.
-False
Object oriented programming utilizes the top down method
-False
Expressions are like clauses.
-true

The sort( ) method is always ascending.


-true
Arrays are data types.
-False

Variables must be declared as (Answer) for it to be fully hidden.


-private
While statements check the test expression at the end.
-False

The else statement can be used alone.


-False
The fill( ) method (Answer) the array with specific values.
-Fills

The output of println is


-55555
The person’s weight is declared correctly with the correct data type (byte) and value (160).
-FALSE

Determine the output.


String val_1 = “foo”

String val_2 = “bar”


val_2 = val_1;
val_1 = val_3;
System.out.println(val_1);

-bar
Determine the output.
String val_1 = “foo”
String val_2 = “bar”
val_2 = val_1;
val_1 = val_3;

System.out.println(val_2);
-foo
Switches can work properly even without the “break” expression.
-True
Blocks can be one liner or huge classes.
-True
The test expressions in conditional statements can be left empty.
-False
Abstraction works by hiding the implementation details and showing only the functions necessary.
-True
A single array can hold multiple data types
-False
A polymorphic object can pass more than one Is-a test.
-True
Another loop can be used as test expression.
-False
True or False: Public, static and void are sample of Java reserved keywords.
-True
The value of “pStr” in line 24 is

-True
The default syntax of a constructor is <class_name>(parameter, parameter){ }
-False

A nested class is not an inner class.


-False
Nested classes causes them to become abstracted
-False

A nested class is also called


-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
A constructor can only have 1-2 overloads or parameters.
-False

All possible data types of an array can be retuned as a string by the toString( ) method.
-True
Abstracted classes can contain 1 or more abstract methods.
-True

Abstraction shows the every bit of detail and implementation on how an application does something.
-False
Initialization is a process where the constructor is called for.
-True
The default syntax of a constructor is <class_name>( ){ }
-True
Classes cannot be nested.
-False
Abstract classes cannot have nested classes.
-False
The parent class of a nested class is called an outer class
-True
An inner class can be constructed directly without reference to the outer class.
-False
Arrays can be read backwards
-True
A single array can hold
-One data type
Abstracted methods already have implementations inside.
-False
are special methods to initialize objects.
-constructors
Constructors have 3 basic rules to follow.
-False
Nesting classes increases encapsulation.
-True
Each index can only contain (Answer) element.
-one
The sort( ) method can be set to sort only a part of an array.
-False
Subclasses or child classes could have different behaviors but still share the same functions from
their parent class.
-True
Abstract methods must have an explicit return value
-False
An abstract class must not contain abstract methods.
-False
Abstracted classes can be nested.
-True

A subclass constructor cannot invoke a superclass constructor.


-False
A class acquiring fields and methods of another class is called inheritance.
-True

Parallelsorting utilizes
-More cpu processing cores
method can copy one array to another.
-arraycopy()

The equivalent of clauses in coding is?


-Expressions
Int num = 1; for(num=num;num<=10;num++) is an acceptable code snippet.
-true
Loop that has a pre-determined number of iterations
-while
An int can be used even if it is declared outside a for-loop.
-true
Overload methods must be the same name as the class
-true
What the break statement in this example does is ________.
-Ends the whole instance of the loop
The random( ) method sorts the array randomly.
-False
The last part in a for loop setup can be an ________.
- both
The “1” in arrayName[1] is called an ________.
-Index
The continue; statement ends all the iterations of a loop.
- False
Which is not a proper increment?
- n+-;
Infine for-loops can be declared as for( ){ }.
- False
If-if is more logical than else-if.
- False
The else statement can be removed if not needed.
-True
Expressions, Statements and Blocks are like composing sentences and paragraphs.
-True
You can declare a new method in the subclass which is not declared in the superclass.
-True
The return value of the equals( ) method is ________ .
-None of the choices
The Arrays.sort( ) method sorts an array into _________ order.
-Ascending
This type of declaration is discouraged: “int myArray[ ]”
- True
An if-else-if-else statement is a block.
-True
If the increment num=num+2 is changed to num++, the final value of num will be
________.
-5
The term of each pass through a loop makes is called?
-iteration
Loops must always have a continue or break statement.
-False
1+2+3/4*5 is an unambiguous expression
-False
Conditional statements can contain more conditional statements.
- True
int num = 1;
if(num==1 && num<=1){
body;
}
The conditional statement will _______.
- execute the body
byte( ][ ][ ) myArray; is an example of ________.
- An error
An array _______ hold objects.
- can
A reference variable can be reassigned to other objects provided that it is not declared
________.
- final
The test expression of conditional statement cannot contain _______
-!
Each pass through of a loop is called a cycle.
- True
If the increment “num = num + 2” is changed to “num = num + 1” the final output will be
_______.
-0
Ifs and else-ifs test expressions return true or false.
- True
_______ classes increase the encapsulation of you methods and data.
- nesting
Constructed methods are initialized with 0 or null depending on the data type.
- true
The else statement catches whatever argument the if and else-if didn’t
- True
An iteration of a loop is equivalent to one pass through.
- true
38. If we change the initial value of num in line 6 to “num = 0”, the println output will be
_______
-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
A loop can contain no expressions or statements inside.
- true
Conditional statements are the same as declaration statements.
- False
You cannot use inherited methods directly in a child class.
- False
The equals( ) method compares 2 arrays.
- True
Method invocations are statements
- True
To implement encapsulation, you have to declare class variables with the private
modifier.
- True
Inner class methods can be called by constructing the inner class.
- False
Encapsulated data are hidden from other classes.
- True
Procedural programming will be tricky for applications.
Answer: small
Strings can directly concatenated to an int.
Answer: False

1. Machine language and assembly language are collectively referred to as


_________________________
Answer: LOW-LEVEL LANGUAGE
2. 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

3. Machine language is also known as Answer language.


4. Kyoto protocol addresses environmental issues through the campaign of
____________________.
Answer: reducing greenhouse gas emissions
5. 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 – like additional characters and skills.”
Select one:
Answer: Maintainability
6.C# was released by Answer Micros
.

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?

Answer: Social media login limit.


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.
I cannot type anything but my mouse is working, I am using a brand new USB keyboard, which port
should I check?
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.
ANSWER: PRINTER WIZARD
13.Big business companies are the only ones responsible for enforcing environmental policies since
they can afford alternative cleaner technology.
ANSWER: FALSE
14. Who is considered as a user (component of an operating system)?
ANSWER; ALL OF THE CHOICES

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.
ANSWER: High-Level 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?
ANSWER: IV, I, V, III, II
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

21. The first computer concept invented is called _________________________.


ANSWER; ANALYTICAL ENGINE

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
23.Java is an example of

ANSWER: HIGH-LEVEL LANGUAGE


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 it be connected?
ANSWER: D
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
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. ead 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.
“I find it really enjoying to play XYZ since I can invite my friends from social media profile. It works
well with this social media app!”
ANSWER: COMPATIBILITY
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.

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.”
ANSWER: SECURITY
33.Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product quality model
and write the letter that corresponds to your answer.
Capacity
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: ASK FOR HEIGHT
35.Montreal protocol protects the ozone layer by ____________________.
ANSWER: phasing out harmful substances
36. 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
37. Refer to the image below to answer the following question.
By default, what is the value of limit?
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 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.
“XYZ is so cool! I tried to install it in my old computer and it still runs smoothly. Given that the
computer’s video card is a bit faulty.“
ANSWER: Reliability

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: NONE OF THE CHOICES


44. Refer to the pseudocode below and answer the following question: What happens after weight is
given?
ANSWER: ASK FOR HEIGHT
45.Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product quality model
and write the letter that corresponds to your answer.
Learnability
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?

ANSWER: display Overweight


47.Axel is finally documenting his work. What could he be writing?

ANSWER: instructions for the users


48. 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.
“One good thing I find with XYZ as when my laptop shuts down accidentally, my game score and
status can still be recovered. No need to repeat a level.”
ANSWER: Reliability
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
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. 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.
Answer: accountable
Question text
True or False: Monitoring and evaluating means brainstorming.
Answer: False
Question 5
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Axel is finally documenting his work. What could he be writing?
Select one:
a. requirements of the program
b. system analysis
c. bug reviews and errors
d. instructions for the users

Question 6
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Machine language and assembly language are collectively referred to as
_________________________.
Select one:
a. Average level language
b. Low-level language
c. Advanced language
d. High-level language

Question 7
Complete
Mark 1.00 out of 1.00

Flag question

Question text
True or False: Nothing good ever comes from giving feedback. If anything, anyone who does give
will only get scolded by the boss.
Answer: False

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 problems in Materials, Measurement, Method, People, Equipment or
Environment.

When the software used was checked, the project manager discovered that some of the
programmers are using an old version of Java. This cause is categorized under

Answer. Materials

Question 9
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 be told
about the students who volunteered to test the student record system.
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:
a. email
b. social media
c. hyperlinks
d. speaking

Question 12
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Refer to the pseudocode below and answer the following question:
What is the first thing that the program will do?
Select one:
a. ask for BMI
b. print height
c. ask for height
d. print BMI

Question 13
Complete
Mark 1.00 out of 1.00

Flag question

Question text
____________________ in the workplace protection of sensitive business information through
precautionary measures like confidentiality clauses or non-disclosure agreements.
Select one:
a. Curiosity
b. Integrity
c. Secrecy
d. Confidentiality

Question 14
Complete
Mark 0.00 out of 1.00
Flag question

Question text
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product quality model and
write the letter that corresponds to your answer.
Capacity
Select one:
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.
Answer: False

Question 17
Complete
Mark 1.00 out of 1.00

Flag question

Question text
In ____________________, 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
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.
Answer: True

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:
a. True
b. 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:
a. True
b. 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
b. Actions
c. Objectives
d. Process

Question 23
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Categorize the following 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
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
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 problems in Materials, Measurement, Method, People, Equipment or
Environment.

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

Question 27
Complete
Mark 1.00 out of 1.00

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
Complete
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:
a. Correct
b. Wrong

Question 29
Complete
Mark 1.00 out of 1.00

Flag question

Question text
In adding a new printer, the _____________ will guide you on the steps to be taken.
Select one:
a. Printer Guide
b. Printer Affix
c. Printer Install
d. Printer Wizard

Question 30
Complete
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

Question text
Refer to the image below and write only the letter of the correct answer in the space provided.

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 text
Identify whether the following task should be listed as a milestone or be included in the Gantt chart.
Fix bugs and errors detected in the system.
Answer: Gantt chart

Question 33
Complete
Mark 1.00 out of 1.00

Flag question

Question text
In the correct order, the essential parts of the communication process are:
Select one:
a. Source, Message, Encoding, Channel, Decoding, Receiver, Feedback
b. Source, Message, Encoding, Channel, Receiver, Decoding, Feedback
c. Source, Message, Encoding, Channel, Decoding, Feedback, Receiver
d. Source, Message, Encoding, Receiver, Decoding, Channel, Feedback

Question 34
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
Answer: internal

Question 35
Complete
Mark 1.00 out of 1.00

Flag question

Question text
True or False: To solve a problem means to know first what the problem is before coming up with
the feasible solutions.
Answer: True

Question 36
Complete
Mark 1.00 out of 1.00

Flag question

Question text
True or False: Listing down the issues related to the problem is second to the last step in an
effective problem solving process.
Answer: False

Question 37
Complete
Mark 1.00 out of 1.00

Flag question

Question text
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:
a. Portability
b. Security
c. Maintainability
d. Functional Suitability
e. Usability
f. Compatibility
g. Performance Efficiency
h. Reliability

Question 38
Complete
Mark 1.00 out of 1.00
Flag question

Question text
Monica accidentally unplugged the mouse PS/2 port. What will happen to the mouse connected thru
the universal serial bus port?
Select one:
a. The mouse will stop working.
b. None of the choices.
c. The mouse will freeze.
d. All of the choices
e. The mouse will be disabled.

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
Flag question

Question text
Decide whether it is a communication instrument or purpose.
A Gantt chart that shows the schedule for the development process of the student record system.

Answer: instrument

Question 41
Complete
Mark 1.00 out of 1.00

Flag question

Question text
A product or service 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 Control
c. Safety Programs
d. Reflective Behavior
Question 42
Complete
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.
ComputeTotalScore() for a routine to sum up the scores.
Select one:
a. Wrong
b. 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
Mark 1.00 out of 1.00

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
Question text
The first computer concept invented is called _________________________.
Select one:
a. COBOL
b. Analytical Engine
c. FORTRAN
d. PlanKalKul

Question 49
Complete
Mark 1.00 out of 1.00

Flag question

Question text
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.
“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.”
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
Flag question

Question text
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product quality model and
write the letter that corresponds to your answer.
Integrity
Select one:
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 does NOT describes SELECT Statement in a PL/SQL.


Answer: Queries must return only one column.
You want to display all the records of employee the same with the salary employee number 103.
Answer: SELECT * FROM employees WHERE salary = (SELECT salary from employees where
employee_id= 103)
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;
Which of the folllowing is TRUE?
Answer: SQL code are embedded within PL/SQL statements
When an exception is user defined, the exception is raised ____________ .
Answer: Explicitly
Which of the folllowing is TRUE?
Answer: SQL code are embedded withing PL/SQL statements
Weak REF CURSOR is very flexible.
Answer: True
How do you test the output of a PL/SQL block?
Answer: Use a predefined Oracle package and its procedure
Restrictive, specifies a RETURN type, associates only with type-compatible queries are description
of a ________________.
Answer: Strong REF CURSOR
Which of the following DOES NOT describes an exception?
Answer: Exception is a PL/SQL error that is raised before program execution.
These are local variables declared in the parameter list of a subprogram specification.
Answer: Formal parameter
Which of the following rules is INCORRECT about cursor variables?
Answer: None of the choices.
When an exception is predefined by Oracle server, the exception is raised ____________ .
Answer: Explicitly
Which of the following DOES NOT describes an exception?
Answer: Exception is a PL/SQL error that is raised before program execution.
Evaluate the following PL/SQL.
CREATE OR REPLACE PROCEDURE query_employee
(p_id IN employees.employee_id%TYPE,
p_name OUT employees.last_name%TYPE,
p_salary OUT employees.salary%TYPE) IS
BEGIN SELECT last_name, salary INTO p_name, p_salary
FROM employeesWHERE employee_id = p_id;
END query_employee
Answer: No error
You want to know the total number of employees whose firstname starts with letter D.
Which of the folllowing PLS/SQL executes successfully?
Answer: DECLARE
v_first_name employees.first_name%TYPE := 'D%';
BEGIN
SELECT COUNT(*) INTO v_first_name FROM employees WHERE first_name LIKE v_first_name;
DBMS_OUTPUT.PUT_LINE(v_first_name);
END;
What is the error trapping function that returns the numeric value of the error code?
Answer: SQLCODE
You want to display the name, salary and tax of employee #150. Which of the PL/SQL will execute
successfully? Note tax is computed as 2% of the salary.
Answer: DECLARE
v_first_name VARCHAR2(50);
v_last_name VARCHAR2(50);
v_salary INTEGER(20);
v_tax INTEGER(10);
BEGIN
SELECT first_name, last_name, salary, salary * 0.02 INTO v_first_name, v_last_name, v_salary,
v_tax FROM employees WHERE employee_id = 150;
DBMS_OUTPUT.PUT_LINE('Firstname : '|| v_first_name);
DBMS_OUTPUT.PUT_LINE('Lastname : '|| v_last_name);
DBMS_OUTPUT.PUT_LINE('Salary : '|| v_salary);
DBMS_OUTPUT.PUT_LINE('Tax : '|| v_tax);
END;
Which of the following is the syntax to close a cursor?
Answer: CLOSE cursor_variable_name;
Which of the following rules is INCORRECT about cursor variables?
Answer: None of the choices.
What are the three PL/SQL block types?
Answer: Anonymous, Procedure, Function
You can trap any error by including a corresponding handler within the exception-handling section of
the PL/SQL block.
Answer: True
Which of the following describes weak REF CURSOR?
Answer: Associates with any query
Given the answer in item __________, which of the folllowing stored procedure will display the
employee id and salary of Steven King?
Answer: DECLARE
v_employee_id employees.employee_id%TYPE;
v_emp_sal employees.salary%TYPE;
BEGIN
query_emp('King', 'Steven', v_employee_id, v_emp_sal);
DBMS_OUTPUT.PUT_LINE('Employee ID ' || v_employee_id ||' earns '|| to_char(v_emp_sal,
'$999,999.00'));
END;
You have been tasked to update the database by creating a PL/SQL to increase the salary of all IT
Programmer employees by 50% 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 *0.50 WHERE job_id = v_job_id;
END;
Which of the folllowing is required in a subquery?
Answer: SELECT
What is the exception name when PL/SQL has an internal problem
Answer: PROGRAM_ERROR
In the DECLARE section of the PL/SQL block,
Answer: All of the choices
Actions are being performed when error occurs during PL/SQL execution in the
Answer: EXCEPTION
What is the exception name when PL/SQL has an internal problem
Answer: PROGRAM_ERROR
Which of the folllowing statement describes PL/SQL?
Answer: PL/SQL is an Oracle proprietary, procedural, 3GL programming language
Evaluate the following PL/SQL.
DECLARE
v_employee_id employees.employee_id%TYPE := 114;
BEGIN
DELETE employees WHERE employee_id = v_employee_id;
END;
Answer: The PL/SQL will delete employee number 114.
Which of the following command is used to create a stand-alone procedure that is stored in the
Oracle database?
Answer: CREATE PROCEDURE
Evaluate the following PL/SQL.
DECLARE
v_email VARCHAR(20);
BEGIN
SELECT email INTO v_email FROM EMPLOYEES WHERE email like 'D%';
DBMS_OUTPUT.PUT_LINE ('Employees whose email address starts with letter D :'
|| v_email);
EXCEPTION
WHEN TOO_MANY_ROWS THEN
DBMS_OUTPUT.PUT_LINE (' Your select statement retrieved multiple rows.');
END;
Answer: The PL/SQL block will run successfully.
Which of the following is the syntax to define a REF CURSOR type?
Answer: TYPE ref_type_name IS REF CURSOR
[RETURN return_type];
The PL/SQL code block helps modularize code by using:
Answer: All of the choices
Which of the following is the syntax to fetch from a cursor variable?
Answer: FETCH cursor_variable_name INTO variable_name1
[,variable_name2,. . .] | record_name;
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')
Procedure can be stored in the database as a schema object.
Answer: True
In PL/SQL Block Structure, which of the following are mandatory?
Answer: BEGIN and END
PL/SQL stands for
Answer: Procedural Language extension to SQL
Which of the following is CORRECT about sub-queries?
Answer: Subquery execute before the main query executes.
Which of the following does NOT describes SELECT Statement in a PL/SQL.
Answer: Queries must return only one column.
PL/SQL Provides a block structure for executable units of ________________.
Answer: Code
Evaluate the SQL command
SELECT employee_id, salary from employees where salary = ANY (SELECT salary FROM
employees WHERE job_id = 'IT_PROG') AND job_id = 'ST_CLERK'
Answer: This has no error.
Which of the following PL/SQL will execute successfully?
Answer: DECLARE
v_salary INTEGER(20);
BEGIN
SELECT salary INTO v_salary FROM employees WHERE employee_id = 150;
END;
In PL/SQL Block Structure, which of the following are OPTIONAL?
Answer: None of the choices
Evaluate the following PL/SQL. At what line number is the error of the PL/SQL?
DECLARE
v_deptno NUMBER := 800;
e_invalid EXCEPTION;
BEGIN
DELETE FROM departments
WHERE department_id = v_deptno;
IF SQL % NOT_FOUND THEN
RAISE e_invalid;
END IF;
COMMIT;
EXCEPTION
WHEN e_invalid THEN
DBMS_OUTPUT.PUT_LINE('No such department id.');
END;
Answer: 7
What is the error trapping function that returns the numeric value of the error code?
Answer: SQLCODE
Fetch into a record when fetching from a cursor.
Answer: True

PROG-113A / ► Week 18: Designing PL/SQL / ► Short Quiz 14


Which of the following is the syntax to open a cursor varial
Answer: OPEN cursor_variable_name
FOR select_statement;
Which of the following is the syntax to define a REF CURSOR type?
Answer: TYPE ref_type_name IS REF CURSOR
[RETURN return_type];
Weak REF CURSOR is very flexible.
Answer: True
Evaluate the following. What will be the output?
DECLARE
SUBTYPE Accumulator IS NUMBER (4,2);
v_amount accumulator;
v_num1 NUMBER;
v_num2 NUMBER;
v_num3 NUMBER;
BEGIN
v_amount := 10.50;
v_num1 := 1;
v_num2 := 2;
v_num3 := 3;
v_num1 := v_amount;
v_num2 := v_num1 + v_amount;
v_num2 := v_num2 - v_num3;
dbms_output.put_line('Total is: ' || v_num2);
END;
Answer: 18
Which of the following is the syntax to fetch from a cursor variable?
Answer: FETCH cursor_variable_name INTO variable_name1
[,variable_name2,. . .] | record_name;
Fetch into a record when fetching from a cursor.
Answer: True
Which of the following is the syntax to close a cursor?
Answer: CLOSE cursor_variable_name;
This is a subset of an existing data type that may place a constraint on its base type.
Answer: Subtype
Which of the following rules is INCORRECT about cursor variables?
Answer: None of the choices.
Use column aliases in cursors for calculated columns fetched into records declared with %COLUMNTYPE.
Answer: False

PROG-113A / ► Week 18: Designing PL/SQL / ► Learning Activity 14

Which of the following rules is INCORRECT about cursor variables?


Answer: None of the choices.
Which of the following describes weak REF CURSOR?
Answer: Associates with any query
Restrictive, specifies a RETURN type, associates only with type-compatible queries are
description of a ________________.
Answer: Strong REF CURSOR
Which of the following is INCORRECT about the guidelines for cursor design?
Answer: Use column aliases in cursors for calculated columns fetched into records declared with
%COLUMNTYPE.
This is a subset of an existing data type that may place a constraint on its base type.
Answer: Subtype

PROG-113A / ► Week 17: / ► Short Quiz 13


Evaluate the following PL/SQL.
CREATE OR REPLACE PROCEDURE query_employee
(p_id IN employees.employee_id%TYPE,
p_name OUT employees.last_name%TYPE,
p_salary OUT employees.salary%TYPE) IS
BEGIN SELECT last_name, salary INTO p_name, p_salary
FROM employeesWHERE employee_id = p_id;
END query_employee
Answer: No error
Evaluate the following PL/SQL. Which of the following will line creates an error?
CREATE OR REPLACE PROCEDURE query_emp
(
p_department_id IN employees.department_id%TYPE,
p_name OUT employees.last_name%TYPE,
p_salary OUT employees.salary%TYPE
)
IS
BEGIN
SELECT last_name, salary, department_id INTO p_name, p_salary, p_department_id
FROM employees
WHERE salary >= p_salary AND department_id = p_department_id ;
END query_emp;
Answer: Line 3
These are local variables declared in the parameter list of a subprogram specification.
Answer: Formal parameter
Given the answer in item __________, which of the folllowing stored procedure will display the
employee id and salary of Steven King?
Answer: DECLARE
v_employee_id employees.employee_id%TYPE;
v_emp_sal employees.salary%TYPE;
BEGIN
query_emp('King', 'Steven', v_employee_id, v_emp_sal);
DBMS_OUTPUT.PUT_LINE('Employee ID ' || v_employee_id ||' earns '|| to_char(v_emp_sal,
'$999,999.00'));
END;

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

PROG-113A / ► Week 16: Creating Procedures / ► Learning Activity 13


Procedure can be stored in the database as a schema object.
Answer: True
The PL/SQL code block helps modularize code by using:
Answer: All of the choices
Which of the following command is used to create a stand-alone procedure that is stored in the Oracle
database?
Answer: CREATE PROCEDURE
Which of the folllowing 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
Answer: iii & v
Which if the following is NOT a benefits of using modular program constructs?
Answer: None of the choices
PROG-113A / ► Week 18: Designing PL/SQL / ► Short Quiz 14
Which of the following is the syntax to open a cursor varial
Answer: OPEN cursor_variable_name
FOR select_statement;
Which of the following is the syntax to define a REF CURSOR type?
Answer: TYPE ref_type_name IS REF CURSOR
[RETURN return_type];
Weak REF CURSOR is very flexible.
Answer: True
Evaluate the following. What will be the output?
DECLARE
SUBTYPE Accumulator IS NUMBER (4,2);
v_amount accumulator;
v_num1 NUMBER;
v_num2 NUMBER;
v_num3 NUMBER;
BEGIN
v_amount := 10.50;
v_num1 := 1;
v_num2 := 2;
v_num3 := 3;
v_num1 := v_amount;
v_num2 := v_num1 + v_amount;
v_num2 := v_num2 - v_num3;
dbms_output.put_line('Total is: ' || v_num2);
END;
Answer: 18
Which of the following is the syntax to fetch from a cursor variable?
Answer: FETCH cursor_variable_name INTO variable_name1
[,variable_name2,. . .] | record_name;
Fetch into a record when fetching from a cursor.
Answer: True
Which of the following is the syntax to close a cursor?
Answer: CLOSE cursor_variable_name;
This is a subset of an existing data type that may place a constraint on its base type.
Answer: Subtype
Which of the following rules is INCORRECT about cursor variables?
Answer: None of the choices.
Use column aliases in cursors for calculated columns fetched into records declared with %COLUMNTYPE.
Answer: False

PROG-113A / ► Week 18: Designing PL/SQL / ► Learning Activity 14


Which of the following rules is INCORRECT about cursor variables?
Answer: None of the choices.
Which of the following describes weak REF CURSOR?
Answer: Associates with any query
Restrictive, specifies a RETURN type, associates only with type-compatible queries are
description of a ________________.
Answer: Strong REF CURSOR
Which of the following is INCORRECT about the guidelines for cursor design?
Answer: Use column aliases in cursors for calculated columns fetched into records declared with
%COLUMNTYPE.
This is a subset of an existing data type that may place a constraint on its base type.
Answer: Subtype

PROG-113A / ► Week 15: Long Quiz / ► Long Quiz 3 (30/30)


(Correction)
How do you test the output of a PL/SQL block?
Answer: Use a predefined Oracle package and its procedure
Which of the folllowing statement describes PL/SQL?
Answer: PL/SQL is an Oracle proprietary, procedural, 3GL programming language
Which of the following syntax to declare EXCEPTION named e_invalid_id?
Answer: e_invalid_id EXCEPTION;
In PL/SQL Block Structure, which of the following are mandatory?
Answer: BEGIN and END
This is a type of cursor which is created and managed internally by the Oracle server to process
SQL statements
Answer: Implicit
PL/SQL stands for
Answer: Procedural Language extension to SQL
Which of the following PL/SQL will execute successfully?
Answer: DECLARE
v_salary INTEGER(20);
BEGIN
SELECT salary INTO v_salary FROM employees WHERE employee_id = 150;
END;
What is the last clause in trapping exceptions?
Answer: WHEN OTHERS
PL/SQL Provides a block structure for executable units of ________________.
Answer: Code
Evaluate the following PL/SQL.
DECLARE
v_email VARCHAR(20);
BEGIN
SELECT email INTO v_email FROM EMPLOYEES WHERE email like 'D%';
DBMS_OUTPUT.PUT_LINE ('Employees whose email address starts with letter D :'
|| v_email);
EXCEPTION
WHEN TOO_MANY_ROWS THEN
DBMS_OUTPUT.PUT_LINE (' Your select statement retrieved multiple rows.');
END;
Answer: The PL/SQL block will run successfully.
Which of the folllowing is TRUE?
Answer: SQL code are embedded within PL/SQL statements
You can trap any error by including a corresponding handler within the exception-handling
section of the PL/SQL block.
Answer: True
When an exception is user defined, the exception is raised ____________ .
Answer: Explicitly
Evaluate the PL/SQL
DECLARE
v_first_name VARCHAR2(50);
v_last_name VARCHAR2(50);
v_salary INTEGER(20);
BEGIN
SELECT first_name, last_name, salary INTO v_first_name, v_last_name, v_salary FROM
employees WHERE department_id = 60;
DBMS_OUTPUT.PUT_LINE('Firstname : '|| v_first_name);
DBMS_OUTPUT.PUT_LINE('Lastname : '|| v_last_name);
DBMS_OUTPUT.PUT_LINE('Salary : '|| v_salary);
END;
Answer: Error in Line 6.
Evaluate the following PL/SQL.
DECLARE
v_employee_id employees.employee_id%TYPE := 114;
BEGIN
DELETE employees WHERE employee_id = v_employee_id;
END;
Answer: The PL/SQL will delete employee number 114.
Which of the following does NOT describes SELECT Statement in a PL/SQL.
Answer: Queries must return only one column.
What are the three PL/SQL block types?
Answer: Anonymous, Procedure, Function
What is the exception name when PL/SQL has an internal problem
Answer: PROGRAM_ERROR
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?
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;
What is the error trapping function that returns the numeric value of the error code?
Answer: SQLCODE
What is the exception name when single row SELECT returned no data.
Answer: NO_DATA_FOUND
Which of the following DOES NOT describes an exception?
Answer: Exception is a PL/SQL error that is raised before program execution.
Evaluate the following PL/SQL.
DECLARE
v_employee_id employees.employee_id%TYPE := 114;
BEGIN
DELETE employees WHERE employee_id = v_employee_id;
END;
Answer: The PL/SQL will delete employee number 114.
In the DECLARE section of the PL/SQL block,
Answer: All of the choices
When an exception is predefined by Oracle server, the exception is raised ____________ .
Answer: Explicitly
Which of the will display the Employee ID and number of years in service with employee ID
150?
Answer: DECLARE
v_salaryemployees.salary%TYPE := 10000;
v_employee_idemployees.employee_id%TYPE := 150;
v_years INTEGER(10);
BEGIN
SELECT employee_id, ROUND((SYSDATE - hire_date) /365,0) INTO v_employee_id, v_years
FROM employees WHERE employee_id = v_employee_id ;
DBMS_OUTPUT.PUT_LINE('Employee ID:' || v_employee_id);
DBMS_OUTPUT.PUT_LINE('Number of years : ' || v_years);
END;
Actions are being performed when error occurs during PL/SQL execution in the
Answer: EXCEPTION
You can use this procedure to issue user-defined error messages from stored subprograms.
Answer: RAISE_APPLICATION_ERROR

PROG-113A / ► Week 14: Handling Exceptions / ► Short Quiz 12

Evaluate the following PL/SQL.


DECLARE
v_email VARCHAR(20);
BEGIN
SELECT email INTO v_email FROM EMPLOYEES WHERE email like 'D%';
DBMS_OUTPUT.PUT_LINE ('Employees whose email address starts with letter D :'
|| v_email);
EXCEPTION
WHEN TOO_MANY_ROWS THEN
DBMS_OUTPUT.PUT_LINE (' Your select statement retrieved multiple rows.');
END;
Answer: The PL/SQL block will run successfully.
Which of the following DOES NOT describes an exception?
Answer: Exception is a PL/SQL error that is raised before program execution.
What is the exception name when single row SELECT returned no data.
Answer: NO_DATA_FOUND
RAISE_APPLICATION_ERROR is used in two different places. These are
___________________.
Answer: Executable and exceptions section
What is the error trapping function that returns the numeric value of the error code?
Answer: SQLCODE
What is the exception name when PL/SQL has an internal problem
Answer: PROGRAM_ERROR
Evaluate the following PL/SQL. At what line number is the error of the PL/SQL?
DECLARE
v_deptno NUMBER := 800;
e_invalid EXCEPTION;
BEGIN
DELETE FROM departments
WHERE department_id = v_deptno;
IF SQL % NOT_FOUND THEN
RAISE e_invalid;
END IF;
COMMIT;
EXCEPTION
WHEN e_invalid THEN
DBMS_OUTPUT.PUT_LINE('No such department id.');
END;
Answer: 7
What is the last clause in trapping exceptions?
Answer: WHEN OTHERS
Complete the diagram in Trapping Non-Predefined Oracle Server Errors.
Answer: Declare, Associate, Reference

PROG-113A / ► Week 14: Handling Exceptions / ► Learning Activity 12

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

PROG-113A / ► Week 13: Interacting with Oracle Server / ► Learning Activity 11

Which of the following does NOT describes SELECT Statement in a PL/SQL.


Answer: Queries must return only one column.
Evaluate the following PL/SQL.
1 DECLARE

2 v_employee_id employees.employee_id%TYPE := 114;

3 BEGIN

4 DELETE employees WHERE employee_id = 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;

PROG-113A / ► Week 12: Introduction to PLSQL / ► Short Quiz 10

Which of the folllowing is TRUE?


Answer: SQL code are embedded withing PL/SQL statements
In the DECLARE section of the PL/SQL block
Answer: All of the choices
In PL/SQL Block Structure, which of the following are OPTIONAL?
Answer: None of the choices
What are the three PL/SQL block types?
Answer: Anonymous, Procedure, Function
How do you test the output of a PL/SQL block?
Answer: Use a predefined Oracle package and its procedure
You want to display the name, salary and tax of employee #150. Which of the PL/SQL will
execute successfully? Note tax is computed as 2% of the salary.
Answer: DECLARE
v_first_name VARCHAR2(50);
v_last_name VARCHAR2(50);
v_salary INTEGER(20);
v_tax INTEGER(10);
BEGIN
SELECT first_name, last_name, salary, salary * 0.02 INTO v_first_name, v_last_name,
v_salary, v_tax FROM employees WHERE employee_id = 150;
DBMS_OUTPUT.PUT_LINE('Firstname : '|| v_first_name);
DBMS_OUTPUT.PUT_LINE('Lastname : '|| v_last_name);
DBMS_OUTPUT.PUT_LINE('Salary : '|| v_salary);
DBMS_OUTPUT.PUT_LINE('Tax : '|| v_tax);
END;
Which of the folllowing statement describes PL/SQL?
Answer: PL/SQL is an Oracle proprietary, procedural, 3GL programming language

PROG-113A / ► Week 12: Introduction to PLSQL / ► Learning Activity 10


PL/SQL stands for
Answer: Procedural Language extension to SQL
PL/SQL Provides a block structure for executable units of ________________.
Answer: Code
In PL/SQL Block Structure, which of the following are mandatory?
Answer: BEGIN and END
Which of the following PL/SQL will execute successfully?
Answer: DECLARE
v_salary INTEGER(20);
BEGIN
SELECT salary INTO v_salary FROM employees WHERE employee_id = 150;
END;
Actions are being performed when error occurs during PL/SQL execution in the
Answer: EXCEPTION

PROG-113A / ► Week 11: Using Subqueries to Solve Queries / ► Short Quiz 9

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')
Evaluate the SQL command
SELECT employee_id, job_id, salary from employees where salary < ALL (SELECT salary
FROM employees WHERE job_id = 'FI_ACCOUNT') AND job_id = 'IT_PROG'
Answer: This has no error.

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')

Evaluate the SQL command


SELECT employee_id, last_name, first_name, job_id FROM employees WHERE department_id
= (SELECT max(department_id) FROM employees GROUP BY department_id)
Answer: This will return an error. Single-row subquery returns more than one row.

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)

PROG-113A / ► Week 11: Using Subqueries to Solve Queries / ► Learning Activity 9


Which of the following is INCORRECT?
Answer: Use single-row operators with multiple-row subqueries
Which of the folllowing is required in a subquery?
Answer: SELECT
Which of the following is CORRECT about sub-queries?
Answer: Subquery execute before the main query executes.
Evaluate the SQL Command
SELECT job_id, job_title FROM jobs J WHERE INCLUDES
(SELECT * FROM employees WHERE J.job_id = e.job_id );
Answer: The SQL will return an error. Invalid "INCLUDES" parameter.
Evaluate the SQL command
SELECT employee_id, salary from employees where salary = ANY (SELECT salary FROM employees
WHERE job_id = 'IT_PROG') AND job_id = 'ST_CLERK'
Answer: This has no error.
The General Manager request to the Database Administrator to generate the total number of parts
and total outstanding balance on hand of every class in warehouse number 1&2.
Which of the following SQL command will generate the required output.
-SELECT warehouse, class, count(partnum), sum(onhand) GROUP BY warehouse,class
HAVING warehouse = 1 or warehouse = 2 FROM parts;

Display the employee's name, job title, job_id and the department name of employees with
department id of 100.
-SELECT E.employee_id, J.job_title, e.job_id, D.department_name
FROM employees E
JOIN jobs J ON E.job_id = J.job_id
JOIN departments D ON E.department_id = D.department_id
WHERE E.department_id = 100

Display the part number whose class is not HW, AG or SG.


-SELECT partnum FROM parts WHERE NOT IN class ('HW', 'AG', SG')
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?
-. SELECT DESCRIPTION RENAME AS TITLE, PARTNUM RENAME AS ID, ONHAND RENAME AS
STOCK FROM PARTS;
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 _____________.
-FULL OUTER JOIN
Which of the following is NOT a task of a Database Administrator
-None of the choices

SELECT employee_id, min_salary, max_salary FROM employees, departments WHERE


salary>= 10000 && salary <= 20000
-The SQL command will produce an error.

These are collection of objects such as tables, views, and sequences.


-Container’
Display the first 5 letter in the surname of all the employees whose firstname starts with letter 'N'
-SELECT SUBSTR(last_name,1,5), first_name FROM employees WHERE
SUBSTR(first_name,1,1) IN 'N'
Which of the following SELECT statement is the correct PL/SQL that will display all rows and
columns?
-SELECT FROM TABLE PARTS;
Display all employees whose job id contains the word 'ACCOUNT'.
-SELECT * FROM EMPLOYEES WHERE job_id LIKE '%ACCOUNT%';
Display employee's name and id whose firstname starts with letter D and job id is IT_PROG.
-SELECT employee_id, first_name, last_name FROM employees ORDER BY department_id
WHERE first_name LIKE 'D%' and job_id = 'IT_PROG'
The following are capabilities of SQL SELECT
-Create records, Remove Table, Edit record

Display the part number whose class is not HW, AG or SG.


-SELECT partnum FROM parts WHERE class NOT IN = (‘HW’, AG’, SG’)
Each row of data in a table can be uniquely identified by a
-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;
Display all location id between 1000 to 2000.
- DISPLAY location_id FROM departments WHERE location_id BETWEEN 1000 TO 2000
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 does NOT describes SELECT Statement in a PL/SQL.


Answer: Queries must return only one column.
You want to display all the records of employee the same with the salary employee number 103.
Answer: SELECT * FROM employees WHERE salary = (SELECT salary from employees where
employee_id= 103)
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;
Which of the folllowing is TRUE?
Answer: SQL code are embedded within PL/SQL statements
When an exception is user defined, the exception is raised ____________ .
Answer: Explicitly
Which of the folllowing is TRUE?
Answer: SQL code are embedded withing PL/SQL statements
Weak REF CURSOR is very flexible.
Answer: True
How do you test the output of a PL/SQL block?
Answer: Use a predefined Oracle package and its procedure
Restrictive, specifies a RETURN type, associates only with type-compatible queries are description
of a ________________.
Answer: Strong REF CURSOR
Which of the following DOES NOT describes an exception?
Answer: Exception is a PL/SQL error that is raised before program execution.
These are local variables declared in the parameter list of a subprogram specification.
Answer: Formal parameter
Which of the following rules is INCORRECT about cursor variables?
Answer: None of the choices.
When an exception is predefined by Oracle server, the exception is raised ____________ .
Answer: Explicitly
Which of the following DOES NOT describes an exception?
Answer: Exception is a PL/SQL error that is raised before program execution.
Evaluate the following PL/SQL.
CREATE OR REPLACE PROCEDURE query_employee
(p_id IN employees.employee_id%TYPE,
p_name OUT employees.last_name%TYPE,
p_salary OUT employees.salary%TYPE) IS
BEGIN SELECT last_name, salary INTO p_name, p_salary
FROM employeesWHERE employee_id = p_id;
END query_employee
Answer: No error
You want to know the total number of employees whose firstname starts with letter D.
Which of the folllowing PLS/SQL executes successfully?
Answer: DECLARE
v_first_name employees.first_name%TYPE := 'D%';
BEGIN
SELECT COUNT(*) INTO v_first_name FROM employees WHERE first_name LIKE v_first_name;
DBMS_OUTPUT.PUT_LINE(v_first_name);
END;
What is the error trapping function that returns the numeric value of the error code?
Answer: SQLCODE
You want to display the name, salary and tax of employee #150. Which of the PL/SQL will execute
successfully? Note tax is computed as 2% of the salary.
Answer: DECLARE
v_first_name VARCHAR2(50);
v_last_name VARCHAR2(50);
v_salary INTEGER(20);
v_tax INTEGER(10);
BEGIN
SELECT first_name, last_name, salary, salary * 0.02 INTO v_first_name, v_last_name, v_salary,
v_tax FROM employees WHERE employee_id = 150;
DBMS_OUTPUT.PUT_LINE('Firstname : '|| v_first_name);
DBMS_OUTPUT.PUT_LINE('Lastname : '|| v_last_name);
DBMS_OUTPUT.PUT_LINE('Salary : '|| v_salary);
DBMS_OUTPUT.PUT_LINE('Tax : '|| v_tax);
END;
Which of the following is the syntax to close a cursor?
Answer: CLOSE cursor_variable_name;
Which of the following rules is INCORRECT about cursor variables?
Answer: None of the choices.
What are the three PL/SQL block types?
Answer: Anonymous, Procedure, Function
You can trap any error by including a corresponding handler within the exception-handling section of
the PL/SQL block.
Answer: True
Which of the following describes weak REF CURSOR?
Answer: Associates with any query
Given the answer in item __________, which of the folllowing stored procedure will display the
employee id and salary of Steven King?
Answer: DECLARE
v_employee_id employees.employee_id%TYPE;
v_emp_sal employees.salary%TYPE;
BEGIN
query_emp('King', 'Steven', v_employee_id, v_emp_sal);
DBMS_OUTPUT.PUT_LINE('Employee ID ' || v_employee_id ||' earns '|| to_char(v_emp_sal,
'$999,999.00'));
END;
You have been tasked to update the database by creating a PL/SQL to increase the salary of all IT
Programmer employees by 50% 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 *0.50 WHERE job_id = v_job_id;
END;
Which of the folllowing is required in a subquery?
Answer: SELECT
What is the exception name when PL/SQL has an internal problem
Answer: PROGRAM_ERROR
In the DECLARE section of the PL/SQL block,
Answer: All of the choices
Actions are being performed when error occurs during PL/SQL execution in the
Answer: EXCEPTION
What is the exception name when PL/SQL has an internal problem
Answer: PROGRAM_ERROR
Which of the folllowing statement describes PL/SQL?
Answer: PL/SQL is an Oracle proprietary, procedural, 3GL programming language
Evaluate the following PL/SQL.
DECLARE
v_employee_id employees.employee_id%TYPE := 114;
BEGIN
DELETE employees WHERE employee_id = v_employee_id;
END;
Answer: The PL/SQL will delete employee number 114.
Which of the following command is used to create a stand-alone procedure that is stored in the
Oracle database?
Answer: CREATE PROCEDURE
Evaluate the following PL/SQL.
DECLARE
v_email VARCHAR(20);
BEGIN
SELECT email INTO v_email FROM EMPLOYEES WHERE email like 'D%';
DBMS_OUTPUT.PUT_LINE ('Employees whose email address starts with letter D :'
|| v_email);
EXCEPTION
WHEN TOO_MANY_ROWS THEN
DBMS_OUTPUT.PUT_LINE (' Your select statement retrieved multiple rows.');
END;
Answer: The PL/SQL block will run successfully.
Which of the following is the syntax to define a REF CURSOR type?
Answer: TYPE ref_type_name IS REF CURSOR
[RETURN return_type];
The PL/SQL code block helps modularize code by using:
Answer: All of the choices
Which of the following is the syntax to fetch from a cursor variable?
Answer: FETCH cursor_variable_name INTO variable_name1
[,variable_name2,. . .] | record_name;
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')
Procedure can be stored in the database as a schema object.
Answer: True
In PL/SQL Block Structure, which of the following are mandatory?
Answer: BEGIN and END
PL/SQL stands for
Answer: Procedural Language extension to SQL
Which of the following is CORRECT about sub-queries?
Answer: Subquery execute before the main query executes.
Which of the following does NOT describes SELECT Statement in a PL/SQL.
Answer: Queries must return only one column.
PL/SQL Provides a block structure for executable units of ________________.
Answer: Code
Evaluate the SQL command
SELECT employee_id, salary from employees where salary = ANY (SELECT salary FROM
employees WHERE job_id = 'IT_PROG') AND job_id = 'ST_CLERK'
Answer: This has no error.
Which of the following PL/SQL will execute successfully?
Answer: DECLARE
v_salary INTEGER(20);
BEGIN
SELECT salary INTO v_salary FROM employees WHERE employee_id = 150;
END;
In PL/SQL Block Structure, which of the following are OPTIONAL?
Answer: None of the choices
Evaluate the following PL/SQL. At what line number is the error of the PL/SQL?
DECLARE
v_deptno NUMBER := 800;
e_invalid EXCEPTION;
BEGIN
DELETE FROM departments
WHERE department_id = v_deptno;
IF SQL % NOT_FOUND THEN
RAISE e_invalid;
END IF;
COMMIT;
EXCEPTION
WHEN e_invalid THEN
DBMS_OUTPUT.PUT_LINE('No such department id.');
END;
Answer: 7
What is the error trapping function that returns the numeric value of the error code?
Answer: SQLCODE
Fetch into a record when fetching from a cursor.
Answer: True

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
Enforcing environmental policies is one of the major causes of job loss and
unemployment. - False
True or False: Dates in file names should be written in YYYY-MM-DD format. - False
Big business companies are the only ones responsible for enforcing environmental
policies since they can afford alternative cleaner technology. - False
Pre-review activities in the review process includes review planning, preparation and
individual review. - true
Increase work productivity by arranging items in such a way that they are easy to find
and pick up. - true
Montreal protocol protects the ozone layer by ____________________. - phasing out
harmful substances
Business industries will not be affected by the environmental crisis. - False
True or False: Protocols are set of standards rules which describes how something
should be done and different companies have different protocols as well. - true
Presidential Decree No. 856 is an international treaty that imposes limitations on the
greenhouse gas emissions of several countries. - True
True or False: Organizational aims are different from the mission statement; they refer
to the results an organization is aspiring for. - true
The cost / benefit analysis document is appropriately named. - False
A printed progress report to be submitted to the adviser. - purpose
True or False: Statutory requirements are identified by the vendors or suppliers and
they include value, stability, diversity and capacity. - False
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. - False
Identify whether the statement is a strength, weakness, opportunity or threat: The
student record system could be used by other schools other than Ricka’s school. -
opportunity
True or False: Reviewing the related literature includes review of concepts, theories and
previous research findings. - true
Companies can freely make their own set of environmental policies without consulting
the workers’ union, or any local or national laws about it. - False
Kyoto protocol addresses environmental issues through the campaign of
____________________. - reducing greenhouse gas emissions
Humans rely on natural resources for survival. - true
Quantitative research, compared to qualitative research, uses measurable - Data
ISO/IEC 25010:2011’s product quality model has eight (8) major characteristics. - true
True or False: Usually, the summary of the report is the first thing that’s being read. -
true
____________________ is when you conduct regular audits and inspections to
evaluate your work performance. - Shitsuke
“XYZ is so cool! I tried to install it in my old computer and it still runs smoothly. Given
that the computer’s video card is a bit faulty.“ - Reliability
True or False: There are five main elements of a written report – topic, style, structure,
facts and contents. - false
True or False: To gather data, you can either conduct an interview, survey, observation,
mail questionnaire, coding and tabulation. - false
PROG LONG QUIZ 4

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;
query_emp('King', 'Steven', v_employee_id, v_emp_sal);
BEGIN
DBMS_OUTPUT.PUT_LINE('Employee ID ' || v_employee_id ||' earns '|| to_char(v_emp_sal,
'$999,999.00'));
END;
b. DECLARE
query_emp('King', 'Steven', v_employee_id, v_emp_sal);
BEGIN
v_employee_id employees.employee_id VARCHAR(10);
v_emp_sal employees.salary NUMERIC(10);
DBMS_OUTPUT.PUT_LINE('Employee ID ' || v_employee_id ||' earns '|| to_char(v_emp_sal,
'$999,999.00'));
END;
c. DECLARE
v_employee_id employees.employee_id VARCHAR(10);
v_emp_sal employees.salary NUMERIC(10);
BEGIN
query_emp('King', 'Steven', v_employee_id, v_emp_sal);
DBMS_OUTPUT.PUT_LINE('Employee ID ' || v_employee_id ||' earns '|| to_char(v_emp_sal,
'$999,999.00'));
END;
d. DECLARE
v_employee_id employees.employee_id%TYPE;
v_emp_sal employees.salary%TYPE;
BEGIN
query_emp('King', 'Steven', v_employee_id, v_emp_sal);
DBMS_OUTPUT.PUT_LINE('Employee ID ' || v_employee_id ||' earns '|| to_char(v_emp_sal,
'$999,999.00'));
END;

Question 2
Complete
Mark 1.00 out of 1.00

Flag question

Question text
The PL/SQL code block helps modularize code by using:
Select one:
a. All of the choices
b. Database triggers
c. Packages
d. Procedures
e. Anonymous blocks
f. Functions

Question 3
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Which of the following rules is INCORRECT about cursor variables?
Select one:
a. You cannot assign a null value to cursor variables.
b. Cursors and cursor variables are not interoperable.
c. You cannot use REF CURSOR types in CREATE TABLE or VIEW statements.
d. You cannot use comparison operators to test cursor variables.
e. None of the choices.
f. You cannot use cursor variables with remote subprograms on another server.

Question 4
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Which of the following is the syntax to close a cursor?
Select one:
a. SET cursor_variable_nameCLOSE;
b. CLOSE cursor_variable_name;
c. EXIT cursor_variable_name;
d. QUIT cursor_variable_name;

Question 5
Complete
Mark 1.00 out of 1.00
Flag question

Question text
Which of the folllowing is TRUE?
Select one:
a. PL/SQL statements are embedded within SQL code.
b. None of the choices
c. SQL code are embedded within PL/SQL statements
d. You can embed procedural construct within SQL code

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
b. Index
c. Data dictionary
d. Data
e. Schema

Question 8
Complete
Mark 1.00 out of 1.00

Flag question

Question text
What is the default parameter mode when no mode is specified?
Select one:
a. IN
b. DEFAULT
c. OUT
d. IN OUT

Question 9
Complete
Mark 1.00 out of 1.00

Flag question

Question text
When an exception is predefined by Oracle server, the exception is raised ____________ .
Select one:
a. Implicitly
b. Interactively
c. Exclusively
d. Explicitly
e. None of the choices

Question 10
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Evaluate the following PL/SQL. Which of the following will line creates an error?

1. CREATE OR REPLACE PROCEDURE query_emp


2. (
3. p_department_id IN employees.department_id%TYPE,
4. p_name OUT employees.last_name%TYPE,
5. p_salary OUT employees.salary%TYPE
6. )
7. IS
8. BEGIN
9. SELECT last_name, salary, department_id INTO p_name, p_salary,
p_department_id
10. FROM employees
11. WHERE salary >= p_salary AND department_id = p_department_id ;
12. END query_emp;

Select one:
a. Line 1
b. Line 5
c. Line 9
d. Line 3
e. No error
f. Line 11

Question 11
Complete
Mark 1.00 out of 1.00

Flag question

Question text
These are local variables declared in the parameter list of a subprogram specification.
Select one:
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:
a. Improved data security and integrity
b. Improved code clarity
c. Improved performance
d. None of the choices
e. Easy maintenance

Question 14
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Which of the following command is used to create a stand-alone procedure that is stored in the
Oracle database?
Select one:
a. PROCEDURE
b. BUILD PROCEDURE
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
Flag question

Question text
Which of the following is the syntax to fetch from a cursor variable?
Select one:
a. FETCH cursor_variable_name INTO variable_name1
[,variable_name2,. . .] | record_name;
b. GET cursor_variable_name INTO variable_name1
[,variable_name2,. . .] | record_name;
c. POST cursor_variable_name INTO variable_name1
[,variable_name2,. . .] | record_name;
d. RETRIEVE cursor_variable_name INTO variable_name1
[,variable_name2,. . .] | record_name;

Question 17
Complete
Mark 1.00 out of 1.00

Flag question

Question text
PL/SQL stands for
Select one:
a. Procedural Language extension to SQL
b. Procedural Libraries of SQL
c. Procedural Logic of SQL
d. Process Linkage to SQL

Question 18
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Which of the following is the syntax to define a REF CURSOR type?
Select one:
a. DECLARE ref_type_name AS REF CURSOR
[RETURN return_type];
b. DEFINE ref_type_name AS REF CURSOR
[RETURN return_type];
c. TYPE ref_type_name IS REF CURSOR
[RETURN return_type];
d. SET ref_type_name IS REF CURSOR
[RETURN return_type];

Question 19
Complete
Mark 1.00 out of 1.00

Flag question

Question text
What is the error trapping function that returns the numeric value of the error code?
Select one:
a. SQLCODE
b. ERRORCODE
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:
a. Anonymous, Procedure, Function
b. SELECT, UPDATE, INSERT
c. Add, Edit, Delete
d. DECLARE, BEGIN, END

Question 21
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Evaluate the following PL/SQL.

1. DECLARE
2. v_employee_id employees.employee_id%TYPE := 114;
3. BEGIN
4. 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:
a. DECLARE
v_job_id employees.job_id%TYPE := 'IT_PROG';
BEGIN
UPDATE employees SET salary = salary * 2 WHERE job_id = v_job_id;
END;
b. DECLARE
v_job_id employees.job_id%TYPE := 'IT_PROG';
v_salary employees.salary := salary;
BEGIN
UPDATE employees SET v_salary = salary * 1.00 WHERE v_job_id = job_id;
END;
c. DECLARE
v_job_id employees.job_id%TYPE := 'IT_PROG';
BEGIN
UPDATE employees SET salary = salary * 100% WHERE job_id = v_job_id;
END;
d. DECLARE
v_job_id employees.job_id%TYPE := 'IT_PROG';
v_salary employees.salary := salary;
BEGIN
UPDATE employees SET salary = v_salary * 0.100% WHERE job_id = v_job_id;
END;

Question 23
Complete
Mark 1.00 out of 1.00

Flag question

Question text
This is a type of cursor which is created and managed internally by the Oracle server to process
SQL statements
Select one:
a. Interactive
b. Implicit
c. Explicit
d. Exclusive
e. Coded

Question 24
Complete
Mark 1.00 out of 1.00
Flag question

Question text
Which of the following describes weak REF CURSOR?
Select one:
a. Restrictive
b. All of the choices
c. Is not flexible
d. Associates with any query

Question 25
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Evaluate the following PL/SQL.

1. DECLARE
2. v_employee_id employees.employee_id%TYPE := 114;
3. BEGIN
4. 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
Flag question

Question text
What is the exception name when PL/SQL has an internal problem
Select one:
a. ERROR_MSG
b. EXECUTION_ERROR
c. RUNTIME_ERROR
d. PROGRAM_ERROR

Question 27
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Which of the folllowing 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
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
Flag question

Question text
Evaluate the following. What will be the output?

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
Question text
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 one:
a. SELECT job_title FROM jobs WHERE min_salary >= 5000 AND max_salary<= 10000
b. SELECT job_title FROM employees WHERE salary >= 5000 AND salary <= 10000
c. 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
Complete
Mark 2.00 out of 2.00

Flag question

Question text
What is the SQL command to count the number of records in the employees table?
Select one:
a. SELECT ALL FROM employees
b. SELECT * FROM employees;
c. SELECT COUNT(*) FROM employees
d. SELECT SUM(*) FROM employees;

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
Question 4
Complete
Mark 2.00 out of 2.00

Flag question

Question text
Evaluate the following SQL command
SELECT * FROM jobs WHERE job_title LIKE 'Manager%'
Select one:
a. The SQL command will produce an error.
b. The SQL command will display all employees with Manager position
c. The SQL command will display all records in the database
d. No records will be displayed

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:
a. SELECT employee_id, hire_date, TO_DATE(hire_date,'Month') AS "Hired Month", job_id FROM
b. SELECT employee_id, hire_date, MONTH(hire_date,'Month') AS "Hired Month", job_id FROM
employees
c. SELECT employee_id, hire_date, TO_CHAR(hire_date,'Month') AS "Hired Month", job_id FROM
employees
d. SELECT employee_id, hire_date, TO_MONTH(hire_date,'Month') AS "Hired Month", job_id
FROM employees

Question 6
Complete
Mark 2.00 out of 2.00
Flag question

Question text
You want to generate the total salary per month of every department in the company.
Select one:
a. SELECT department_id, salary FROM employees ORDER BY SUM(salary)
b. SELECT department_id, TOTAL(salary) FROM employees GROUP BY department_id
c. SELECT department_id, salary FROM employees GROUP BY SUM(salary) ORDER BY
department_id
d. SELECT department_id, SUM(salary) FROM employees GROUP BY 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:
a. SELECT last_name, TO_INT(salary, '$999,999.99') AS "MONTHLY SALARY" FROM employees
WHERE salary < 10,000 WHERE last_name STARTS 'D%'
b. SELECT last_name, TO_CHAR(salary, '$999,999.99') AS "MONTHLY SALARY" FROM
employees WHERE salary < 10000 WHERE last_name LIKE 'D%'
c. SELECT last_name, TO_INTEGER(salary, $999,999.99) AS "MONTHLY SALARY" FROM
employees WHERE salary < 10000 WHERE last_name IN 'D%'
d. SELECT last_name, TO_NUMBER(salary, '$999,999.99') AS "MONTHLY SALARY" FROM
employees WHERE salary < 10,000 WHERE last_name = ‘D%’

Question 8
Complete
Mark 2.00 out of 2.00
Flag question

Question text
Display the lastname of every employee in the company. Display the output in a single column and
label it as Fullname
Format: JuanReyes
Select one:
a. None of the choices
b. SELECT CONCATENATE(first_name, last_name) AS Fullname FROM employees
c. SELECT CONCAT(first_name, last_name) FROM employees
d. SELECT CONCAT(first_name, last_name) AS Fullname FROM employees

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:
a. SELECT SUBSTR(last_name,1,5), first_name FROM employees WHERE first_name IN 'N'
b. SELECT SUBSTR(last_name,1,5), first_name FROM employees WHERE
SUBSTR(first_name,1,1) = 'N'
c. SELECT SUBSTR(surname,1,5), first_name FROM employees WHERE
SUBSTR(first_name,1,1) IN 'N'
d. SELECT SUBSTR(surname,1,5), first_name FROM employees WHERE first_name = 'N'
e. SELECT SUBSTR(last_name,1,5), first_name FROM employees WHERE
SUBSTR(first_name,1,1) IN 'N'

Question 10
Complete
Mark 2.00 out of 2.00
Flag question

Question text
Austin David was transferred to Purchasing Department. You are assigned to update the database.
Which of the following SQL command will satisfy the requirements?
Select one:
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’
d. UPDATE employees SET department_id = 30 WHERE first_name = ‘David’ AND last_name =
‘Austin’

Question 11
Complete
Mark 2.00 out of 2.00

Flag question

Question text
John want to know how many employees receiving salary below 10,000.
What SQL command he need to run?
Select one:
a. SELECT COUNT(*) FROM employees WHERE salary < 10000;
b. SELECT COUNT(salary) FROM employees WHERE salary < 10,000;
c. SELECT COUNT(emp_id) FROM employees WHERE salary <= 10000;
d. SELECT salary FROM COUNT(employees)WHERE salary < 10000;

Question 12
Complete
Mark 2.00 out of 2.00
Flag question

Question text
Evaluate the following SQL command
SELECT employee_id, salary, department_id FROM employees WHERE department_id IN (60,70)
Select one:
a. The SQL command will produce an error.
b. The SQL command will display employees with department id 60 and 70.
c. The SQL command will give an incorrect output.
d. The SQL command will display employees with department id 60 or 70.

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 give the required output?
Select one:
a. SELECT last_name, hire_date FROM employees WHERE hire_date>=
TO_DATE('01-Jan-2006', 'DD-Mon-RR') AND hire_date<= TO_DATE('31-Dec-2006', 'DD-Mon-RR')
AND salary > 5000;
b. SELECT last_name, hire_date FROM employees WHERE hire_date>=
TO_DATE('Jan-2000', 'Month-YYYY') AND hire_date<= TO_DATE('Dec-2006', 'Month-‘YYYY') AND
salary > 5,000;
c. 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;
d. SELECT last_name, hire_date FROM employees WHERE hire_date>=
TO_DATE('2000', 'YYYY') AND hire_date<= TO_DATE('2006', 'YYYY') OR salary > 5000;

Question 14
Complete
Mark 2.00 out of 2.00
Flag question

Question text
List all employees except for IT_PROG job id.
Select one:
a. SELECT *FROM employees EXCEPT JOB_ID != 'IT_PROG'
b. SELECT *FROM employees WHERE JOB_ID NOT IN ('IT_PROG')
c. SELECT *FROM employees WHERE JOB_ID <> 'IT_PROG'
d. All of the choices

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:
a. The SQL will produce Cartesian Product
b. The SQL will display the employee id, department id and the minimum and maximum salary
whose salary is between 10000 and 20000.
c. The SQL command will produce an error.
d. The SQL command will give an incorrect output.

Question 16
Complete
Mark 2.00 out of 2.00

Flag question

Question text
Display all the records in the employee table. Arrange the output in by lastname from A-Z order.
Select one:
a. SELECT * FROM employees SORT BY lastname
b. SELECT * FROM employees ORDER BY lastname
c. SELECT * FROM employees ORDER BY lastname AZ
d. SELECT * FROM employees SORT BY lastname ascending

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:
a. SELECT employee_id, first_name, last_name FROM employees ORDER BY department_id
WHERE first_name LIKE 'D%' and job_id = 'IT_PROG'
b. SELECT employees FROM employee_id, first_name, last_name WHERE first_name LIKE ‘D%’
and job_id = ‘IT_PROG’ ORDER BY department_id
c. SELECT employee_id, first_name, last_name FROM employees WHERE job_id = 'IT_PROG' OR
first_name LIKE 'D%' and 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 command will produce the output.
Select one:
a. SELECT AVERAGE(salary) FROM employees WHERE job_id = 'FI_ACCOUNT';
b. SELECT AVG(salary) FROM employees WHERE job_id = 'FI_ACCOUNT';
c. SELECT AVE(salary) FROM employees WHERE job_id = 'FI_ACCOUNT';
d. SELECT COUNT AVG(salary) FROM employees WHERE job_id = 'FI_ACCOUNT';

Question 19
Complete
Mark 2.00 out of 2.00

Flag question

Question text
Display all location id between 1000 to 2000.
Select one:
a. DISPLAY location_id FROM departments WHERE location_id LING 1000 UP TO 2000
b. DISPLAY location_id FROM departments WHERE location_id BETWEEN 1000 TO 2000
c. SELECT location_id FROM departments WHERE location_id IN 1000 AND 2000
d. SELECT location_id FROM departments WHERE location_id BETWEEN 1000 AND 2000

Question 20
Complete
Mark 2.00 out of 2.00

Flag question

Question text
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 one:
a. SELECT employee_id, salary, salary + (salary .03) FROM employees
b. SELECT employee_id, salary, salary * .03 FROM employees
c. SELECT employee_id, salary, salary * 1.03 FROM employees
d. SELECT employee_id, salary FROM employees WHERE salary)
e. SELECT employee_id, salary, salary * .30 FROM employees

Question 21
Complete
Mark 2.00 out of 2.00

Flag question

Question text
Display the employee id, salary, number of years and the hiring date of every employee in the
company.
Select one:
a. SELECT employee_id,salary, hire_date, hire_date- SYSDATE /365 FROM employees;
b. SELECT employee_id, salary, hire_date, ROUND((SYSDATE - hire_date) /365,0) FROM
employees;
c. SELECT employee_id, salary, hire_date, hire_date /365 FROM employees;

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:
a. SELECT E.employee_id, J.job_title, e.job_id, D.department_name
FROM employees E
JOIN jobs J ON E.job_id = J.job_id
JOIN departments D ON E.department_id = D.department_id
WHERE E.department_id = 100
b. SELECT E.employee_id, J.job_title, e.job_id, D.department_name
FROM employees E
JOIN department D ON E.job_id = J.job_id
JOIN jobs J ON E.department_id = D.department_id
WHERE E.department_id = 100
c. SELECT E.employee_id, J.job_title, e.job_id, D.department_name
FROM jobs J
INNER JOIN department D ON E.job_id = J.job_id
INNER JOIN employees EON E.department_id = D.department_id
WHERE E.department_id = 100
d. SELECT E.employee_id, J.job_title, e.job_id, D.department_name
FROM jobs J
NATURAL JOIN department D ON E.job_id = J.job_id
NATURAL JOIN employees E ON E.department_id = D.department_id
WHERE E.department_id = 100

Question 23
Complete
Mark 2.00 out of 2.00

Flag question

Question text
In creating Joins,the NATURALJOIN and USING clauses are____________
Select one:
a. Mutually Inclusive
b. Limited to 2 relational tables
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 working in Finance Department. Label the annual salary to ANNUAL
SALARY.
Sort the output in from highest to lowest salary. (4 POINTS)
Select one:
a. 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
NATURAL JOIN jobs J ON E.job_id = J.job_id
NATURAL JOIN departments D ON E.department_id = D.department_id
ORDER BY "ANNUAL SALARY" DESC
WHERE D.location_id = 1700 AND D.department_name = 'Finance'
b. 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
JOINemployees E ON E.department_id = D.department_id
WHERE D.location_id = 1700 AND D.department_name = 'Finance'
ORDER BY "ANNUAL SALARY" DESC
c. 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
d. 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
OUTER JOIN jobs J ON E.job_id = J.job_id
OUTER 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

PROG-113A / ? Week 7: Manipulate Data / ? Short Quiz 7

9/10

Create a SQL command to update the employees table

Employee id : 200

Name : Mr. Gary Park

Date hired : July 1, 2017

Position :IT Programmer

Salary : 10000

Department of assignment : 60

Reporting to manager : 103

answer: INSERT INTO employees


(employee_id,first_name,last_name,hire_date,job_id,salary,manager_id,department_id)

VALUES (200,'Gary','Park',TO_DATE('Jul 1, 2017', 'MON DD, YYYY'), 'IT_PROG', 10000, 103, 60)

Add a 500 pesos increase in salary of all employees who have rendered services 10 years and above.

answer: UPDATE employees SET salary = salary + 500 where TO_CHAR(sysdate,'YYYY') -


TO_CHAR(hire_date,'YYYY') >= 10
Diana Lorentz was transferred to Administration department. Using the employees and department
table information update the profile of employee.

answer: UPDATE employees SET manager_id = 200, department_id = 10 WHERE last_name =


'Lorentz' AND first_name = 'Diana';

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.

answer: UPDATE departments SET department_name = 'Procurement', manager_id = 100


WHERE department_name = 'Treasury'

Which of the following will erase all records in the departments table

answer: 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.

answer: Run the ROLLBACK command

Which of the following DOES NOT describes the state of the data after the COMMIT command

answer: None of the choices

Which of the following describes the command below?

SELECT * FROM employees WHERE department = 60 FOR UPDATE

answer: Locks the rows in the EMPLOYEES table with department id is 60.

SQL command to create a marker in the current transaction.

answer: SAVEPOINT

YOu want to display the employee's id and formatted date hired as shown below

Which SQL statement give the required output?

Required output:

Answer: SELECT employee_id,TO_CHAR(hire_date,'fmMonth DD, YYYY')AS "Hired Date" FROM


employees

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?
Answer: SELECT employee_id, hire_date, TO_DATE(hire_date,'Month') AS "Hired Month",
job_id FROM employees WHERE job_id NOT = 'AD_VP';

IT_PROG

Answer: SELECT last_name, TO_CHAR(hire_date,'YYYY')FROM employees WHERE job_id='IT_PROG';

You want to display the employee’s last name whose salary is below 10,000 and whose lastname starts
with letter K.

Answer: SELECT last_name, TO_CHAR(salary, '$999,999.99') AS "MONTHLY SALARY" FROM


employees WHERE salary < 10000WHERE last_name LIKE ‘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.

Answer: SELECT * FROM parts ORDER BY price

Display all the records whose stock is below 20 and in warehouse number 3.

Answer: SELECT * FROM parts WHERE onhand< 20 AND warehouse = 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%';

Display the part number whose class is not HW, AG or SG.

Answer: None of the choices

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.

ANSWER: SELECT *FROM parts WHERE price > 10000;

Which of the following SQL command will display all records with class code of AP?

Answer: SELECT * FROM parts WHERE class = ‘AP’;

Which of the following SQL commands will display all stocks whole class is HW or AP.

Answer: SELECT ALL FROM parts WHERE IN class = ('HW','AP');

Which of the following SQL commands will display all the stocks on hand from 10 to 30?

Answer: SELECT * FROM parts WHERE onhand BETWEEN 10 AND 30;


Create an SQL command to display the name of the parts, warehouse number, price and the
available stock on hand whose price is below 500. Arrange the list by warehouse number and by
class.
ANswer: SELECT partnum, description, warehouse, onhand, price FROM parts WHERE price <
500 ORDER BY warehouse, class;

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.

Answer: SELECT ONHAND-5 + 5 (* WAREHOUSE), DESCRIPTION FROM PARTS;

Which of the following is the correct report that will display the class from table PARTS.

answer: SELECT CLASS FROM PARTS;


Which of the following SELECT statement is the correct PL/SQL that willcreate a report that will add
10% increase in PRICE? List only the column DESCRIPTION, CLASS and PRICE.

Answer: SELECT PRICE*0.10, DESCRIPTION, CLASS FROM PARTS;

Which of the following SELECT statement is the correct PL/SQL that will display all rows and columns?

Answer: SELECT * FROM PARTS;


Which of the following SELECT statement is the correct PL/SQL that willcreate a report specifying
only the column PRICE, ONHAND and DESCRIPTION?

Answer: SELECT PRICE, ONHAND, DESCRIPTION FROM PARTS;

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"

Answer: SELECT DISTINCT WAREHOUSE AS "No. of available warehouse"FROM PARTS;


Which of the following SELECT statement is the correctreport the will merge the column CLASS and
PRICE rename the COLUMN as "CLASS PRICE"

Answer: SELECT (CLASS||PRICE) AS "CLASS PRICE" FROM PARTS;


Which of the following SELECT statement is the correct PL/SQL that will display eliminate the
duplicate rows for column class and warehouse.
Answer: SELECT DISTINCT CLASS, WAREHOUSE FROM PARTS;

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?

Answer: Select description AS 'TITLE',Partnum AS'ID',ONHAND AS'STOCK' FROM PARTS;


Remove all manager positions in the department table.

Answer: DELETE FROM jobs WHERE job_title LIKE '%Manager%';

A new department name training with department id 300 was created in the company.

Answer: INSERT INTO departments VALUES(300,'TRAINING',203,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

Answer: INSERT INTO JOBS VALUES('DB_ADMIN','database administrator',10000,18000)


Update the Purchasing department name to Procurement. And this will be managed by the Manager
of Administration department.

Answer: UPDATE departments SET department_name = 'Procurement', manager_id = 200


WHERE department_name = 'Purchasing'

remove the shareholder services department in the department table

answer: DELETE FROM departments WHERE department_name = ‘Shareholder Services’

John want to know how many employees receiving salary below 10,000

Answer: SELECT COUNT(*) FROM employees WHERE salary < 10000;

What is the SQL command to display the date of the first employee that was hired?

Answer: SELECT MIN(hire_date) FROM employees;

Aldrin wants to know the highest salary in every department. which of the following sql will display the
required output?

Answer: SELECT department_id,MAX(SALARY) FROM employees GROUP BY department_id

The general manager request to the database administrator to generate the total salary per month of
every department in the company.

Answer: 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.

Answer: SELECT AVG(salary) FROM employees WHERE job_id ='IT_PROG';


Display the warehouse number, class, highest price & lowest price, total on hand balance whose
class is AP.

Answer: SELECT warehouse, class, MAX(price), MIN(PRICE), sum(onhand)


FROM parts
WHERE class = 'AP'
GROUP BY warehouse, class
ORDER BY warehouse
The General Manager request to the database administrator to general total number of parts and total
outstanding balance on hand of every class

Answer: SELECT warehouse,class,count(partnum),sum(onhand) GROUP BY warehouse,class HAVING


warehouse = 1 or warehouse = 2 FROM parts;

Aldrin wants to know the outstanding total balance on hand on every class per warehouse

answer: SELECT warehouse,class,sum(onhand) FROM parts GROUP BY warehouse,class

Which of the following SQL command will display all records with part number contains the number 9?

Answer: SELECT * from parts WHERE partnum LIKe '%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

Answer: SELECT warehouse, class, sum(onhand) FROM parts GROUP BY warehouse,class


HAVING SUM(ONHAND) > 50

There was 10% price increase in the all the parts in warehouse number 3.

Answer: SELECT PARTNUM,price,price * 1.1 FROM parts where warehouse = 3

SELECT * FROM parts WHERE (warehouse = 1 or warehouse = 2) AND class in ('HW','AP')AND(PRICE>200


AND price < 500);

Answer: 2 rows returned

What will be the output of the SQL command?

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.

answer: SELECT COUNT(*) FROM parts WHERE warehouse = 3;

Which of the following will erase all records in the departments table

Answer: TRUNCATE TABLE departments


INSERT, DELETE, UPDATE are ________________ commands

answer: DML

Which of the following DOES NOT describes the state of the data after the commit command

ANswer: NONE OF THE CHOICES

SELECT * FROM employees WHERE department = 60 FOR UPDATE


ANswer: Locks the rows in the employees table with department id is 60

A cartesian product is formed when

Answer: ALL OF THE CHOICES

Select employee_id, hire_date, department_name FROM employees departments

ANswer: The SQL command will prduce a correct output

Nathaniel had accidentally deleted all the records in the newly updated oracle database using the
DELETE SQL command.

Answer: RUN THE ROLLBACK COMMAND


A join between two tables that returns the results of the INNER join as well as the_______________
rows from the left (or right) table is called a left (or right) OUTER join.

Answer: Unmatched

SQL command to create a marker in the current transaction

Answer: SAVEPOINT

The insert statement can add multiple rows.

ANswer: FALSE

INSERT INTO table_name (column1,column2,colum3,....)

VALUES (value1,value2,value3,....)

WHERE Condition.

Answer: This will produce an error.

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: FULL OUTER JOIN


A Database Administrator can create and remove users and tables.

Answer: the statement is correct

Multiple fields in not Allowed in a foreign key.

Answer: FALSE
A_______________ consists of a collection of DML statements that form a logical unit of work.

ANswer: Transaction
INDEX is an example of _____________________ privilege.

Answer: Object
A FOREIGN KEY IS A FIELD IN ONE TABLE THAT REFERS TO THE PRIMARY KEY IN ANOTHER TABLE.

ANSWER: TRUE

GRANT select

ON user1

TO departments;

ANswer: THE SQL COMMAND IS INCORRECT


GRANT is a _____________________ command.

ANSWER: DCL

Which of the following command will delete all records in the table employees.

ANswer: DELETE FROM employees

employee id :250

name : aldrin rich

ANSWER: INSERT INTO EMPLOYEES(employee_id,first_name,last_name,hire_date,job_id,salary


manager_id,department_id) VALUES(250,'aldrin','rich',TO_DATE('Jul 1,2017','MON
DD,YYYY'),'ACCOUNTANT',10000,103,60)

Display all the employee id names of employees, job id, hiring_date

ANswer: SELECT A,first_name,A.last_name,A.job_id,B,department_name,A.Salary,A.hire_date FROM


employees a JOIN departments B ON ( A.department_id = B.department_id) WHERE
B.department_name = 'IT'

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 salary = salary + 1200 where TO_CHAR(sysdate,'YYYY') -


TO_CHAR(hire_date,'YYYY') >= 10

Diana lorentz was transferred to administration department

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?
-CREATE matt ACCESS 1234
What are the 2 types of security being applied to a database
GRANT & REVOKE
Employee id : 200
Name : Mr. Gary Park
Date hired : July 1, 2017
Position :IT Programmer
Salary : 10000
Department of assignment : 60
Reporting to manager : 103
-INSERT INTO employees
(employee_id,first_name,last_name,hire_date,job_id,salary,manager_id,department_id)
VALUES (200,'Gary','Park',TO_DATE('Jul 1, 2017', 'MON DD, YYYY'), 'IT_PROG', 10000, 103,
60)
Which of the following is NOT a Data Manipulation Language?
-SELECT

SQL stands for Structured Query Language


Which of the 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
PROG-111A-LAB
AMALEAKS.BLOGSPOT.COM

Started on Thursday, 28 December 2017, 1:20 PM


State Finished
Completed on Thursday, 28 December 2017, 1:39 PM
Time taken 19 mins 41 secs
Grade 8.00 out of 10.00 (80%)
Question 1
Complete
Question 2
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Refer to the revision history below and decide whether the statement is TRUE or
FALSE.

True or False: Major revisions on progress, budget and risk management were
conducted in the second version of the document.
Answer: true
Question 3
Complete
Mark 0.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 problems in Materials, Measurement,
Method, People, Equipment or Environment.
Most of the programmers are not informed of the progress or status of the
project. This is a Answer people problem.
When the program was written, some team mates are
talking too loud and distracted the others. This cause is
categorized under _________________.
Some of the programmers were not present duringrequirements gathering, this
cause is classified as a
_________________ problem.
Question 4
Complete
Mark 1.00 out of 1.00

Flag question
Question text
The quality of a product is the responsibility of ____________________ in the
workplace.
Select one:
a. HR staff
b. IT staff
c. Everyone
d. Admin staff
Question 5
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: If you want to inform every one of events, memos and
other announcements, use the bulletin board.
true
Answer:
Question 6
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Naming conventions are records of system activities arranged in
chronological order for documentary purposes.
Answer: false
Question 7
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Which one of the following is a characteristic of mentoring?
Select one:
a. The focus is on inspiring respect for professional skills.
b. The focus is on utilizing existing competencies.
c. The focus is on technical or professional development.
d. The focus is on realizing trainee’s potential skills.
Question 8
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: It is fine to use strong or shocking colors for PowerPoint
presentation slides.
Answer: false
Question 9
Complete
Mark 1.00 out of 1.00

Flag question
Question text
It is a means of facilitating relationships which also serves as a way for parties to
consider what decisions or course of action they must make.
Select one:
a. Technical
b. Interpersonal
c. Boundaries
d. Feedback
e. Active listening
f. Communication
g. Interpretation
h. Channel
i. Negotiation
j. Empathy
Question 10
Complete
Mark 0.00 out of 1.00

Flag question
Question text
True or False: Foreign co-workers having conversation issues with everyone in the
office are better left off on their own.
false
Answer:
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Which one of the following DO NOT resolve diversity in the workplace?
Select one:
a. Creating a sense of equality by encouraging employees to voice out their
opinions.
b. Conducting regular trainings to update company policies.
c. Involving all employees in the formulation and execution of company
programs.
d. Rewarding only the skilled employees while scolding the other employees
who perform poorly.
Question 2
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Through feedback, programmers can learn if the system or program
has all the functions and features defined by the clients.
Answer: true
Question 3
Complete
Mark 0.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 problems in Materials, Measurement,
Method, People, Equipment or Environment.

Due to a tight deadline, the programmers decided to write the code immediately
without a plan. This cause is classified under Answer measurement .
When the program was written, some team mates are
talking too loud and distracted the others. This cause is
categorized under _________________.
Some of the programmers were not present duringrequirements gathering, this
cause is classified as a
_________________ problem.
Question 4
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: All team members must be doing their parts diligently for the
success of the team’s efforts.
Answer: true
Question 5
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: You can send the message in whatever format you like, since the
receiver can just try to interpret and understand the message in any way.
Answer: false
Question 6
Complete
Mark 1.00 out of 1.00

Flag question
Question text
This group of people is knowledgeable in software applications:
Select one:
a. Design engineer, development engineer, engineer, Quality Assurance
Specialist, Tester
b. Analyst, engineer, data modeler, business analyst, computer engineer
c. Administrator, analyst, test engineer, tester
d. Designer or Engineer, Programmer or Analyst
Question 7
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Which among the following statements is TRUE?
Select one:
a. Encoding refers to the method of conveying the message, such as speaking,
writing or gesturing.
b. The source is the information or subject matter of communication.
c. Feedback can be a useful reference when planning for communications in
the future.
d. Encoding is the process by which the receiver interprets and understands
the message.

Question 1
Answer saved
Marked out of 1.00

Flag question
Question text
This practice is a form of self-evaluation, where you think about what you did and
learn what you can from it. It motivates you to do better next time you are faced
with the same situation.
Select one:
a. Quality Control
b. Performance Appraisal
c. Reflective Behavior
d. Safety Programs
Question 2
Answer saved
Marked out of 1.00

Flag question
Question text
True or False: In identifying the problem, it should be specific and not broad or
vague.
true
Answer:
Question 3
Answer saved
Marked out of 1.00
Flag question
Question text
True or False: Presentations must be interesting, lively and engaging.
Answer: true
Question 4
Answer saved
Marked out of 1.00

Flag question
Question text
It is a meeting where you receive and learn information and training on a specific
subject.
Select one:
a. Exhibit
b. Business meeting
c. Seminar
d. Meet and greet
Question 5
Answer saved
Marked out of 1.00

Flag question
Question text
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.
false
Answer:
Question 6
Answer saved
Marked out of 1.00

Flag question
Question text
True or False: Taking home of a little bit of office supplies will surely be ignored
and won’t do much harm to the company.
Answer: false
Question 7
Answer saved
Marked out of 1.00

Flag question
Question text
Referring to the figure below, determine if the statement is TRUE or FALSE.

The file for the second version of risk management is properly named.

Answer: false
Question 8
Answer saved
Marked out of 1.00

Flag question
Question text
The following are all safety procedures that may be observed by a company,
EXCEPT for:
Select one:
a. Conducting earthquake drills
b. Placing fire extinguishers within the workplace
c. Having a first aid kit at hand
d. Using faulty cable wiring all over the place
Question 9
Answer saved
Marked out of 1.00

Flag question
Question text
Effective monitoring can be done through the following, EXCEPT:
Select one:
a. Conducting investigations
b. Carrying out spot checks
c. Collecting office records
d. Completing safety inspections
Question 10
Answer saved
Marked out of 1.00

Flag question
Question text
Which one of the following practices will result to a proper presentation?
Select one:
a. Using slides with strong shocking background colors
b. Using font styles that are readable
c. Using pictures or images that are of no relevance to the presentation
d. Using font styles that are readable and Using pictures or images that are of
no relevance to the presentation
True or False: Foreign co-workers having conversation issues with
everyone in the office are better left off on their own.
A: False

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

True or False: Understanding everyone’s interest is the second step in the


problem solving process. This is when you choose the optimal solution.
Answer: false

These kind of words or terms are often discouraged to be used during a


presentation, especially if the audience is not that familiar with
programming terms.
A: technical words

Referring to the figure below, determine if the statement is TRUE or


FALSE.

The first version of the risk management file should be named Risk
Management V01.
A: true

It is the ability to understand another person’s point of view and opinions.


Select one:
a. Negotiation
b. Communication
c. Technical
d. Interpretation
e. Feedback
f. Active listening
g. Interpersonal
h. Empathy
i. Boundaries
j. Channel
True or False: A team refers only to a group of people who work in the
same workplace and who see each other on a regular basis.
Answer: true
Handwritten- is considered a personal type of written communication and it includes
postcards and written letters.

True or False: Team building activities are important to further improve


team interaction and cooperation.
Answer: true
Question 3
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Stick only to technical terms for your presentation. There is
no need to give any simple explanation when you use technical terms.
Answer: false

Which one of the following is a characteristic of mentoring?


Select one:
a. The focus is on technical or professional development.
b. The focus is on utilizing existing competencies.
c. The focus is on inspiring respect for professional skills.
d. The focus is on realizing trainee’s potential skills.

Refer to the revision history below and decide whether the statement is
TRUE or FALSE.
True or False: Major revisions on progress, budget and risk management
were conducted in the second version of the document.
Answer: true
Analyze the diagram below to answer. Fill in the blanks with the correct
answer or categorize the causes if they are considered problems in
Materials, Measurement, Method, People, Equipment or Environment.

Most of the programmers are not informed of the progress or status of the
methods
project. This is a Answer problem.

It is a means of facilitating relationships which also serves as a way for


parties to consider what decisions or course of action they must make.
Select one:
a. Interpretation
b. Interpersonal
c. Technical
d. Empathy
e. Active listening
f. Channel
g. Negotiation
h. Communication
i. Feedback
j. Boundaries

True or False: After finding out what the problem is, it is not time to identify
the fundamental cause of the problem.
A:
Who among the following can give feedback to an employee?
Select one:
a. All of the choices
b. Teammates
c. Colleagues
d. None of the choices
e. Superiors
The following are all part of the communication process, EXCEPT for one:
Select one:
a. Feedback
b. Source
c. Printing
d. Decoding

The quality of a product is the responsibility of ____________________ in


the workplace.
Select one:
a. IT staff
b. HR staff
c. Everyone
d. Admin staff
Question 2
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 problems in
Materials, Measurement, Method, People, Equipment or Environment.

One programmer, who is just a recent graduate, was assigned to do a big


task. His colleagues are not aware that he doesn’t have the skills required.
This falls under Answer people .
When the program was written, some team mates are
talking too loud and distracted the others. This cause is
categorized under _________________.
Some of the programmers were not present duringrequirements gathering,
this cause is classified as a
_________________ problem.

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 problems in
Materials, Measurement, Method, People, Equipment or Environment.

Equipment
The problem identified in the diagram is a buggy java Answer .

Question 4
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Which among the following statements is TRUE?
Select one:
a. The source is the information or subject matter of communication.
b. Encoding refers to the method of conveying the message, such as
speaking, writing or gesturing.
c. Feedback can be a useful reference when planning for
communications in the future.
d. Encoding is the process by which the receiver interprets and
understands the message.
Question 5
Complete
Flag question
Question text
This Internet online resource allows the user to interact either as a learner
or instructor.
Select one:
Answer: udemy
Question 6
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: In identifying the problem, it should be specific and not broad
or vague.
Answer: true
Question 7
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Expertise in using the Internet and Internet-based services, handling
computer hardware, computer operation and maintenance, and
troubleshooting computer systems are some examples of
____________________ skills.
Select one:
a. Technical
b. Soft
c. Business
d. All of the choices
Question 8
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Naming conventions are records of system activities
arranged in chronological order for documentary purposes.
Answer: false
Question 9
Complete
Mark 1.00 out of 1.00

Flag question
Question text
The following are all safety procedures that may be observed by a
company, EXCEPT for:
Select one:
a. Placing fire extinguishers within the workplace
b. Having a first aid kit at hand
c. Conducting earthquake drills
d. Using faulty cable wiring all over the place
Question 10
Complete
Question 2
Complete
Mark 1.00 out of 1.00

Flag question
Question text
This refers to how people make sense of, understand or perceive something.
Select one:
a. Boundaries
b. Technical
c. Communication
d. Interpretation
e. Channel
f. Active listening
g. Empathy
h. Interpersonal
i. Negotiation
j. Feedback
Question 3
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Expertise in using the Internet and Internet-based services, handling computer
hardware, computer operation and maintenance, and troubleshooting computer
systems are some examples of ____________________ skills.
Select one:
a. All of the choices
b. Soft
c. Business
d. Technical
Question 4
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Employees should be encouraged to take on career paths that not
only develop their skills, but also improve their performance in the work that they
do.
Answer: true
Question 5
Complete
Mark 1.00 out of 1.00

Flag question
Question text
This group of people is knowledgeable in software applications:
Select one:
a. Design engineer, development engineer, engineer, Quality Assurance
Specialist, Tester
b. Analyst, engineer, data modeler, business analyst, computer engineer
c. Administrator, analyst, test engineer, tester
d. Designer or Engineer, Programmer or Analyst
Question 6
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Which one of the following is a characteristic of mentoring?
Select one:
a. The focus is on realizing trainee’s potential skills.
b. The focus is on utilizing existing competencies.
c. The focus is on inspiring respect for professional skills.
d. The focus is on technical or professional development.
Question 7
Complete
Mark 1.00 out of 1.00

Flag question
Question text
It is a meeting where you receive and learn information and training on a specific
subject.
Select one:
a. Meet and greet
b. Exhibit
c. Seminar
d. Business meeting
Question 8
Complete
Mark 1.00 out of 1.00

Flag question
Question text
The following are all safety procedures that may be observed by a company,
EXCEPT for:
Select one:
a. Having a first aid kit at hand
b. Using faulty cable wiring all over the place
c. Conducting earthquake drills
d. Placing fire extinguishers within the workplace
Question 9
Complete
Mark 1.00 out of 1.00

Flag question
Question text
This refers to face-to-face communication between two or more people.
Select one:
a. Negotiation
b. Interpretation
c. Feedback
d. Active listening
e. Technical
f. Communication
g. Empathy
h. Interpersonal
i. Channel
j. Boundaries
Question 10
Complete
Mark 1.00 out of 1.00
Flag question
Question text
True or False: Evaluating the options require determining the advantages and
disadvantages of each option.

true
Answer:

Started on Friday, 5 January 2018, 6:50 PM


State Finished
Completed on Friday, 5 January 2018, 6:58 PM
Time taken 8 mins 26 secs
Grade 10.00 out of 10.00 (100%)
Question 1
Complete
Mark 1.00 out of 1.00

Flag question
Question text
It is a means of facilitating relationships which also serves as a way for parties to
consider what decisions or course of action they must make.
Select one:
a. Communication
b. Technical
c. Empathy
d. Boundaries
e. Active listening
f. Negotiation
g. Interpersonal
h. Interpretation
i. Channel
j. Feedback
Question 2
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: After finding out what the problem is, it is not time to identify the
fundamental cause of the problem.
Answer: true
Question 3
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: In naming files, provide simple and short names that could easily be
understood by everyone.
Answer: true
Question 4
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Referring to the figure below, determine if the statement is TRUE or FALSE.

The final copy of the project charter is properly named.


Answer: false
Question 5
Complete
Mark 1.00 out of 1.00

Flag question
Question text
____________________ is a formal meeting where people are gathered to
discuss topics that revolve around their same interests.
Select one:
a. Concert
b. Seminar
c. Workshop
d. Conference
Question 6
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Answer value covers quality, service and delivery of the goods or services from
the vendor to the client.
Question 7
Complete
Mark 1.00 out of 1.00
Flag question
Question text
In the workplace, ______________ is all about the level of work performance
required in completing a task.
Select one:
a. Standard
b. Feedback
c. Values
d. Goal
Question 8
Complete
Mark 1.00 out of 1.00

Flag question
Question text
This practice is a form of self-evaluation, where you think about what you did and
learn what you can from it. It motivates you to do better next time you are faced
with the same situation.
Select one:
a. Reflective Behavior
b. Safety Programs
c. Quality Control
d. Performance Appraisal
Question 9
Complete
Mark 1.00 out of 1.00
Flag question
Question text
True or False: Memos, also known as memorandum, are distributed for people
working in the same organization or company.
Answer: true
Question 10
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Always use readable fonts in presentations.
true
Answer:

Question 8
Complete
Mark 1.00 out of 1.00

Flag question
Question text
These kind of words or terms are often discouraged to be used during a
presentation, especially if the audience is not that familiar with programming
terms.
Select one:
a. Channel
b. Interpersonal
c. Negotiation
d. Interpretation
e. Technical
f. Feedback
g. Active listening
h. Communication
i. Boundaries
handw
j. Empathy
Question 9
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Some of the famous computer professional networks are:
Select one:
a. Philippine Computer Society
b. Computer Society of the Philippines
c. Philippine Computer Society and VIP International Unite
d. Computer Society of the Philippines and Philippine Computer Society
e. Computer Society of the Philippines and VIP International Unite
f. VIP International Unite
g. All of the choices
h. None of the choices
Question 10
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Answer is considered a personal type of written communication and it includes
postcards and written letters.
True or False: Communicating with internal and external clients is important for
programmers.
Answer: true

This is one way to measure success rate not onlyyour communication, but also to
evaluate your work.
Select one:
a. Feedback
b. Communication
c. Technical
d. Interpretation
e. Empathy
f. Channel
g. Active listening
h. Boundaries
i. Negotiation
j. Interpersonal
Question 2
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Ice breaker activities can be related or not to the presentation.
Answer: true

____________________ is a formal meeting where people are gathered to


discuss topics that revolve around their same interests.
Select one:
a. Seminar
b. Conference
c. Workshop
d. Concert
Question 2
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: According to Hicks, the first step in an effective problem solving
process is clearly defining the problem.
Answer: true
Question 3
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Stick only to technical terms for your presentation. There is no need
to give any simple explanation when you use technical terms.
Answer: false
Question 4
Complete
Mark 1.00 out of 1.00

Flag question
Question text
This is the method by which a message is conveyed, such as speaking, writing or
gesturing.
Select one:
a. Negotiation
b. Interpersonal
c. Interpretation
d. Technical
e. Empathy
f. Boundaries
g. Communication
h. Channel
i. Active listening
j. Feedback
Question 5
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 problems in Materials, Measurement,
Method, People, Equipment or Environment.
Few programmers are complaining about slow Internet connection and this
affects their work. This cause is categorized in Answer equipment .
When the program was written, some team mates are
talking too loud and distracted the others. This cause is
categorized under _________________.
Some of the programmers were not present duringrequirements gathering, this
cause is classified as a
_________________ problem.
Question 6
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Expertise in using the Internet and Internet-based services, handling computer
hardware, computer operation and maintenance, and troubleshooting computer
systems are some examples of ____________________ skills.
Select one:
a. Technical
b. Business
c. All of the choices
d. Soft
Question 7
Complete
Mark 1.00 out of 1.00

Flag question
Question text
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.
Answer: false
Question 8
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Referring to the figure below, determine if the statement is TRUE or FALSE.
The final copy of the project charter is properly named.
Answer: false
Question 9
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Answer informa oral communication may be done in a workplace and it takes
different forms such as telephone conversations, face-to-face conversations and
brainstorming.
Question 10
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Nowadays, teammates have no need for communications
technology since they can just interact face to face.
false
Answer:

Every country, whether industrialized or still developing, must actively cooperate


in enforcing environmental measures.
Select one:
a. True
b. False
Question 3
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Decide whether it is a communication instrument or purpose.
A printed progress report to be submitted to the adviser.
Answer: instrument
Question 4
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product
quality model and write the letter that corresponds to your answer.
Confidentiality
Select one:
a. Maintainability
b. Reliability
c. Compatibility
d. Usability
e. Security
f. Portability
g. Performance Efficiency
h. Functional Suitability
Question 5
Complete
Mark 1.00 out of 1.00

Flag question
Question text
In the 5S method, this stage refers to arranging items in a way that they are easy
to find and pick up.
Select one:
a. Shitsuke
b. Seiton
c. Seiketsu
d. Seiri
Question 6
Complete
Mark 1.00 out of 1.00

Flag question
Question text
____________________ is when you conduct regular audits and inspections to
evaluate your work performance.
Select one:
a. Seiso
b. Seiketsu
c. Shitsuke
d. Seiri
Question 7
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product
quality model and write the letter that corresponds to your answer.
Accessibility
Select one:
a. Usability
b. Compatibility
c. Maintainability
d. Security
e. Reliability
f. Portability
g. Performance Efficiency
h. Functional Suitability
Question 8
Complete
Mark 1.00 out of 1.00

Flag question
Question text
The 5s method is based on the ____________________.
Select one:
a. Takoyaki Production System
b. Tonari Production System
c. Tatsumaki Production System
d. Toyota Production Sytem
Question 9
Complete
Mark 1.00 out of 1.00

Flag question
Question text
According to Humphrey, a quality plan starts with product introduction where the
product qualities and target market are identified.
Select one:
a. False
b. True

True or False: One of the ways to motivate teamwork in the workplace is to make
sure that maintenance is conducted and planned for system enhancement.
Answer: false
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.
Select one:
a. False

A: ergonomic
factors are concerned whether employees are comfortable, stressed or possibly
be injured due to the arrangement of things in the workplace.
True or False: Reviewing the related literature includes review of concepts,
theories and previous research findings.
Answer: true
Enforcing environmental policies is one of the major causes of job loss and
unemployment.
Select one:
a. True
b. False
True or False: To gather data, you can either conduct an interview, survey,
observation, mail questionnaire, coding and tabulation.
Answer: false
Risks, which could harm the product’s quality, must be determined and managed
well along with the actions to be taken.
Select one:
a. False
b. True
Collective bargaining refers to the bargain sale of previously used office
equipment.
Select one:
a. False
b. True
Identify whether the following task should be listed as a milestone or be included
in the Gantt chart.
The user interface design and layout has been completed.
Answer: milestone
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product
quality model and write the letter that corresponds to your answer.
Installability
Select one:
a. Maintainability
b. Performance Efficiency
c. Reliability
d. Portability
e. Functional Suitability
f. Security
g. Usability
h. Compatibility
Question 3
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product
quality model and write the letter that corresponds to your answer.
Interoperability
Select one:
a. Functional Suitability
b. Compatibility
c. Maintainability
d. Security
e. Reliability
f. Portability
g. Usability
h. Performance Efficiency
Question 4
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product
quality model and write the letter that corresponds to your answer.
Maturity
Select one:
a. Compatibility
b. Portability
c. Reliability
d. Performance Efficiency
e. Security
f. Functional Suitability
g. Usability
h. Maintainability
Question 5
Complete

Flag question
Question text
The Montreal protocol is designed to help protect the ozone layer.
Select one:
a. True
b. False

A: briefing
notes are prepared with issues or topics that decision makers should be informed
about.
Qualitative research aims to gain insights on opinions, behaviors and attitude
through Answer: UNSTRUCTURED techniques.
Question 10
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product
quality model and write the letter that corresponds to your answer.
Testability
Select one:
a. Maintainability
Conceptual research is usually carried out by and thinkers to come up with new
concepts. Answer: philosopher
True or False: Most of the readers will skim the conclusion first to get an idea of
what the paper is all about.
Answer: false
Question 13
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Quality improvement process is conducted to avoid errors and faults from
recurring in the future.
Select one:
a. True
b. False
True or False: There are five main elements of a written report – topic, style,
structure, facts and contents.
Answer: false
Presidential Decree No. 856 is an international treaty that imposes limitations on
the greenhouse gas emissions of several countries.
Select one:
a. True
b. False
True or False: Dates in file names should be written in YYYY-MM-DD format.
Asnwer: true
Companies can freely make their own set of environmental policies without
consulting the workers’ union, or any local or national laws about it.
Select one:
a. True
b. False
Question 20
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 ‘Grandparents
Answer: external

Started on Saturday, 6 January 2018, 9:51 PM


State Finished
Completed on Saturday, 6 January 2018, 10:13 PM
Time taken 21 mins 12 secs
Grade 18.00 out of 20.00 (90%)
Question 1
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Referring to the figure below, determine if the statement is TRUE or FALSE.
The minutes dated back December 3, 2016 is properly named.
Answer: false
Question 2
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product
quality model and write the letter that corresponds to your answer.
Recoverability
Select one:
a. Portability
b. Security
c. Usability
d. Compatibility
e. Maintainability
f. Performance Efficiency
g. Functional Suitability
h. Reliability
Question 3
Complete
Mark 1.00 out of 1.00

Flag question
Question text
The 5S Method is a Japanese perspective technique developed by Eiichiro Oda.
Select one:
a. False
b. True
Question 4
Complete
Mark 1.00 out of 1.00

Flag question
Question text
The protection of the natural resources is possible through the collective efforts
of each group in the society.
Select one:
a. False
b. True
Question 5
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Referring to the figure below, determine if the statement is TRUE or FALSE.
The minutes of the meeting for December 1, 2016 is appropriately named.
Answer: true
Question 6
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: A milestone refers to the scope and out of scope of a project. It is
defined so that the project is implemented on time and on budget.
Answer: false
Question 7
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Montreal protocol protects the ozone layer by ____________________.
Select one:
a. phasing out harmful substances
b. reducing greenhouse gas emissions
c. banning the use of perfumes
d. using locally produced products
Question 8
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Email, SMS and Gantt chart are samples of communication
frequency that you could utilize.
Answer: false
Question 9
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 be notified that the project proposal has been approved.
inform
Answer:
Question 10
Complete
Mark 1.00 out of 1.00

Flag question
Question text
This body was tasked to implement the provisions of P.D. No. 856.
Select one:
a. Department of Wealth
b. Department of Health
c. Department of Sanitation
d. Department of Cleanliness
Question 11
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Organizational aims are different from the mission statement; they
refer to the results an organization is aspiring for.
Answer: true
Question 12
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Refer to the revision history below and decide whether the statement is TRUE or
FALSE.
There were only two staff accountable and responsible for the overall changes of
the document.
Answer: true
Question 13
Complete
Mark 1.00 out of 1.00

Flag question
Question text
During solution implementation, the problem solvers should be Answer:
PROACTIVE to assure that the problem is being addressed properly.
Question 14
Complete
Mark 0.00 out of 1.00

Flag question
Question text
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.
“XYZ is so cool! I tried to install it in my old computer and it still runs smoothly.
Given that the computer’s video card is a bit faulty.“
Select one:
a. Performance Efficiency
b. Reliability
c. Usability
d. Security
e. Maintainability
f. Portability
g. Compatibility
h. Functional Stability
Question 15
Complete
Mark 1.00 out of 1.00

Flag question
Question text
By conducting a research, you can help the society by contributing to the body
of Answer know le.
Question 16
Complete
Mark 0.00 out of 1.00

Flag question
Question text
Environmental issues have no relation to the workplace.
Select one:
b. False
Question 17
Complete
Mark 1.00 out of 1.00

Flag question
Question text
In a nutshell, a research is conducted by identifying a problem, identifies
hypoth
formulating a Answer , gathering and analyzing data, presenting the
findings, and drawing a conclusion.
Question 18
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Business industries will not be affected by the environmental crisis.
Select one:
a. True
b. False
Question 19
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Usually, the summary of the report is the first thing that’s being
read.
Answer: true
Question 20
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: To present the results and findings of a research, you can use a bar
graph, line graph or pie chart.
Answer: true
True or False: Seminar lectures, conference talks, presentations of reports
and group meetings are samples of informal oral communication conducted
in a workplace.
Answer: False
These are developed by industries as a guide for establishments and
business enterprises to conduct their operations in a way that prevents or
reduces environmental harm.
Answer: Environmental codes of practice
True or False: There are different types of communication and written
communication is one which can be used in a workplace.
Answer: true
True or False: There are different types of communication and written
communication is one which can be used in a workplace.
Answer: false
Quantitative research, compared to qualitative research, uses
measurable Answer data to uncover patterns.
Protecting the environment and natural resources also means protecting
stable employment.
Select one:
a. True
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 assure that the project schedule is followed strictly.
Answer: responsible
____________________ is setting the best practices in the workplace as
your work standards.
Select one:
a. Seiso
b. Seiri
c. Shitsuke
d. Seiketsu
Humans rely on natural resources for survival.
Select one:
a. True
b. False
Question text
Environmental policies won’t really make a difference, businesses will still
strive and be successful without giving a care for the environment.
Select one:
a. True
b. False
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
h. Functional Suitability
ISO/IEC 25010:2011’s SQuaRE stands for System Quality Assurance and
Requirements Evaluation. This standard is used in evaluating the quality of
software.
Select one:
a. False
b. True
True or False: You can emphasize the key points in your report by stating
them in the references and conclusion.
Answer: false
Question 19
Complete
Mark 1.00 out of 1.00
Question text
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.
“One good thing I find with XYZ as when my laptop shuts down
accidentally, my game score and status can still be recovered. No need to
repeat a level.”
Select one:
b. Reliability
True or False: In an effective written communication, structure refers to the
facts presented in the paper.
Answer: false
The Kyoto protocol requires the participation of both industrialized and developing
nations in reducing environmental harm.
Select one:
b. False
Question 2
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Kyoto protocol addresses environmental issues through the campaign of
____________________.
Select one:
a. banning the use of pesticides
b. using imported products
c. reducing greenhouse gas emissions
d. phasing out harmful substances
Question 3
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product
quality model and write the letter that corresponds to your answer.
Reusability
Select one:
a. Reliability
b. Portability
c. Usability
d. Functional Suitability
e. Compatibility
f. Maintainability
g. Security
h. Performance Efficiency
Question 4
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product
quality model and write the letter that corresponds to your answer.
Operability
Select one:
a. Performance Efficiency
b. Security
c. Usability
d. Compatibility
e. Portability
f. Reliability
g. Maintainability
h. Functional Suitability
Question 5
Complete
Mark 0.00 out of 1.00

Flag question
Question text
Referring to the figure below, determine if the statement is TRUE or FALSE.
The project objectives file follows the standards of naming convention.
Answer: FALSE
Question 6
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Sometimes, people conduct research to earn Answer :respect from others.
Question 7
Complete
Mark 1.00 out of 1.00

Flag question
Question text
One good practice is to use water filtration system instead of buying bottled water
every time.
Select one:
a. False
b. True
Question 8
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Researches are primarily conducted to solve a problem and to
contribute the body of knowledge in a particular field.
true
Answer:
Question 9
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Protocols are set of standards rules which describes how something
should be done and different companies have different protocols as well.
Answer: true
Question 10
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Increase work productivity by arranging items in such a way that they are easy to
find and pick up.
Select one:
a. False
b. True
Question 11
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product
quality model and write the letter that corresponds to your answer.
Time behavior
Select one:
a. Portability
b. Reliability
c. Performance Efficiency
d. Maintainability
e. Compatibility
f. Security
g. Usability
h. Functional Suitability
Question 12
Complete
Mark 1.00 out of 1.00

Flag question
Question text

stability
Answer refers to the supplier’s / vendor’s capacity to conduct
long term contractual obligations.
Question 13
Complete
Mark 0.00 out of 1.00

Flag question
Question text
True or False: Statutory requirements are identified by the vendors or suppliers and
they include value, stability, diversity and capacity.
Answer: FALSE
Question 14
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Big business companies are the only ones responsible for enforcing environmental
policies since they can afford alternative cleaner technology.
Select one:
a. False
b. True
Question 15
Complete
Mark 1.00 out of 1.00

Flag question
Question text
theory
Fundamental research covers generalization and formulation of Answer .
Question 16
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Research findings are not applicable in developing government
policies. Researchers should be purely academic.
Answer: false
Question 17
Complete
Mark 1.00 out of 1.00
Flag question
Question text
ISO 9001 international standard for quality’s core processes are divided into two
(2) – product delivery process and support process.
Select one:
a. False
b. True
Question 18
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Answer applied research is concerned in solving a problem that the private
organization or the society is facing.
Question 19
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Standards are based on untested concepts and theories that the company has yet to
encounter.
Select one:
a. True
b. False
Question 20
Complete
Mark 1.00 out of 1.00

Flag question
Question text
If a researcher is conducting a Answer descrip research, he / she has no control over
variables.
____________________ is a means by which the employees, speaking
through the unions they belong to, can come to an agreement with their
employers about employment, environmental and other work-related
concerns.
ANSWER; Collective bargaining

unstructured
notes are prepared with issues or topics that decision makers should be informed
about.

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 – like additional characters and skills.”
Select one:
g. Maintainability
Research can be used to accurately represent the Answer: characteristics
of a particular individual or group, an event or a situation.
The cost / benefit analysis document is appropriately named.
Answer: false

Grade 9.00 out of 10.00 (90%)


Question 1
Complete
Mark 1.00 out of 1.00

Flag question
Question text
This type of programming language uses series of 0s and 1s to represent data.
Select one:
a. Machine language
b. High-level language
c. Advanced language
d. Assembly language
Question 2
Complete
Mark 1.00 out of 1.00

Flag question
Question text
PASCAL is an example of a low-level language.
Select one:
a. False
b. True
Question 3
Complete
Mark 1.00 out of 1.00

Flag question
Question text
C# has features that are directly based on the Short Code.
Select one:
a. False
b. True
Question 4
1.00

Flag question
Question text
Arlan right clicked on his taskbar and unchecked the Lock Taskbar. What will
happen if he drags his taskbar to the right side of his screen?
Select one:
a. Start button will be located at the bottom right.
b. All of the choices
c. All icons will transfer to the right.
d. None of the choices.
e. Taskbar will display vertically at the right.
Question 5
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Answer charles is the father of computer.
Question 6
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Refer to the image below and write only the letter of the correct answer in the
space provided.

Something’s wrong with the serial port. Which port should I investigate?
Answer: c
Question 7
Complete
Mark 1.00 out of 1.00

Flag question
Question text
This refers to the process of using programming languages to instruct the
computer to perform specific tasks.
Select one:
a. Programming
b. Troubleshooting
c. Scanning
d. Debugging
Question 8
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Using the Answer java language, you can write windowed applications, build
databases, as well as control handheld devices.
Question 9
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Bridget’s mouse is not responding and she has to close her browser. Which of the
following is an alternative way using a keyboard to close an application?
Select one:
a. Alt + F4
b. Ctrl + C
c. Esc + 1
d. Shift + X
Question 10
Complete
Mark 1.00 out of 1.00

Flag question
Question text
COBOL is the programming language ideally used for
_________________________ purposes.
Select one:
a. Business
b. Artificial intelligence
c. Systematic
d. Internet

Who is the first computer programmer?


Select one:
a. Lady Lovelace Ada Augusta
b. Sir Wilhelm Maximilian Wundt
c. Lady Agatha Russell
d. Sir Konrad Zuse
Question 3
Complete
Mark 1.00 out of 1.00

Flag question
Question text
The earphones is an example of a _______________, while Internet Explorer is an
example of _______________.
Select one:
a. platform operating system
b. hardware, computer user
c. input device, output device
d. peripheral device, application program
Question 4
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Windows is to Personal Computer (PC) while Mac OSX is to Mac laptops and
computers.
Select one:
a. True
b. False
FORTRAN was the first ever “modern” computer language.
Select one:
a. True
b. False
An operating system has three major components – hardware, application
program or software and the user.
Select one:
a. False
b. True
Question 1
Complete
out of 1.00

Flag question
Question text
Maria has two printers – Printer Z and Printer A. She set Printer Z as the default
printer. What will happen the next time she prints a document?
Select one:

e. All of the choices.

Which of the following statements is TRUE?


Select one:
a. Natural language can be used in programming.
b. Today’s programming languages are all limited in scope and application.
c. A programming language may have its own area of specialization.
d. Poorly constructed coding statements are acceptable.
Question 3
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Refer to the image below and write only the letter of the correct answer in the
space provided.

The monitor suddenly turned black, which port should I check?


Answer: g
Question 4
Complete
Mark 1.00 out of 1.00

Flag question
Question text
If you are confused on what to do, press F2 on your keyboard and the Windows
Help feature will open.
Select one:
a. True
b. False
An operating system has three major components – hardware, application
program or software and the user.
Select one:
a. True
b. False

computer programs
are actually a set of computer instructions that are developed using a
programming language.
Ctrl + S is the shortcut key for Save while Ctrl + S + A is the shortcut key for Save
As.
Select one:
a. False
b. True
Image files can be opened using MS Paint, Notedpad and Windows Photo Viewer.
Select one:
a. False
b. True
The mouse suddenly stopped working. Which port should I check?
Answer: b
Since natural languages are vaguely structured, they cannot be used for
programming.
Select one:
a. False
b. True
C++, an extension of the C language, introduced object-oriented programming.
Select one:
a. True
b. False
I think I plugged the speakers wrong. The power is turned on but I can’t hear any
sound Which port should I check?
Answer: f
Which of the following is not a default margin options when setting up the page
for printing?
Select one:
a. Narrow
b. Wide
c. Normal
d. Regular
LISP and PROLOG are programming languages that are best used when dealing
with Artificial Intelligence.
Select one:
a. False
b. True
COBOL stands for Convenient Business Oriented Language.
Select one:
a. True
b. False

Question 1
Complete
Mark 1.00 out of 1.00
Question text
Observe the names of the following variables and routines and decide whether its
format is CORRECT or WRONG.
Student.StudentBirthday for a class property.
Select one:
a. Wrong
b. Correct
Question 2
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Answer short c was the first language implemented for BINAC.
Question 3
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Refer to the image below and write only the letter of the correct answer in the
space provided.
We were playing games locally and I got disconnected. I think something’s wrong
with this port.
Answer: e
Question 4
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Refer to the image below to answer the following question. What type of image is
shown?

Select one:
a. Program chart
b. Data flow
c. Control flow
d. Flow chart
Question 5
Complete
out of 1.00

Flag question
Question text
Answer: high-level language is a type of programming language that is composed
of symbols and words that follow some rules similar to that of a natural language.
Refer to the image below to answer the following question. What happens when
Limit is equal to 3?
Select one:
c. Program goes back to login page.
Question 7
Complete
Mark 1.00 out of 1.00
Flag question
Question text
The set of rules that must be strictly followed when using a programming
language is called Answer SYNTAX
Question 8
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Refer to the pseudocode below and answer the following question: What if the
computed BMI equals to 10, what will the program do?

Select one:
b. Print Underweight.
Question 9
Complete
Mark 1.00 out of 1.00

Flag question
Question text
A deleted file or folder found in the Recycle Bin can still be restored.
Select one:
b. True
Question 10
Complete
Flag question
Question text
.MPEG, .MP3 and .MOV are filename extensions for videos.
Select one:
b. False
Question 11
Complete
Mark 1.00 out of 1.00
lag question
Question text
Refer to the image below to answer the following question. What symbol is used
to begin and end the program?
b. Terminal
Question 12
Complete
Mark 1.00 out of 1.00
Question text
Refer to the image below and write only the letter of the correct answer in the
space provided.

My headset is working but the microphone is not. Which port should I check?
Answer: f
Question 13
Complete
Mark 1.00 out of 1.00

Flag question
Question text
You will find running application programs and process in the Task Manager.
Select one:
b. True
Question 14
Complete
Mark 1.00 out of 1.00
Question text
Ana is working on a new project and she was asking for the program’s purpose,
processes, algorithm, restrictions and some notes. According to the program
development life cycle, in which phase is Ana working on?
Select one:
b. Testing and Debugging
c. Analyze the Problem
Complete
Mark 1.00 out of 1.00
Question text
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?
Select one:
a. IV, I, V, III, II
Question 16
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Refer to the pseudocode below and answer the following question: If the
calculated BMI results to 26, what will the program do?

Select one:
a. display Normal
b. display Overweight
c. display Obese
d. display Underweight
Question 17
Complete
out of 1.00
Question text
Observe the names of the following variables and routines and decide whether its
format is CORRECT or WRONG.
PresentAdress for a column name in the table “Student”.
b. Wrong
Question 18
Complete
Mark 1.00 out of 1.00
Observe the names of the following variables and routines and decide whether its
format is CORRECT or WRONG.
Employees for a table name.
Select one:
a. Wrong
Question 19
Complete
Mark 1.00 out of 1.00
Question text
Refer to the image below to answer the following question. What process is
illustrated in the diagram?

Select one:
b. Social media login limit.
Question 20
Complete
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.
passingSCORE for a constant variable.
Select one:
a. Wrong
microso
C# was released by Answer .
Question 2
Complete
Mark 1.00 out of 1.00

Flag question
Question text
A Answer programis the code or language that allows a user to instruct a computer
to perform specific tasks.
Question 3
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Max is already writing the code for his project. In which phase of the PDLC is he
working on?
Select one:
a. Testing and Debugging
b. Analyze the Problem
c. Documentation
d. Coding and Execution
Question 4
Complete
out of 1.00

Flag question
Question text
Refer to the image below to answer the following question. John tries to log in for
the fourth time, what does he see on his screen?

Select one:
a. Social Media Page

Question 5
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Who is considered as a user (component of an operating system)?
Select one:
a. Students
b. All of the choices
c. Programmer
d. None of the choices
e. IT Staff
Question 6
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Programs written in high-level languages are translated into machine-readable
form using interpreters or compilers.
Select one:
a. False
b. True
Question 7
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Java is an example of
Select one:
a. Average level language
b. Low-level language
c. High-level language
d. Advanced language
Question 8
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Refer to the image below to answer the following question. What happens every
time the given username and password is incorrect?
Select one:
a. Limit is set to 0.
b. 1 is added to Limit.
c. 3 is set as the Limit.
d. Limit is set to 1.
Question 9
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Refer to the pseudocode below and answer the following question: The program
calculated for the BMI and it is equal to 50, what will the program do?

Select one:
a. Display Underweight.
b. Nothing, it is above 30.
c. Loop the program.
d. Print Obese.
Question 10
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Refer to the image below and write only the letter of the correct answer in the
space provided.

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
Question 11
Complete
Mark 1.00 out of 1.00

Flag question
Question text
He is known as the father of the Java programming language.
Select one:
a. Dennis Ritchie
b. Bjarne Stroustrup
c. J.W. Mauchly
d. James Gosling
Question 12
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Even when you close all running application programs, there are still process
running in the background.
Select one:
a. True
b. False
Question 13
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Jet is writing the pseudocode for his program. Which phase of program
development life cycle is he in?
Select one:
a. Documentation
b. Formalize the Solution
c. Design the Program
d. Test the Program
Question 14
Complete
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.
studentAge for a variable name.
Select one:
b. Correct
Question 15
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Refer to the image below to answer the following question. What type of
flowchart symbol contains the text “Limit >=3?”?

Select one:
a. Terminal
b. Decision
c. Flow lines
d. Connector
Question 16
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Jamie finished debugging her program. What is the next step she should do?
Select one:
a. Documentation
b. Design the Program
c. Test the Program
d. Formalize the Solution
Question 17
Complete
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. limitIsReached for a Boolean variable.
Select one:
a. Wrong
b. Correct
Question 18
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Over time, man’s efforts to find better ways to communicate with computers
resulted to the evolution of programming languages.
Select one:
a. True
b. False
Question 19
Complete
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.
CEILING_GRADE for a constant variable.
Select one:
a. Correct
Question 20
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Refer to the pseudocode below and answer the following question: What
happens after weight is given?

b. ask for height


Started on Thursday, 16 January 2020, 1:59 PM
State Finished
Completed on Thursday, 16 January 2020, 2:01 PM
Time taken 2 mins 5 secs
Grade 10.00 out of 10.00 (100%)
Question 1
Correct
Mark 1.00 out of 1.00

Flag question

Question text

The more you know the theories of computer science field, the better
programmer you become.

Select one:
True
False

Question 2
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Computer Programming is the study of computers and computational


systems.

Select one:
True
False

Question 3
Correct
Mark 1.00 out of 1.00
Flag question

Question text

Programming is instructing the computer by means of a programming


language to perform certain tasks for your desired output.

Select one:
True
False

Question 4
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Computer Programming is the scientific and practical approach to


computation and its applications.

Select one:
True
False

Question 5
Correct
Mark 1.00 out of 1.00

Flag question

Question text

_________ runs a set of instructions.


Select one:
a. CPU
b. RAM
Feedback

Your answer is correct.

Question 6
Correct
Mark 1.00 out of 1.00

Flag question

Question text

There is a valid expression in almost all programming languages.

Select one:
True
False

Question 7
Correct
Mark 1.00 out of 1.00

Flag question

Question text

This works as a temporary storage to help the CPU achieve the desired
output/outcome.

Select one:
a. CD
b. RAM
c. ROM
Feedback
Your answer is correct.

Question 8
Correct
Mark 1.00 out of 1.00

Flag question

Question text

The moment we write var X or var Y, a/an ________ is allocated in RAM


because unlike mathematical variables which exist mainly in our brains,
the variables of a program resides in an actual physical location.

Select one:
a. space
b. hollow
c. ordinal
d. numeral
Feedback

Your answer is correct.

Question 9
Correct
Mark 1.00 out of 1.00

Flag question

Question text

A programming language is a language which the computer


understands.

Select one:
True
False

Question 10
Correct
Mark 1.00 out of 1.00

Flag question

Question text

A program is a set of instructions loaded in the CPU that the CPU


executes to achieve an outcome.

Select one:
True
False

Started on Thursday, 16 January 2020, 2:01 PM


State Finished
Completed on Thursday, 16 January 2020, 2:03 PM
Time taken 2 mins 15 secs
Grade 10.00 out of 10.00 (100%)
Question 1
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Assembly language uses short ______________ codes for instructions and


allows the programmer to introduce names for blocks of memory that
hold data

Select one:
a. mnemonic
b. rhythm
c. duplicated
d. poetic
Feedback
Your answer is correct.

Question 2
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Such instructions can be executed directly when they are in the


computer manufacturer-specific numerical form known asAnswer
machine language
.

Question 3
Correct
Mark 1.00 out of 1.00

Flag question

Question text

This is one level above machine language.

Select one:
a. assembly language
b. VS
c. BASIC
d. BASIC.NET
Feedback

Your answer is correct.

Question 4
Correct
Mark 1.00 out of 1.00
Flag question

Question text

Machine and assembly languages are “low-level,” requiring a


programmer to manage explicitly all of a computer’sAnswer
idiosyncratic
features of data storage and operation.

Question 5
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Machine language
Answer instructions typically use some bits to represent
operations, such as addition, and some to represent operands, or
perhaps the location of the next instruction.

Question 6
Correct
Mark 1.00 out of 1.00

Flag question

Question text

machine langua
AAnswer consists of the numeric codes for the operations
that a particular computer can execute directly.

Question 7
Correct
Mark 1.00 out of 1.00
Flag question

Question text

Computer programming language, any of various languages for


expressing a set of detailed instructions for a digitalAnswer
computer
.

Question 8
Correct
Mark 1.00 out of 1.00

Flag question

Question text

codes
TheAnswer are strings of 0s and 1s, or binary digits (“bits”),
which are frequently converted both from and to hexadecimal (base 16)
for human viewing and modification.

Question 9
Correct
Mark 1.00 out of 1.00

Flag question

Question text

_______________ is difficult to read and write, since it does not resemble


conventional mathematical notation or human language, and its codes
vary from computer to computer.

Select one:
a. Notation
b. machine language
c. Social Network
d. BASIC
Feedback

Your answer is correct.

Question 10
Correct
Mark 1.00 out of 1.00

Flag question

Question text

After a simple substitution process when expressed in a


assembly language
correspondingAnswer .

Match the Microsoft Office terminologies with their descriptions and


functions.
Answer 1
Another name for a file created using Microsoft Word.
Document

You can force Word to end a paragraph and move to the next line by Answer 2
pressing the enter key. Hard Return

This is the software manufacturer's preset option for a particular command Answer 3
or function. Default

Answer 4
Special characters or symbols that are used to set off a paragraph.
Bullets

Answer 5
Pre-designed images that can be placed within a document.
Clip Art

The amount of space measured from the page margin that is applied to a Answer 6
paragraph or an area of a document. Indentation

Answer 7
This adds previously copied or cut text at the insertion point.
Paste

The amount of blank space, usually measured in inches or characters, Answer 8


above and below and to the right and left of the main body of a document. Margin
Answer 9
This is a style of typeface.
Font

The placement of a line of text in the center of the screen or page where
Answer 10
the left-most and right-most characters in the line are the same distance
Centering
from the left and right margins.
Feedback

Your answer is correct.

Match the Internet terminologies with their functions and descriptions.


Answer 1
This stands for mega.
M

The capacity of an electronic line, such as a


Answer 2
communications network or computer channel, to
bandwidth
transmit bits per second (bps).
This is a way of storing your favorite sites on the Answer 3
Internet. Bookmark

This is derives from the term for a barrier that prevents Answer 4
fires from spreading. Firewall

Answer 5
This stands for tera.
T

Answer 6
This stands for kilo.
K

This is an animation software used to develop interactive


graphics for Web sites as well as desktop presentations Answer 7
and games (Windows and Mac) by the company Flash
Macromedia.
This is a text-based computer conference over the
Answer 8
Internet between two or more people who must be online
Instant Messaging
at the same time.
Answer 9
This stands for giga.
G

This is a specification for transferring information


Answer 10
between a Web server and a CGI program, designed to
Common Gateway Interface script
receive and and return data.
Feedback

Your answer is correct.


Match the Internet terminologies with their descriptions and functions.
This a computer language, developed by Sun Microsystems, that lets you
Answer 1
encode applications, such as animated objects or computer programs, on
JAVA
the Internet.
Using file transfer protocol software to receive from upload) or send to
Answer 2
(download) files (text, pictures, spreadsheets, etc.) from one
FTP
computer/server to another.
The hypertext transfer protocol (http) that enables html documents to be Answer 3
read on the Internet. HTTP

The number or name of the computer from which you send and receive Answer 4
information on the Internet. IP Address

Text, images, graphics that, when clicked with a mouse (or activated by Answer 5
keystrokes) will connect the user to a new Web site. Hyperlink

A type of text code in Hypertext Markup Language which, when


Answer 6
embedded in a document, allows that document to be read and distributed
HTML
across the Internet.
A graphics formatting technique that causes an image to gradually appear Answer 7
on your screen instead of appearing all at once. Interlaced

Answer 8
A Web scripting language developed by Netscape.
Javascript

Answer 9
An e-mail list of e-mail addresses of people with common interests.
Listserv

A global network of thousands of computer networks linked by data lines Answer 10


and wireless systems. Internet

Feedback

Your answer is correct.


Match the terminologies with their descriptions and functions.
This is embedded within tags, so the author author can move
Answer 1
between HTML and PHP instead of using large amounts of
Hypertext Preprocessor
code.
A line in computer graphics designated by its end points (x-y or Answer 2
x-y-z coordinates). Vector

Format for compressing video with audio for playback from


Answer 3
storage media with low data transfer rates such as CDROMs or
MPEG-1
over the network at VHS quality.
A term that applies to programs/applets (macros and intelligent Answer 4
agents) used on the Internet. Web Bot

A three dimensional (3D) animation technology/format created Answer 5


by the Macromedia company. Shockwave

A device that connects your computer to the Internet, when you


Answer 6
are not connected via a LAN (local area network, such as at
Modem
work or on a campus.)
This is a specialized software, such as AltaVista and Yahoo, that
Answer 7
lets WWW browser users search for information on the Web by
Search Engine
using keywords, phrases, and boolean logic.
Format for compressing video with audio at broadcast
Answer 8
quality resolution for playback in higher data transfer rate
MPEG-2
environments.
Answer 9
The command to log on to another computer on the Internet.
Telnet

An XML format for sharing content among different Web sites Answer 10
such as news items. RSS/ RDF

Feedback

Your answer is correct.


Started on Thursday, 16 January 2020, 2:14 PM
State Finished
Completed on Thursday, 16 January 2020, 2:24 PM
Time taken 9 mins 49 secs
Grade 50.00 out of 50.00 (100%)
Question 1
Correct
Mark 1.00 out of 1.00

Flag question

Question text

The improved BASIC language for Altair was the __________ product
Microsoft sold.

Select one:
a. first
b. second
c. fourth
d. third
Feedback

Your answer is correct.

Question 2
Correct
Mark 1.00 out of 1.00

Flag question

Question text

In the _________, computers ran on gigantic mainframe machines,


requiring their special rooms with powerful air-conditioning to keep
them cool

Select one:
a. 1990s
b. 1960s
c. 19670s
d. 1980s
Feedback

Your answer is correct.

Question 3
Correct
Mark 1.00 out of 1.00

Flag question

Question text

They were the first high-level languages.


Select one:
a. Algorithmic languages
b. Algorithmic language
Feedback

Your answer is correct.

Question 4
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Gates and Microsoft wrote versions of BASIC for the Apple computer.

Select one:
True
False

Question 5
Correct
Mark 13.00 out of 13.00

Flag question

Question text

Match the earliest basic languages developed at Dartmouth with its


description.
log in HELLO
Answer 1
erase the current program without clearing its name SCRATCH
Answer 2
clear the current program from permanent storage UNSAVE
Answer 3
save the current program in permanent storage SAVE
Answer 4
display the names of programs in permanent storage CATALOG
Answer 5
change the name of the current program without erasing it RENAME
Answer 6
display the current program LIST
Answer 7
start BASIC mode BASIC
Answer 8
name and begin writing a program NEW
Answer 9
interrupt the currently running program STOP
Answer 10
retrieve a previously named program from permanent storage OLD
Answer 11
execute the current programs RUN
Answer 12
log off BYE
Answer 13
Feedback

Your answer is correct.

Question 6
Correct
Mark 1.00 out of 1.00

Flag question

Question text

VB was based on BASIC and relied on some of its commands and


structure but invaluable in many small business applications.

Select one:
True
False

Question 7
Correct
Mark 1.00 out of 1.00

Flag question

Question text
This contributed a notation for describing the structure of a
programming language, Backus–Naur Form.
ALGOL
Answer:

Question 8
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Visual basic is introduced in_______________.

Select one:
a. 2011
b. 2001
c. 1981
d. 1991
Feedback

Your answer is correct.

Question 9
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Paul Allen and Galileo wrote a version of BASIC for the Altair personal
computer.

Select one:
True
False
Question 10
Correct
Mark 1.00 out of 1.00

Flag question

Question text

The first important algorithmic language was FORTRAN. This is


designed in 1957 by an _________ team led by John Backus.

Select one:
a. MIT
b. Apple
c. Dell
d. IBM
Feedback

Your answer is correct.

Question 11
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Visual Basic is written by Microsoft.

Select one:
True
False

Question 12
Correct
Mark 1.00 out of 1.00
Flag question

Question text

This is the so-called DO-loops.


repetitive loops
Answer:

Question 13
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Who is not one of the founding fathers of Microsoft?

Select one:
a. Paul Allen
b. Bill Gates
c. Both of them
d. None of them
Feedback

Your answer is correct.

Question 14
Correct
Mark 1.00 out of 1.00

Flag question

Question text
FORTRAN
Answer made it convenient to have subprograms for
common mathematical operations, and built libraries of them.

Question 15
Correct
Mark 1.00 out of 1.00

Flag question

Question text

BASIC was traditionally one of the most commonly used computer


programming languages.

Select one:
True
False

Question 16
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Like machine language, assembly language requires detailed knowledge


of internal________________.

Select one:
a. computer code
b. computer data
c. computer architecture
d. data distribution
Feedback

Your answer is correct.


Question 17
Correct
Mark 1.00 out of 1.00

Flag question

Question text

These are the descendants of ALGOL.

Select one:
a. Pascal
b. Both of them.
c. Ada
d. Neither of Them.
Feedback

Your answer is correct.

Question 18
Correct
Mark 1.00 out of 1.00

Flag question

Question text

BASIC.NET matched the functionality of Java and C# with the syntax of


______________.

Select one:
a. BASIC
b. Internet
c. www
d. Microsoft Office
Feedback
Your answer is correct.

Question 19
Correct
Mark 1.00 out of 1.00

Flag question

Question text

By the _____________, the mania for programming personal computers


had subsided in the wake of running professional software created by
others.

Select one:
a. mid-1990s
b. mid-1980s
c. mid-1970s
d. mid-2000s
Feedback

Your answer is correct.

Question 20
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Assembly language is designed to be easily translated into machine


language.

Select one:
a. Disagree
b. Agree
Feedback
Your answer is correct.

Question 21
Correct
Mark 1.00 out of 1.00

Flag question

Question text

It was developed by Dartmouth mathematicians John George Kemeny


and Tom Kurtzas as a teaching tool for undergraduates.

Select one:
a. BASIC
b. Microsoft Office
c. computer science
d. computer theory
Feedback

Your answer is correct.

Question 22
Correct
Mark 1.00 out of 1.00

Flag question

Question text

A ___________ program is a function applied to data, rather than being a


sequence of procedural steps as in FORTRAN and ALGOL.

Select one:
a. BASIC
b. LISP
c. VC
d. ALGOL
Feedback

Your answer is correct.

Question 23
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Visual Basic is game changer.

Select one:
True
False

Question 24
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Assembly language is useful when such details are important, as in


programming a computer to interact with _______________ (printers,
scanners, storage devices, and so forth).

Select one:
a. hardware
b. software
c. commands
d. input/output devices
Feedback

Your answer is correct.


Question 25
Correct
Mark 1.00 out of 1.00

Flag question

Question text

The BASIC language was designed for _____________.

Select one:
a. working people
b. children
c. hobbyists
d. professionals
Feedback

Your answer is correct.

Question 26
Correct
Mark 1.00 out of 1.00

Flag question

Question text

BASIC was intended to be a ________________for generalists to use to


unlock the power of the computer in business and other realms of
academia

Select one:
a. code
b. computer language
c. website
d. social media content
Feedback
Your answer is correct.

Question 27
Correct
Mark 1.00 out of 1.00

Flag question

Question text

Algorithmic languag
Answer are designed to express mathematical or
symbolic computations.

Question 28
Correct
Mark 1.00 out of 1.00

Flag question

Question text

The language BASIC was an acronym for Beginner's All-Purpose


Symbolic Instruction Code.

Select one:
a. Disagree
b. Agree
Feedback

Your answer is correct.

Question 29
Correct
Mark 1.00 out of 1.00

Flag question
Question text

FORTRAN was intended for scientific computations with_______________


and collections of them organized as one- or multidimensional arrays.

Select one:
a. real numbers
b. association
c. development
d. coding
Feedback

Your answer is correct.

Question 30
Correct
Mark 1.00 out of 1.00

Flag question

Question text

This was designed by a committee of American and European computer


scientists during 1958–60 for publishing algorithms.

Select one:
a. ALGOL
b. FORTRAN
c. BASIC
d. BASIC.NET
Feedback

Your answer is correct.

Question 31
Correct
Mark 1.00 out of 1.00
Flag question

Question text

BASIC was the most widely known computer language among


developers.

Select one:
True
False

Question 32
Correct
Mark 1.00 out of 1.00

Flag question

Question text

FORTRAN is more powerful than BASIC.

Select one:
True
False

Question 33
Correct
Mark 1.00 out of 1.00

Flag question

Question text

BASIC, a computer language written at________________ in 1963, would


change that.
Select one:
a. University of America
b. Dartmouth college
c. Harvard University
d. MIT
Feedback

Your answer is correct.

Question 34
Correct
Mark 1.00 out of 1.00

Flag question

Question text

They can express algebraic operations in notation similar to


mathematics and allow the use of subprograms that package commonly
used operations for reuse.
Algorithmic languages
Answer:

Question 35
Correct
Mark 1.00 out of 1.00

Flag question

Question text

This uses an English-like notation—novel when introduced.

Select one:
a. Pascal
b. COBOL
c. BASIC
d. Ada
Feedback

Your answer is correct.

Question 36
Correct
Mark 1.00 out of 1.00

Flag question

Question text

The mainframes received their instructions from _____________ by


computer operators, and any instructions given to a mainframe required
writing a new piece of software, which was the realm of mathematicians
and computer scientists.

Select one:
a. development
b. codes
c. commands
d. punch cards
Feedback

Your answer is correct.

Question 37
Correct
Mark 1.00 out of 1.00

Flag question

Question text

GOTO
AAnswer statement that allowed non-sequential execution
of program code.
Question 38
Correct
Mark 1.00 out of 1.00

Flag question

Question text

This is released by Microsoft in 2001.

Select one:
a. BASIC.NET
b. BASIC
c. C++
d. VB
Feedback

Your answer is correct.


You want to cancel the privilege of matt to retrieve records from the employees table.

REVOKE employees FROM matt TO select;

Which of the following is NOT a task of a Database Administrator

None of the choices


Removing tables

Which of the following command will delete all records in the table employees

Select one:
. DELETE FROM employees

These are collection of objects such as tables, views, and sequences.

. Schema
A Database Administrator can create and remove users and tables.

The statement is correct


Using CREATE SQL Command, you can add new records in the table.
False

Display employee's name and id whose firstname starts with letter D and job id is IT_PROG.
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

TRUE OR FALSE.
The INSERT statement can add multiple rows.
True
These are privileges that performs a particular action within the database.
System Privileges

Display the part number whose class is not HW, AG or SG.


None of the choices

Given the DEPARTMENTS table and USER user1, evaluate the SQL command:
GRANT select
ON user1
TO departments;
The SQL command is incorrect

INSERT, DELETE, UPDATE are ________________ commands


DML

GRANT is a _____________________ command.


DCL

The two development environments of Oracle are _______________ and ______________.


ANSI SQL Web; Oracle Net SQL

Which of the following SELECT statement is the correct PL/SQL that willcreate a report
specifying only the column PRICE, ONHAND and DESCRIPTION?
SELECT PRICE, ONHAND, DESCRIPTION FROM PARTS;
The General Manager request to the Database Administrator to generate the total number of
parts and total outstanding balance on hand of every class in warehouse number 1&2.
Which of the following SQL command will generate the required output.
SELECT warehouse, class, COUNT(partnum), SUM(onhand) FROM parts GROUP
BY warehouse,class HAVING warehouse = 1 OR warehouse = 2;

Display all the employee id, names of employees ,job id and department nameof all employees
of the Finance Department.
SELECT A.first_name, A.last_name, A.job_id, B.department_name FROM
employees A JOIN departments B ON ( A.department_id = B.department_id) WHERE
B.department_name = 'Finance'

A join between two tables that returns the results of the INNER join as well as
the_______________ rows from the left (or right) table is called a left (or right) OUTER join.
Unmatched

You want to cancel the privilege of matt to retrieve records from the employees table.
REVOKE select ON employees FROM matt;
AMALEAKS.BLOGSPOT.COM
ICT-2300 GRADE 12 WEEK1-10

1ST QUARTER EXAM ICT2300

1. Defined as “the place where work immersion of students is done".


Workplace Immersion Venue
Answer:

2. A behavior of a single individual or a group that has led to a systematic lack of


productivity, reliability, accountability and a growing sphere of unprofessional/unhealthy
relationships.
Negative work ethic
Answer:

3. The date where Labor Code of the Philippines took effect.


November 1, 1974
Answer:

4. A belief that work, hard work and diligence has a moral benefit and an inherent ability,
virtue or value to strengthen character.
Work ethic
Answer:

5. He states that "what was once understood as the work ethic—not just hard work but also
a set of accompanying virtues, whose crucial role in the development and sustaining of
free markets too few now recall".
Steven Malanga
Answer:

6. He revised the notion of work ethic as a means of management control that delude
workers about the actual reality for accumulated advantage, which is a form of avarice.
Frederick Winslow Taylor
Answer:

7. The normal hours of work of any employee.


Eight
Answer:

8. A written statement of
Resume
your educational and work
experience.
Answer:

9. It is a set of pictures by someone, or photographs of examples of their work, which they


use when entering competitions or applying for work.
Portfolio
Answer:

10. This is the more traditional format of a resume and is flexible and can be used for
applicants with any level of experience.
Reverse-Chronological
Answer:

Production portfolio

11. can also include budget sheets, idea pitches and marketing materials.

Labor Code of the Philippines

12. The governs employment practices and labor relations in the


Philippines.

13. When Labor Code of the Philippines was promulgated?


May 1, 1974
Answer:

14. As for overseas employment of Filipinos, foreign employers are not allowed to directly
hire Philippine nationals except through board and entities authorized by the
Secretary of Labor

15. Under whose regime the Labor Code of the Philippines does took effect?
Ferdinand Marcos
Answer:

1. On job interview, it is important to be aware of any inappropriate slang words or


references to age, race, religion, politics or sexual orientation—these topics could send
you out the door very
T
quickly.
Answer:

2. Functional format is flexible and can be used for applicants with any level of experience.
Chronological
Answer:

4. Negative work ethic is a behavior of a single individual or a group that has led to a
systematic lack of productivity, reliability, accountability and a growing sphere of
unprofessional/unhealthy relationships.
T
Answer:

3. Place the best and most relevant work first and start and finish with strong pieces of work
on your portfolio.

Answer: T

5. During interview, asking question is not wrong because it also gives you the opportunity
to find out if this is the right place for you.
T
Answer:

6. Only include your GPA below 3.0, round up to the first decimal place, and use this
format: GPA: 3.5/4.0.
above
Answer:

7. Having a solid education section doesn’t help you to display the foundation of your
knowledge and expertise.
does
Answer:
8. A portfolio is a set of pictures by someone, or photographs of examples of their work,
which they use when entering competitions or applying for work.
T
Answer:

9. Put your portfolio on a web site if possible as it is so easy to access.


T
Answer:

10. If you are putting on a performance to demonstrate your ability, overconfidence is bad.
T
Answer:

Choose five (5) job interview skills that a person should have.

Select one or more:

a. Appear desperate

b. Use appropriate language

c. Take care to answer the questions

d. Don't talk too much

e. Dress for the job or company


f. Don't be too familiar

g. Don't ask questions

What should the portfolio include? Choose at least 5 from the choices.

Select one or more:

a. Examples of your work with good documentation

b. An index of the contents

c. Your drafts for your report

d. Your key achievements and skills

e. Include a uniform examples of work you have done

f. Curriculum Vitae

g. A profile or personal statement

1. Workplace safety is important.


Select one:

True

False
2. The employer have the right to terminate an employee.

Select one:

True

False
3. The maximum age for employment is 18 years old.

Select one:

True

False
4. Absenteeism increases when effective safety programs are introduced.

Select one:

True

False

5. An employee needs to give respect to the company. That means honesty and integrity.

Select one:

True

False

LONG QUIZ 1 ICT2300

IDENTIFICATION
1.Defined as “the place where work immersion of students is done".
Workplace Immersion Venue
Answer:

IDENTIFICATION
2. A behavior of a single individual or a group that has led to a systematic lack of
productivity, reliability, accountability and a growing sphere of unprofessional/unhealthy
relationships.
Negative work ethic
Answer:

IDENTIFICATION
3. The date where Labor Code of the Philippines took effect.
November 1, 1974
Answer:

IDENTIFICATION
4. A belief that work, hard work and diligence has a moral benefit and an inherent ability,
virtue or value to strengthen character.
Work ethic
Answer:

IDENTIFICATION
5. He states that "what was once understood as the work ethic—not just hard work but also
a set of accompanying virtues, whose crucial role in the development and sustaining of
free markets too few now recall".
Steven Malanga
Answer:

He revised the notion of work ethic as a means of management control that delude workers
about the actual reality for accumulated advantage, which is a form of avarice.
Frederick Winslow Taylor
Answer:

The normal hours of work of any employee.


Eight
Answer:
A written statement of your educational and work experience.
Resume
Answer:

It is a set of pictures by someone, or photographs of examples of their work, which they use
when entering competitions or applying for work.
Portfolio
Answer:

This is the more traditional format of a resume and is flexible and can be used for applicants
with any level of experience.
Reverse-Chronological
Answer:

Under whose regime does the Labor Code of the Philippines took effect?

Select one:

a. Gloria Macapagal-Arroyo

b. Ninoy Aquino

c. Rodrigo Roa Duterte

d. Ferdinand Marcos

The Php 426 combined rate is locally referred to in the Philippines as "____________" due to
this regional disparity.

Select one:

a. Private Rate

b. Manila Rate

c. Public Rate

d. Province Rate
The duty of every employer to give his employees not less than ______ minutes time-off for
their regular meals.

Select one:

a. 40

b. 30

c. 50

d. 60

All employees have the right to have a __________ consecutive hours of rest day after every 6
days of work.

Select one:

a. 48

b. 12

c. 24

d. 6

________________ focuses on your abilities and skills and is more suitable for those with an
expert level of experience.

Select one:

a. Chronological

b. Functional

c. Combination

d. Reverse-Chronological
What should the portfolio include? Choose at least 5 from the choices.

Select one or more:

a. A profile or personal statement

b. Your drafts for your report

c. An index of the contents

d. Your key achievements and skills

e. Include a uniform examples of work you have done

f. Examples of your work with good documentation

g. Curriculum Vitae

QUIZ 1 ICT 2300

A belief that work, hard work and diligence has a moral benefit and an inherent ability,
virtue or value to strengthen character.
= Work ethic

A behavior of a single individual or a group that has led to a systematic lack of productivity,
reliability, accountability and a growing sphere of unprofessional/unhealthy relationships.

= Negative work ethic

He states that "what was once understood as the work ethic—not just hard work but also a
set of accompanying virtues, whose crucial role in the development and sustaining of free
markets too few now recall".

= Steven Malanga

Workplace safety is important.


Select one:

True

False

Absenteeism increases when effective safety programs are introduced.

Select one:

True

False

When does the Labor Code of the Philippines took effect?

= November 1, 1974

An employee needs to give respect to the company. That means honesty and integrity.

Select one:
True

False

Defined as “the place where work immersion of students is done".

= Workplace Immersion Venue

The employer have the right to terminate an employee.

Select one:

True

False

The maximum age for employment is 18 years old and above that age is not allowed.

Select one:

True

False
AMALEAKS.BLOGSPOT.COM
PROG113A WEEK 1-20

SQL stands for LONG QUIZ PROG-113


LONG QUIZ NO. 4

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 – like additional characters and skills.”
ANSWER: 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
6. Kyoto protocol addresses environmental issues through the campaign of
____________________.
ANSWER: reducing greenhouse gas emissions
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
9. ____________________ is when you conduct regular audits and inspections to evaluate your
work performance.
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 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.
“One good thing I find with XYZ as when my laptop shuts down accidentally, my game score and
status can still be recovered. No need to repeat a level.”
ANSWER: Reliability
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

17. 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.
“I find it really enjoying to play XYZ since I can invite my friends from social media profile. It works
well with this social media app!”
ANSWER: Compatibility
18. 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.
“XYZ is so cool! I tried to install it in my old computer and it still runs smoothly. Given that the
computer’s video card is a bit faulty.“
ANSWER: Reliability

19. ____________________ is setting the best practices in the workplace as your work standards.
ANSWER: Seiketsu
20. The 5S Method is a Japanese perspective technique developed by Eiichiro Oda.
ANSWER: FALSER

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
28. Montreal protocol protects the ozone layer by ____________________.
ANSWER: phasing out harmful substances
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
LONG QUIZ NO. 6
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?

ANSWER: display Overweight


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
10. Java is an example of
ANSWER: HIGH-LEVEL LANGUAGE

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
13. He is known as the father of the Java programming language.

ANSWER: JAMES GOSLING


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
interpreters or compilers.
ANSWER: TRUE
17. was the first language implemented for BINAC.

ANSWER: Short Code


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?
ANSWER: ASK FOR HEIGHT

22. A_________is the code or language that allows a user to instruct a computer to perform specific
tasks.
ANSWER: Programming Language
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
26. Who is considered as a user (component of an operating system)?

ANSWER: ALL OF THE CHOICES


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
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
Question text
True or False: Operators, in Java programming language, use special symbols to call methods and their
objects.
Answer:
False
Question text
Read each statement carefully and decide whether it’s TRUE or FALSE.
There are no errors in the program.
Select one:
False
Question text
Refer to the block of codes below. Read each statement carefully and decide whether it’s TRUE or FALSE.
Line 9 uses a traditional comment which uses double forward slash.
Answer: False
Question text
True or False: Many programmers can be literate with Java programming language for it is intended to be that
way.
Answer:
True
Question text
True or False: You’ll know there’s an error if you see a red circle with an exclamation point in Netbeans IDE.
Answer:
True
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 = (x = 100) >= z;
Select one:
True
The file is accurately named – Students.java.
-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.
-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
The last line of code will output 100.0.
-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
There are keywords found in line 7.
-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 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.
-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

Substrings can contain 1 or 2 arguments.


-true
Determine the output.

-bar

The index of the letter “y” in string “Doggy” is 5.


-False
Determine the output.
-foo
TRUE OR FALSE: The value “val_3” is a white space “ “.
-False
True or False: Variable 1st_num is a good variable name in Java programming.
-False

TRUE OR FALSE: “val_2” contains “The”


-True
True or False: Instance variables are declared inside a method but outside a class.
-False
True or False: Variable names in Java are not necessarily case sensitive.
-False
Determine the output

-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
result = !((x * 10) < z);
-False

result = -(-z) == 43;


-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
x += x;
result = x == 154;
-False
The second line 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
A string can contain numbers.
-True

TRUE OR FALSE: This is an example of concatenation.


-True

TRUE OR FALSE: The value of “val_4” is “fox”


-False
TRUE OR FALSE: “val_2” contains “The”.
-True
Determine the output.
-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

Strings can be declared with str.


-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
Among the expressions below which is a statement?
-True

Expressions can be long and complex.


-true
number++; is an expression
-true

For-loops has a set number of iterations before starting.


-True
The equals( ) method can compare more than 2 arrays.
-False
While loops can use Booleans at test expressions.
-True
The test expression of the if statement is _______
-less than or equal to
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
x+1 is example of a statement.
-False
number++; is a block
-False

Arrays are
-Integers
The operator “new” allocates a memory block the size of what is declared.
-true
A class block can be an expression
-False
Statements can be expressions.
-False

Integer arrays can be populated with characters.


-False
Declaration clauses are declared as “number + 1”.
-False

Loops can be stopped with a break; statement.


-True
The equivalent of Paragraphs in coding is?
-Expressions
If statements cannot be nested in switches
-true
The length( ) method returns the size (number of indices) has.
-True
When polymorphism is used, the Java object can only take one form. Subclasses should have the
same function with the parent class.
-False
Arrays can contain (Answer) number of elements.
-Any
“||” and “&&” can be used in conditional statements.
-True
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
Expressions can be statements.
-True
Blocks can contain more blocks of code.
-True
If-else statements can be nested in?
-All of the choices
Statements are equivalent to paragraphs.
-False

A (answer) array is an array containing true or false values.


-boolean
Switches are always used with if-else statements
-False
True or False: The modulus operator returns the remainder of a division operation instead of the
quotient.
-true
Determine the output.
String val_1 = “564298”;

-5698
Determine the output.
String val_1 = “35”;
-4
The return value of the length( ) method is an integer
-true
A superclass is also known as a parent class.
-true
For-loops can be nested in while loops.
-true
In instantiating an object, the keyword instance is used.
-False
Object oriented programming utilizes the top down method
-False
Expressions are like clauses.
-true
The sort( ) method is always ascending.
-true
Arrays are data types.
-False
Variables must be declared as (Answer) for it to be fully hidden.

-private
While statements check the test expression at the end.
-False
The else statement can be used alone.
-False
The fill( ) method (Answer) the array with specific values.
-Fills
The output of println is

-55555
The person’s weight is declared correctly with the correct data type (byte) and value (160).
-FALSE

Determine the output.


String val_1 = “foo”
String val_2 = “bar”

val_2 = val_1;
val_1 = val_3;
System.out.println(val_1);
-bar
Determine the output.
String val_1 = “foo”
String val_2 = “bar”
val_2 = val_1;

val_1 = val_3;
System.out.println(val_2);
-foo
Switches can work properly even without the “break” expression.
-True
Blocks can be one liner or huge classes.
-True
The test expressions in conditional statements can be left empty.
-False
Abstraction works by hiding the implementation details and showing only the functions necessary.
-True
A single array can hold multiple data types
-False
A polymorphic object can pass more than one Is-a test.
-True
Another loop can be used as test expression.
-False
True or False: Public, static and void are sample of Java reserved keywords.
-True

The value of “pStr” in line 24 is


-True
The default syntax of a constructor is <class_name>(parameter, parameter){ }
-False

A nested class is not an inner class.


-False
Nested classes causes them to become abstracted
-False
A nested class is also called
-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
A constructor can only have 1-2 overloads or parameters.
-False
All possible data types of an array can be retuned as a string by the toString( ) method.
-True
Abstracted classes can contain 1 or more abstract methods.
-True
Abstraction shows the every bit of detail and implementation on how an application does something.
-False
Initialization is a process where the constructor is called for.
-True

The default syntax of a constructor is <class_name>( ){ }


-True
Classes cannot be nested.
-False

Abstract classes cannot have nested classes.


-False
The parent class of a nested class is called an outer class
-True

An inner class can be constructed directly without reference to the outer class.
-False
Arrays can be read backwards
-True

A single array can hold


-One data type
Abstracted methods already have implementations inside.
-False
are special methods to initialize objects.
-constructors
Constructors have 3 basic rules to follow.
-False
Nesting classes increases encapsulation.
-True

Each index can only contain (Answer) element.


-one
The sort( ) method can be set to sort only a part of an array.
-False

Subclasses or child classes could have different behaviors but still share the same functions from
their parent class.
-True

Abstract methods must have an explicit return value


-False
An abstract class must not contain abstract methods.
-False
Abstracted classes can be nested.
-True
A subclass constructor cannot invoke a superclass constructor.
-False
A class acquiring fields and methods of another class is called inheritance.
-True
Parallelsorting utilizes

-More cpu processing cores


method can copy one array to another.
-arraycopy

SHORT QUIZ PROG 111- PROG111 - Programming (Java) NC II Part 1


SHORT QUIZ 8.
1. The 5s method is based on the ____________________.
ANSWER: Toyota Production Sytem
2. Environmental issues have no relation to the workplace
ANSWER: FALSE
3. Protecting the environment and natural resources also means protecting
stable employment.
ANSWER: TRUE
4. In the 5S method, this stage refers to arranging items in a way that they are
easy to find and pick up.
ANSWER: SEITON
5. Seiso refers to cleaning your workplace on a regular basis.
ANSWER: TRUE
6. Humans rely on natural resources for survival.
ANSWER: TRUE
7. These are developed by industries as a guide for establishments and
business enterprises to conduct their operations in a way that prevents or
reduces environmental harm.
ANSWER: Environmental codes of practice
8. Business industries will not be affected by the environmental crisis.
ANSWER: FALSE
9. Presidential Decree No. 856, one of the Philippine environmental laws, is
also known as ____________________.
ANSWER: Code on Sanitation of the Philippines
10. The protection of the natural resources is possible through the collective
efforts of each group in the society.
ANSWER: TRUE
SHORT QUIZ 9
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.
“Thanks to XYZ, I can baby sit my little brother. It’s so easy to use that a 5-year
old can play it as well.”
ANSWER: Usability
2. Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s
product quality model and write the letter that corresponds 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
the ISO/IEC 25010:2011. Read their feedback below and decide which product
quality attribute is being described.
“XYZ is so cool I can play it with my phone, laptop, Xbox and PS4!”
ANSWER: Portability
7. 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.
“Finally we can play XYZ! Surprising enough, all features and functions are
present. It has all the controls a gamer needs.”
ANSWER: Functional Stability
8. Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s
product quality model and write the letter that corresponds 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
2. Ctrl + S is the shortcut key for Save while Ctrl + S + A is the shortcut key for
Save As.
ANSWER: FALSE
3. The earphones is an example of a _______________, while Internet Explorer is
an example of _______________.
ANSWER: peripheral device, application program
4. I’ve purchased a modern gaming mouse but it doesn’t have a PS/2 plug.
Where I connect it?
ANSWER: D
5. Arlan right clicked on his taskbar and unchecked the Lock Taskbar. What
will happen if he drags his taskbar to the right side of his screen?
ANSWER: Taskbar will display vertically at the right.
6. Something’s wrong with the serial port. Which port should I investigate?
ANSWER: C
7. Windows is to Personal Computer (PC) while Mac OSX is to Mac laptops and
computers.
ANSWER: TRUE
8. An operating system has three major components – hardware, application
program or software and the user.
ANSWER: FALSE
9. Which of the following is not a default margin options when setting up the
page for printing?
ANSWER: REGULAR
10. If you are confused on what to do, press F2 on your keyboard and the
Windows Help feature will open.
ANSWER: FALSE

SHORT QUIZ 11
1. This type of programming language uses series of 0s and 1s to represent
data.
ANSWER: Machine language
2. C++, an extension of the C language, introduced object-oriented
programming.
ANSWER: True
3. C# has features that are directly based on the Short Code.
ANSWER: FALSE
4. COBOL stands for Convenient Business Oriented Language.
ANSWER: FALSE
5. Which of the following statements is TRUE?
ANSWER: A programming language may have its own area of
specialization.

6. Using the language, you can write windowed applications, build


databases, as well as control handheld devices.
ANSWER: Java

7. is the father of computer.


ANSWER: CHARLES BABBAGE
8. Since natural languages are vaguely structured, they cannot be used for
programming.
ANSWER: TRUE
9. COBOL is the programming language ideally used for _________________________
purposes.
ANSWER: Business
10. PASCAL is an example of a low-level language.
ANSWER: FALSE

SHORT QUIZ 12
1. Refer to the image below to answer the following question. What happens
every time the given username and password is incorrect?
ANSWER: 1 IS ADDED TO THE LIMIT
2. Refer to the image below to answer the following question. What symbol is
used to begin and end the program?
ANSWER: Terminal
3. Observe the names of the following variables and routines and decide
whether its format is CORRECT or WRONG. limitIsReached for a Boolean
variable.
ANSWER: CORRECT
4. Refer to the image below to answer the following question. When will the
program end?
ANSWER: When home page is loaded.
5. Jet is writing the pseudocode for his program. Which phase of program
development life cycle is he in?
ANSWER: Design the Program.
6. Ana is working on a new project and she was asking for the program’s
purpose, processes, algorithm, restrictions and some notes. According to the
program development life cycle, in which phase is Ana working on?
ANSWER: ANALYZE THE PROBLEM
7. Observe the names of the following variables and routines and decide
whether its format is CORRECT or WRONG.
ContactNumber for a column name in the table “Student”.
ANSWER: CORRECT
8. Observe the names of the following variables and routines and decide
whether its format is CORRECT or WRONG.
PresentAdress for a column name in the table “Student”
ANSWER: WRONG
9. Refer to the image below to answer the following question. What will
happen if the username is incorrect but the password given is correct?
ANSWER: 3
10. Refer to the image below to answer the following question. What happens
when Limit is equal to 3?
ANSWER: Program goes back to login page

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
Enforcing environmental policies is one of the major causes of job loss and
unemployment. - False
True or False: Dates in file names should be written in YYYY-MM-DD format. - False
Big business companies are the only ones responsible for enforcing environmental
policies since they can afford alternative cleaner technology. - False
Pre-review activities in the review process includes review planning, preparation and
individual review. - true
Increase work productivity by arranging items in such a way that they are easy to find
and pick up. - true
Montreal protocol protects the ozone layer by ____________________. - phasing out
harmful substances
Business industries will not be affected by the environmental crisis. - False
True or False: Protocols are set of standards rules which describes how something
should be done and different companies have different protocols as well. - true
Presidential Decree No. 856 is an international treaty that imposes limitations on the
greenhouse gas emissions of several countries. - True
True or False: Organizational aims are different from the mission statement; they refer
to the results an organization is aspiring for. - true
The cost / benefit analysis document is appropriately named. - False
A printed progress report to be submitted to the adviser. - purpose
True or False: Statutory requirements are identified by the vendors or suppliers and
they include value, stability, diversity and capacity. - False
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. - False
Identify whether the statement is a strength, weakness, opportunity or threat: The
student record system could be used by other schools other than Ricka’s school. -
opportunity
True or False: Reviewing the related literature includes review of concepts, theories and
previous research findings. - true
Companies can freely make their own set of environmental policies without consulting
the workers’ union, or any local or national laws about it. - False
Kyoto protocol addresses environmental issues through the campaign of
____________________. - reducing greenhouse gas emissions
Humans rely on natural resources for survival. - true
Quantitative research, compared to qualitative research, uses measurable - Data
ISO/IEC 25010:2011’s product quality model has eight (8) major characteristics. - true
True or False: Usually, the summary of the report is the first thing that’s being read. -
true
____________________ is when you conduct regular audits and inspections to
evaluate your work performance. - Shitsuke
“XYZ is so cool! I tried to install it in my old computer and it still runs smoothly. Given
that the computer’s video card is a bit faulty.“ - Reliability
True or False: There are five main elements of a written report – topic, style, structure,
facts and contents. - false
True or False: To gather data, you can either conduct an interview, survey, observation,
mail questionnaire, coding and tabulation. - false

LONG QUIZ PROG-111

LONG QUIZ NO. 4

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 – like additional characters and skills.”
ANSWER: 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
6. Kyoto protocol addresses environmental issues through the campaign of
____________________.
ANSWER: reducing greenhouse gas emissions
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
9. ____________________ is when you conduct regular audits and inspections to evaluate your
work performance.
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 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.
“One good thing I find with XYZ as when my laptop shuts down accidentally, my game score and
status can still be recovered. No need to repeat a level.”
ANSWER: Reliability
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
17. 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.
“I find it really enjoying to play XYZ since I can invite my friends from social media profile. It works
well with this social media app!”
ANSWER: Compatibility
18. 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.
“XYZ is so cool! I tried to install it in my old computer and it still runs smoothly. Given that the
computer’s video card is a bit faulty.“

ANSWER: Reliability

19. ____________________ is setting the best practices in the workplace as your work standards.
ANSWER: Seiketsu

20. The 5S Method is a Japanese perspective technique developed by Eiichiro Oda.


ANSWER: FALSER
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
28. Montreal protocol protects the ozone layer by ____________________.
ANSWER: phasing out harmful substances
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
LONG QUIZ NO. 6
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?
ANSWER: display Overweight
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
10. Java is an example of
ANSWER: HIGH-LEVEL LANGUAGE

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
13. He is known as the father of the Java programming language.
ANSWER: JAMES GOSLING

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
interpreters or compilers.
ANSWER: TRUE
17. was the first language implemented for BINAC.

ANSWER: Short Code


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?
ANSWER: ASK FOR HEIGHT
22. A_________is the code or language that allows a user to instruct a computer to perform specific
tasks.
ANSWER: Programming Language
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
26. Who is considered as a user (component of an operating system)?
ANSWER: ALL OF THE CHOICES
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

PROG-113A / ► Week 18: Designing PL/SQL / ► Short Quiz 14


Which of the following is the syntax to open a cursor varial
Answer: OPEN cursor_variable_name
FOR select_statement;
Which of the following is the syntax to define a REF CURSOR type?
Answer: TYPE ref_type_name IS REF CURSOR
[RETURN return_type];
Weak REF CURSOR is very flexible.
Answer: True
Evaluate the following. What will be the output?
DECLARE
SUBTYPE Accumulator IS NUMBER (4,2);
v_amount accumulator;
v_num1 NUMBER;
v_num2 NUMBER;
v_num3 NUMBER;
BEGIN
v_amount := 10.50;
v_num1 := 1;
v_num2 := 2;
v_num3 := 3;
v_num1 := v_amount;
v_num2 := v_num1 + v_amount;
v_num2 := v_num2 - v_num3;
dbms_output.put_line('Total is: ' || v_num2);
END;
Answer: 18
Which of the following is the syntax to fetch from a cursor variable?
Answer: FETCH cursor_variable_name INTO variable_name1
[,variable_name2,. . .] | record_name;
Fetch into a record when fetching from a cursor.
Answer: True
Which of the following is the syntax to close a cursor?
Answer: CLOSE cursor_variable_name;
This is a subset of an existing data type that may place a constraint on its base type.
Answer: Subtype
Which of the following rules is INCORRECT about cursor variables?
Answer: None of the choices.
Use column aliases in cursors for calculated columns fetched into records declared with %COLUMNTYPE.
Answer: False

PROG-113A / ► Week 18: Designing PL/SQL / ► Learning Activity 14

Which of the following rules is INCORRECT about cursor variables?


Answer: None of the choices.
Which of the following describes weak REF CURSOR?
Answer: Associates with any query
Restrictive, specifies a RETURN type, associates only with type-compatible queries are
description of a ________________.
Answer: Strong REF CURSOR
Which of the following is INCORRECT about the guidelines for cursor design?
Answer: Use column aliases in cursors for calculated columns fetched into records declared with
%COLUMNTYPE.
This is a subset of an existing data type that may place a constraint on its base type.
Answer: Subtype

PROG-113A / ► Week 17: / ► Short Quiz 13


Evaluate the following PL/SQL.
CREATE OR REPLACE PROCEDURE query_employee
(p_id IN employees.employee_id%TYPE,
p_name OUT employees.last_name%TYPE,
p_salary OUT employees.salary%TYPE) IS
BEGIN SELECT last_name, salary INTO p_name, p_salary
FROM employeesWHERE employee_id = p_id;
END query_employee
Answer: No error
Evaluate the following PL/SQL. Which of the following will line creates an error?
CREATE OR REPLACE PROCEDURE query_emp
(
p_department_id IN employees.department_id%TYPE,
p_name OUT employees.last_name%TYPE,
p_salary OUT employees.salary%TYPE
)
IS
BEGIN
SELECT last_name, salary, department_id INTO p_name, p_salary, p_department_id
FROM employees
WHERE salary >= p_salary AND department_id = p_department_id ;
END query_emp;
Answer: Line 3
These are local variables declared in the parameter list of a subprogram specification.
Answer: Formal parameter
Given the answer in item __________, which of the folllowing stored procedure will display the
employee id and salary of Steven King?
Answer: DECLARE
v_employee_id employees.employee_id%TYPE;
v_emp_sal employees.salary%TYPE;
BEGIN
query_emp('King', 'Steven', v_employee_id, v_emp_sal);
DBMS_OUTPUT.PUT_LINE('Employee ID ' || v_employee_id ||' earns '|| to_char(v_emp_sal,
'$999,999.00'));
END;

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

PROG-113A / ► Week 16: Creating Procedures / ► Learning Activity 13


Procedure can be stored in the database as a schema object.
Answer: True
The PL/SQL code block helps modularize code by using:
Answer: All of the choices
Which of the following command is used to create a stand-alone procedure that is stored in the Oracle
database?
Answer: CREATE PROCEDURE
Which of the folllowing 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
Answer: iii & v
Which if the following is NOT a benefits of using modular program constructs?
Answer: None of the choices

PROG-113A / ► Week 18: Designing PL/SQL / ► Short Quiz 14


Which of the following is the syntax to open a cursor varial
Answer: OPEN cursor_variable_name
FOR select_statement;
Which of the following is the syntax to define a REF CURSOR type?
Answer: TYPE ref_type_name IS REF CURSOR
[RETURN return_type];
Weak REF CURSOR is very flexible.
Answer: True
Evaluate the following. What will be the output?
DECLARE
SUBTYPE Accumulator IS NUMBER (4,2);
v_amount accumulator;
v_num1 NUMBER;
v_num2 NUMBER;
v_num3 NUMBER;
BEGIN
v_amount := 10.50;
v_num1 := 1;
v_num2 := 2;
v_num3 := 3;
v_num1 := v_amount;
v_num2 := v_num1 + v_amount;
v_num2 := v_num2 - v_num3;
dbms_output.put_line('Total is: ' || v_num2);
END;
Answer: 18
Which of the following is the syntax to fetch from a cursor variable?
Answer: FETCH cursor_variable_name INTO variable_name1
[,variable_name2,. . .] | record_name;
Fetch into a record when fetching from a cursor.
Answer: True
Which of the following is the syntax to close a cursor?
Answer: CLOSE cursor_variable_name;
This is a subset of an existing data type that may place a constraint on its base type.
Answer: Subtype
Which of the following rules is INCORRECT about cursor variables?
Answer: None of the choices.
Use column aliases in cursors for calculated columns fetched into records declared with %COLUMNTYPE.
Answer: False

PROG-113A / ► Week 18: Designing PL/SQL / ► Learning Activity 14

Which of the following rules is INCORRECT about cursor variables?


Answer: None of the choices.
Which of the following describes weak REF CURSOR?
Answer: Associates with any query
Restrictive, specifies a RETURN type, associates only with type-compatible queries are
description of a ________________.
Answer: Strong REF CURSOR
Which of the following is INCORRECT about the guidelines for cursor design?
Answer: Use column aliases in cursors for calculated columns fetched into records declared with
%COLUMNTYPE.
This is a subset of an existing data type that may place a constraint on its base type.
Answer: Subtype

PROG-113A / ► Week 15: Long Quiz / ► Long Quiz 3 (30/30)


(Correction)
How do you test the output of a PL/SQL block?
Answer: Use a predefined Oracle package and its procedure
Which of the folllowing statement describes PL/SQL?
Answer: PL/SQL is an Oracle proprietary, procedural, 3GL programming language
Which of the following syntax to declare EXCEPTION named e_invalid_id?
Answer: e_invalid_id EXCEPTION;
In PL/SQL Block Structure, which of the following are mandatory?
Answer: BEGIN and END
This is a type of cursor which is created and managed internally by the Oracle server to process
SQL statements
Answer: Implicit
PL/SQL stands for
Answer: Procedural Language extension to SQL
Which of the following PL/SQL will execute successfully?
Answer: DECLARE
v_salary INTEGER(20);
BEGIN
SELECT salary INTO v_salary FROM employees WHERE employee_id = 150;
END;
What is the last clause in trapping exceptions?
Answer: WHEN OTHERS
PL/SQL Provides a block structure for executable units of ________________.
Answer: Code
Evaluate the following PL/SQL.
DECLARE
v_email VARCHAR(20);
BEGIN
SELECT email INTO v_email FROM EMPLOYEES WHERE email like 'D%';
DBMS_OUTPUT.PUT_LINE ('Employees whose email address starts with letter D :'
|| v_email);
EXCEPTION
WHEN TOO_MANY_ROWS THEN
DBMS_OUTPUT.PUT_LINE (' Your select statement retrieved multiple rows.');
END;
Answer: The PL/SQL block will run successfully.
Which of the folllowing is TRUE?
Answer: SQL code are embedded within PL/SQL statements
You can trap any error by including a corresponding handler within the exception-handling
section of the PL/SQL block.
Answer: True
When an exception is user defined, the exception is raised ____________ .
Answer: Explicitly
Evaluate the PL/SQL
DECLARE
v_first_name VARCHAR2(50);
v_last_name VARCHAR2(50);
v_salary INTEGER(20);
BEGIN
SELECT first_name, last_name, salary INTO v_first_name, v_last_name, v_salary FROM
employees WHERE department_id = 60;
DBMS_OUTPUT.PUT_LINE('Firstname : '|| v_first_name);
DBMS_OUTPUT.PUT_LINE('Lastname : '|| v_last_name);
DBMS_OUTPUT.PUT_LINE('Salary : '|| v_salary);
END;
Answer: Error in Line 6.
Evaluate the following PL/SQL.
DECLARE
v_employee_id employees.employee_id%TYPE := 114;
BEGIN
DELETE employees WHERE employee_id = v_employee_id;
END;
Answer: The PL/SQL will delete employee number 114.
Which of the following does NOT describes SELECT Statement in a PL/SQL.
Answer: Queries must return only one column.
What are the three PL/SQL block types?
Answer: Anonymous, Procedure, Function
What is the exception name when PL/SQL has an internal problem
Answer: PROGRAM_ERROR
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?
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;
What is the error trapping function that returns the numeric value of the error code?
Answer: SQLCODE
What is the exception name when single row SELECT returned no data.
Answer: NO_DATA_FOUND
Which of the following DOES NOT describes an exception?
Answer: Exception is a PL/SQL error that is raised before program execution.
Evaluate the following PL/SQL.
DECLARE
v_employee_id employees.employee_id%TYPE := 114;
BEGIN
DELETE employees WHERE employee_id = v_employee_id;
END;
Answer: The PL/SQL will delete employee number 114.
In the DECLARE section of the PL/SQL block,
Answer: All of the choices
When an exception is predefined by Oracle server, the exception is raised ____________ .
Answer: Explicitly
Which of the will display the Employee ID and number of years in service with employee ID
150?
Answer: DECLARE
v_salaryemployees.salary%TYPE := 10000;
v_employee_idemployees.employee_id%TYPE := 150;
v_years INTEGER(10);
BEGIN
SELECT employee_id, ROUND((SYSDATE - hire_date) /365,0) INTO v_employee_id, v_years
FROM employees WHERE employee_id = v_employee_id ;
DBMS_OUTPUT.PUT_LINE('Employee ID:' || v_employee_id);
DBMS_OUTPUT.PUT_LINE('Number of years : ' || v_years);
END;
Actions are being performed when error occurs during PL/SQL execution in the
Answer: EXCEPTION
You can use this procedure to issue user-defined error messages from stored subprograms.
Answer: RAISE_APPLICATION_ERROR

PROG-113A / ► Week 14: Handling Exceptions / ► Short Quiz 12

Evaluate the following PL/SQL.


DECLARE
v_email VARCHAR(20);
BEGIN
SELECT email INTO v_email FROM EMPLOYEES WHERE email like 'D%';
DBMS_OUTPUT.PUT_LINE ('Employees whose email address starts with letter D :'
|| v_email);
EXCEPTION
WHEN TOO_MANY_ROWS THEN
DBMS_OUTPUT.PUT_LINE (' Your select statement retrieved multiple rows.');
END;
Answer: The PL/SQL block will run successfully.
Which of the following DOES NOT describes an exception?
Answer: Exception is a PL/SQL error that is raised before program execution.
What is the exception name when single row SELECT returned no data.
Answer: NO_DATA_FOUND
RAISE_APPLICATION_ERROR is used in two different places. These are
___________________.
Answer: Executable and exceptions section
What is the error trapping function that returns the numeric value of the error code?
Answer: SQLCODE
What is the exception name when PL/SQL has an internal problem
Answer: PROGRAM_ERROR
Evaluate the following PL/SQL. At what line number is the error of the PL/SQL?
DECLARE
v_deptno NUMBER := 800;
e_invalid EXCEPTION;
BEGIN
DELETE FROM departments
WHERE department_id = v_deptno;
IF SQL % NOT_FOUND THEN
RAISE e_invalid;
END IF;
COMMIT;
EXCEPTION
WHEN e_invalid THEN
DBMS_OUTPUT.PUT_LINE('No such department id.');
END;
Answer: 7
What is the last clause in trapping exceptions?
Answer: WHEN OTHERS
Complete the diagram in Trapping Non-Predefined Oracle Server Errors.
Answer: Declare, Associate, Reference

PROG-113A / ► Week 14: Handling Exceptions / ► Learning Activity 12

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

PROG-113A / ► Week 13: Interacting with Oracle Server / ► Learning Activity 11

Which of the following does NOT describes SELECT Statement in a PL/SQL.


Answer: Queries must return only one column.
Evaluate the following PL/SQL.
1 DECLARE

2 v_employee_id employees.employee_id%TYPE := 114;

3 BEGIN
4 DELETE employees WHERE employee_id = 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;

PROG-113A / ► Week 12: Introduction to PLSQL / ► Short Quiz 10

Which of the folllowing is TRUE?


Answer: SQL code are embedded withing PL/SQL statements
In the DECLARE section of the PL/SQL block
Answer: All of the choices
In PL/SQL Block Structure, which of the following are OPTIONAL?
Answer: None of the choices
What are the three PL/SQL block types?
Answer: Anonymous, Procedure, Function
How do you test the output of a PL/SQL block?
Answer: Use a predefined Oracle package and its procedure
You want to display the name, salary and tax of employee #150. Which of the PL/SQL will
execute successfully? Note tax is computed as 2% of the salary.
Answer: DECLARE
v_first_name VARCHAR2(50);
v_last_name VARCHAR2(50);
v_salary INTEGER(20);
v_tax INTEGER(10);
BEGIN
SELECT first_name, last_name, salary, salary * 0.02 INTO v_first_name, v_last_name,
v_salary, v_tax FROM employees WHERE employee_id = 150;
DBMS_OUTPUT.PUT_LINE('Firstname : '|| v_first_name);
DBMS_OUTPUT.PUT_LINE('Lastname : '|| v_last_name);
DBMS_OUTPUT.PUT_LINE('Salary : '|| v_salary);
DBMS_OUTPUT.PUT_LINE('Tax : '|| v_tax);
END;
Which of the folllowing statement describes PL/SQL?
Answer: PL/SQL is an Oracle proprietary, procedural, 3GL programming language

PROG-113A / ► Week 12: Introduction to PLSQL / ► Learning Activity 10


PL/SQL stands for
Answer: Procedural Language extension to SQL
PL/SQL Provides a block structure for executable units of ________________.
Answer: Code
In PL/SQL Block Structure, which of the following are mandatory?
Answer: BEGIN and END
Which of the following PL/SQL will execute successfully?
Answer: DECLARE
v_salary INTEGER(20);
BEGIN
SELECT salary INTO v_salary FROM employees WHERE employee_id = 150;
END;
Actions are being performed when error occurs during PL/SQL execution in the
Answer: EXCEPTION

PROG-113A / ► Week 11: Using Subqueries to Solve Queries / ► Short Quiz 9

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')

Evaluate the SQL command


SELECT employee_id, job_id, salary from employees where salary < ALL (SELECT salary
FROM employees WHERE job_id = 'FI_ACCOUNT') AND job_id = 'IT_PROG'
Answer: This has no error.

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')

Evaluate the SQL command


SELECT employee_id, last_name, first_name, job_id FROM employees WHERE department_id
= (SELECT max(department_id) FROM employees GROUP BY department_id)
Answer: This will return an error. Single-row subquery returns more than one row.

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)

PROG-113A / ► Week 11: Using Subqueries to Solve Queries / ► Learning Activity 9


Which of the following is INCORRECT?
Answer: Use single-row operators with multiple-row subqueries
Which of the folllowing is required in a subquery?
Answer: SELECT
Which of the following is CORRECT about sub-queries?
Answer: Subquery execute before the main query executes.
Evaluate the SQL Command
SELECT job_id, job_title FROM jobs J WHERE INCLUDES
(SELECT * FROM employees WHERE J.job_id = e.job_id );
Answer: The SQL will return an error. Invalid "INCLUDES" parameter.
Evaluate the SQL command
SELECT employee_id, salary from employees where salary = ANY (SELECT salary FROM employees
WHERE job_id = 'IT_PROG') AND job_id = 'ST_CLERK'
Answer: This has no error.

True or False: Foreign co-workers having conversation issues with


everyone in the office are better left off on their own.
A: False

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

True or False: Understanding everyone’s interest is the second step in the


problem solving process. This is when you choose the optimal solution.
Answer: false

These kind of words or terms are often discouraged to be used during a


presentation, especially if the audience is not that familiar with
programming terms.
A: technical words

Referring to the figure below, determine if the statement is TRUE or


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 :)

Which of the following does NOT describes SELECT Statement in a PL/SQL.


Answer: Queries must return only one column.
You want to display all the records of employee the same with the salary employee number 103.
Answer: SELECT * FROM employees WHERE salary = (SELECT salary from employees where
employee_id= 103)
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;
Which of the folllowing is TRUE?
Answer: SQL code are embedded within PL/SQL statements
When an exception is user defined, the exception is raised ____________ .
Answer: Explicitly
Which of the folllowing is TRUE?
Answer: SQL code are embedded withing PL/SQL statements
Weak REF CURSOR is very flexible.
Answer: True
How do you test the output of a PL/SQL block?
Answer: Use a predefined Oracle package and its procedure
Restrictive, specifies a RETURN type, associates only with type-compatible queries are description
of a ________________.
Answer: Strong REF CURSOR
Which of the following DOES NOT describes an exception?
Answer: Exception is a PL/SQL error that is raised before program execution.
These are local variables declared in the parameter list of a subprogram specification.
Answer: Formal parameter
Which of the following rules is INCORRECT about cursor variables?
Answer: None of the choices.
When an exception is predefined by Oracle server, the exception is raised ____________ .
Answer: Explicitly
Which of the following DOES NOT describes an exception?
Answer: Exception is a PL/SQL error that is raised before program execution.
Evaluate the following PL/SQL.
CREATE OR REPLACE PROCEDURE query_employee
(p_id IN employees.employee_id%TYPE,
p_name OUT employees.last_name%TYPE,
p_salary OUT employees.salary%TYPE) IS
BEGIN SELECT last_name, salary INTO p_name, p_salary
FROM employeesWHERE employee_id = p_id;
END query_employee
Answer: No error
You want to know the total number of employees whose firstname starts with letter D.
Which of the folllowing PLS/SQL executes successfully?
Answer: DECLARE
v_first_name employees.first_name%TYPE := 'D%';
BEGIN
SELECT COUNT(*) INTO v_first_name FROM employees WHERE first_name LIKE v_first_name;
DBMS_OUTPUT.PUT_LINE(v_first_name);
END;
What is the error trapping function that returns the numeric value of the error code?
Answer: SQLCODE
You want to display the name, salary and tax of employee #150. Which of the PL/SQL will execute
successfully? Note tax is computed as 2% of the salary.
Answer: DECLARE
v_first_name VARCHAR2(50);
v_last_name VARCHAR2(50);
v_salary INTEGER(20);
v_tax INTEGER(10);
BEGIN
SELECT first_name, last_name, salary, salary * 0.02 INTO v_first_name, v_last_name, v_salary,
v_tax FROM employees WHERE employee_id = 150;
DBMS_OUTPUT.PUT_LINE('Firstname : '|| v_first_name);
DBMS_OUTPUT.PUT_LINE('Lastname : '|| v_last_name);
DBMS_OUTPUT.PUT_LINE('Salary : '|| v_salary);
DBMS_OUTPUT.PUT_LINE('Tax : '|| v_tax);
END;
Which of the following is the syntax to close a cursor?
Answer: CLOSE cursor_variable_name;
Which of the following rules is INCORRECT about cursor variables?
Answer: None of the choices.
What are the three PL/SQL block types?
Answer: Anonymous, Procedure, Function
You can trap any error by including a corresponding handler within the exception-handling section of
the PL/SQL block.
Answer: True
Which of the following describes weak REF CURSOR?
Answer: Associates with any query
Given the answer in item __________, which of the folllowing stored procedure will display the
employee id and salary of Steven King?
Answer: DECLARE
v_employee_id employees.employee_id%TYPE;
v_emp_sal employees.salary%TYPE;
BEGIN
query_emp('King', 'Steven', v_employee_id, v_emp_sal);
DBMS_OUTPUT.PUT_LINE('Employee ID ' || v_employee_id ||' earns '|| to_char(v_emp_sal,
'$999,999.00'));
END;
You have been tasked to update the database by creating a PL/SQL to increase the salary of all IT
Programmer employees by 50% 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 *0.50 WHERE job_id = v_job_id;
END;
Which of the folllowing is required in a subquery?
Answer: SELECT
What is the exception name when PL/SQL has an internal problem
Answer: PROGRAM_ERROR
In the DECLARE section of the PL/SQL block,
Answer: All of the choices
Actions are being performed when error occurs during PL/SQL execution in the
Answer: EXCEPTION
What is the exception name when PL/SQL has an internal problem
Answer: PROGRAM_ERROR
Which of the folllowing statement describes PL/SQL?
Answer: PL/SQL is an Oracle proprietary, procedural, 3GL programming language
Evaluate the following PL/SQL.
DECLARE
v_employee_id employees.employee_id%TYPE := 114;
BEGIN
DELETE employees WHERE employee_id = v_employee_id;
END;
Answer: The PL/SQL will delete employee number 114.
Which of the following command is used to create a stand-alone procedure that is stored in the
Oracle database?
Answer: CREATE PROCEDURE
Evaluate the following PL/SQL.
DECLARE
v_email VARCHAR(20);
BEGIN
SELECT email INTO v_email FROM EMPLOYEES WHERE email like 'D%';
DBMS_OUTPUT.PUT_LINE ('Employees whose email address starts with letter D :'
|| v_email);
EXCEPTION
WHEN TOO_MANY_ROWS THEN
DBMS_OUTPUT.PUT_LINE (' Your select statement retrieved multiple rows.');
END;
Answer: The PL/SQL block will run successfully.
Which of the following is the syntax to define a REF CURSOR type?
Answer: TYPE ref_type_name IS REF CURSOR
[RETURN return_type];
The PL/SQL code block helps modularize code by using:
Answer: All of the choices
Which of the following is the syntax to fetch from a cursor variable?
Answer: FETCH cursor_variable_name INTO variable_name1
[,variable_name2,. . .] | record_name;
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')
Procedure can be stored in the database as a schema object.
Answer: True
In PL/SQL Block Structure, which of the following are mandatory?
Answer: BEGIN and END
PL/SQL stands for
Answer: Procedural Language extension to SQL
Which of the following is CORRECT about sub-queries?
Answer: Subquery execute before the main query executes.
Which of the following does NOT describes SELECT Statement in a PL/SQL.
Answer: Queries must return only one column.
PL/SQL Provides a block structure for executable units of ________________.
Answer: Code
Evaluate the SQL command
SELECT employee_id, salary from employees where salary = ANY (SELECT salary FROM
employees WHERE job_id = 'IT_PROG') AND job_id = 'ST_CLERK'
Answer: This has no error.
Which of the following PL/SQL will execute successfully?
Answer: DECLARE
v_salary INTEGER(20);
BEGIN
SELECT salary INTO v_salary FROM employees WHERE employee_id = 150;
END;
In PL/SQL Block Structure, which of the following are OPTIONAL?
Answer: None of the choices
Evaluate the following PL/SQL. At what line number is the error of the PL/SQL?
DECLARE
v_deptno NUMBER := 800;
e_invalid EXCEPTION;
BEGIN
DELETE FROM departments
WHERE department_id = v_deptno;
IF SQL % NOT_FOUND THEN
RAISE e_invalid;
END IF;
COMMIT;
EXCEPTION
WHEN e_invalid THEN
DBMS_OUTPUT.PUT_LINE('No such department id.');
END;
Answer: 7
What is the error trapping function that returns the numeric value of the error code?
Answer: SQLCODE
Fetch into a record when fetching from a cursor.
Answer: True

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’;

Which of the following SQL commands will display all stocks whose class is HW or AP.
SELECT * FROM parts WHERE IN class ('HW', '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?
SELECT employee_id, hire_date, TO_CHAR(hire_date,'Month') AS "Hired Month" FROM employees;

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;

John want to know how many employees receiving salary below 10,000. What SQL command he need to
run?
SELECT COUNT(*) FROM employees WHERE salary < 10000;

----------------------------------------
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%'

What will be the output of the following SQL?


SELECT * FROM parts WHERE (warehouse = 1 or warehouse = 2) AND class IN ('HW', 'AP') AND (price >
200 AND price < 500);
2 rows returned

What will be the output of the SQL command?


SELECT SUM(onhand) FROM PARTS where class = 'HW' OR class = 'AP' AND warehouse = 1;
137

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
output?
SELECT first_name, last_name, job_id, min_salary, max_salary FROM employees JOIN jobs USING
(job_id);
What will be the output of the SQL command below?
SELECT first_name, last_name, job_title FROM employees CROSS JOIN jobs ORDER BY last_name;
A Cartesian product

What will be the output of the SQL command below?


SELECT last_name, job_id, job_title FROM employees NATURAL JOIN jobs
List of names and job title of matched records from the employees and jobs table

----------------------------------------
SQ6

Given the SQL command


SELECT * FROM employees JOIN departments USING (department_id)
Which of the following describes the SQL command?
Joined table from the employees and department table

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

Display the manager id and employee id of every employee


SELECT E.employee_id, D.manager_id FROM employees E JOIN departments D ON E.department_id =
D.department_id

Given the SQL command


SELECT employees.first_name, employees.last_name, employees.salary,departments.department_name
FROM employees, departments
WHERE employees.department_id = departments.department_id;
Which of the following describes the SQL command?
List of employees name, salary and department name

----------------------------------------
LA7

Remove the Shareholder Services department in the department table


DELETE FROM departments WHERE department_name = ‘Shareholder Services’

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 update the information in the department table.
INSERT INTO departments VALUES (300, 'Training', 203, 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)

Remove all Manager positions in the department table.


DELETE FROM jobs WHERE job_title LIKE '%Manager%';
----------------------------------------
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 describes the command below?


SELECT * FROM employees WHERE department = 60 FOR UPDATE
Locks the rows in the EMPLOYEES table with department id is 60.

Which of the following will erase all records in the departments table
TRUNCATE TABLE departments

SQL command to create a marker in the current transaction.


SAVEPOINT

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

You want to cancel the privilege of matt to add records from the employees table.
REVOKE insert ON employees FROM 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 provide privilege to update the employees table?


GRANT update (salary) ON employees TO matt

Which of the following will is the correct command to create a role.


CREATE ROLE gen_manager

Matt wants to change his password from 1234 to abcd.


Which of the following will perform the task?
ALTER USER matt IDENTIFIED abcd;

The DBA will create a new user name sales.


Which of the following SQL command will perform the creation?
CREATE sales ACCESS 1234

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

What privileges that manipulates the content of the database objects.


Object Privileges

----------------------------------------
1st Q Exam

Evaluate the following SQL command


SELECT employee_id, salary, department_id FROM employees WHERE department_id IN (60,70)
The SQL command will display employees with department id 60 or 70.

True or False. The AND, OR, NOT are comparison operators.


False

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

List all employees except for IT_PROG job id.


All of the choices

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

Evaluate the following SQL command


SELECT * FROM jobs WHERE job_title LIKE 'Manager%'
No records will be displayed

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

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 last_name, TO_INTEGER(salary, $999,999.99) AS "MONTHLY SALARY" FROM employees
WHERE salary < 10000 WHERE last_name IN 'D%'

In creating Joins,the NATURALJOIN and USING clauses are____________


Mutually Exclusive

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
Question text
True or False: Operators, in Java programming language, use special symbols to call methods and their
objects.
Answer:
False
Question text
Read each statement carefully and decide whether it’s TRUE or FALSE.
There are no errors in the program.
Select one:
False
Question text
Refer to the block of codes below. Read each statement carefully and decide whether it’s TRUE or FALSE.
Line 9 uses a traditional comment which uses double forward slash.
Answer: False
Question text
True or False: Many programmers can be literate with Java programming language for it is intended to be that
way.
Answer:
True
Question text
True or False: You’ll know there’s an error if you see a red circle with an exclamation point in Netbeans IDE.
Answer:
True
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 = (x = 100) >= z;
Select one:
True
The file is accurately named – Students.java.
-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.
-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
The last line of code will output 100.0.
-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

There are keywords found in line 7.


-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 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.
-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

Substrings can contain 1 or 2 arguments.


-true
Determine the output.

-bar

The index of the letter “y” in string “Doggy” is 5.


-False
Determine the output.
-foo
TRUE OR FALSE: The value “val_3” is a white space “ “.
-False
True or False: Variable 1st_num is a good variable name in Java programming.
-False

TRUE OR FALSE: “val_2” contains “The”


-True
True or False: Instance variables are declared inside a method but outside a class.
-False

True or False: Variable names in Java are not necessarily case sensitive.
-False
Determine the output
-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
result = !((x * 10) < z);
-False

result = -(-z) == 43;


-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
x += x;
result = x == 154;
-False
The second line 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
A string can contain numbers.
-True

TRUE OR FALSE: This is an example of concatenation.


-True

TRUE OR FALSE: The value of “val_4” is “fox”


-False

TRUE OR FALSE: “val_2” contains “The”.


-True
Determine the output.
-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
Strings can be declared with str.
-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
Among the expressions below which is a statement?
-True
Expressions can be long and complex.
-true

number++; is an expression
-true
For-loops has a set number of iterations before starting.
-True

The equals( ) method can compare more than 2 arrays.


-False
While loops can use Booleans at test expressions.
-True

The test expression of the if statement is _______


-less than or equal to
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
x+1 is example of a statement.
-False

number++; is a block
-False
Arrays are
-Integers
The operator “new” allocates a memory block the size of what is declared.
-true
A class block can be an expression
-False
Statements can be expressions.
-False

Integer arrays can be populated with characters.


-False
Declaration clauses are declared as “number + 1”.
-False

Loops can be stopped with a break; statement.


-True
The equivalent of Paragraphs in coding is?
-Expressions

If statements cannot be nested in switches


-true
The length( ) method returns the size (number of indices) has.
-True
When polymorphism is used, the Java object can only take one form. Subclasses should have the
same function with the parent class.
-False
Arrays can contain (Answer) number of elements.
-Any
“||” and “&&” can be used in conditional statements.
-True
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
Expressions can be statements.
-True
Blocks can contain more blocks of code.
-True
If-else statements can be nested in?
-All of the choices

Statements are equivalent to paragraphs.


-False
A (answer) array is an array containing true or false values.
-boolean
Switches are always used with if-else statements
-False
True or False: The modulus operator returns the remainder of a division operation instead of the
quotient.
-true
Determine the output.
String val_1 = “564298”;
-5698
Determine the output.
String val_1 = “35”;
-4

The return value of the length( ) method is an integer


-true
A superclass is also known as a parent class.
-true

For-loops can be nested in while loops.


-true
In instantiating an object, the keyword instance is used.
-False

Object oriented programming utilizes the top down method


-False
Expressions are like clauses.
-true
The sort( ) method is always ascending.
-true
Arrays are data types.
-False
Variables must be declared as (Answer) for it to be fully hidden.

-private
While statements check the test expression at the end.
-False
The else statement can be used alone.
-False
The fill( ) method (Answer) the array with specific values.
-Fills
The output of println is

-55555
The person’s weight is declared correctly with the correct data type (byte) and value (160).
-FALSE
Determine the output.
String val_1 = “foo”
String val_2 = “bar”

val_2 = val_1;
val_1 = val_3;
System.out.println(val_1);
-bar
Determine the output.
String val_1 = “foo”
String val_2 = “bar”

val_2 = val_1;
val_1 = val_3;
System.out.println(val_2);
-foo
Switches can work properly even without the “break” expression.
-True
Blocks can be one liner or huge classes.
-True
The test expressions in conditional statements can be left empty.
-False

Abstraction works by hiding the implementation details and showing only the functions necessary.
-True
A single array can hold multiple data types
-False

A polymorphic object can pass more than one Is-a test.


-True
Another loop can be used as test expression.
-False

True or False: Public, static and void are sample of Java reserved keywords.
-True
The value of “pStr” in line 24 is
-True

The default syntax of a constructor is <class_name>(parameter, parameter){ }


-False
A nested class is not an inner class.
-False
Nested classes causes them to become abstracted
-False
A nested class is also called

-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
A constructor can only have 1-2 overloads or parameters.
-False
All possible data types of an array can be retuned as a string by the toString( ) method.
-True
Abstracted classes can contain 1 or more abstract methods.
-True
Abstraction shows the every bit of detail and implementation on how an application does something.
-False
Initialization is a process where the constructor is called for.
-True
The default syntax of a constructor is <class_name>( ){ }
-True
Classes cannot be nested.
-False
Abstract classes cannot have nested classes.
-False
The parent class of a nested class is called an outer class
-True
An inner class can be constructed directly without reference to the outer class.
-False
Arrays can be read backwards
-True
A single array can hold
-One data type

Abstracted methods already have implementations inside.


-False
are special methods to initialize objects.
-constructors

Constructors have 3 basic rules to follow.


-False
Nesting classes increases encapsulation.
-True

Each index can only contain (Answer) element.


-one
The sort( ) method can be set to sort only a part of an array.
-False
Subclasses or child classes could have different behaviors but still share the same functions from
their parent class.
-True

Abstract methods must have an explicit return value


-False
An abstract class must not contain abstract methods.
-False

Abstracted classes can be nested.


-True
A subclass constructor cannot invoke a superclass constructor.
-False
A class acquiring fields and methods of another class is called inheritance.
-True
Parallelsorting utilizes

-More cpu processing cores


method can copy one array to another.
-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.
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
Question text
True or False: Operators, in Java programming language, use special symbols to call methods and their
objects.
Answer:
False
Question text
Read each statement carefully and decide whether it’s TRUE or FALSE.
There are no errors in the program.
Select one:
False
Question text
Refer to the block of codes below. Read each statement carefully and decide whether it’s TRUE or FALSE.
Line 9 uses a traditional comment which uses double forward slash.
Answer: False
Question text
True or False: Many programmers can be literate with Java programming language for it is intended to be that
way.
Answer:
True
Question text
True or False: You’ll know there’s an error if you see a red circle with an exclamation point in Netbeans IDE.
Answer:
True
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 = (x = 100) >= z;
Select one:
True
The file is accurately named – Students.java.
-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.
-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
The last line of code will output 100.0.
-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
There are keywords found in line 7.
-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 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.
-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

Substrings can contain 1 or 2 arguments.


-true
Determine the output.

-bar

The index of the letter “y” in string “Doggy” is 5.


-False
Determine the output.
-foo
TRUE OR FALSE: The value “val_3” is a white space “ “.

-False
True or False: Variable 1st_num is a good variable name in Java programming.
-False

TRUE OR FALSE: “val_2” contains “The”


-True
True or False: Instance variables are declared inside a method but outside a class.
-False
True or False: Variable names in Java are not necessarily case sensitive.
-False

Determine the output


-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
result = !((x * 10) < z);
-False
result = -(-z) == 43;
-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

x += x;
result = x == 154;
-False
The second line 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
A string can contain numbers.
-True

TRUE OR FALSE: This is an example of concatenation.


-True

TRUE OR FALSE: The value of “val_4” is “fox”


-False

TRUE OR FALSE: “val_2” contains “The”.


-True
Determine the output.
-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

Strings can be declared with str.


-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

Among the expressions below which is a statement?


-True
Expressions can be long and complex.
-true
number++; is an expression
-true
For-loops has a set number of iterations before starting.
-True
The equals( ) method can compare more than 2 arrays.
-False
While loops can use Booleans at test expressions.
-True
The test expression of the if statement is _______
-less than or equal to
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
x+1 is example of a statement.
-False
number++; is a block
-False
Arrays are
-Integers
The operator “new” allocates a memory block the size of what is declared.
-true
A class block can be an expression
-False
Statements can be expressions.
-False
Integer arrays can be populated with characters.
-False
Declaration clauses are declared as “number + 1”.
-False
Loops can be stopped with a break; statement.
-True
The equivalent of Paragraphs in coding is?
-Expressions
If statements cannot be nested in switches
-true

The length( ) method returns the size (number of indices) has.


-True
When polymorphism is used, the Java object can only take one form. Subclasses should have the
same function with the parent class.
-False
Arrays can contain (Answer) number of elements.
-Any

“||” and “&&” can be used in conditional statements.


-True
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

Expressions can be statements.


-True
Blocks can contain more blocks of code.
-True

If-else statements can be nested in?


-All of the choices
Statements are equivalent to paragraphs.
-False

A (answer) array is an array containing true or false values.


-boolean
Switches are always used with if-else statements
-False
True or False: The modulus operator returns the remainder of a division operation instead of the
quotient.
-true
Determine the output.
String val_1 = “564298”;
-5698
Determine the output.
String val_1 = “35”;
-4
The return value of the length( ) method is an integer
-true
A superclass is also known as a parent class.
-true
For-loops can be nested in while loops.
-true
In instantiating an object, the keyword instance is used.
-False
Object oriented programming utilizes the top down method
-False
Expressions are like clauses.
-true

The sort( ) method is always ascending.


-true
Arrays are data types.
-False

Variables must be declared as (Answer) for it to be fully hidden.


-private
While statements check the test expression at the end.
-False

The else statement can be used alone.


-False
The fill( ) method (Answer) the array with specific values.
-Fills

The output of println is


-55555
The person’s weight is declared correctly with the correct data type (byte) and value (160).
-FALSE

Determine the output.


String val_1 = “foo”

String val_2 = “bar”


val_2 = val_1;
val_1 = val_3;
System.out.println(val_1);

-bar
Determine the output.
String val_1 = “foo”
String val_2 = “bar”
val_2 = val_1;
val_1 = val_3;

System.out.println(val_2);
-foo
Switches can work properly even without the “break” expression.
-True
Blocks can be one liner or huge classes.
-True
The test expressions in conditional statements can be left empty.
-False
Abstraction works by hiding the implementation details and showing only the functions necessary.
-True
A single array can hold multiple data types
-False
A polymorphic object can pass more than one Is-a test.
-True
Another loop can be used as test expression.
-False
True or False: Public, static and void are sample of Java reserved keywords.
-True
The value of “pStr” in line 24 is

-True
The default syntax of a constructor is <class_name>(parameter, parameter){ }
-False

A nested class is not an inner class.


-False
Nested classes causes them to become abstracted
-False

A nested class is also called


-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
A constructor can only have 1-2 overloads or parameters.
-False

All possible data types of an array can be retuned as a string by the toString( ) method.
-True
Abstracted classes can contain 1 or more abstract methods.
-True

Abstraction shows the every bit of detail and implementation on how an application does something.
-False
Initialization is a process where the constructor is called for.
-True
The default syntax of a constructor is <class_name>( ){ }
-True
Classes cannot be nested.
-False
Abstract classes cannot have nested classes.
-False
The parent class of a nested class is called an outer class
-True
An inner class can be constructed directly without reference to the outer class.
-False
Arrays can be read backwards
-True
A single array can hold
-One data type
Abstracted methods already have implementations inside.
-False
are special methods to initialize objects.
-constructors
Constructors have 3 basic rules to follow.
-False
Nesting classes increases encapsulation.
-True
Each index can only contain (Answer) element.
-one
The sort( ) method can be set to sort only a part of an array.
-False
Subclasses or child classes could have different behaviors but still share the same functions from
their parent class.
-True
Abstract methods must have an explicit return value
-False
An abstract class must not contain abstract methods.
-False
Abstracted classes can be nested.
-True

A subclass constructor cannot invoke a superclass constructor.


-False
A class acquiring fields and methods of another class is called inheritance.
-True

Parallelsorting utilizes
-More cpu processing cores
method can copy one array to another.
-arraycopy()

The equivalent of clauses in coding is?


-Expressions
Int num = 1; for(num=num;num<=10;num++) is an acceptable code snippet.
-true
Loop that has a pre-determined number of iterations
-while
An int can be used even if it is declared outside a for-loop.
-true
Overload methods must be the same name as the class
-true
What the break statement in this example does is ________.
-Ends the whole instance of the loop
The random( ) method sorts the array randomly.
-False
The last part in a for loop setup can be an ________.
- both
The “1” in arrayName[1] is called an ________.
-Index
The continue; statement ends all the iterations of a loop.
- False
Which is not a proper increment?
- n+-;
Infine for-loops can be declared as for( ){ }.
- False
If-if is more logical than else-if.
- False
The else statement can be removed if not needed.
-True
Expressions, Statements and Blocks are like composing sentences and paragraphs.
-True
You can declare a new method in the subclass which is not declared in the superclass.
-True
The return value of the equals( ) method is ________ .
-None of the choices
The Arrays.sort( ) method sorts an array into _________ order.
-Ascending
This type of declaration is discouraged: “int myArray[ ]”
- True
An if-else-if-else statement is a block.
-True
If the increment num=num+2 is changed to num++, the final value of num will be
________.
-5
The term of each pass through a loop makes is called?
-iteration
Loops must always have a continue or break statement.
-False
1+2+3/4*5 is an unambiguous expression
-False
Conditional statements can contain more conditional statements.
- True
int num = 1;
if(num==1 && num<=1){
body;
}
The conditional statement will _______.
- execute the body
byte( ][ ][ ) myArray; is an example of ________.
- An error
An array _______ hold objects.
- can
A reference variable can be reassigned to other objects provided that it is not declared
________.
- final
The test expression of conditional statement cannot contain _______
-!
Each pass through of a loop is called a cycle.
- True
If the increment “num = num + 2” is changed to “num = num + 1” the final output will be
_______.
-0
Ifs and else-ifs test expressions return true or false.
- True
_______ classes increase the encapsulation of you methods and data.
- nesting
Constructed methods are initialized with 0 or null depending on the data type.
- true
The else statement catches whatever argument the if and else-if didn’t
- True
An iteration of a loop is equivalent to one pass through.
- true
38. If we change the initial value of num in line 6 to “num = 0”, the println output will be
_______
-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
A loop can contain no expressions or statements inside.
- true
Conditional statements are the same as declaration statements.
- False
You cannot use inherited methods directly in a child class.
- False
The equals( ) method compares 2 arrays.
- True
Method invocations are statements
- True
To implement encapsulation, you have to declare class variables with the private
modifier.
- True
Inner class methods can be called by constructing the inner class.
- False
Encapsulated data are hidden from other classes.
- True
Procedural programming will be tricky for applications.
Answer: small
Strings can directly concatenated to an int.
Answer: False

1. Machine language and assembly language are collectively referred to as


_________________________
Answer: LOW-LEVEL LANGUAGE
2. 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

3. Machine language is also known as Answer language.


4. Kyoto protocol addresses environmental issues through the campaign of
____________________.
Answer: reducing greenhouse gas emissions
5. 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 – like additional characters and skills.”
Select one:
Answer: Maintainability
6.C# was released by Answer Micros
.

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?

Answer: Social media login limit.


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.
I cannot type anything but my mouse is working, I am using a brand new USB keyboard, which port
should I check?
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.
ANSWER: PRINTER WIZARD
13.Big business companies are the only ones responsible for enforcing environmental policies since
they can afford alternative cleaner technology.
ANSWER: FALSE
14. Who is considered as a user (component of an operating system)?
ANSWER; ALL OF THE CHOICES

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.
ANSWER: High-Level 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?
ANSWER: IV, I, V, III, II
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

21. The first computer concept invented is called _________________________.


ANSWER; ANALYTICAL ENGINE

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
23.Java is an example of

ANSWER: HIGH-LEVEL LANGUAGE


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 it be connected?
ANSWER: D
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
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. ead 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.
“I find it really enjoying to play XYZ since I can invite my friends from social media profile. It works
well with this social media app!”
ANSWER: COMPATIBILITY
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.

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.”
ANSWER: SECURITY
33.Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product quality model
and write the letter that corresponds to your answer.
Capacity
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: ASK FOR HEIGHT
35.Montreal protocol protects the ozone layer by ____________________.
ANSWER: phasing out harmful substances
36. 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
37. Refer to the image below to answer the following question.
By default, what is the value of limit?
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 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.
“XYZ is so cool! I tried to install it in my old computer and it still runs smoothly. Given that the
computer’s video card is a bit faulty.“
ANSWER: Reliability

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: NONE OF THE CHOICES


44. Refer to the pseudocode below and answer the following question: What happens after weight is
given?
ANSWER: ASK FOR HEIGHT
45.Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product quality model
and write the letter that corresponds to your answer.
Learnability
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?

ANSWER: display Overweight


47.Axel is finally documenting his work. What could he be writing?

ANSWER: instructions for the users


48. 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.
“One good thing I find with XYZ as when my laptop shuts down accidentally, my game score and
status can still be recovered. No need to repeat a level.”
ANSWER: Reliability
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
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. 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.
Answer: accountable
Question text
True or False: Monitoring and evaluating means brainstorming.
Answer: False
Question 5
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Axel is finally documenting his work. What could he be writing?
Select one:
a. requirements of the program
b. system analysis
c. bug reviews and errors
d. instructions for the users

Question 6
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Machine language and assembly language are collectively referred to as
_________________________.
Select one:
a. Average level language
b. Low-level language
c. Advanced language
d. High-level language

Question 7
Complete
Mark 1.00 out of 1.00

Flag question

Question text
True or False: Nothing good ever comes from giving feedback. If anything, anyone who does give
will only get scolded by the boss.
Answer: False

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 problems in Materials, Measurement, Method, People, Equipment or
Environment.

When the software used was checked, the project manager discovered that some of the
programmers are using an old version of Java. This cause is categorized under

Answer. Materials

Question 9
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 be told
about the students who volunteered to test the student record system.
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:
a. email
b. social media
c. hyperlinks
d. speaking

Question 12
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Refer to the pseudocode below and answer the following question:
What is the first thing that the program will do?
Select one:
a. ask for BMI
b. print height
c. ask for height
d. print BMI

Question 13
Complete
Mark 1.00 out of 1.00

Flag question

Question text
____________________ in the workplace protection of sensitive business information through
precautionary measures like confidentiality clauses or non-disclosure agreements.
Select one:
a. Curiosity
b. Integrity
c. Secrecy
d. Confidentiality

Question 14
Complete
Mark 0.00 out of 1.00
Flag question

Question text
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product quality model and
write the letter that corresponds to your answer.
Capacity
Select one:
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.
Answer: False

Question 17
Complete
Mark 1.00 out of 1.00

Flag question

Question text
In ____________________, 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
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.
Answer: True

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:
a. True
b. 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:
a. True
b. 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
b. Actions
c. Objectives
d. Process

Question 23
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Categorize the following 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
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
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 problems in Materials, Measurement, Method, People, Equipment or
Environment.

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

Question 27
Complete
Mark 1.00 out of 1.00

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
Complete
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:
a. Correct
b. Wrong

Question 29
Complete
Mark 1.00 out of 1.00

Flag question

Question text
In adding a new printer, the _____________ will guide you on the steps to be taken.
Select one:
a. Printer Guide
b. Printer Affix
c. Printer Install
d. Printer Wizard

Question 30
Complete
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

Question text
Refer to the image below and write only the letter of the correct answer in the space provided.

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 text
Identify whether the following task should be listed as a milestone or be included in the Gantt chart.
Fix bugs and errors detected in the system.
Answer: Gantt chart

Question 33
Complete
Mark 1.00 out of 1.00

Flag question

Question text
In the correct order, the essential parts of the communication process are:
Select one:
a. Source, Message, Encoding, Channel, Decoding, Receiver, Feedback
b. Source, Message, Encoding, Channel, Receiver, Decoding, Feedback
c. Source, Message, Encoding, Channel, Decoding, Feedback, Receiver
d. Source, Message, Encoding, Receiver, Decoding, Channel, Feedback

Question 34
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
Answer: internal

Question 35
Complete
Mark 1.00 out of 1.00

Flag question

Question text
True or False: To solve a problem means to know first what the problem is before coming up with
the feasible solutions.
Answer: True

Question 36
Complete
Mark 1.00 out of 1.00

Flag question

Question text
True or False: Listing down the issues related to the problem is second to the last step in an
effective problem solving process.
Answer: False

Question 37
Complete
Mark 1.00 out of 1.00

Flag question

Question text
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:
a. Portability
b. Security
c. Maintainability
d. Functional Suitability
e. Usability
f. Compatibility
g. Performance Efficiency
h. Reliability

Question 38
Complete
Mark 1.00 out of 1.00
Flag question

Question text
Monica accidentally unplugged the mouse PS/2 port. What will happen to the mouse connected thru
the universal serial bus port?
Select one:
a. The mouse will stop working.
b. None of the choices.
c. The mouse will freeze.
d. All of the choices
e. The mouse will be disabled.

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
Flag question

Question text
Decide whether it is a communication instrument or purpose.
A Gantt chart that shows the schedule for the development process of the student record system.

Answer: instrument

Question 41
Complete
Mark 1.00 out of 1.00

Flag question

Question text
A product or service 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 Control
c. Safety Programs
d. Reflective Behavior
Question 42
Complete
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.
ComputeTotalScore() for a routine to sum up the scores.
Select one:
a. Wrong
b. 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
Mark 1.00 out of 1.00

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
Question text
The first computer concept invented is called _________________________.
Select one:
a. COBOL
b. Analytical Engine
c. FORTRAN
d. PlanKalKul

Question 49
Complete
Mark 1.00 out of 1.00

Flag question

Question text
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.
“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.”
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
Flag question

Question text
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product quality model and
write the letter that corresponds to your answer.
Integrity
Select one:
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 does NOT describes SELECT Statement in a PL/SQL.


Answer: Queries must return only one column.
You want to display all the records of employee the same with the salary employee number 103.
Answer: SELECT * FROM employees WHERE salary = (SELECT salary from employees where
employee_id= 103)
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;
Which of the folllowing is TRUE?
Answer: SQL code are embedded within PL/SQL statements
When an exception is user defined, the exception is raised ____________ .
Answer: Explicitly
Which of the folllowing is TRUE?
Answer: SQL code are embedded withing PL/SQL statements
Weak REF CURSOR is very flexible.
Answer: True
How do you test the output of a PL/SQL block?
Answer: Use a predefined Oracle package and its procedure
Restrictive, specifies a RETURN type, associates only with type-compatible queries are description
of a ________________.
Answer: Strong REF CURSOR
Which of the following DOES NOT describes an exception?
Answer: Exception is a PL/SQL error that is raised before program execution.
These are local variables declared in the parameter list of a subprogram specification.
Answer: Formal parameter
Which of the following rules is INCORRECT about cursor variables?
Answer: None of the choices.
When an exception is predefined by Oracle server, the exception is raised ____________ .
Answer: Explicitly
Which of the following DOES NOT describes an exception?
Answer: Exception is a PL/SQL error that is raised before program execution.
Evaluate the following PL/SQL.
CREATE OR REPLACE PROCEDURE query_employee
(p_id IN employees.employee_id%TYPE,
p_name OUT employees.last_name%TYPE,
p_salary OUT employees.salary%TYPE) IS
BEGIN SELECT last_name, salary INTO p_name, p_salary
FROM employeesWHERE employee_id = p_id;
END query_employee
Answer: No error
You want to know the total number of employees whose firstname starts with letter D.
Which of the folllowing PLS/SQL executes successfully?
Answer: DECLARE
v_first_name employees.first_name%TYPE := 'D%';
BEGIN
SELECT COUNT(*) INTO v_first_name FROM employees WHERE first_name LIKE v_first_name;
DBMS_OUTPUT.PUT_LINE(v_first_name);
END;
What is the error trapping function that returns the numeric value of the error code?
Answer: SQLCODE
You want to display the name, salary and tax of employee #150. Which of the PL/SQL will execute
successfully? Note tax is computed as 2% of the salary.
Answer: DECLARE
v_first_name VARCHAR2(50);
v_last_name VARCHAR2(50);
v_salary INTEGER(20);
v_tax INTEGER(10);
BEGIN
SELECT first_name, last_name, salary, salary * 0.02 INTO v_first_name, v_last_name, v_salary,
v_tax FROM employees WHERE employee_id = 150;
DBMS_OUTPUT.PUT_LINE('Firstname : '|| v_first_name);
DBMS_OUTPUT.PUT_LINE('Lastname : '|| v_last_name);
DBMS_OUTPUT.PUT_LINE('Salary : '|| v_salary);
DBMS_OUTPUT.PUT_LINE('Tax : '|| v_tax);
END;
Which of the following is the syntax to close a cursor?
Answer: CLOSE cursor_variable_name;
Which of the following rules is INCORRECT about cursor variables?
Answer: None of the choices.
What are the three PL/SQL block types?
Answer: Anonymous, Procedure, Function
You can trap any error by including a corresponding handler within the exception-handling section of
the PL/SQL block.
Answer: True
Which of the following describes weak REF CURSOR?
Answer: Associates with any query
Given the answer in item __________, which of the folllowing stored procedure will display the
employee id and salary of Steven King?
Answer: DECLARE
v_employee_id employees.employee_id%TYPE;
v_emp_sal employees.salary%TYPE;
BEGIN
query_emp('King', 'Steven', v_employee_id, v_emp_sal);
DBMS_OUTPUT.PUT_LINE('Employee ID ' || v_employee_id ||' earns '|| to_char(v_emp_sal,
'$999,999.00'));
END;
You have been tasked to update the database by creating a PL/SQL to increase the salary of all IT
Programmer employees by 50% 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 *0.50 WHERE job_id = v_job_id;
END;
Which of the folllowing is required in a subquery?
Answer: SELECT
What is the exception name when PL/SQL has an internal problem
Answer: PROGRAM_ERROR
In the DECLARE section of the PL/SQL block,
Answer: All of the choices
Actions are being performed when error occurs during PL/SQL execution in the
Answer: EXCEPTION
What is the exception name when PL/SQL has an internal problem
Answer: PROGRAM_ERROR
Which of the folllowing statement describes PL/SQL?
Answer: PL/SQL is an Oracle proprietary, procedural, 3GL programming language
Evaluate the following PL/SQL.
DECLARE
v_employee_id employees.employee_id%TYPE := 114;
BEGIN
DELETE employees WHERE employee_id = v_employee_id;
END;
Answer: The PL/SQL will delete employee number 114.
Which of the following command is used to create a stand-alone procedure that is stored in the
Oracle database?
Answer: CREATE PROCEDURE
Evaluate the following PL/SQL.
DECLARE
v_email VARCHAR(20);
BEGIN
SELECT email INTO v_email FROM EMPLOYEES WHERE email like 'D%';
DBMS_OUTPUT.PUT_LINE ('Employees whose email address starts with letter D :'
|| v_email);
EXCEPTION
WHEN TOO_MANY_ROWS THEN
DBMS_OUTPUT.PUT_LINE (' Your select statement retrieved multiple rows.');
END;
Answer: The PL/SQL block will run successfully.
Which of the following is the syntax to define a REF CURSOR type?
Answer: TYPE ref_type_name IS REF CURSOR
[RETURN return_type];
The PL/SQL code block helps modularize code by using:
Answer: All of the choices
Which of the following is the syntax to fetch from a cursor variable?
Answer: FETCH cursor_variable_name INTO variable_name1
[,variable_name2,. . .] | record_name;
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')
Procedure can be stored in the database as a schema object.
Answer: True
In PL/SQL Block Structure, which of the following are mandatory?
Answer: BEGIN and END
PL/SQL stands for
Answer: Procedural Language extension to SQL
Which of the following is CORRECT about sub-queries?
Answer: Subquery execute before the main query executes.
Which of the following does NOT describes SELECT Statement in a PL/SQL.
Answer: Queries must return only one column.
PL/SQL Provides a block structure for executable units of ________________.
Answer: Code
Evaluate the SQL command
SELECT employee_id, salary from employees where salary = ANY (SELECT salary FROM
employees WHERE job_id = 'IT_PROG') AND job_id = 'ST_CLERK'
Answer: This has no error.
Which of the following PL/SQL will execute successfully?
Answer: DECLARE
v_salary INTEGER(20);
BEGIN
SELECT salary INTO v_salary FROM employees WHERE employee_id = 150;
END;
In PL/SQL Block Structure, which of the following are OPTIONAL?
Answer: None of the choices
Evaluate the following PL/SQL. At what line number is the error of the PL/SQL?
DECLARE
v_deptno NUMBER := 800;
e_invalid EXCEPTION;
BEGIN
DELETE FROM departments
WHERE department_id = v_deptno;
IF SQL % NOT_FOUND THEN
RAISE e_invalid;
END IF;
COMMIT;
EXCEPTION
WHEN e_invalid THEN
DBMS_OUTPUT.PUT_LINE('No such department id.');
END;
Answer: 7
What is the error trapping function that returns the numeric value of the error code?
Answer: SQLCODE
Fetch into a record when fetching from a cursor.
Answer: True

PROG-113A / ► Week 18: Designing PL/SQL / ► Short Quiz 14


Which of the following is the syntax to open a cursor varial
Answer: OPEN cursor_variable_name
FOR select_statement;
Which of the following is the syntax to define a REF CURSOR type?
Answer: TYPE ref_type_name IS REF CURSOR
[RETURN return_type];
Weak REF CURSOR is very flexible.
Answer: True
Evaluate the following. What will be the output?
DECLARE
SUBTYPE Accumulator IS NUMBER (4,2);
v_amount accumulator;
v_num1 NUMBER;
v_num2 NUMBER;
v_num3 NUMBER;
BEGIN
v_amount := 10.50;
v_num1 := 1;
v_num2 := 2;
v_num3 := 3;
v_num1 := v_amount;
v_num2 := v_num1 + v_amount;
v_num2 := v_num2 - v_num3;
dbms_output.put_line('Total is: ' || v_num2);
END;
Answer: 18
Which of the following is the syntax to fetch from a cursor variable?
Answer: FETCH cursor_variable_name INTO variable_name1
[,variable_name2,. . .] | record_name;
Fetch into a record when fetching from a cursor.
Answer: True
Which of the following is the syntax to close a cursor?
Answer: CLOSE cursor_variable_name;
This is a subset of an existing data type that may place a constraint on its base type.
Answer: Subtype
Which of the following rules is INCORRECT about cursor variables?
Answer: None of the choices.
Use column aliases in cursors for calculated columns fetched into records declared with %COLUMNTYPE.
Answer: False

PROG-113A / ► Week 18: Designing PL/SQL / ► Learning Activity 14

Which of the following rules is INCORRECT about cursor variables?


Answer: None of the choices.
Which of the following describes weak REF CURSOR?
Answer: Associates with any query
Restrictive, specifies a RETURN type, associates only with type-compatible queries are
description of a ________________.
Answer: Strong REF CURSOR
Which of the following is INCORRECT about the guidelines for cursor design?
Answer: Use column aliases in cursors for calculated columns fetched into records declared with
%COLUMNTYPE.
This is a subset of an existing data type that may place a constraint on its base type.
Answer: Subtype

PROG-113A / ► Week 17: / ► Short Quiz 13


Evaluate the following PL/SQL.
CREATE OR REPLACE PROCEDURE query_employee
(p_id IN employees.employee_id%TYPE,
p_name OUT employees.last_name%TYPE,
p_salary OUT employees.salary%TYPE) IS
BEGIN SELECT last_name, salary INTO p_name, p_salary
FROM employeesWHERE employee_id = p_id;
END query_employee
Answer: No error
Evaluate the following PL/SQL. Which of the following will line creates an error?
CREATE OR REPLACE PROCEDURE query_emp
(
p_department_id IN employees.department_id%TYPE,
p_name OUT employees.last_name%TYPE,
p_salary OUT employees.salary%TYPE
)
IS
BEGIN
SELECT last_name, salary, department_id INTO p_name, p_salary, p_department_id
FROM employees
WHERE salary >= p_salary AND department_id = p_department_id ;
END query_emp;
Answer: Line 3
These are local variables declared in the parameter list of a subprogram specification.
Answer: Formal parameter
Given the answer in item __________, which of the folllowing stored procedure will display the
employee id and salary of Steven King?
Answer: DECLARE
v_employee_id employees.employee_id%TYPE;
v_emp_sal employees.salary%TYPE;
BEGIN
query_emp('King', 'Steven', v_employee_id, v_emp_sal);
DBMS_OUTPUT.PUT_LINE('Employee ID ' || v_employee_id ||' earns '|| to_char(v_emp_sal,
'$999,999.00'));
END;

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

PROG-113A / ► Week 16: Creating Procedures / ► Learning Activity 13


Procedure can be stored in the database as a schema object.
Answer: True
The PL/SQL code block helps modularize code by using:
Answer: All of the choices
Which of the following command is used to create a stand-alone procedure that is stored in the Oracle
database?
Answer: CREATE PROCEDURE
Which of the folllowing 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
Answer: iii & v
Which if the following is NOT a benefits of using modular program constructs?
Answer: None of the choices
PROG-113A / ► Week 18: Designing PL/SQL / ► Short Quiz 14
Which of the following is the syntax to open a cursor varial
Answer: OPEN cursor_variable_name
FOR select_statement;
Which of the following is the syntax to define a REF CURSOR type?
Answer: TYPE ref_type_name IS REF CURSOR
[RETURN return_type];
Weak REF CURSOR is very flexible.
Answer: True
Evaluate the following. What will be the output?
DECLARE
SUBTYPE Accumulator IS NUMBER (4,2);
v_amount accumulator;
v_num1 NUMBER;
v_num2 NUMBER;
v_num3 NUMBER;
BEGIN
v_amount := 10.50;
v_num1 := 1;
v_num2 := 2;
v_num3 := 3;
v_num1 := v_amount;
v_num2 := v_num1 + v_amount;
v_num2 := v_num2 - v_num3;
dbms_output.put_line('Total is: ' || v_num2);
END;
Answer: 18
Which of the following is the syntax to fetch from a cursor variable?
Answer: FETCH cursor_variable_name INTO variable_name1
[,variable_name2,. . .] | record_name;
Fetch into a record when fetching from a cursor.
Answer: True
Which of the following is the syntax to close a cursor?
Answer: CLOSE cursor_variable_name;
This is a subset of an existing data type that may place a constraint on its base type.
Answer: Subtype
Which of the following rules is INCORRECT about cursor variables?
Answer: None of the choices.
Use column aliases in cursors for calculated columns fetched into records declared with %COLUMNTYPE.
Answer: False

PROG-113A / ► Week 18: Designing PL/SQL / ► Learning Activity 14


Which of the following rules is INCORRECT about cursor variables?
Answer: None of the choices.
Which of the following describes weak REF CURSOR?
Answer: Associates with any query
Restrictive, specifies a RETURN type, associates only with type-compatible queries are
description of a ________________.
Answer: Strong REF CURSOR
Which of the following is INCORRECT about the guidelines for cursor design?
Answer: Use column aliases in cursors for calculated columns fetched into records declared with
%COLUMNTYPE.
This is a subset of an existing data type that may place a constraint on its base type.
Answer: Subtype

PROG-113A / ► Week 15: Long Quiz / ► Long Quiz 3 (30/30)


(Correction)
How do you test the output of a PL/SQL block?
Answer: Use a predefined Oracle package and its procedure
Which of the folllowing statement describes PL/SQL?
Answer: PL/SQL is an Oracle proprietary, procedural, 3GL programming language
Which of the following syntax to declare EXCEPTION named e_invalid_id?
Answer: e_invalid_id EXCEPTION;
In PL/SQL Block Structure, which of the following are mandatory?
Answer: BEGIN and END
This is a type of cursor which is created and managed internally by the Oracle server to process
SQL statements
Answer: Implicit
PL/SQL stands for
Answer: Procedural Language extension to SQL
Which of the following PL/SQL will execute successfully?
Answer: DECLARE
v_salary INTEGER(20);
BEGIN
SELECT salary INTO v_salary FROM employees WHERE employee_id = 150;
END;
What is the last clause in trapping exceptions?
Answer: WHEN OTHERS
PL/SQL Provides a block structure for executable units of ________________.
Answer: Code
Evaluate the following PL/SQL.
DECLARE
v_email VARCHAR(20);
BEGIN
SELECT email INTO v_email FROM EMPLOYEES WHERE email like 'D%';
DBMS_OUTPUT.PUT_LINE ('Employees whose email address starts with letter D :'
|| v_email);
EXCEPTION
WHEN TOO_MANY_ROWS THEN
DBMS_OUTPUT.PUT_LINE (' Your select statement retrieved multiple rows.');
END;
Answer: The PL/SQL block will run successfully.
Which of the folllowing is TRUE?
Answer: SQL code are embedded within PL/SQL statements
You can trap any error by including a corresponding handler within the exception-handling
section of the PL/SQL block.
Answer: True
When an exception is user defined, the exception is raised ____________ .
Answer: Explicitly
Evaluate the PL/SQL
DECLARE
v_first_name VARCHAR2(50);
v_last_name VARCHAR2(50);
v_salary INTEGER(20);
BEGIN
SELECT first_name, last_name, salary INTO v_first_name, v_last_name, v_salary FROM
employees WHERE department_id = 60;
DBMS_OUTPUT.PUT_LINE('Firstname : '|| v_first_name);
DBMS_OUTPUT.PUT_LINE('Lastname : '|| v_last_name);
DBMS_OUTPUT.PUT_LINE('Salary : '|| v_salary);
END;
Answer: Error in Line 6.
Evaluate the following PL/SQL.
DECLARE
v_employee_id employees.employee_id%TYPE := 114;
BEGIN
DELETE employees WHERE employee_id = v_employee_id;
END;
Answer: The PL/SQL will delete employee number 114.
Which of the following does NOT describes SELECT Statement in a PL/SQL.
Answer: Queries must return only one column.
What are the three PL/SQL block types?
Answer: Anonymous, Procedure, Function
What is the exception name when PL/SQL has an internal problem
Answer: PROGRAM_ERROR
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?
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;
What is the error trapping function that returns the numeric value of the error code?
Answer: SQLCODE
What is the exception name when single row SELECT returned no data.
Answer: NO_DATA_FOUND
Which of the following DOES NOT describes an exception?
Answer: Exception is a PL/SQL error that is raised before program execution.
Evaluate the following PL/SQL.
DECLARE
v_employee_id employees.employee_id%TYPE := 114;
BEGIN
DELETE employees WHERE employee_id = v_employee_id;
END;
Answer: The PL/SQL will delete employee number 114.
In the DECLARE section of the PL/SQL block,
Answer: All of the choices
When an exception is predefined by Oracle server, the exception is raised ____________ .
Answer: Explicitly
Which of the will display the Employee ID and number of years in service with employee ID
150?
Answer: DECLARE
v_salaryemployees.salary%TYPE := 10000;
v_employee_idemployees.employee_id%TYPE := 150;
v_years INTEGER(10);
BEGIN
SELECT employee_id, ROUND((SYSDATE - hire_date) /365,0) INTO v_employee_id, v_years
FROM employees WHERE employee_id = v_employee_id ;
DBMS_OUTPUT.PUT_LINE('Employee ID:' || v_employee_id);
DBMS_OUTPUT.PUT_LINE('Number of years : ' || v_years);
END;
Actions are being performed when error occurs during PL/SQL execution in the
Answer: EXCEPTION
You can use this procedure to issue user-defined error messages from stored subprograms.
Answer: RAISE_APPLICATION_ERROR

PROG-113A / ► Week 14: Handling Exceptions / ► Short Quiz 12

Evaluate the following PL/SQL.


DECLARE
v_email VARCHAR(20);
BEGIN
SELECT email INTO v_email FROM EMPLOYEES WHERE email like 'D%';
DBMS_OUTPUT.PUT_LINE ('Employees whose email address starts with letter D :'
|| v_email);
EXCEPTION
WHEN TOO_MANY_ROWS THEN
DBMS_OUTPUT.PUT_LINE (' Your select statement retrieved multiple rows.');
END;
Answer: The PL/SQL block will run successfully.
Which of the following DOES NOT describes an exception?
Answer: Exception is a PL/SQL error that is raised before program execution.
What is the exception name when single row SELECT returned no data.
Answer: NO_DATA_FOUND
RAISE_APPLICATION_ERROR is used in two different places. These are
___________________.
Answer: Executable and exceptions section
What is the error trapping function that returns the numeric value of the error code?
Answer: SQLCODE
What is the exception name when PL/SQL has an internal problem
Answer: PROGRAM_ERROR
Evaluate the following PL/SQL. At what line number is the error of the PL/SQL?
DECLARE
v_deptno NUMBER := 800;
e_invalid EXCEPTION;
BEGIN
DELETE FROM departments
WHERE department_id = v_deptno;
IF SQL % NOT_FOUND THEN
RAISE e_invalid;
END IF;
COMMIT;
EXCEPTION
WHEN e_invalid THEN
DBMS_OUTPUT.PUT_LINE('No such department id.');
END;
Answer: 7
What is the last clause in trapping exceptions?
Answer: WHEN OTHERS
Complete the diagram in Trapping Non-Predefined Oracle Server Errors.
Answer: Declare, Associate, Reference

PROG-113A / ► Week 14: Handling Exceptions / ► Learning Activity 12

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

PROG-113A / ► Week 13: Interacting with Oracle Server / ► Learning Activity 11

Which of the following does NOT describes SELECT Statement in a PL/SQL.


Answer: Queries must return only one column.
Evaluate the following PL/SQL.
1 DECLARE

2 v_employee_id employees.employee_id%TYPE := 114;

3 BEGIN

4 DELETE employees WHERE employee_id = 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;

PROG-113A / ► Week 12: Introduction to PLSQL / ► Short Quiz 10

Which of the folllowing is TRUE?


Answer: SQL code are embedded withing PL/SQL statements
In the DECLARE section of the PL/SQL block
Answer: All of the choices
In PL/SQL Block Structure, which of the following are OPTIONAL?
Answer: None of the choices
What are the three PL/SQL block types?
Answer: Anonymous, Procedure, Function
How do you test the output of a PL/SQL block?
Answer: Use a predefined Oracle package and its procedure
You want to display the name, salary and tax of employee #150. Which of the PL/SQL will
execute successfully? Note tax is computed as 2% of the salary.
Answer: DECLARE
v_first_name VARCHAR2(50);
v_last_name VARCHAR2(50);
v_salary INTEGER(20);
v_tax INTEGER(10);
BEGIN
SELECT first_name, last_name, salary, salary * 0.02 INTO v_first_name, v_last_name,
v_salary, v_tax FROM employees WHERE employee_id = 150;
DBMS_OUTPUT.PUT_LINE('Firstname : '|| v_first_name);
DBMS_OUTPUT.PUT_LINE('Lastname : '|| v_last_name);
DBMS_OUTPUT.PUT_LINE('Salary : '|| v_salary);
DBMS_OUTPUT.PUT_LINE('Tax : '|| v_tax);
END;
Which of the folllowing statement describes PL/SQL?
Answer: PL/SQL is an Oracle proprietary, procedural, 3GL programming language

PROG-113A / ► Week 12: Introduction to PLSQL / ► Learning Activity 10


PL/SQL stands for
Answer: Procedural Language extension to SQL
PL/SQL Provides a block structure for executable units of ________________.
Answer: Code
In PL/SQL Block Structure, which of the following are mandatory?
Answer: BEGIN and END
Which of the following PL/SQL will execute successfully?
Answer: DECLARE
v_salary INTEGER(20);
BEGIN
SELECT salary INTO v_salary FROM employees WHERE employee_id = 150;
END;
Actions are being performed when error occurs during PL/SQL execution in the
Answer: EXCEPTION

PROG-113A / ► Week 11: Using Subqueries to Solve Queries / ► Short Quiz 9

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')
Evaluate the SQL command
SELECT employee_id, job_id, salary from employees where salary < ALL (SELECT salary
FROM employees WHERE job_id = 'FI_ACCOUNT') AND job_id = 'IT_PROG'
Answer: This has no error.

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')

Evaluate the SQL command


SELECT employee_id, last_name, first_name, job_id FROM employees WHERE department_id
= (SELECT max(department_id) FROM employees GROUP BY department_id)
Answer: This will return an error. Single-row subquery returns more than one row.

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)

PROG-113A / ► Week 11: Using Subqueries to Solve Queries / ► Learning Activity 9


Which of the following is INCORRECT?
Answer: Use single-row operators with multiple-row subqueries
Which of the folllowing is required in a subquery?
Answer: SELECT
Which of the following is CORRECT about sub-queries?
Answer: Subquery execute before the main query executes.
Evaluate the SQL Command
SELECT job_id, job_title FROM jobs J WHERE INCLUDES
(SELECT * FROM employees WHERE J.job_id = e.job_id );
Answer: The SQL will return an error. Invalid "INCLUDES" parameter.
Evaluate the SQL command
SELECT employee_id, salary from employees where salary = ANY (SELECT salary FROM employees
WHERE job_id = 'IT_PROG') AND job_id = 'ST_CLERK'
Answer: This has no error.
The General Manager request to the Database Administrator to generate the total number of parts
and total outstanding balance on hand of every class in warehouse number 1&2.
Which of the following SQL command will generate the required output.
-SELECT warehouse, class, count(partnum), sum(onhand) GROUP BY warehouse,class
HAVING warehouse = 1 or warehouse = 2 FROM parts;

Display the employee's name, job title, job_id and the department name of employees with
department id of 100.
-SELECT E.employee_id, J.job_title, e.job_id, D.department_name
FROM employees E
JOIN jobs J ON E.job_id = J.job_id
JOIN departments D ON E.department_id = D.department_id
WHERE E.department_id = 100

Display the part number whose class is not HW, AG or SG.


-SELECT partnum FROM parts WHERE NOT IN class ('HW', 'AG', SG')
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?
-. SELECT DESCRIPTION RENAME AS TITLE, PARTNUM RENAME AS ID, ONHAND RENAME AS
STOCK FROM PARTS;
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 _____________.
-FULL OUTER JOIN
Which of the following is NOT a task of a Database Administrator
-None of the choices

SELECT employee_id, min_salary, max_salary FROM employees, departments WHERE


salary>= 10000 && salary <= 20000
-The SQL command will produce an error.

These are collection of objects such as tables, views, and sequences.


-Container’
Display the first 5 letter in the surname of all the employees whose firstname starts with letter 'N'
-SELECT SUBSTR(last_name,1,5), first_name FROM employees WHERE
SUBSTR(first_name,1,1) IN 'N'
Which of the following SELECT statement is the correct PL/SQL that will display all rows and
columns?
-SELECT FROM TABLE PARTS;
Display all employees whose job id contains the word 'ACCOUNT'.
-SELECT * FROM EMPLOYEES WHERE job_id LIKE '%ACCOUNT%';
Display employee's name and id whose firstname starts with letter D and job id is IT_PROG.
-SELECT employee_id, first_name, last_name FROM employees ORDER BY department_id
WHERE first_name LIKE 'D%' and job_id = 'IT_PROG'
The following are capabilities of SQL SELECT
-Create records, Remove Table, Edit record

Display the part number whose class is not HW, AG or SG.


-SELECT partnum FROM parts WHERE class NOT IN = (‘HW’, AG’, SG’)
Each row of data in a table can be uniquely identified by a
-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;
Display all location id between 1000 to 2000.
- DISPLAY location_id FROM departments WHERE location_id BETWEEN 1000 TO 2000
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 does NOT describes SELECT Statement in a PL/SQL.


Answer: Queries must return only one column.
You want to display all the records of employee the same with the salary employee number 103.
Answer: SELECT * FROM employees WHERE salary = (SELECT salary from employees where
employee_id= 103)
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;
Which of the folllowing is TRUE?
Answer: SQL code are embedded within PL/SQL statements
When an exception is user defined, the exception is raised ____________ .
Answer: Explicitly
Which of the folllowing is TRUE?
Answer: SQL code are embedded withing PL/SQL statements
Weak REF CURSOR is very flexible.
Answer: True
How do you test the output of a PL/SQL block?
Answer: Use a predefined Oracle package and its procedure
Restrictive, specifies a RETURN type, associates only with type-compatible queries are description
of a ________________.
Answer: Strong REF CURSOR
Which of the following DOES NOT describes an exception?
Answer: Exception is a PL/SQL error that is raised before program execution.
These are local variables declared in the parameter list of a subprogram specification.
Answer: Formal parameter
Which of the following rules is INCORRECT about cursor variables?
Answer: None of the choices.
When an exception is predefined by Oracle server, the exception is raised ____________ .
Answer: Explicitly
Which of the following DOES NOT describes an exception?
Answer: Exception is a PL/SQL error that is raised before program execution.
Evaluate the following PL/SQL.
CREATE OR REPLACE PROCEDURE query_employee
(p_id IN employees.employee_id%TYPE,
p_name OUT employees.last_name%TYPE,
p_salary OUT employees.salary%TYPE) IS
BEGIN SELECT last_name, salary INTO p_name, p_salary
FROM employeesWHERE employee_id = p_id;
END query_employee
Answer: No error
You want to know the total number of employees whose firstname starts with letter D.
Which of the folllowing PLS/SQL executes successfully?
Answer: DECLARE
v_first_name employees.first_name%TYPE := 'D%';
BEGIN
SELECT COUNT(*) INTO v_first_name FROM employees WHERE first_name LIKE v_first_name;
DBMS_OUTPUT.PUT_LINE(v_first_name);
END;
What is the error trapping function that returns the numeric value of the error code?
Answer: SQLCODE
You want to display the name, salary and tax of employee #150. Which of the PL/SQL will execute
successfully? Note tax is computed as 2% of the salary.
Answer: DECLARE
v_first_name VARCHAR2(50);
v_last_name VARCHAR2(50);
v_salary INTEGER(20);
v_tax INTEGER(10);
BEGIN
SELECT first_name, last_name, salary, salary * 0.02 INTO v_first_name, v_last_name, v_salary,
v_tax FROM employees WHERE employee_id = 150;
DBMS_OUTPUT.PUT_LINE('Firstname : '|| v_first_name);
DBMS_OUTPUT.PUT_LINE('Lastname : '|| v_last_name);
DBMS_OUTPUT.PUT_LINE('Salary : '|| v_salary);
DBMS_OUTPUT.PUT_LINE('Tax : '|| v_tax);
END;
Which of the following is the syntax to close a cursor?
Answer: CLOSE cursor_variable_name;
Which of the following rules is INCORRECT about cursor variables?
Answer: None of the choices.
What are the three PL/SQL block types?
Answer: Anonymous, Procedure, Function
You can trap any error by including a corresponding handler within the exception-handling section of
the PL/SQL block.
Answer: True
Which of the following describes weak REF CURSOR?
Answer: Associates with any query
Given the answer in item __________, which of the folllowing stored procedure will display the
employee id and salary of Steven King?
Answer: DECLARE
v_employee_id employees.employee_id%TYPE;
v_emp_sal employees.salary%TYPE;
BEGIN
query_emp('King', 'Steven', v_employee_id, v_emp_sal);
DBMS_OUTPUT.PUT_LINE('Employee ID ' || v_employee_id ||' earns '|| to_char(v_emp_sal,
'$999,999.00'));
END;
You have been tasked to update the database by creating a PL/SQL to increase the salary of all IT
Programmer employees by 50% 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 *0.50 WHERE job_id = v_job_id;
END;
Which of the folllowing is required in a subquery?
Answer: SELECT
What is the exception name when PL/SQL has an internal problem
Answer: PROGRAM_ERROR
In the DECLARE section of the PL/SQL block,
Answer: All of the choices
Actions are being performed when error occurs during PL/SQL execution in the
Answer: EXCEPTION
What is the exception name when PL/SQL has an internal problem
Answer: PROGRAM_ERROR
Which of the folllowing statement describes PL/SQL?
Answer: PL/SQL is an Oracle proprietary, procedural, 3GL programming language
Evaluate the following PL/SQL.
DECLARE
v_employee_id employees.employee_id%TYPE := 114;
BEGIN
DELETE employees WHERE employee_id = v_employee_id;
END;
Answer: The PL/SQL will delete employee number 114.
Which of the following command is used to create a stand-alone procedure that is stored in the
Oracle database?
Answer: CREATE PROCEDURE
Evaluate the following PL/SQL.
DECLARE
v_email VARCHAR(20);
BEGIN
SELECT email INTO v_email FROM EMPLOYEES WHERE email like 'D%';
DBMS_OUTPUT.PUT_LINE ('Employees whose email address starts with letter D :'
|| v_email);
EXCEPTION
WHEN TOO_MANY_ROWS THEN
DBMS_OUTPUT.PUT_LINE (' Your select statement retrieved multiple rows.');
END;
Answer: The PL/SQL block will run successfully.
Which of the following is the syntax to define a REF CURSOR type?
Answer: TYPE ref_type_name IS REF CURSOR
[RETURN return_type];
The PL/SQL code block helps modularize code by using:
Answer: All of the choices
Which of the following is the syntax to fetch from a cursor variable?
Answer: FETCH cursor_variable_name INTO variable_name1
[,variable_name2,. . .] | record_name;
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')
Procedure can be stored in the database as a schema object.
Answer: True
In PL/SQL Block Structure, which of the following are mandatory?
Answer: BEGIN and END
PL/SQL stands for
Answer: Procedural Language extension to SQL
Which of the following is CORRECT about sub-queries?
Answer: Subquery execute before the main query executes.
Which of the following does NOT describes SELECT Statement in a PL/SQL.
Answer: Queries must return only one column.
PL/SQL Provides a block structure for executable units of ________________.
Answer: Code
Evaluate the SQL command
SELECT employee_id, salary from employees where salary = ANY (SELECT salary FROM
employees WHERE job_id = 'IT_PROG') AND job_id = 'ST_CLERK'
Answer: This has no error.
Which of the following PL/SQL will execute successfully?
Answer: DECLARE
v_salary INTEGER(20);
BEGIN
SELECT salary INTO v_salary FROM employees WHERE employee_id = 150;
END;
In PL/SQL Block Structure, which of the following are OPTIONAL?
Answer: None of the choices
Evaluate the following PL/SQL. At what line number is the error of the PL/SQL?
DECLARE
v_deptno NUMBER := 800;
e_invalid EXCEPTION;
BEGIN
DELETE FROM departments
WHERE department_id = v_deptno;
IF SQL % NOT_FOUND THEN
RAISE e_invalid;
END IF;
COMMIT;
EXCEPTION
WHEN e_invalid THEN
DBMS_OUTPUT.PUT_LINE('No such department id.');
END;
Answer: 7
What is the error trapping function that returns the numeric value of the error code?
Answer: SQLCODE
Fetch into a record when fetching from a cursor.
Answer: True

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
Enforcing environmental policies is one of the major causes of job loss and
unemployment. - False
True or False: Dates in file names should be written in YYYY-MM-DD format. - False
Big business companies are the only ones responsible for enforcing environmental
policies since they can afford alternative cleaner technology. - False
Pre-review activities in the review process includes review planning, preparation and
individual review. - true
Increase work productivity by arranging items in such a way that they are easy to find
and pick up. - true
Montreal protocol protects the ozone layer by ____________________. - phasing out
harmful substances
Business industries will not be affected by the environmental crisis. - False
True or False: Protocols are set of standards rules which describes how something
should be done and different companies have different protocols as well. - true
Presidential Decree No. 856 is an international treaty that imposes limitations on the
greenhouse gas emissions of several countries. - True
True or False: Organizational aims are different from the mission statement; they refer
to the results an organization is aspiring for. - true
The cost / benefit analysis document is appropriately named. - False
A printed progress report to be submitted to the adviser. - purpose
True or False: Statutory requirements are identified by the vendors or suppliers and
they include value, stability, diversity and capacity. - False
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. - False
Identify whether the statement is a strength, weakness, opportunity or threat: The
student record system could be used by other schools other than Ricka’s school. -
opportunity
True or False: Reviewing the related literature includes review of concepts, theories and
previous research findings. - true
Companies can freely make their own set of environmental policies without consulting
the workers’ union, or any local or national laws about it. - False
Kyoto protocol addresses environmental issues through the campaign of
____________________. - reducing greenhouse gas emissions
Humans rely on natural resources for survival. - true
Quantitative research, compared to qualitative research, uses measurable - Data
ISO/IEC 25010:2011’s product quality model has eight (8) major characteristics. - true
True or False: Usually, the summary of the report is the first thing that’s being read. -
true
____________________ is when you conduct regular audits and inspections to
evaluate your work performance. - Shitsuke
“XYZ is so cool! I tried to install it in my old computer and it still runs smoothly. Given
that the computer’s video card is a bit faulty.“ - Reliability
True or False: There are five main elements of a written report – topic, style, structure,
facts and contents. - false
True or False: To gather data, you can either conduct an interview, survey, observation,
mail questionnaire, coding and tabulation. - false
PROG LONG QUIZ 4

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;
query_emp('King', 'Steven', v_employee_id, v_emp_sal);
BEGIN
DBMS_OUTPUT.PUT_LINE('Employee ID ' || v_employee_id ||' earns '|| to_char(v_emp_sal,
'$999,999.00'));
END;
b. DECLARE
query_emp('King', 'Steven', v_employee_id, v_emp_sal);
BEGIN
v_employee_id employees.employee_id VARCHAR(10);
v_emp_sal employees.salary NUMERIC(10);
DBMS_OUTPUT.PUT_LINE('Employee ID ' || v_employee_id ||' earns '|| to_char(v_emp_sal,
'$999,999.00'));
END;
c. DECLARE
v_employee_id employees.employee_id VARCHAR(10);
v_emp_sal employees.salary NUMERIC(10);
BEGIN
query_emp('King', 'Steven', v_employee_id, v_emp_sal);
DBMS_OUTPUT.PUT_LINE('Employee ID ' || v_employee_id ||' earns '|| to_char(v_emp_sal,
'$999,999.00'));
END;
d. DECLARE
v_employee_id employees.employee_id%TYPE;
v_emp_sal employees.salary%TYPE;
BEGIN
query_emp('King', 'Steven', v_employee_id, v_emp_sal);
DBMS_OUTPUT.PUT_LINE('Employee ID ' || v_employee_id ||' earns '|| to_char(v_emp_sal,
'$999,999.00'));
END;

Question 2
Complete
Mark 1.00 out of 1.00

Flag question

Question text
The PL/SQL code block helps modularize code by using:
Select one:
a. All of the choices
b. Database triggers
c. Packages
d. Procedures
e. Anonymous blocks
f. Functions

Question 3
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Which of the following rules is INCORRECT about cursor variables?
Select one:
a. You cannot assign a null value to cursor variables.
b. Cursors and cursor variables are not interoperable.
c. You cannot use REF CURSOR types in CREATE TABLE or VIEW statements.
d. You cannot use comparison operators to test cursor variables.
e. None of the choices.
f. You cannot use cursor variables with remote subprograms on another server.

Question 4
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Which of the following is the syntax to close a cursor?
Select one:
a. SET cursor_variable_nameCLOSE;
b. CLOSE cursor_variable_name;
c. EXIT cursor_variable_name;
d. QUIT cursor_variable_name;

Question 5
Complete
Mark 1.00 out of 1.00
Flag question

Question text
Which of the folllowing is TRUE?
Select one:
a. PL/SQL statements are embedded within SQL code.
b. None of the choices
c. SQL code are embedded within PL/SQL statements
d. You can embed procedural construct within SQL code

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
b. Index
c. Data dictionary
d. Data
e. Schema

Question 8
Complete
Mark 1.00 out of 1.00

Flag question

Question text
What is the default parameter mode when no mode is specified?
Select one:
a. IN
b. DEFAULT
c. OUT
d. IN OUT

Question 9
Complete
Mark 1.00 out of 1.00

Flag question

Question text
When an exception is predefined by Oracle server, the exception is raised ____________ .
Select one:
a. Implicitly
b. Interactively
c. Exclusively
d. Explicitly
e. None of the choices

Question 10
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Evaluate the following PL/SQL. Which of the following will line creates an error?

1. CREATE OR REPLACE PROCEDURE query_emp


2. (
3. p_department_id IN employees.department_id%TYPE,
4. p_name OUT employees.last_name%TYPE,
5. p_salary OUT employees.salary%TYPE
6. )
7. IS
8. BEGIN
9. SELECT last_name, salary, department_id INTO p_name, p_salary,
p_department_id
10. FROM employees
11. WHERE salary >= p_salary AND department_id = p_department_id ;
12. END query_emp;

Select one:
a. Line 1
b. Line 5
c. Line 9
d. Line 3
e. No error
f. Line 11

Question 11
Complete
Mark 1.00 out of 1.00

Flag question

Question text
These are local variables declared in the parameter list of a subprogram specification.
Select one:
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:
a. Improved data security and integrity
b. Improved code clarity
c. Improved performance
d. None of the choices
e. Easy maintenance

Question 14
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Which of the following command is used to create a stand-alone procedure that is stored in the
Oracle database?
Select one:
a. PROCEDURE
b. BUILD PROCEDURE
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
Flag question

Question text
Which of the following is the syntax to fetch from a cursor variable?
Select one:
a. FETCH cursor_variable_name INTO variable_name1
[,variable_name2,. . .] | record_name;
b. GET cursor_variable_name INTO variable_name1
[,variable_name2,. . .] | record_name;
c. POST cursor_variable_name INTO variable_name1
[,variable_name2,. . .] | record_name;
d. RETRIEVE cursor_variable_name INTO variable_name1
[,variable_name2,. . .] | record_name;

Question 17
Complete
Mark 1.00 out of 1.00

Flag question

Question text
PL/SQL stands for
Select one:
a. Procedural Language extension to SQL
b. Procedural Libraries of SQL
c. Procedural Logic of SQL
d. Process Linkage to SQL

Question 18
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Which of the following is the syntax to define a REF CURSOR type?
Select one:
a. DECLARE ref_type_name AS REF CURSOR
[RETURN return_type];
b. DEFINE ref_type_name AS REF CURSOR
[RETURN return_type];
c. TYPE ref_type_name IS REF CURSOR
[RETURN return_type];
d. SET ref_type_name IS REF CURSOR
[RETURN return_type];

Question 19
Complete
Mark 1.00 out of 1.00

Flag question

Question text
What is the error trapping function that returns the numeric value of the error code?
Select one:
a. SQLCODE
b. ERRORCODE
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:
a. Anonymous, Procedure, Function
b. SELECT, UPDATE, INSERT
c. Add, Edit, Delete
d. DECLARE, BEGIN, END

Question 21
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Evaluate the following PL/SQL.

1. DECLARE
2. v_employee_id employees.employee_id%TYPE := 114;
3. BEGIN
4. 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:
a. DECLARE
v_job_id employees.job_id%TYPE := 'IT_PROG';
BEGIN
UPDATE employees SET salary = salary * 2 WHERE job_id = v_job_id;
END;
b. DECLARE
v_job_id employees.job_id%TYPE := 'IT_PROG';
v_salary employees.salary := salary;
BEGIN
UPDATE employees SET v_salary = salary * 1.00 WHERE v_job_id = job_id;
END;
c. DECLARE
v_job_id employees.job_id%TYPE := 'IT_PROG';
BEGIN
UPDATE employees SET salary = salary * 100% WHERE job_id = v_job_id;
END;
d. DECLARE
v_job_id employees.job_id%TYPE := 'IT_PROG';
v_salary employees.salary := salary;
BEGIN
UPDATE employees SET salary = v_salary * 0.100% WHERE job_id = v_job_id;
END;

Question 23
Complete
Mark 1.00 out of 1.00

Flag question

Question text
This is a type of cursor which is created and managed internally by the Oracle server to process
SQL statements
Select one:
a. Interactive
b. Implicit
c. Explicit
d. Exclusive
e. Coded

Question 24
Complete
Mark 1.00 out of 1.00
Flag question

Question text
Which of the following describes weak REF CURSOR?
Select one:
a. Restrictive
b. All of the choices
c. Is not flexible
d. Associates with any query

Question 25
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Evaluate the following PL/SQL.

1. DECLARE
2. v_employee_id employees.employee_id%TYPE := 114;
3. BEGIN
4. 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
Flag question

Question text
What is the exception name when PL/SQL has an internal problem
Select one:
a. ERROR_MSG
b. EXECUTION_ERROR
c. RUNTIME_ERROR
d. PROGRAM_ERROR

Question 27
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Which of the folllowing 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
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
Flag question

Question text
Evaluate the following. What will be the output?

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
Question text
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 one:
a. SELECT job_title FROM jobs WHERE min_salary >= 5000 AND max_salary<= 10000
b. SELECT job_title FROM employees WHERE salary >= 5000 AND salary <= 10000
c. 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
Complete
Mark 2.00 out of 2.00

Flag question

Question text
What is the SQL command to count the number of records in the employees table?
Select one:
a. SELECT ALL FROM employees
b. SELECT * FROM employees;
c. SELECT COUNT(*) FROM employees
d. SELECT SUM(*) FROM employees;

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
Question 4
Complete
Mark 2.00 out of 2.00

Flag question

Question text
Evaluate the following SQL command
SELECT * FROM jobs WHERE job_title LIKE 'Manager%'
Select one:
a. The SQL command will produce an error.
b. The SQL command will display all employees with Manager position
c. The SQL command will display all records in the database
d. No records will be displayed

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:
a. SELECT employee_id, hire_date, TO_DATE(hire_date,'Month') AS "Hired Month", job_id FROM
b. SELECT employee_id, hire_date, MONTH(hire_date,'Month') AS "Hired Month", job_id FROM
employees
c. SELECT employee_id, hire_date, TO_CHAR(hire_date,'Month') AS "Hired Month", job_id FROM
employees
d. SELECT employee_id, hire_date, TO_MONTH(hire_date,'Month') AS "Hired Month", job_id
FROM employees

Question 6
Complete
Mark 2.00 out of 2.00
Flag question

Question text
You want to generate the total salary per month of every department in the company.
Select one:
a. SELECT department_id, salary FROM employees ORDER BY SUM(salary)
b. SELECT department_id, TOTAL(salary) FROM employees GROUP BY department_id
c. SELECT department_id, salary FROM employees GROUP BY SUM(salary) ORDER BY
department_id
d. SELECT department_id, SUM(salary) FROM employees GROUP BY 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:
a. SELECT last_name, TO_INT(salary, '$999,999.99') AS "MONTHLY SALARY" FROM employees
WHERE salary < 10,000 WHERE last_name STARTS 'D%'
b. SELECT last_name, TO_CHAR(salary, '$999,999.99') AS "MONTHLY SALARY" FROM
employees WHERE salary < 10000 WHERE last_name LIKE 'D%'
c. SELECT last_name, TO_INTEGER(salary, $999,999.99) AS "MONTHLY SALARY" FROM
employees WHERE salary < 10000 WHERE last_name IN 'D%'
d. SELECT last_name, TO_NUMBER(salary, '$999,999.99') AS "MONTHLY SALARY" FROM
employees WHERE salary < 10,000 WHERE last_name = ‘D%’

Question 8
Complete
Mark 2.00 out of 2.00
Flag question

Question text
Display the lastname of every employee in the company. Display the output in a single column and
label it as Fullname
Format: JuanReyes
Select one:
a. None of the choices
b. SELECT CONCATENATE(first_name, last_name) AS Fullname FROM employees
c. SELECT CONCAT(first_name, last_name) FROM employees
d. SELECT CONCAT(first_name, last_name) AS Fullname FROM employees

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:
a. SELECT SUBSTR(last_name,1,5), first_name FROM employees WHERE first_name IN 'N'
b. SELECT SUBSTR(last_name,1,5), first_name FROM employees WHERE
SUBSTR(first_name,1,1) = 'N'
c. SELECT SUBSTR(surname,1,5), first_name FROM employees WHERE
SUBSTR(first_name,1,1) IN 'N'
d. SELECT SUBSTR(surname,1,5), first_name FROM employees WHERE first_name = 'N'
e. SELECT SUBSTR(last_name,1,5), first_name FROM employees WHERE
SUBSTR(first_name,1,1) IN 'N'

Question 10
Complete
Mark 2.00 out of 2.00
Flag question

Question text
Austin David was transferred to Purchasing Department. You are assigned to update the database.
Which of the following SQL command will satisfy the requirements?
Select one:
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’
d. UPDATE employees SET department_id = 30 WHERE first_name = ‘David’ AND last_name =
‘Austin’

Question 11
Complete
Mark 2.00 out of 2.00

Flag question

Question text
John want to know how many employees receiving salary below 10,000.
What SQL command he need to run?
Select one:
a. SELECT COUNT(*) FROM employees WHERE salary < 10000;
b. SELECT COUNT(salary) FROM employees WHERE salary < 10,000;
c. SELECT COUNT(emp_id) FROM employees WHERE salary <= 10000;
d. SELECT salary FROM COUNT(employees)WHERE salary < 10000;

Question 12
Complete
Mark 2.00 out of 2.00
Flag question

Question text
Evaluate the following SQL command
SELECT employee_id, salary, department_id FROM employees WHERE department_id IN (60,70)
Select one:
a. The SQL command will produce an error.
b. The SQL command will display employees with department id 60 and 70.
c. The SQL command will give an incorrect output.
d. The SQL command will display employees with department id 60 or 70.

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 give the required output?
Select one:
a. SELECT last_name, hire_date FROM employees WHERE hire_date>=
TO_DATE('01-Jan-2006', 'DD-Mon-RR') AND hire_date<= TO_DATE('31-Dec-2006', 'DD-Mon-RR')
AND salary > 5000;
b. SELECT last_name, hire_date FROM employees WHERE hire_date>=
TO_DATE('Jan-2000', 'Month-YYYY') AND hire_date<= TO_DATE('Dec-2006', 'Month-‘YYYY') AND
salary > 5,000;
c. 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;
d. SELECT last_name, hire_date FROM employees WHERE hire_date>=
TO_DATE('2000', 'YYYY') AND hire_date<= TO_DATE('2006', 'YYYY') OR salary > 5000;

Question 14
Complete
Mark 2.00 out of 2.00
Flag question

Question text
List all employees except for IT_PROG job id.
Select one:
a. SELECT *FROM employees EXCEPT JOB_ID != 'IT_PROG'
b. SELECT *FROM employees WHERE JOB_ID NOT IN ('IT_PROG')
c. SELECT *FROM employees WHERE JOB_ID <> 'IT_PROG'
d. All of the choices

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:
a. The SQL will produce Cartesian Product
b. The SQL will display the employee id, department id and the minimum and maximum salary
whose salary is between 10000 and 20000.
c. The SQL command will produce an error.
d. The SQL command will give an incorrect output.

Question 16
Complete
Mark 2.00 out of 2.00

Flag question

Question text
Display all the records in the employee table. Arrange the output in by lastname from A-Z order.
Select one:
a. SELECT * FROM employees SORT BY lastname
b. SELECT * FROM employees ORDER BY lastname
c. SELECT * FROM employees ORDER BY lastname AZ
d. SELECT * FROM employees SORT BY lastname ascending

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:
a. SELECT employee_id, first_name, last_name FROM employees ORDER BY department_id
WHERE first_name LIKE 'D%' and job_id = 'IT_PROG'
b. SELECT employees FROM employee_id, first_name, last_name WHERE first_name LIKE ‘D%’
and job_id = ‘IT_PROG’ ORDER BY department_id
c. SELECT employee_id, first_name, last_name FROM employees WHERE job_id = 'IT_PROG' OR
first_name LIKE 'D%' and 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 command will produce the output.
Select one:
a. SELECT AVERAGE(salary) FROM employees WHERE job_id = 'FI_ACCOUNT';
b. SELECT AVG(salary) FROM employees WHERE job_id = 'FI_ACCOUNT';
c. SELECT AVE(salary) FROM employees WHERE job_id = 'FI_ACCOUNT';
d. SELECT COUNT AVG(salary) FROM employees WHERE job_id = 'FI_ACCOUNT';

Question 19
Complete
Mark 2.00 out of 2.00

Flag question

Question text
Display all location id between 1000 to 2000.
Select one:
a. DISPLAY location_id FROM departments WHERE location_id LING 1000 UP TO 2000
b. DISPLAY location_id FROM departments WHERE location_id BETWEEN 1000 TO 2000
c. SELECT location_id FROM departments WHERE location_id IN 1000 AND 2000
d. SELECT location_id FROM departments WHERE location_id BETWEEN 1000 AND 2000

Question 20
Complete
Mark 2.00 out of 2.00

Flag question

Question text
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 one:
a. SELECT employee_id, salary, salary + (salary .03) FROM employees
b. SELECT employee_id, salary, salary * .03 FROM employees
c. SELECT employee_id, salary, salary * 1.03 FROM employees
d. SELECT employee_id, salary FROM employees WHERE salary)
e. SELECT employee_id, salary, salary * .30 FROM employees

Question 21
Complete
Mark 2.00 out of 2.00

Flag question

Question text
Display the employee id, salary, number of years and the hiring date of every employee in the
company.
Select one:
a. SELECT employee_id,salary, hire_date, hire_date- SYSDATE /365 FROM employees;
b. SELECT employee_id, salary, hire_date, ROUND((SYSDATE - hire_date) /365,0) FROM
employees;
c. SELECT employee_id, salary, hire_date, hire_date /365 FROM employees;

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:
a. SELECT E.employee_id, J.job_title, e.job_id, D.department_name
FROM employees E
JOIN jobs J ON E.job_id = J.job_id
JOIN departments D ON E.department_id = D.department_id
WHERE E.department_id = 100
b. SELECT E.employee_id, J.job_title, e.job_id, D.department_name
FROM employees E
JOIN department D ON E.job_id = J.job_id
JOIN jobs J ON E.department_id = D.department_id
WHERE E.department_id = 100
c. SELECT E.employee_id, J.job_title, e.job_id, D.department_name
FROM jobs J
INNER JOIN department D ON E.job_id = J.job_id
INNER JOIN employees EON E.department_id = D.department_id
WHERE E.department_id = 100
d. SELECT E.employee_id, J.job_title, e.job_id, D.department_name
FROM jobs J
NATURAL JOIN department D ON E.job_id = J.job_id
NATURAL JOIN employees E ON E.department_id = D.department_id
WHERE E.department_id = 100

Question 23
Complete
Mark 2.00 out of 2.00

Flag question

Question text
In creating Joins,the NATURALJOIN and USING clauses are____________
Select one:
a. Mutually Inclusive
b. Limited to 2 relational tables
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 working in Finance Department. Label the annual salary to ANNUAL
SALARY.
Sort the output in from highest to lowest salary. (4 POINTS)
Select one:
a. 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
NATURAL JOIN jobs J ON E.job_id = J.job_id
NATURAL JOIN departments D ON E.department_id = D.department_id
ORDER BY "ANNUAL SALARY" DESC
WHERE D.location_id = 1700 AND D.department_name = 'Finance'
b. 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
JOINemployees E ON E.department_id = D.department_id
WHERE D.location_id = 1700 AND D.department_name = 'Finance'
ORDER BY "ANNUAL SALARY" DESC
c. 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
d. 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
OUTER JOIN jobs J ON E.job_id = J.job_id
OUTER 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

PROG-113A / ? Week 7: Manipulate Data / ? Short Quiz 7

9/10

Create a SQL command to update the employees table

Employee id : 200

Name : Mr. Gary Park

Date hired : July 1, 2017

Position :IT Programmer

Salary : 10000

Department of assignment : 60

Reporting to manager : 103

answer: INSERT INTO employees


(employee_id,first_name,last_name,hire_date,job_id,salary,manager_id,department_id)

VALUES (200,'Gary','Park',TO_DATE('Jul 1, 2017', 'MON DD, YYYY'), 'IT_PROG', 10000, 103, 60)

Add a 500 pesos increase in salary of all employees who have rendered services 10 years and above.

answer: UPDATE employees SET salary = salary + 500 where TO_CHAR(sysdate,'YYYY') -


TO_CHAR(hire_date,'YYYY') >= 10
Diana Lorentz was transferred to Administration department. Using the employees and department
table information update the profile of employee.

answer: UPDATE employees SET manager_id = 200, department_id = 10 WHERE last_name =


'Lorentz' AND first_name = 'Diana';

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.

answer: UPDATE departments SET department_name = 'Procurement', manager_id = 100


WHERE department_name = 'Treasury'

Which of the following will erase all records in the departments table

answer: 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.

answer: Run the ROLLBACK command

Which of the following DOES NOT describes the state of the data after the COMMIT command

answer: None of the choices

Which of the following describes the command below?

SELECT * FROM employees WHERE department = 60 FOR UPDATE

answer: Locks the rows in the EMPLOYEES table with department id is 60.

SQL command to create a marker in the current transaction.

answer: SAVEPOINT

YOu want to display the employee's id and formatted date hired as shown below

Which SQL statement give the required output?

Required output:

Answer: SELECT employee_id,TO_CHAR(hire_date,'fmMonth DD, YYYY')AS "Hired Date" FROM


employees

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?
Answer: SELECT employee_id, hire_date, TO_DATE(hire_date,'Month') AS "Hired Month",
job_id FROM employees WHERE job_id NOT = 'AD_VP';

IT_PROG

Answer: SELECT last_name, TO_CHAR(hire_date,'YYYY')FROM employees WHERE job_id='IT_PROG';

You want to display the employee’s last name whose salary is below 10,000 and whose lastname starts
with letter K.

Answer: SELECT last_name, TO_CHAR(salary, '$999,999.99') AS "MONTHLY SALARY" FROM


employees WHERE salary < 10000WHERE last_name LIKE ‘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.

Answer: SELECT * FROM parts ORDER BY price

Display all the records whose stock is below 20 and in warehouse number 3.

Answer: SELECT * FROM parts WHERE onhand< 20 AND warehouse = 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%';

Display the part number whose class is not HW, AG or SG.

Answer: None of the choices

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.

ANSWER: SELECT *FROM parts WHERE price > 10000;

Which of the following SQL command will display all records with class code of AP?

Answer: SELECT * FROM parts WHERE class = ‘AP’;

Which of the following SQL commands will display all stocks whole class is HW or AP.

Answer: SELECT ALL FROM parts WHERE IN class = ('HW','AP');

Which of the following SQL commands will display all the stocks on hand from 10 to 30?

Answer: SELECT * FROM parts WHERE onhand BETWEEN 10 AND 30;


Create an SQL command to display the name of the parts, warehouse number, price and the
available stock on hand whose price is below 500. Arrange the list by warehouse number and by
class.
ANswer: SELECT partnum, description, warehouse, onhand, price FROM parts WHERE price <
500 ORDER BY warehouse, class;

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.

Answer: SELECT ONHAND-5 + 5 (* WAREHOUSE), DESCRIPTION FROM PARTS;

Which of the following is the correct report that will display the class from table PARTS.

answer: SELECT CLASS FROM PARTS;


Which of the following SELECT statement is the correct PL/SQL that willcreate a report that will add
10% increase in PRICE? List only the column DESCRIPTION, CLASS and PRICE.

Answer: SELECT PRICE*0.10, DESCRIPTION, CLASS FROM PARTS;

Which of the following SELECT statement is the correct PL/SQL that will display all rows and columns?

Answer: SELECT * FROM PARTS;


Which of the following SELECT statement is the correct PL/SQL that willcreate a report specifying
only the column PRICE, ONHAND and DESCRIPTION?

Answer: SELECT PRICE, ONHAND, DESCRIPTION FROM PARTS;

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"

Answer: SELECT DISTINCT WAREHOUSE AS "No. of available warehouse"FROM PARTS;


Which of the following SELECT statement is the correctreport the will merge the column CLASS and
PRICE rename the COLUMN as "CLASS PRICE"

Answer: SELECT (CLASS||PRICE) AS "CLASS PRICE" FROM PARTS;


Which of the following SELECT statement is the correct PL/SQL that will display eliminate the
duplicate rows for column class and warehouse.
Answer: SELECT DISTINCT CLASS, WAREHOUSE FROM PARTS;

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?

Answer: Select description AS 'TITLE',Partnum AS'ID',ONHAND AS'STOCK' FROM PARTS;


Remove all manager positions in the department table.

Answer: DELETE FROM jobs WHERE job_title LIKE '%Manager%';

A new department name training with department id 300 was created in the company.

Answer: INSERT INTO departments VALUES(300,'TRAINING',203,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

Answer: INSERT INTO JOBS VALUES('DB_ADMIN','database administrator',10000,18000)


Update the Purchasing department name to Procurement. And this will be managed by the Manager
of Administration department.

Answer: UPDATE departments SET department_name = 'Procurement', manager_id = 200


WHERE department_name = 'Purchasing'

remove the shareholder services department in the department table

answer: DELETE FROM departments WHERE department_name = ‘Shareholder Services’

John want to know how many employees receiving salary below 10,000

Answer: SELECT COUNT(*) FROM employees WHERE salary < 10000;

What is the SQL command to display the date of the first employee that was hired?

Answer: SELECT MIN(hire_date) FROM employees;

Aldrin wants to know the highest salary in every department. which of the following sql will display the
required output?

Answer: SELECT department_id,MAX(SALARY) FROM employees GROUP BY department_id

The general manager request to the database administrator to generate the total salary per month of
every department in the company.

Answer: 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.

Answer: SELECT AVG(salary) FROM employees WHERE job_id ='IT_PROG';


Display the warehouse number, class, highest price & lowest price, total on hand balance whose
class is AP.

Answer: SELECT warehouse, class, MAX(price), MIN(PRICE), sum(onhand)


FROM parts
WHERE class = 'AP'
GROUP BY warehouse, class
ORDER BY warehouse
The General Manager request to the database administrator to general total number of parts and total
outstanding balance on hand of every class

Answer: SELECT warehouse,class,count(partnum),sum(onhand) GROUP BY warehouse,class HAVING


warehouse = 1 or warehouse = 2 FROM parts;

Aldrin wants to know the outstanding total balance on hand on every class per warehouse

answer: SELECT warehouse,class,sum(onhand) FROM parts GROUP BY warehouse,class

Which of the following SQL command will display all records with part number contains the number 9?

Answer: SELECT * from parts WHERE partnum LIKe '%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

Answer: SELECT warehouse, class, sum(onhand) FROM parts GROUP BY warehouse,class


HAVING SUM(ONHAND) > 50

There was 10% price increase in the all the parts in warehouse number 3.

Answer: SELECT PARTNUM,price,price * 1.1 FROM parts where warehouse = 3

SELECT * FROM parts WHERE (warehouse = 1 or warehouse = 2) AND class in ('HW','AP')AND(PRICE>200


AND price < 500);

Answer: 2 rows returned

What will be the output of the SQL command?

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.

answer: SELECT COUNT(*) FROM parts WHERE warehouse = 3;

Which of the following will erase all records in the departments table

Answer: TRUNCATE TABLE departments


INSERT, DELETE, UPDATE are ________________ commands

answer: DML

Which of the following DOES NOT describes the state of the data after the commit command

ANswer: NONE OF THE CHOICES

SELECT * FROM employees WHERE department = 60 FOR UPDATE


ANswer: Locks the rows in the employees table with department id is 60

A cartesian product is formed when

Answer: ALL OF THE CHOICES

Select employee_id, hire_date, department_name FROM employees departments

ANswer: The SQL command will prduce a correct output

Nathaniel had accidentally deleted all the records in the newly updated oracle database using the
DELETE SQL command.

Answer: RUN THE ROLLBACK COMMAND


A join between two tables that returns the results of the INNER join as well as the_______________
rows from the left (or right) table is called a left (or right) OUTER join.

Answer: Unmatched

SQL command to create a marker in the current transaction

Answer: SAVEPOINT

The insert statement can add multiple rows.

ANswer: FALSE

INSERT INTO table_name (column1,column2,colum3,....)

VALUES (value1,value2,value3,....)

WHERE Condition.

Answer: This will produce an error.

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: FULL OUTER JOIN


A Database Administrator can create and remove users and tables.

Answer: the statement is correct

Multiple fields in not Allowed in a foreign key.

Answer: FALSE
A_______________ consists of a collection of DML statements that form a logical unit of work.

ANswer: Transaction
INDEX is an example of _____________________ privilege.

Answer: Object
A FOREIGN KEY IS A FIELD IN ONE TABLE THAT REFERS TO THE PRIMARY KEY IN ANOTHER TABLE.

ANSWER: TRUE

GRANT select

ON user1

TO departments;

ANswer: THE SQL COMMAND IS INCORRECT


GRANT is a _____________________ command.

ANSWER: DCL

Which of the following command will delete all records in the table employees.

ANswer: DELETE FROM employees

employee id :250

name : aldrin rich

ANSWER: INSERT INTO EMPLOYEES(employee_id,first_name,last_name,hire_date,job_id,salary


manager_id,department_id) VALUES(250,'aldrin','rich',TO_DATE('Jul 1,2017','MON
DD,YYYY'),'ACCOUNTANT',10000,103,60)

Display all the employee id names of employees, job id, hiring_date

ANswer: SELECT A,first_name,A.last_name,A.job_id,B,department_name,A.Salary,A.hire_date FROM


employees a JOIN departments B ON ( A.department_id = B.department_id) WHERE
B.department_name = 'IT'

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 salary = salary + 1200 where TO_CHAR(sysdate,'YYYY') -


TO_CHAR(hire_date,'YYYY') >= 10

Diana lorentz was transferred to administration department

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?
-CREATE matt ACCESS 1234
What are the 2 types of security being applied to a database
GRANT & REVOKE
Employee id : 200
Name : Mr. Gary Park
Date hired : July 1, 2017
Position :IT Programmer
Salary : 10000
Department of assignment : 60
Reporting to manager : 103
-INSERT INTO employees
(employee_id,first_name,last_name,hire_date,job_id,salary,manager_id,department_id)
VALUES (200,'Gary','Park',TO_DATE('Jul 1, 2017', 'MON DD, YYYY'), 'IT_PROG', 10000, 103,
60)
Which of the following is NOT a Data Manipulation Language?
-SELECT

SQL stands for Structured Query Language


Which of the 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
AMALEAKS.BLOGSPOT.COM
PROG-3114 GRADE 12

LONG QUIZ NO. 4

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 – like additional characters and skills.”
ANSWER: 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
6. Kyoto protocol addresses environmental issues through the campaign of
____________________.
ANSWER: reducing greenhouse gas emissions

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
9. ____________________ is when you conduct regular audits and inspections to evaluate your
work performance.
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 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.
“One good thing I find with XYZ as when my laptop shuts down accidentally, my game score and
status can still be recovered. No need to repeat a level.”
ANSWER: Reliability
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

17. 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.
“I find it really enjoying to play XYZ since I can invite my friends from social media profile. It works
well with this social media app!”
ANSWER: Compatibility
18. 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.
“XYZ is so cool! I tried to install it in my old computer and it still runs smoothly. Given that the
computer’s video card is a bit faulty.“
ANSWER: Reliability

19. ____________________ is setting the best practices in the workplace as your work standards.
ANSWER: Seiketsu
20. The 5S Method is a Japanese perspective technique developed by Eiichiro Oda.
ANSWER: FALSER

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
28. Montreal protocol protects the ozone layer by ____________________.
ANSWER: phasing out harmful substances
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
LONG QUIZ NO. 6
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?

ANSWER: display Overweight


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
10. Java is an example of
ANSWER: HIGH-LEVEL LANGUAGE

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
13. He is known as the father of the Java programming language.

ANSWER: JAMES GOSLING


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
interpreters or compilers.
ANSWER: TRUE
17. was the first language implemented for BINAC.

ANSWER: Short Code


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?
ANSWER: ASK FOR HEIGHT

22. A_________is the code or language that allows a user to instruct a computer to perform specific
tasks.
ANSWER: Programming Language
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
26. Who is considered as a user (component of an operating system)?

ANSWER: ALL OF THE CHOICES


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
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
Question text
True or False: Operators, in Java programming language, use special symbols to call methods and their
objects.
Answer:
False
Question text
Read each statement carefully and decide whether it’s TRUE or FALSE.
There are no errors in the program.
Select one:
False
Question text
Refer to the block of codes below. Read each statement carefully and decide whether it’s TRUE or FALSE.
Line 9 uses a traditional comment which uses double forward slash.
Answer: False
Question text
True or False: Many programmers can be literate with Java programming language for it is intended to be that
way.
Answer:
True
Question text
True or False: You’ll know there’s an error if you see a red circle with an exclamation point in Netbeans IDE.
Answer:
True
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 = (x = 100) >= z;
Select one:
True
The file is accurately named – Students.java.
-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.
-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
The last line of code will output 100.0.
-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
There are keywords found in line 7.
-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 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.
-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

Substrings can contain 1 or 2 arguments.


-true
Determine the output.

-bar

The index of the letter “y” in string “Doggy” is 5.


-False
Determine the output.
-foo
TRUE OR FALSE: The value “val_3” is a white space “ “.
-False
True or False: Variable 1st_num is a good variable name in Java programming.
-False

TRUE OR FALSE: “val_2” contains “The”


-True
True or False: Instance variables are declared inside a method but outside a class.
-False
True or False: Variable names in Java are not necessarily case sensitive.
-False
Determine the output

-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
result = !((x * 10) < z);
-False

result = -(-z) == 43;


-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
x += x;
result = x == 154;
-False
The second line 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
A string can contain numbers.
-True

TRUE OR FALSE: This is an example of concatenation.


-True

TRUE OR FALSE: The value of “val_4” is “fox”


-False
TRUE OR FALSE: “val_2” contains “The”.
-True
Determine the output.
-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

Strings can be declared with str.


-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
Among the expressions below which is a statement?
-True

Expressions can be long and complex.


-true
number++; is an expression
-true

For-loops has a set number of iterations before starting.


-True
The equals( ) method can compare more than 2 arrays.
-False
While loops can use Booleans at test expressions.
-True
The test expression of the if statement is _______
-less than or equal to
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
x+1 is example of a statement.
-False
number++; is a block
-False

Arrays are
-Integers
The operator “new” allocates a memory block the size of what is declared.
-true
A class block can be an expression
-False
Statements can be expressions.
-False

Integer arrays can be populated with characters.


-False
Declaration clauses are declared as “number + 1”.
-False

Loops can be stopped with a break; statement.


-True
The equivalent of Paragraphs in coding is?
-Expressions
If statements cannot be nested in switches
-true
The length( ) method returns the size (number of indices) has.
-True
When polymorphism is used, the Java object can only take one form. Subclasses should have the
same function with the parent class.
-False
Arrays can contain (Answer) number of elements.
-Any
“||” and “&&” can be used in conditional statements.
-True
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
Expressions can be statements.
-True
Blocks can contain more blocks of code.
-True
If-else statements can be nested in?
-All of the choices
Statements are equivalent to paragraphs.
-False

A (answer) array is an array containing true or false values.


-boolean
Switches are always used with if-else statements
-False
True or False: The modulus operator returns the remainder of a division operation instead of the
quotient.
-true
Determine the output.
String val_1 = “564298”;

-5698
Determine the output.
String val_1 = “35”;
-4
The return value of the length( ) method is an integer
-true
A superclass is also known as a parent class.
-true
For-loops can be nested in while loops.
-true
In instantiating an object, the keyword instance is used.
-False
Object oriented programming utilizes the top down method
-False
Expressions are like clauses.
-true
The sort( ) method is always ascending.
-true
Arrays are data types.
-False
Variables must be declared as (Answer) for it to be fully hidden.

-private
While statements check the test expression at the end.
-False
The else statement can be used alone.
-False
The fill( ) method (Answer) the array with specific values.
-Fills
The output of println is

-55555
The person’s weight is declared correctly with the correct data type (byte) and value (160).
-FALSE

Determine the output.


String val_1 = “foo”
String val_2 = “bar”

val_2 = val_1;
val_1 = val_3;
System.out.println(val_1);
-bar
Determine the output.
String val_1 = “foo”
String val_2 = “bar”
val_2 = val_1;

val_1 = val_3;
System.out.println(val_2);
-foo
Switches can work properly even without the “break” expression.
-True
Blocks can be one liner or huge classes.
-True
The test expressions in conditional statements can be left empty.
-False
Abstraction works by hiding the implementation details and showing only the functions necessary.
-True
A single array can hold multiple data types
-False
A polymorphic object can pass more than one Is-a test.
-True
Another loop can be used as test expression.
-False
True or False: Public, static and void are sample of Java reserved keywords.
-True

The value of “pStr” in line 24 is


-True
The default syntax of a constructor is <class_name>(parameter, parameter){ }
-False

A nested class is not an inner class.


-False
Nested classes causes them to become abstracted
-False
A nested class is also called
-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
A constructor can only have 1-2 overloads or parameters.
-False
All possible data types of an array can be retuned as a string by the toString( ) method.
-True
Abstracted classes can contain 1 or more abstract methods.
-True
Abstraction shows the every bit of detail and implementation on how an application does something.
-False
Initialization is a process where the constructor is called for.
-True

The default syntax of a constructor is <class_name>( ){ }


-True
Classes cannot be nested.
-False

Abstract classes cannot have nested classes.


-False
The parent class of a nested class is called an outer class
-True

An inner class can be constructed directly without reference to the outer class.
-False
Arrays can be read backwards
-True

A single array can hold


-One data type
Abstracted methods already have implementations inside.
-False
are special methods to initialize objects.
-constructors
Constructors have 3 basic rules to follow.
-False
Nesting classes increases encapsulation.
-True

Each index can only contain (Answer) element.


-one
The sort( ) method can be set to sort only a part of an array.
-False

Subclasses or child classes could have different behaviors but still share the same functions from
their parent class.
-True

Abstract methods must have an explicit return value


-False
An abstract class must not contain abstract methods.
-False
Abstracted classes can be nested.
-True
A subclass constructor cannot invoke a superclass constructor.
-False
A class acquiring fields and methods of another class is called inheritance.
-True
Parallelsorting utilizes

-More cpu processing cores


method can copy one array to another.
-arraycopy

SHORT QUIZ PROG 111- PROG111 - Programming (Java) NC II Part 1


SHORT QUIZ 8.
1. The 5s method is based on the ____________________.
ANSWER: Toyota Production Sytem
2. Environmental issues have no relation to the workplace
ANSWER: FALSE
3. Protecting the environment and natural resources also means protecting
stable employment.
ANSWER: TRUE
4. In the 5S method, this stage refers to arranging items in a way that they are
easy to find and pick up.
ANSWER: SEITON
5. Seiso refers to cleaning your workplace on a regular basis.
ANSWER: TRUE
6. Humans rely on natural resources for survival.
ANSWER: TRUE
7. These are developed by industries as a guide for establishments and
business enterprises to conduct their operations in a way that prevents or
reduces environmental harm.
ANSWER: Environmental codes of practice
8. Business industries will not be affected by the environmental crisis.
ANSWER: FALSE
9. Presidential Decree No. 856, one of the Philippine environmental laws, is
also known as ____________________.
ANSWER: Code on Sanitation of the Philippines
10. The protection of the natural resources is possible through the collective
efforts of each group in the society.
ANSWER: TRUE
SHORT QUIZ 9
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.
“Thanks to XYZ, I can baby sit my little brother. It’s so easy to use that a 5-year
old can play it as well.”
ANSWER: Usability
2. Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s
product quality model and write the letter that corresponds 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
the ISO/IEC 25010:2011. Read their feedback below and decide which product
quality attribute is being described.
“XYZ is so cool I can play it with my phone, laptop, Xbox and PS4!”
ANSWER: Portability
7. 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.
“Finally we can play XYZ! Surprising enough, all features and functions are
present. It has all the controls a gamer needs.”
ANSWER: Functional Stability
8. Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s
product quality model and write the letter that corresponds 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
2. Ctrl + S is the shortcut key for Save while Ctrl + S + A is the shortcut key for
Save As.
ANSWER: FALSE
3. The earphones is an example of a _______________, while Internet Explorer is
an example of _______________.
ANSWER: peripheral device, application program
4. I’ve purchased a modern gaming mouse but it doesn’t have a PS/2 plug.
Where I connect it?
ANSWER: D
5. Arlan right clicked on his taskbar and unchecked the Lock Taskbar. What
will happen if he drags his taskbar to the right side of his screen?
ANSWER: Taskbar will display vertically at the right.
6. Something’s wrong with the serial port. Which port should I investigate?
ANSWER: C
7. Windows is to Personal Computer (PC) while Mac OSX is to Mac laptops and
computers.
ANSWER: TRUE
8. An operating system has three major components – hardware, application
program or software and the user.
ANSWER: FALSE
9. Which of the following is not a default margin options when setting up the
page for printing?
ANSWER: REGULAR
10. If you are confused on what to do, press F2 on your keyboard and the
Windows Help feature will open.
ANSWER: FALSE

SHORT QUIZ 11
1. This type of programming language uses series of 0s and 1s to represent
data.
ANSWER: Machine language
2. C++, an extension of the C language, introduced object-oriented
programming.
ANSWER: True
3. C# has features that are directly based on the Short Code.
ANSWER: FALSE
4. COBOL stands for Convenient Business Oriented Language.
ANSWER: FALSE
5. Which of the following statements is TRUE?
ANSWER: A programming language may have its own area of
specialization.

6. Using the language, you can write windowed applications, build


databases, as well as control handheld devices.
ANSWER: Java

7. is the father of computer.


ANSWER: CHARLES BABBAGE
8. Since natural languages are vaguely structured, they cannot be used for
programming.
ANSWER: TRUE
9. COBOL is the programming language ideally used for _________________________
purposes.
ANSWER: Business
10. PASCAL is an example of a low-level language.
ANSWER: FALSE

SHORT QUIZ 12
1. Refer to the image below to answer the following question. What happens
every time the given username and password is incorrect?
ANSWER: 1 IS ADDED TO THE LIMIT
2. Refer to the image below to answer the following question. What symbol is
used to begin and end the program?
ANSWER: Terminal
3. Observe the names of the following variables and routines and decide
whether its format is CORRECT or WRONG. limitIsReached for a Boolean
variable.
ANSWER: CORRECT
4. Refer to the image below to answer the following question. When will the
program end?
ANSWER: When home page is loaded.
5. Jet is writing the pseudocode for his program. Which phase of program
development life cycle is he in?
ANSWER: Design the Program.
6. Ana is working on a new project and she was asking for the program’s
purpose, processes, algorithm, restrictions and some notes. According to the
program development life cycle, in which phase is Ana working on?
ANSWER: ANALYZE THE PROBLEM
7. Observe the names of the following variables and routines and decide
whether its format is CORRECT or WRONG.
ContactNumber for a column name in the table “Student”.
ANSWER: CORRECT
8. Observe the names of the following variables and routines and decide
whether its format is CORRECT or WRONG.
PresentAdress for a column name in the table “Student”
ANSWER: WRONG
9. Refer to the image below to answer the following question. What will
happen if the username is incorrect but the password given is correct?
ANSWER: 3
10. Refer to the image below to answer the following question. What happens
when Limit is equal to 3?
ANSWER: Program goes back to login page

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
Enforcing environmental policies is one of the major causes of job loss and
unemployment. - False
True or False: Dates in file names should be written in YYYY-MM-DD format. - False
Big business companies are the only ones responsible for enforcing environmental
policies since they can afford alternative cleaner technology. - False
Pre-review activities in the review process includes review planning, preparation and
individual review. - true
Increase work productivity by arranging items in such a way that they are easy to find
and pick up. - true
Montreal protocol protects the ozone layer by ____________________. - phasing out
harmful substances
Business industries will not be affected by the environmental crisis. - False
True or False: Protocols are set of standards rules which describes how something
should be done and different companies have different protocols as well. - true
Presidential Decree No. 856 is an international treaty that imposes limitations on the
greenhouse gas emissions of several countries. - True
True or False: Organizational aims are different from the mission statement; they refer
to the results an organization is aspiring for. - true
The cost / benefit analysis document is appropriately named. - False
A printed progress report to be submitted to the adviser. - purpose
True or False: Statutory requirements are identified by the vendors or suppliers and
they include value, stability, diversity and capacity. - False
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. - False
Identify whether the statement is a strength, weakness, opportunity or threat: The
student record system could be used by other schools other than Ricka’s school. -
opportunity
True or False: Reviewing the related literature includes review of concepts, theories and
previous research findings. - true
Companies can freely make their own set of environmental policies without consulting
the workers’ union, or any local or national laws about it. - False
Kyoto protocol addresses environmental issues through the campaign of
____________________. - reducing greenhouse gas emissions
Humans rely on natural resources for survival. - true
Quantitative research, compared to qualitative research, uses measurable - Data
ISO/IEC 25010:2011’s product quality model has eight (8) major characteristics. - true
True or False: Usually, the summary of the report is the first thing that’s being read. -
true
____________________ is when you conduct regular audits and inspections to
evaluate your work performance. - Shitsuke
“XYZ is so cool! I tried to install it in my old computer and it still runs smoothly. Given
that the computer’s video card is a bit faulty.“ - Reliability
True or False: There are five main elements of a written report – topic, style, structure,
facts and contents. - false
True or False: To gather data, you can either conduct an interview, survey, observation,
mail questionnaire, coding and tabulation. - false

LONG QUIZ PROG-111

LONG QUIZ NO. 4

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 – like additional characters and skills.”
ANSWER: 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
6. Kyoto protocol addresses environmental issues through the campaign of
____________________.
ANSWER: reducing greenhouse gas emissions
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
9. ____________________ is when you conduct regular audits and inspections to evaluate your
work performance.
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 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.
“One good thing I find with XYZ as when my laptop shuts down accidentally, my game score and
status can still be recovered. No need to repeat a level.”
ANSWER: Reliability
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
17. 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.
“I find it really enjoying to play XYZ since I can invite my friends from social media profile. It works
well with this social media app!”
ANSWER: Compatibility
18. 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.
“XYZ is so cool! I tried to install it in my old computer and it still runs smoothly. Given that the
computer’s video card is a bit faulty.“

ANSWER: Reliability

19. ____________________ is setting the best practices in the workplace as your work standards.
ANSWER: Seiketsu

20. The 5S Method is a Japanese perspective technique developed by Eiichiro Oda.


ANSWER: FALSER
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
28. Montreal protocol protects the ozone layer by ____________________.
ANSWER: phasing out harmful substances
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
LONG QUIZ NO. 6
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?
ANSWER: display Overweight
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
10. Java is an example of
ANSWER: HIGH-LEVEL LANGUAGE

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
13. He is known as the father of the Java programming language.
ANSWER: JAMES GOSLING

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
interpreters or compilers.
ANSWER: TRUE
17. was the first language implemented for BINAC.

ANSWER: Short Code


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?
ANSWER: ASK FOR HEIGHT
22. A_________is the code or language that allows a user to instruct a computer to perform specific
tasks.
ANSWER: Programming Language
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
26. Who is considered as a user (component of an operating system)?
ANSWER: ALL OF THE CHOICES
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

PROG-113A / ► Week 18: Designing PL/SQL / ► Short Quiz 14


Which of the following is the syntax to open a cursor varial
Answer: OPEN cursor_variable_name
FOR select_statement;
Which of the following is the syntax to define a REF CURSOR type?
Answer: TYPE ref_type_name IS REF CURSOR
[RETURN return_type];
Weak REF CURSOR is very flexible.
Answer: True
Evaluate the following. What will be the output?
DECLARE
SUBTYPE Accumulator IS NUMBER (4,2);
v_amount accumulator;
v_num1 NUMBER;
v_num2 NUMBER;
v_num3 NUMBER;
BEGIN
v_amount := 10.50;
v_num1 := 1;
v_num2 := 2;
v_num3 := 3;
v_num1 := v_amount;
v_num2 := v_num1 + v_amount;
v_num2 := v_num2 - v_num3;
dbms_output.put_line('Total is: ' || v_num2);
END;
Answer: 18
Which of the following is the syntax to fetch from a cursor variable?
Answer: FETCH cursor_variable_name INTO variable_name1
[,variable_name2,. . .] | record_name;
Fetch into a record when fetching from a cursor.
Answer: True
Which of the following is the syntax to close a cursor?
Answer: CLOSE cursor_variable_name;
This is a subset of an existing data type that may place a constraint on its base type.
Answer: Subtype
Which of the following rules is INCORRECT about cursor variables?
Answer: None of the choices.
Use column aliases in cursors for calculated columns fetched into records declared with %COLUMNTYPE.
Answer: False

PROG-113A / ► Week 18: Designing PL/SQL / ► Learning Activity 14

Which of the following rules is INCORRECT about cursor variables?


Answer: None of the choices.
Which of the following describes weak REF CURSOR?
Answer: Associates with any query
Restrictive, specifies a RETURN type, associates only with type-compatible queries are
description of a ________________.
Answer: Strong REF CURSOR
Which of the following is INCORRECT about the guidelines for cursor design?
Answer: Use column aliases in cursors for calculated columns fetched into records declared with
%COLUMNTYPE.
This is a subset of an existing data type that may place a constraint on its base type.
Answer: Subtype

PROG-113A / ► Week 17: / ► Short Quiz 13


Evaluate the following PL/SQL.
CREATE OR REPLACE PROCEDURE query_employee
(p_id IN employees.employee_id%TYPE,
p_name OUT employees.last_name%TYPE,
p_salary OUT employees.salary%TYPE) IS
BEGIN SELECT last_name, salary INTO p_name, p_salary
FROM employeesWHERE employee_id = p_id;
END query_employee
Answer: No error
Evaluate the following PL/SQL. Which of the following will line creates an error?
CREATE OR REPLACE PROCEDURE query_emp
(
p_department_id IN employees.department_id%TYPE,
p_name OUT employees.last_name%TYPE,
p_salary OUT employees.salary%TYPE
)
IS
BEGIN
SELECT last_name, salary, department_id INTO p_name, p_salary, p_department_id
FROM employees
WHERE salary >= p_salary AND department_id = p_department_id ;
END query_emp;
Answer: Line 3
These are local variables declared in the parameter list of a subprogram specification.
Answer: Formal parameter
Given the answer in item __________, which of the folllowing stored procedure will display the
employee id and salary of Steven King?
Answer: DECLARE
v_employee_id employees.employee_id%TYPE;
v_emp_sal employees.salary%TYPE;
BEGIN
query_emp('King', 'Steven', v_employee_id, v_emp_sal);
DBMS_OUTPUT.PUT_LINE('Employee ID ' || v_employee_id ||' earns '|| to_char(v_emp_sal,
'$999,999.00'));
END;

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

PROG-113A / ► Week 16: Creating Procedures / ► Learning Activity 13


Procedure can be stored in the database as a schema object.
Answer: True
The PL/SQL code block helps modularize code by using:
Answer: All of the choices
Which of the following command is used to create a stand-alone procedure that is stored in the Oracle
database?
Answer: CREATE PROCEDURE
Which of the folllowing 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
Answer: iii & v
Which if the following is NOT a benefits of using modular program constructs?
Answer: None of the choices

PROG-113A / ► Week 18: Designing PL/SQL / ► Short Quiz 14


Which of the following is the syntax to open a cursor varial
Answer: OPEN cursor_variable_name
FOR select_statement;
Which of the following is the syntax to define a REF CURSOR type?
Answer: TYPE ref_type_name IS REF CURSOR
[RETURN return_type];
Weak REF CURSOR is very flexible.
Answer: True
Evaluate the following. What will be the output?
DECLARE
SUBTYPE Accumulator IS NUMBER (4,2);
v_amount accumulator;
v_num1 NUMBER;
v_num2 NUMBER;
v_num3 NUMBER;
BEGIN
v_amount := 10.50;
v_num1 := 1;
v_num2 := 2;
v_num3 := 3;
v_num1 := v_amount;
v_num2 := v_num1 + v_amount;
v_num2 := v_num2 - v_num3;
dbms_output.put_line('Total is: ' || v_num2);
END;
Answer: 18
Which of the following is the syntax to fetch from a cursor variable?
Answer: FETCH cursor_variable_name INTO variable_name1
[,variable_name2,. . .] | record_name;
Fetch into a record when fetching from a cursor.
Answer: True
Which of the following is the syntax to close a cursor?
Answer: CLOSE cursor_variable_name;
This is a subset of an existing data type that may place a constraint on its base type.
Answer: Subtype
Which of the following rules is INCORRECT about cursor variables?
Answer: None of the choices.
Use column aliases in cursors for calculated columns fetched into records declared with %COLUMNTYPE.
Answer: False

PROG-113A / ► Week 18: Designing PL/SQL / ► Learning Activity 14

Which of the following rules is INCORRECT about cursor variables?


Answer: None of the choices.
Which of the following describes weak REF CURSOR?
Answer: Associates with any query
Restrictive, specifies a RETURN type, associates only with type-compatible queries are
description of a ________________.
Answer: Strong REF CURSOR
Which of the following is INCORRECT about the guidelines for cursor design?
Answer: Use column aliases in cursors for calculated columns fetched into records declared with
%COLUMNTYPE.
This is a subset of an existing data type that may place a constraint on its base type.
Answer: Subtype

PROG-113A / ► Week 15: Long Quiz / ► Long Quiz 3 (30/30)


(Correction)
How do you test the output of a PL/SQL block?
Answer: Use a predefined Oracle package and its procedure
Which of the folllowing statement describes PL/SQL?
Answer: PL/SQL is an Oracle proprietary, procedural, 3GL programming language
Which of the following syntax to declare EXCEPTION named e_invalid_id?
Answer: e_invalid_id EXCEPTION;
In PL/SQL Block Structure, which of the following are mandatory?
Answer: BEGIN and END
This is a type of cursor which is created and managed internally by the Oracle server to process
SQL statements
Answer: Implicit
PL/SQL stands for
Answer: Procedural Language extension to SQL
Which of the following PL/SQL will execute successfully?
Answer: DECLARE
v_salary INTEGER(20);
BEGIN
SELECT salary INTO v_salary FROM employees WHERE employee_id = 150;
END;
What is the last clause in trapping exceptions?
Answer: WHEN OTHERS
PL/SQL Provides a block structure for executable units of ________________.
Answer: Code
Evaluate the following PL/SQL.
DECLARE
v_email VARCHAR(20);
BEGIN
SELECT email INTO v_email FROM EMPLOYEES WHERE email like 'D%';
DBMS_OUTPUT.PUT_LINE ('Employees whose email address starts with letter D :'
|| v_email);
EXCEPTION
WHEN TOO_MANY_ROWS THEN
DBMS_OUTPUT.PUT_LINE (' Your select statement retrieved multiple rows.');
END;
Answer: The PL/SQL block will run successfully.
Which of the folllowing is TRUE?
Answer: SQL code are embedded within PL/SQL statements
You can trap any error by including a corresponding handler within the exception-handling
section of the PL/SQL block.
Answer: True
When an exception is user defined, the exception is raised ____________ .
Answer: Explicitly
Evaluate the PL/SQL
DECLARE
v_first_name VARCHAR2(50);
v_last_name VARCHAR2(50);
v_salary INTEGER(20);
BEGIN
SELECT first_name, last_name, salary INTO v_first_name, v_last_name, v_salary FROM
employees WHERE department_id = 60;
DBMS_OUTPUT.PUT_LINE('Firstname : '|| v_first_name);
DBMS_OUTPUT.PUT_LINE('Lastname : '|| v_last_name);
DBMS_OUTPUT.PUT_LINE('Salary : '|| v_salary);
END;
Answer: Error in Line 6.
Evaluate the following PL/SQL.
DECLARE
v_employee_id employees.employee_id%TYPE := 114;
BEGIN
DELETE employees WHERE employee_id = v_employee_id;
END;
Answer: The PL/SQL will delete employee number 114.
Which of the following does NOT describes SELECT Statement in a PL/SQL.
Answer: Queries must return only one column.
What are the three PL/SQL block types?
Answer: Anonymous, Procedure, Function
What is the exception name when PL/SQL has an internal problem
Answer: PROGRAM_ERROR
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?
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;
What is the error trapping function that returns the numeric value of the error code?
Answer: SQLCODE
What is the exception name when single row SELECT returned no data.
Answer: NO_DATA_FOUND
Which of the following DOES NOT describes an exception?
Answer: Exception is a PL/SQL error that is raised before program execution.
Evaluate the following PL/SQL.
DECLARE
v_employee_id employees.employee_id%TYPE := 114;
BEGIN
DELETE employees WHERE employee_id = v_employee_id;
END;
Answer: The PL/SQL will delete employee number 114.
In the DECLARE section of the PL/SQL block,
Answer: All of the choices
When an exception is predefined by Oracle server, the exception is raised ____________ .
Answer: Explicitly
Which of the will display the Employee ID and number of years in service with employee ID
150?
Answer: DECLARE
v_salaryemployees.salary%TYPE := 10000;
v_employee_idemployees.employee_id%TYPE := 150;
v_years INTEGER(10);
BEGIN
SELECT employee_id, ROUND((SYSDATE - hire_date) /365,0) INTO v_employee_id, v_years
FROM employees WHERE employee_id = v_employee_id ;
DBMS_OUTPUT.PUT_LINE('Employee ID:' || v_employee_id);
DBMS_OUTPUT.PUT_LINE('Number of years : ' || v_years);
END;
Actions are being performed when error occurs during PL/SQL execution in the
Answer: EXCEPTION
You can use this procedure to issue user-defined error messages from stored subprograms.
Answer: RAISE_APPLICATION_ERROR

PROG-113A / ► Week 14: Handling Exceptions / ► Short Quiz 12

Evaluate the following PL/SQL.


DECLARE
v_email VARCHAR(20);
BEGIN
SELECT email INTO v_email FROM EMPLOYEES WHERE email like 'D%';
DBMS_OUTPUT.PUT_LINE ('Employees whose email address starts with letter D :'
|| v_email);
EXCEPTION
WHEN TOO_MANY_ROWS THEN
DBMS_OUTPUT.PUT_LINE (' Your select statement retrieved multiple rows.');
END;
Answer: The PL/SQL block will run successfully.
Which of the following DOES NOT describes an exception?
Answer: Exception is a PL/SQL error that is raised before program execution.
What is the exception name when single row SELECT returned no data.
Answer: NO_DATA_FOUND
RAISE_APPLICATION_ERROR is used in two different places. These are
___________________.
Answer: Executable and exceptions section
What is the error trapping function that returns the numeric value of the error code?
Answer: SQLCODE
What is the exception name when PL/SQL has an internal problem
Answer: PROGRAM_ERROR
Evaluate the following PL/SQL. At what line number is the error of the PL/SQL?
DECLARE
v_deptno NUMBER := 800;
e_invalid EXCEPTION;
BEGIN
DELETE FROM departments
WHERE department_id = v_deptno;
IF SQL % NOT_FOUND THEN
RAISE e_invalid;
END IF;
COMMIT;
EXCEPTION
WHEN e_invalid THEN
DBMS_OUTPUT.PUT_LINE('No such department id.');
END;
Answer: 7
What is the last clause in trapping exceptions?
Answer: WHEN OTHERS
Complete the diagram in Trapping Non-Predefined Oracle Server Errors.
Answer: Declare, Associate, Reference

PROG-113A / ► Week 14: Handling Exceptions / ► Learning Activity 12

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

PROG-113A / ► Week 13: Interacting with Oracle Server / ► Learning Activity 11

Which of the following does NOT describes SELECT Statement in a PL/SQL.


Answer: Queries must return only one column.
Evaluate the following PL/SQL.
1 DECLARE

2 v_employee_id employees.employee_id%TYPE := 114;

3 BEGIN
4 DELETE employees WHERE employee_id = 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;

PROG-113A / ► Week 12: Introduction to PLSQL / ► Short Quiz 10

Which of the folllowing is TRUE?


Answer: SQL code are embedded withing PL/SQL statements
In the DECLARE section of the PL/SQL block
Answer: All of the choices
In PL/SQL Block Structure, which of the following are OPTIONAL?
Answer: None of the choices
What are the three PL/SQL block types?
Answer: Anonymous, Procedure, Function
How do you test the output of a PL/SQL block?
Answer: Use a predefined Oracle package and its procedure
You want to display the name, salary and tax of employee #150. Which of the PL/SQL will
execute successfully? Note tax is computed as 2% of the salary.
Answer: DECLARE
v_first_name VARCHAR2(50);
v_last_name VARCHAR2(50);
v_salary INTEGER(20);
v_tax INTEGER(10);
BEGIN
SELECT first_name, last_name, salary, salary * 0.02 INTO v_first_name, v_last_name,
v_salary, v_tax FROM employees WHERE employee_id = 150;
DBMS_OUTPUT.PUT_LINE('Firstname : '|| v_first_name);
DBMS_OUTPUT.PUT_LINE('Lastname : '|| v_last_name);
DBMS_OUTPUT.PUT_LINE('Salary : '|| v_salary);
DBMS_OUTPUT.PUT_LINE('Tax : '|| v_tax);
END;
Which of the folllowing statement describes PL/SQL?
Answer: PL/SQL is an Oracle proprietary, procedural, 3GL programming language

PROG-113A / ► Week 12: Introduction to PLSQL / ► Learning Activity 10


PL/SQL stands for
Answer: Procedural Language extension to SQL
PL/SQL Provides a block structure for executable units of ________________.
Answer: Code
In PL/SQL Block Structure, which of the following are mandatory?
Answer: BEGIN and END
Which of the following PL/SQL will execute successfully?
Answer: DECLARE
v_salary INTEGER(20);
BEGIN
SELECT salary INTO v_salary FROM employees WHERE employee_id = 150;
END;
Actions are being performed when error occurs during PL/SQL execution in the
Answer: EXCEPTION

PROG-113A / ► Week 11: Using Subqueries to Solve Queries / ► Short Quiz 9

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')

Evaluate the SQL command


SELECT employee_id, job_id, salary from employees where salary < ALL (SELECT salary
FROM employees WHERE job_id = 'FI_ACCOUNT') AND job_id = 'IT_PROG'
Answer: This has no error.

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')

Evaluate the SQL command


SELECT employee_id, last_name, first_name, job_id FROM employees WHERE department_id
= (SELECT max(department_id) FROM employees GROUP BY department_id)
Answer: This will return an error. Single-row subquery returns more than one row.

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)

PROG-113A / ► Week 11: Using Subqueries to Solve Queries / ► Learning Activity 9


Which of the following is INCORRECT?
Answer: Use single-row operators with multiple-row subqueries
Which of the folllowing is required in a subquery?
Answer: SELECT
Which of the following is CORRECT about sub-queries?
Answer: Subquery execute before the main query executes.
Evaluate the SQL Command
SELECT job_id, job_title FROM jobs J WHERE INCLUDES
(SELECT * FROM employees WHERE J.job_id = e.job_id );
Answer: The SQL will return an error. Invalid "INCLUDES" parameter.
Evaluate the SQL command
SELECT employee_id, salary from employees where salary = ANY (SELECT salary FROM employees
WHERE job_id = 'IT_PROG') AND job_id = 'ST_CLERK'
Answer: This has no error.

True or False: Foreign co-workers having conversation issues with


everyone in the office are better left off on their own.
A: False

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

True or False: Understanding everyone’s interest is the second step in the


problem solving process. This is when you choose the optimal solution.
Answer: false

These kind of words or terms are often discouraged to be used during a


presentation, especially if the audience is not that familiar with
programming terms.
A: technical words

Referring to the figure below, determine if the statement is TRUE or


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 :)

Which of the following does NOT describes SELECT Statement in a PL/SQL.


Answer: Queries must return only one column.
You want to display all the records of employee the same with the salary employee number 103.
Answer: SELECT * FROM employees WHERE salary = (SELECT salary from employees where
employee_id= 103)
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;
Which of the folllowing is TRUE?
Answer: SQL code are embedded within PL/SQL statements
When an exception is user defined, the exception is raised ____________ .
Answer: Explicitly
Which of the folllowing is TRUE?
Answer: SQL code are embedded withing PL/SQL statements
Weak REF CURSOR is very flexible.
Answer: True
How do you test the output of a PL/SQL block?
Answer: Use a predefined Oracle package and its procedure
Restrictive, specifies a RETURN type, associates only with type-compatible queries are description
of a ________________.
Answer: Strong REF CURSOR
Which of the following DOES NOT describes an exception?
Answer: Exception is a PL/SQL error that is raised before program execution.
These are local variables declared in the parameter list of a subprogram specification.
Answer: Formal parameter
Which of the following rules is INCORRECT about cursor variables?
Answer: None of the choices.
When an exception is predefined by Oracle server, the exception is raised ____________ .
Answer: Explicitly
Which of the following DOES NOT describes an exception?
Answer: Exception is a PL/SQL error that is raised before program execution.
Evaluate the following PL/SQL.
CREATE OR REPLACE PROCEDURE query_employee
(p_id IN employees.employee_id%TYPE,
p_name OUT employees.last_name%TYPE,
p_salary OUT employees.salary%TYPE) IS
BEGIN SELECT last_name, salary INTO p_name, p_salary
FROM employeesWHERE employee_id = p_id;
END query_employee
Answer: No error
You want to know the total number of employees whose firstname starts with letter D.
Which of the folllowing PLS/SQL executes successfully?
Answer: DECLARE
v_first_name employees.first_name%TYPE := 'D%';
BEGIN
SELECT COUNT(*) INTO v_first_name FROM employees WHERE first_name LIKE v_first_name;
DBMS_OUTPUT.PUT_LINE(v_first_name);
END;
What is the error trapping function that returns the numeric value of the error code?
Answer: SQLCODE
You want to display the name, salary and tax of employee #150. Which of the PL/SQL will execute
successfully? Note tax is computed as 2% of the salary.
Answer: DECLARE
v_first_name VARCHAR2(50);
v_last_name VARCHAR2(50);
v_salary INTEGER(20);
v_tax INTEGER(10);
BEGIN
SELECT first_name, last_name, salary, salary * 0.02 INTO v_first_name, v_last_name, v_salary,
v_tax FROM employees WHERE employee_id = 150;
DBMS_OUTPUT.PUT_LINE('Firstname : '|| v_first_name);
DBMS_OUTPUT.PUT_LINE('Lastname : '|| v_last_name);
DBMS_OUTPUT.PUT_LINE('Salary : '|| v_salary);
DBMS_OUTPUT.PUT_LINE('Tax : '|| v_tax);
END;
Which of the following is the syntax to close a cursor?
Answer: CLOSE cursor_variable_name;
Which of the following rules is INCORRECT about cursor variables?
Answer: None of the choices.
What are the three PL/SQL block types?
Answer: Anonymous, Procedure, Function
You can trap any error by including a corresponding handler within the exception-handling section of
the PL/SQL block.
Answer: True
Which of the following describes weak REF CURSOR?
Answer: Associates with any query
Given the answer in item __________, which of the folllowing stored procedure will display the
employee id and salary of Steven King?
Answer: DECLARE
v_employee_id employees.employee_id%TYPE;
v_emp_sal employees.salary%TYPE;
BEGIN
query_emp('King', 'Steven', v_employee_id, v_emp_sal);
DBMS_OUTPUT.PUT_LINE('Employee ID ' || v_employee_id ||' earns '|| to_char(v_emp_sal,
'$999,999.00'));
END;
You have been tasked to update the database by creating a PL/SQL to increase the salary of all IT
Programmer employees by 50% 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 *0.50 WHERE job_id = v_job_id;
END;
Which of the folllowing is required in a subquery?
Answer: SELECT
What is the exception name when PL/SQL has an internal problem
Answer: PROGRAM_ERROR
In the DECLARE section of the PL/SQL block,
Answer: All of the choices
Actions are being performed when error occurs during PL/SQL execution in the
Answer: EXCEPTION
What is the exception name when PL/SQL has an internal problem
Answer: PROGRAM_ERROR
Which of the folllowing statement describes PL/SQL?
Answer: PL/SQL is an Oracle proprietary, procedural, 3GL programming language
Evaluate the following PL/SQL.
DECLARE
v_employee_id employees.employee_id%TYPE := 114;
BEGIN
DELETE employees WHERE employee_id = v_employee_id;
END;
Answer: The PL/SQL will delete employee number 114.
Which of the following command is used to create a stand-alone procedure that is stored in the
Oracle database?
Answer: CREATE PROCEDURE
Evaluate the following PL/SQL.
DECLARE
v_email VARCHAR(20);
BEGIN
SELECT email INTO v_email FROM EMPLOYEES WHERE email like 'D%';
DBMS_OUTPUT.PUT_LINE ('Employees whose email address starts with letter D :'
|| v_email);
EXCEPTION
WHEN TOO_MANY_ROWS THEN
DBMS_OUTPUT.PUT_LINE (' Your select statement retrieved multiple rows.');
END;
Answer: The PL/SQL block will run successfully.
Which of the following is the syntax to define a REF CURSOR type?
Answer: TYPE ref_type_name IS REF CURSOR
[RETURN return_type];
The PL/SQL code block helps modularize code by using:
Answer: All of the choices
Which of the following is the syntax to fetch from a cursor variable?
Answer: FETCH cursor_variable_name INTO variable_name1
[,variable_name2,. . .] | record_name;
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')
Procedure can be stored in the database as a schema object.
Answer: True
In PL/SQL Block Structure, which of the following are mandatory?
Answer: BEGIN and END
PL/SQL stands for
Answer: Procedural Language extension to SQL
Which of the following is CORRECT about sub-queries?
Answer: Subquery execute before the main query executes.
Which of the following does NOT describes SELECT Statement in a PL/SQL.
Answer: Queries must return only one column.
PL/SQL Provides a block structure for executable units of ________________.
Answer: Code
Evaluate the SQL command
SELECT employee_id, salary from employees where salary = ANY (SELECT salary FROM
employees WHERE job_id = 'IT_PROG') AND job_id = 'ST_CLERK'
Answer: This has no error.
Which of the following PL/SQL will execute successfully?
Answer: DECLARE
v_salary INTEGER(20);
BEGIN
SELECT salary INTO v_salary FROM employees WHERE employee_id = 150;
END;
In PL/SQL Block Structure, which of the following are OPTIONAL?
Answer: None of the choices
Evaluate the following PL/SQL. At what line number is the error of the PL/SQL?
DECLARE
v_deptno NUMBER := 800;
e_invalid EXCEPTION;
BEGIN
DELETE FROM departments
WHERE department_id = v_deptno;
IF SQL % NOT_FOUND THEN
RAISE e_invalid;
END IF;
COMMIT;
EXCEPTION
WHEN e_invalid THEN
DBMS_OUTPUT.PUT_LINE('No such department id.');
END;
Answer: 7
What is the error trapping function that returns the numeric value of the error code?
Answer: SQLCODE
Fetch into a record when fetching from a cursor.
Answer: True

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’;

Which of the following SQL commands will display all stocks whose class is HW or AP.
SELECT * FROM parts WHERE IN class ('HW', '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?
SELECT employee_id, hire_date, TO_CHAR(hire_date,'Month') AS "Hired Month" FROM employees;

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;

John want to know how many employees receiving salary below 10,000. What SQL command he need to
run?
SELECT COUNT(*) FROM employees WHERE salary < 10000;

----------------------------------------
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%'

What will be the output of the following SQL?


SELECT * FROM parts WHERE (warehouse = 1 or warehouse = 2) AND class IN ('HW', 'AP') AND (price >
200 AND price < 500);
2 rows returned

What will be the output of the SQL command?


SELECT SUM(onhand) FROM PARTS where class = 'HW' OR class = 'AP' AND warehouse = 1;
137

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
output?
SELECT first_name, last_name, job_id, min_salary, max_salary FROM employees JOIN jobs USING
(job_id);
What will be the output of the SQL command below?
SELECT first_name, last_name, job_title FROM employees CROSS JOIN jobs ORDER BY last_name;
A Cartesian product

What will be the output of the SQL command below?


SELECT last_name, job_id, job_title FROM employees NATURAL JOIN jobs
List of names and job title of matched records from the employees and jobs table

----------------------------------------
SQ6

Given the SQL command


SELECT * FROM employees JOIN departments USING (department_id)
Which of the following describes the SQL command?
Joined table from the employees and department table

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

Display the manager id and employee id of every employee


SELECT E.employee_id, D.manager_id FROM employees E JOIN departments D ON E.department_id =
D.department_id

Given the SQL command


SELECT employees.first_name, employees.last_name, employees.salary,departments.department_name
FROM employees, departments
WHERE employees.department_id = departments.department_id;
Which of the following describes the SQL command?
List of employees name, salary and department name

----------------------------------------
LA7

Remove the Shareholder Services department in the department table


DELETE FROM departments WHERE department_name = ‘Shareholder Services’

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 update the information in the department table.
INSERT INTO departments VALUES (300, 'Training', 203, 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)

Remove all Manager positions in the department table.


DELETE FROM jobs WHERE job_title LIKE '%Manager%';
----------------------------------------
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 describes the command below?


SELECT * FROM employees WHERE department = 60 FOR UPDATE
Locks the rows in the EMPLOYEES table with department id is 60.

Which of the following will erase all records in the departments table
TRUNCATE TABLE departments

SQL command to create a marker in the current transaction.


SAVEPOINT

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

You want to cancel the privilege of matt to add records from the employees table.
REVOKE insert ON employees FROM 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 provide privilege to update the employees table?


GRANT update (salary) ON employees TO matt

Which of the following will is the correct command to create a role.


CREATE ROLE gen_manager

Matt wants to change his password from 1234 to abcd.


Which of the following will perform the task?
ALTER USER matt IDENTIFIED abcd;

The DBA will create a new user name sales.


Which of the following SQL command will perform the creation?
CREATE sales ACCESS 1234

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

What privileges that manipulates the content of the database objects.


Object Privileges

----------------------------------------
1st Q Exam

Evaluate the following SQL command


SELECT employee_id, salary, department_id FROM employees WHERE department_id IN (60,70)
The SQL command will display employees with department id 60 or 70.

True or False. The AND, OR, NOT are comparison operators.


False

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

List all employees except for IT_PROG job id.


All of the choices

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

Evaluate the following SQL command


SELECT * FROM jobs WHERE job_title LIKE 'Manager%'
No records will be displayed

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

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 last_name, TO_INTEGER(salary, $999,999.99) AS "MONTHLY SALARY" FROM employees
WHERE salary < 10000 WHERE last_name IN 'D%'

In creating Joins,the NATURALJOIN and USING clauses are____________


Mutually Exclusive

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
Question text
True or False: Operators, in Java programming language, use special symbols to call methods and their
objects.
Answer:
False
Question text
Read each statement carefully and decide whether it’s TRUE or FALSE.
There are no errors in the program.
Select one:
False
Question text
Refer to the block of codes below. Read each statement carefully and decide whether it’s TRUE or FALSE.
Line 9 uses a traditional comment which uses double forward slash.
Answer: False
Question text
True or False: Many programmers can be literate with Java programming language for it is intended to be that
way.
Answer:
True
Question text
True or False: You’ll know there’s an error if you see a red circle with an exclamation point in Netbeans IDE.
Answer:
True
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 = (x = 100) >= z;
Select one:
True
The file is accurately named – Students.java.
-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.
-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
The last line of code will output 100.0.
-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

There are keywords found in line 7.


-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 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.
-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

Substrings can contain 1 or 2 arguments.


-true
Determine the output.

-bar

The index of the letter “y” in string “Doggy” is 5.


-False
Determine the output.
-foo
TRUE OR FALSE: The value “val_3” is a white space “ “.
-False
True or False: Variable 1st_num is a good variable name in Java programming.
-False

TRUE OR FALSE: “val_2” contains “The”


-True
True or False: Instance variables are declared inside a method but outside a class.
-False

True or False: Variable names in Java are not necessarily case sensitive.
-False
Determine the output
-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
result = !((x * 10) < z);
-False

result = -(-z) == 43;


-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
x += x;
result = x == 154;
-False
The second line 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
A string can contain numbers.
-True

TRUE OR FALSE: This is an example of concatenation.


-True

TRUE OR FALSE: The value of “val_4” is “fox”


-False

TRUE OR FALSE: “val_2” contains “The”.


-True
Determine the output.
-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
Strings can be declared with str.
-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
Among the expressions below which is a statement?
-True
Expressions can be long and complex.
-true

number++; is an expression
-true
For-loops has a set number of iterations before starting.
-True

The equals( ) method can compare more than 2 arrays.


-False
While loops can use Booleans at test expressions.
-True

The test expression of the if statement is _______


-less than or equal to
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
x+1 is example of a statement.
-False

number++; is a block
-False
Arrays are
-Integers
The operator “new” allocates a memory block the size of what is declared.
-true
A class block can be an expression
-False
Statements can be expressions.
-False

Integer arrays can be populated with characters.


-False
Declaration clauses are declared as “number + 1”.
-False

Loops can be stopped with a break; statement.


-True
The equivalent of Paragraphs in coding is?
-Expressions

If statements cannot be nested in switches


-true
The length( ) method returns the size (number of indices) has.
-True
When polymorphism is used, the Java object can only take one form. Subclasses should have the
same function with the parent class.
-False
Arrays can contain (Answer) number of elements.
-Any
“||” and “&&” can be used in conditional statements.
-True
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
Expressions can be statements.
-True
Blocks can contain more blocks of code.
-True
If-else statements can be nested in?
-All of the choices

Statements are equivalent to paragraphs.


-False
A (answer) array is an array containing true or false values.
-boolean
Switches are always used with if-else statements
-False
True or False: The modulus operator returns the remainder of a division operation instead of the
quotient.
-true
Determine the output.
String val_1 = “564298”;
-5698
Determine the output.
String val_1 = “35”;
-4

The return value of the length( ) method is an integer


-true
A superclass is also known as a parent class.
-true

For-loops can be nested in while loops.


-true
In instantiating an object, the keyword instance is used.
-False

Object oriented programming utilizes the top down method


-False
Expressions are like clauses.
-true
The sort( ) method is always ascending.
-true
Arrays are data types.
-False
Variables must be declared as (Answer) for it to be fully hidden.

-private
While statements check the test expression at the end.
-False
The else statement can be used alone.
-False
The fill( ) method (Answer) the array with specific values.
-Fills
The output of println is

-55555
The person’s weight is declared correctly with the correct data type (byte) and value (160).
-FALSE
Determine the output.
String val_1 = “foo”
String val_2 = “bar”

val_2 = val_1;
val_1 = val_3;
System.out.println(val_1);
-bar
Determine the output.
String val_1 = “foo”
String val_2 = “bar”

val_2 = val_1;
val_1 = val_3;
System.out.println(val_2);
-foo
Switches can work properly even without the “break” expression.
-True
Blocks can be one liner or huge classes.
-True
The test expressions in conditional statements can be left empty.
-False

Abstraction works by hiding the implementation details and showing only the functions necessary.
-True
A single array can hold multiple data types
-False

A polymorphic object can pass more than one Is-a test.


-True
Another loop can be used as test expression.
-False

True or False: Public, static and void are sample of Java reserved keywords.
-True
The value of “pStr” in line 24 is
-True

The default syntax of a constructor is <class_name>(parameter, parameter){ }


-False
A nested class is not an inner class.
-False
Nested classes causes them to become abstracted
-False
A nested class is also called

-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
A constructor can only have 1-2 overloads or parameters.
-False
All possible data types of an array can be retuned as a string by the toString( ) method.
-True
Abstracted classes can contain 1 or more abstract methods.
-True
Abstraction shows the every bit of detail and implementation on how an application does something.
-False
Initialization is a process where the constructor is called for.
-True
The default syntax of a constructor is <class_name>( ){ }
-True
Classes cannot be nested.
-False
Abstract classes cannot have nested classes.
-False
The parent class of a nested class is called an outer class
-True
An inner class can be constructed directly without reference to the outer class.
-False
Arrays can be read backwards
-True
A single array can hold
-One data type

Abstracted methods already have implementations inside.


-False
are special methods to initialize objects.
-constructors

Constructors have 3 basic rules to follow.


-False
Nesting classes increases encapsulation.
-True

Each index can only contain (Answer) element.


-one
The sort( ) method can be set to sort only a part of an array.
-False
Subclasses or child classes could have different behaviors but still share the same functions from
their parent class.
-True

Abstract methods must have an explicit return value


-False
An abstract class must not contain abstract methods.
-False

Abstracted classes can be nested.


-True
A subclass constructor cannot invoke a superclass constructor.
-False
A class acquiring fields and methods of another class is called inheritance.
-True
Parallelsorting utilizes

-More cpu processing cores


method can copy one array to another.
-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.
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
Question text
True or False: Operators, in Java programming language, use special symbols to call methods and their
objects.
Answer:
False
Question text
Read each statement carefully and decide whether it’s TRUE or FALSE.
There are no errors in the program.
Select one:
False
Question text
Refer to the block of codes below. Read each statement carefully and decide whether it’s TRUE or FALSE.
Line 9 uses a traditional comment which uses double forward slash.
Answer: False
Question text
True or False: Many programmers can be literate with Java programming language for it is intended to be that
way.
Answer:
True
Question text
True or False: You’ll know there’s an error if you see a red circle with an exclamation point in Netbeans IDE.
Answer:
True
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 = (x = 100) >= z;
Select one:
True
The file is accurately named – Students.java.
-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.
-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
The last line of code will output 100.0.
-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
There are keywords found in line 7.
-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 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.
-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

Substrings can contain 1 or 2 arguments.


-true
Determine the output.

-bar

The index of the letter “y” in string “Doggy” is 5.


-False
Determine the output.
-foo
TRUE OR FALSE: The value “val_3” is a white space “ “.

-False
True or False: Variable 1st_num is a good variable name in Java programming.
-False

TRUE OR FALSE: “val_2” contains “The”


-True
True or False: Instance variables are declared inside a method but outside a class.
-False
True or False: Variable names in Java are not necessarily case sensitive.
-False

Determine the output


-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
result = !((x * 10) < z);
-False
result = -(-z) == 43;
-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

x += x;
result = x == 154;
-False
The second line 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
A string can contain numbers.
-True

TRUE OR FALSE: This is an example of concatenation.


-True

TRUE OR FALSE: The value of “val_4” is “fox”


-False

TRUE OR FALSE: “val_2” contains “The”.


-True
Determine the output.
-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

Strings can be declared with str.


-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

Among the expressions below which is a statement?


-True
Expressions can be long and complex.
-true
number++; is an expression
-true
For-loops has a set number of iterations before starting.
-True
The equals( ) method can compare more than 2 arrays.
-False
While loops can use Booleans at test expressions.
-True
The test expression of the if statement is _______
-less than or equal to
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
x+1 is example of a statement.
-False
number++; is a block
-False
Arrays are
-Integers
The operator “new” allocates a memory block the size of what is declared.
-true
A class block can be an expression
-False
Statements can be expressions.
-False
Integer arrays can be populated with characters.
-False
Declaration clauses are declared as “number + 1”.
-False
Loops can be stopped with a break; statement.
-True
The equivalent of Paragraphs in coding is?
-Expressions
If statements cannot be nested in switches
-true

The length( ) method returns the size (number of indices) has.


-True
When polymorphism is used, the Java object can only take one form. Subclasses should have the
same function with the parent class.
-False
Arrays can contain (Answer) number of elements.
-Any

“||” and “&&” can be used in conditional statements.


-True
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

Expressions can be statements.


-True
Blocks can contain more blocks of code.
-True

If-else statements can be nested in?


-All of the choices
Statements are equivalent to paragraphs.
-False

A (answer) array is an array containing true or false values.


-boolean
Switches are always used with if-else statements
-False
True or False: The modulus operator returns the remainder of a division operation instead of the
quotient.
-true
Determine the output.
String val_1 = “564298”;
-5698
Determine the output.
String val_1 = “35”;
-4
The return value of the length( ) method is an integer
-true
A superclass is also known as a parent class.
-true
For-loops can be nested in while loops.
-true
In instantiating an object, the keyword instance is used.
-False
Object oriented programming utilizes the top down method
-False
Expressions are like clauses.
-true

The sort( ) method is always ascending.


-true
Arrays are data types.
-False

Variables must be declared as (Answer) for it to be fully hidden.


-private
While statements check the test expression at the end.
-False

The else statement can be used alone.


-False
The fill( ) method (Answer) the array with specific values.
-Fills

The output of println is


-55555
The person’s weight is declared correctly with the correct data type (byte) and value (160).
-FALSE

Determine the output.


String val_1 = “foo”

String val_2 = “bar”


val_2 = val_1;
val_1 = val_3;
System.out.println(val_1);

-bar
Determine the output.
String val_1 = “foo”
String val_2 = “bar”
val_2 = val_1;
val_1 = val_3;

System.out.println(val_2);
-foo
Switches can work properly even without the “break” expression.
-True
Blocks can be one liner or huge classes.
-True
The test expressions in conditional statements can be left empty.
-False
Abstraction works by hiding the implementation details and showing only the functions necessary.
-True
A single array can hold multiple data types
-False
A polymorphic object can pass more than one Is-a test.
-True
Another loop can be used as test expression.
-False
True or False: Public, static and void are sample of Java reserved keywords.
-True
The value of “pStr” in line 24 is

-True
The default syntax of a constructor is <class_name>(parameter, parameter){ }
-False

A nested class is not an inner class.


-False
Nested classes causes them to become abstracted
-False

A nested class is also called


-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
A constructor can only have 1-2 overloads or parameters.
-False

All possible data types of an array can be retuned as a string by the toString( ) method.
-True
Abstracted classes can contain 1 or more abstract methods.
-True

Abstraction shows the every bit of detail and implementation on how an application does something.
-False
Initialization is a process where the constructor is called for.
-True
The default syntax of a constructor is <class_name>( ){ }
-True
Classes cannot be nested.
-False
Abstract classes cannot have nested classes.
-False
The parent class of a nested class is called an outer class
-True
An inner class can be constructed directly without reference to the outer class.
-False
Arrays can be read backwards
-True
A single array can hold
-One data type
Abstracted methods already have implementations inside.
-False
are special methods to initialize objects.
-constructors
Constructors have 3 basic rules to follow.
-False
Nesting classes increases encapsulation.
-True
Each index can only contain (Answer) element.
-one
The sort( ) method can be set to sort only a part of an array.
-False
Subclasses or child classes could have different behaviors but still share the same functions from
their parent class.
-True
Abstract methods must have an explicit return value
-False
An abstract class must not contain abstract methods.
-False
Abstracted classes can be nested.
-True

A subclass constructor cannot invoke a superclass constructor.


-False
A class acquiring fields and methods of another class is called inheritance.
-True

Parallelsorting utilizes
-More cpu processing cores
method can copy one array to another.
-arraycopy()

The equivalent of clauses in coding is?


-Expressions
Int num = 1; for(num=num;num<=10;num++) is an acceptable code snippet.
-true
Loop that has a pre-determined number of iterations
-while
An int can be used even if it is declared outside a for-loop.
-true
Overload methods must be the same name as the class
-true
What the break statement in this example does is ________.
-Ends the whole instance of the loop
The random( ) method sorts the array randomly.
-False
The last part in a for loop setup can be an ________.
- both
The “1” in arrayName[1] is called an ________.
-Index
The continue; statement ends all the iterations of a loop.
- False
Which is not a proper increment?
- n+-;
Infine for-loops can be declared as for( ){ }.
- False
If-if is more logical than else-if.
- False
The else statement can be removed if not needed.
-True
Expressions, Statements and Blocks are like composing sentences and paragraphs.
-True
You can declare a new method in the subclass which is not declared in the superclass.
-True
The return value of the equals( ) method is ________ .
-None of the choices
The Arrays.sort( ) method sorts an array into _________ order.
-Ascending
This type of declaration is discouraged: “int myArray[ ]”
- True
An if-else-if-else statement is a block.
-True
If the increment num=num+2 is changed to num++, the final value of num will be
________.
-5
The term of each pass through a loop makes is called?
-iteration
Loops must always have a continue or break statement.
-False
1+2+3/4*5 is an unambiguous expression
-False
Conditional statements can contain more conditional statements.
- True
int num = 1;
if(num==1 && num<=1){
body;
}
The conditional statement will _______.
- execute the body
byte( ][ ][ ) myArray; is an example of ________.
- An error
An array _______ hold objects.
- can
A reference variable can be reassigned to other objects provided that it is not declared
________.
- final
The test expression of conditional statement cannot contain _______
-!
Each pass through of a loop is called a cycle.
- True
If the increment “num = num + 2” is changed to “num = num + 1” the final output will be
_______.
-0
Ifs and else-ifs test expressions return true or false.
- True
_______ classes increase the encapsulation of you methods and data.
- nesting
Constructed methods are initialized with 0 or null depending on the data type.
- true
The else statement catches whatever argument the if and else-if didn’t
- True
An iteration of a loop is equivalent to one pass through.
- true
38. If we change the initial value of num in line 6 to “num = 0”, the println output will be
_______
-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
A loop can contain no expressions or statements inside.
- true
Conditional statements are the same as declaration statements.
- False
You cannot use inherited methods directly in a child class.
- False
The equals( ) method compares 2 arrays.
- True
Method invocations are statements
- True
To implement encapsulation, you have to declare class variables with the private
modifier.
- True
Inner class methods can be called by constructing the inner class.
- False
Encapsulated data are hidden from other classes.
- True
Procedural programming will be tricky for applications.
Answer: small
Strings can directly concatenated to an int.
Answer: False

1. Machine language and assembly language are collectively referred to as


_________________________
Answer: LOW-LEVEL LANGUAGE
2. 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

3. Machine language is also known as Answer language.


4. Kyoto protocol addresses environmental issues through the campaign of
____________________.
Answer: reducing greenhouse gas emissions
5. 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 – like additional characters and skills.”
Select one:
Answer: Maintainability
6.C# was released by Answer Micros
.

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?

Answer: Social media login limit.


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.
I cannot type anything but my mouse is working, I am using a brand new USB keyboard, which port
should I check?
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.
ANSWER: PRINTER WIZARD
13.Big business companies are the only ones responsible for enforcing environmental policies since
they can afford alternative cleaner technology.
ANSWER: FALSE
14. Who is considered as a user (component of an operating system)?
ANSWER; ALL OF THE CHOICES

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.
ANSWER: High-Level 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?
ANSWER: IV, I, V, III, II
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

21. The first computer concept invented is called _________________________.


ANSWER; ANALYTICAL ENGINE

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
23.Java is an example of

ANSWER: HIGH-LEVEL LANGUAGE


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 it be connected?
ANSWER: D
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
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. ead 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.
“I find it really enjoying to play XYZ since I can invite my friends from social media profile. It works
well with this social media app!”
ANSWER: COMPATIBILITY
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.

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.”
ANSWER: SECURITY
33.Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product quality model
and write the letter that corresponds to your answer.
Capacity
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: ASK FOR HEIGHT
35.Montreal protocol protects the ozone layer by ____________________.
ANSWER: phasing out harmful substances
36. 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
37. Refer to the image below to answer the following question.
By default, what is the value of limit?
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 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.
“XYZ is so cool! I tried to install it in my old computer and it still runs smoothly. Given that the
computer’s video card is a bit faulty.“
ANSWER: Reliability

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: NONE OF THE CHOICES


44. Refer to the pseudocode below and answer the following question: What happens after weight is
given?
ANSWER: ASK FOR HEIGHT
45.Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product quality model
and write the letter that corresponds to your answer.
Learnability
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?

ANSWER: display Overweight


47.Axel is finally documenting his work. What could he be writing?

ANSWER: instructions for the users


48. 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.
“One good thing I find with XYZ as when my laptop shuts down accidentally, my game score and
status can still be recovered. No need to repeat a level.”
ANSWER: Reliability
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
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. 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.
Answer: accountable
Question text
True or False: Monitoring and evaluating means brainstorming.
Answer: False
Question 5
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Axel is finally documenting his work. What could he be writing?
Select one:
a. requirements of the program
b. system analysis
c. bug reviews and errors
d. instructions for the users

Question 6
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Machine language and assembly language are collectively referred to as
_________________________.
Select one:
a. Average level language
b. Low-level language
c. Advanced language
d. High-level language

Question 7
Complete
Mark 1.00 out of 1.00

Flag question

Question text
True or False: Nothing good ever comes from giving feedback. If anything, anyone who does give
will only get scolded by the boss.
Answer: False

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 problems in Materials, Measurement, Method, People, Equipment or
Environment.

When the software used was checked, the project manager discovered that some of the
programmers are using an old version of Java. This cause is categorized under

Answer. Materials

Question 9
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 be told
about the students who volunteered to test the student record system.
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:
a. email
b. social media
c. hyperlinks
d. speaking

Question 12
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Refer to the pseudocode below and answer the following question:
What is the first thing that the program will do?
Select one:
a. ask for BMI
b. print height
c. ask for height
d. print BMI

Question 13
Complete
Mark 1.00 out of 1.00

Flag question

Question text
____________________ in the workplace protection of sensitive business information through
precautionary measures like confidentiality clauses or non-disclosure agreements.
Select one:
a. Curiosity
b. Integrity
c. Secrecy
d. Confidentiality

Question 14
Complete
Mark 0.00 out of 1.00
Flag question

Question text
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product quality model and
write the letter that corresponds to your answer.
Capacity
Select one:
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.
Answer: False

Question 17
Complete
Mark 1.00 out of 1.00

Flag question

Question text
In ____________________, 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
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.
Answer: True

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:
a. True
b. 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:
a. True
b. 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
b. Actions
c. Objectives
d. Process

Question 23
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Categorize the following 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
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
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 problems in Materials, Measurement, Method, People, Equipment or
Environment.

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

Question 27
Complete
Mark 1.00 out of 1.00

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
Complete
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:
a. Correct
b. Wrong

Question 29
Complete
Mark 1.00 out of 1.00

Flag question

Question text
In adding a new printer, the _____________ will guide you on the steps to be taken.
Select one:
a. Printer Guide
b. Printer Affix
c. Printer Install
d. Printer Wizard

Question 30
Complete
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

Question text
Refer to the image below and write only the letter of the correct answer in the space provided.

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 text
Identify whether the following task should be listed as a milestone or be included in the Gantt chart.
Fix bugs and errors detected in the system.
Answer: Gantt chart

Question 33
Complete
Mark 1.00 out of 1.00

Flag question

Question text
In the correct order, the essential parts of the communication process are:
Select one:
a. Source, Message, Encoding, Channel, Decoding, Receiver, Feedback
b. Source, Message, Encoding, Channel, Receiver, Decoding, Feedback
c. Source, Message, Encoding, Channel, Decoding, Feedback, Receiver
d. Source, Message, Encoding, Receiver, Decoding, Channel, Feedback

Question 34
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
Answer: internal

Question 35
Complete
Mark 1.00 out of 1.00

Flag question

Question text
True or False: To solve a problem means to know first what the problem is before coming up with
the feasible solutions.
Answer: True

Question 36
Complete
Mark 1.00 out of 1.00

Flag question

Question text
True or False: Listing down the issues related to the problem is second to the last step in an
effective problem solving process.
Answer: False

Question 37
Complete
Mark 1.00 out of 1.00

Flag question

Question text
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:
a. Portability
b. Security
c. Maintainability
d. Functional Suitability
e. Usability
f. Compatibility
g. Performance Efficiency
h. Reliability

Question 38
Complete
Mark 1.00 out of 1.00
Flag question

Question text
Monica accidentally unplugged the mouse PS/2 port. What will happen to the mouse connected thru
the universal serial bus port?
Select one:
a. The mouse will stop working.
b. None of the choices.
c. The mouse will freeze.
d. All of the choices
e. The mouse will be disabled.

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
Flag question

Question text
Decide whether it is a communication instrument or purpose.
A Gantt chart that shows the schedule for the development process of the student record system.

Answer: instrument

Question 41
Complete
Mark 1.00 out of 1.00

Flag question

Question text
A product or service 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 Control
c. Safety Programs
d. Reflective Behavior
Question 42
Complete
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.
ComputeTotalScore() for a routine to sum up the scores.
Select one:
a. Wrong
b. 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
Mark 1.00 out of 1.00

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
Question text
The first computer concept invented is called _________________________.
Select one:
a. COBOL
b. Analytical Engine
c. FORTRAN
d. PlanKalKul

Question 49
Complete
Mark 1.00 out of 1.00

Flag question

Question text
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.
“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.”
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
Flag question

Question text
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product quality model and
write the letter that corresponds to your answer.
Integrity
Select one:
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 does NOT describes SELECT Statement in a PL/SQL.


Answer: Queries must return only one column.
You want to display all the records of employee the same with the salary employee number 103.
Answer: SELECT * FROM employees WHERE salary = (SELECT salary from employees where
employee_id= 103)
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;
Which of the folllowing is TRUE?
Answer: SQL code are embedded within PL/SQL statements
When an exception is user defined, the exception is raised ____________ .
Answer: Explicitly
Which of the folllowing is TRUE?
Answer: SQL code are embedded withing PL/SQL statements
Weak REF CURSOR is very flexible.
Answer: True
How do you test the output of a PL/SQL block?
Answer: Use a predefined Oracle package and its procedure
Restrictive, specifies a RETURN type, associates only with type-compatible queries are description
of a ________________.
Answer: Strong REF CURSOR
Which of the following DOES NOT describes an exception?
Answer: Exception is a PL/SQL error that is raised before program execution.
These are local variables declared in the parameter list of a subprogram specification.
Answer: Formal parameter
Which of the following rules is INCORRECT about cursor variables?
Answer: None of the choices.
When an exception is predefined by Oracle server, the exception is raised ____________ .
Answer: Explicitly
Which of the following DOES NOT describes an exception?
Answer: Exception is a PL/SQL error that is raised before program execution.
Evaluate the following PL/SQL.
CREATE OR REPLACE PROCEDURE query_employee
(p_id IN employees.employee_id%TYPE,
p_name OUT employees.last_name%TYPE,
p_salary OUT employees.salary%TYPE) IS
BEGIN SELECT last_name, salary INTO p_name, p_salary
FROM employeesWHERE employee_id = p_id;
END query_employee
Answer: No error
You want to know the total number of employees whose firstname starts with letter D.
Which of the folllowing PLS/SQL executes successfully?
Answer: DECLARE
v_first_name employees.first_name%TYPE := 'D%';
BEGIN
SELECT COUNT(*) INTO v_first_name FROM employees WHERE first_name LIKE v_first_name;
DBMS_OUTPUT.PUT_LINE(v_first_name);
END;
What is the error trapping function that returns the numeric value of the error code?
Answer: SQLCODE
You want to display the name, salary and tax of employee #150. Which of the PL/SQL will execute
successfully? Note tax is computed as 2% of the salary.
Answer: DECLARE
v_first_name VARCHAR2(50);
v_last_name VARCHAR2(50);
v_salary INTEGER(20);
v_tax INTEGER(10);
BEGIN
SELECT first_name, last_name, salary, salary * 0.02 INTO v_first_name, v_last_name, v_salary,
v_tax FROM employees WHERE employee_id = 150;
DBMS_OUTPUT.PUT_LINE('Firstname : '|| v_first_name);
DBMS_OUTPUT.PUT_LINE('Lastname : '|| v_last_name);
DBMS_OUTPUT.PUT_LINE('Salary : '|| v_salary);
DBMS_OUTPUT.PUT_LINE('Tax : '|| v_tax);
END;
Which of the following is the syntax to close a cursor?
Answer: CLOSE cursor_variable_name;
Which of the following rules is INCORRECT about cursor variables?
Answer: None of the choices.
What are the three PL/SQL block types?
Answer: Anonymous, Procedure, Function
You can trap any error by including a corresponding handler within the exception-handling section of
the PL/SQL block.
Answer: True
Which of the following describes weak REF CURSOR?
Answer: Associates with any query
Given the answer in item __________, which of the folllowing stored procedure will display the
employee id and salary of Steven King?
Answer: DECLARE
v_employee_id employees.employee_id%TYPE;
v_emp_sal employees.salary%TYPE;
BEGIN
query_emp('King', 'Steven', v_employee_id, v_emp_sal);
DBMS_OUTPUT.PUT_LINE('Employee ID ' || v_employee_id ||' earns '|| to_char(v_emp_sal,
'$999,999.00'));
END;
You have been tasked to update the database by creating a PL/SQL to increase the salary of all IT
Programmer employees by 50% 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 *0.50 WHERE job_id = v_job_id;
END;
Which of the folllowing is required in a subquery?
Answer: SELECT
What is the exception name when PL/SQL has an internal problem
Answer: PROGRAM_ERROR
In the DECLARE section of the PL/SQL block,
Answer: All of the choices
Actions are being performed when error occurs during PL/SQL execution in the
Answer: EXCEPTION
What is the exception name when PL/SQL has an internal problem
Answer: PROGRAM_ERROR
Which of the folllowing statement describes PL/SQL?
Answer: PL/SQL is an Oracle proprietary, procedural, 3GL programming language
Evaluate the following PL/SQL.
DECLARE
v_employee_id employees.employee_id%TYPE := 114;
BEGIN
DELETE employees WHERE employee_id = v_employee_id;
END;
Answer: The PL/SQL will delete employee number 114.
Which of the following command is used to create a stand-alone procedure that is stored in the
Oracle database?
Answer: CREATE PROCEDURE
Evaluate the following PL/SQL.
DECLARE
v_email VARCHAR(20);
BEGIN
SELECT email INTO v_email FROM EMPLOYEES WHERE email like 'D%';
DBMS_OUTPUT.PUT_LINE ('Employees whose email address starts with letter D :'
|| v_email);
EXCEPTION
WHEN TOO_MANY_ROWS THEN
DBMS_OUTPUT.PUT_LINE (' Your select statement retrieved multiple rows.');
END;
Answer: The PL/SQL block will run successfully.
Which of the following is the syntax to define a REF CURSOR type?
Answer: TYPE ref_type_name IS REF CURSOR
[RETURN return_type];
The PL/SQL code block helps modularize code by using:
Answer: All of the choices
Which of the following is the syntax to fetch from a cursor variable?
Answer: FETCH cursor_variable_name INTO variable_name1
[,variable_name2,. . .] | record_name;
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')
Procedure can be stored in the database as a schema object.
Answer: True
In PL/SQL Block Structure, which of the following are mandatory?
Answer: BEGIN and END
PL/SQL stands for
Answer: Procedural Language extension to SQL
Which of the following is CORRECT about sub-queries?
Answer: Subquery execute before the main query executes.
Which of the following does NOT describes SELECT Statement in a PL/SQL.
Answer: Queries must return only one column.
PL/SQL Provides a block structure for executable units of ________________.
Answer: Code
Evaluate the SQL command
SELECT employee_id, salary from employees where salary = ANY (SELECT salary FROM
employees WHERE job_id = 'IT_PROG') AND job_id = 'ST_CLERK'
Answer: This has no error.
Which of the following PL/SQL will execute successfully?
Answer: DECLARE
v_salary INTEGER(20);
BEGIN
SELECT salary INTO v_salary FROM employees WHERE employee_id = 150;
END;
In PL/SQL Block Structure, which of the following are OPTIONAL?
Answer: None of the choices
Evaluate the following PL/SQL. At what line number is the error of the PL/SQL?
DECLARE
v_deptno NUMBER := 800;
e_invalid EXCEPTION;
BEGIN
DELETE FROM departments
WHERE department_id = v_deptno;
IF SQL % NOT_FOUND THEN
RAISE e_invalid;
END IF;
COMMIT;
EXCEPTION
WHEN e_invalid THEN
DBMS_OUTPUT.PUT_LINE('No such department id.');
END;
Answer: 7
What is the error trapping function that returns the numeric value of the error code?
Answer: SQLCODE
Fetch into a record when fetching from a cursor.
Answer: True

PROG-113A / ► Week 18: Designing PL/SQL / ► Short Quiz 14


Which of the following is the syntax to open a cursor varial
Answer: OPEN cursor_variable_name
FOR select_statement;
Which of the following is the syntax to define a REF CURSOR type?
Answer: TYPE ref_type_name IS REF CURSOR
[RETURN return_type];
Weak REF CURSOR is very flexible.
Answer: True
Evaluate the following. What will be the output?
DECLARE
SUBTYPE Accumulator IS NUMBER (4,2);
v_amount accumulator;
v_num1 NUMBER;
v_num2 NUMBER;
v_num3 NUMBER;
BEGIN
v_amount := 10.50;
v_num1 := 1;
v_num2 := 2;
v_num3 := 3;
v_num1 := v_amount;
v_num2 := v_num1 + v_amount;
v_num2 := v_num2 - v_num3;
dbms_output.put_line('Total is: ' || v_num2);
END;
Answer: 18
Which of the following is the syntax to fetch from a cursor variable?
Answer: FETCH cursor_variable_name INTO variable_name1
[,variable_name2,. . .] | record_name;
Fetch into a record when fetching from a cursor.
Answer: True
Which of the following is the syntax to close a cursor?
Answer: CLOSE cursor_variable_name;
This is a subset of an existing data type that may place a constraint on its base type.
Answer: Subtype
Which of the following rules is INCORRECT about cursor variables?
Answer: None of the choices.
Use column aliases in cursors for calculated columns fetched into records declared with %COLUMNTYPE.
Answer: False

PROG-113A / ► Week 18: Designing PL/SQL / ► Learning Activity 14

Which of the following rules is INCORRECT about cursor variables?


Answer: None of the choices.
Which of the following describes weak REF CURSOR?
Answer: Associates with any query
Restrictive, specifies a RETURN type, associates only with type-compatible queries are
description of a ________________.
Answer: Strong REF CURSOR
Which of the following is INCORRECT about the guidelines for cursor design?
Answer: Use column aliases in cursors for calculated columns fetched into records declared with
%COLUMNTYPE.
This is a subset of an existing data type that may place a constraint on its base type.
Answer: Subtype

PROG-113A / ► Week 17: / ► Short Quiz 13


Evaluate the following PL/SQL.
CREATE OR REPLACE PROCEDURE query_employee
(p_id IN employees.employee_id%TYPE,
p_name OUT employees.last_name%TYPE,
p_salary OUT employees.salary%TYPE) IS
BEGIN SELECT last_name, salary INTO p_name, p_salary
FROM employeesWHERE employee_id = p_id;
END query_employee
Answer: No error
Evaluate the following PL/SQL. Which of the following will line creates an error?
CREATE OR REPLACE PROCEDURE query_emp
(
p_department_id IN employees.department_id%TYPE,
p_name OUT employees.last_name%TYPE,
p_salary OUT employees.salary%TYPE
)
IS
BEGIN
SELECT last_name, salary, department_id INTO p_name, p_salary, p_department_id
FROM employees
WHERE salary >= p_salary AND department_id = p_department_id ;
END query_emp;
Answer: Line 3
These are local variables declared in the parameter list of a subprogram specification.
Answer: Formal parameter
Given the answer in item __________, which of the folllowing stored procedure will display the
employee id and salary of Steven King?
Answer: DECLARE
v_employee_id employees.employee_id%TYPE;
v_emp_sal employees.salary%TYPE;
BEGIN
query_emp('King', 'Steven', v_employee_id, v_emp_sal);
DBMS_OUTPUT.PUT_LINE('Employee ID ' || v_employee_id ||' earns '|| to_char(v_emp_sal,
'$999,999.00'));
END;

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

PROG-113A / ► Week 16: Creating Procedures / ► Learning Activity 13


Procedure can be stored in the database as a schema object.
Answer: True
The PL/SQL code block helps modularize code by using:
Answer: All of the choices
Which of the following command is used to create a stand-alone procedure that is stored in the Oracle
database?
Answer: CREATE PROCEDURE
Which of the folllowing 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
Answer: iii & v
Which if the following is NOT a benefits of using modular program constructs?
Answer: None of the choices
PROG-113A / ► Week 18: Designing PL/SQL / ► Short Quiz 14
Which of the following is the syntax to open a cursor varial
Answer: OPEN cursor_variable_name
FOR select_statement;
Which of the following is the syntax to define a REF CURSOR type?
Answer: TYPE ref_type_name IS REF CURSOR
[RETURN return_type];
Weak REF CURSOR is very flexible.
Answer: True
Evaluate the following. What will be the output?
DECLARE
SUBTYPE Accumulator IS NUMBER (4,2);
v_amount accumulator;
v_num1 NUMBER;
v_num2 NUMBER;
v_num3 NUMBER;
BEGIN
v_amount := 10.50;
v_num1 := 1;
v_num2 := 2;
v_num3 := 3;
v_num1 := v_amount;
v_num2 := v_num1 + v_amount;
v_num2 := v_num2 - v_num3;
dbms_output.put_line('Total is: ' || v_num2);
END;
Answer: 18
Which of the following is the syntax to fetch from a cursor variable?
Answer: FETCH cursor_variable_name INTO variable_name1
[,variable_name2,. . .] | record_name;
Fetch into a record when fetching from a cursor.
Answer: True
Which of the following is the syntax to close a cursor?
Answer: CLOSE cursor_variable_name;
This is a subset of an existing data type that may place a constraint on its base type.
Answer: Subtype
Which of the following rules is INCORRECT about cursor variables?
Answer: None of the choices.
Use column aliases in cursors for calculated columns fetched into records declared with %COLUMNTYPE.
Answer: False

PROG-113A / ► Week 18: Designing PL/SQL / ► Learning Activity 14


Which of the following rules is INCORRECT about cursor variables?
Answer: None of the choices.
Which of the following describes weak REF CURSOR?
Answer: Associates with any query
Restrictive, specifies a RETURN type, associates only with type-compatible queries are
description of a ________________.
Answer: Strong REF CURSOR
Which of the following is INCORRECT about the guidelines for cursor design?
Answer: Use column aliases in cursors for calculated columns fetched into records declared with
%COLUMNTYPE.
This is a subset of an existing data type that may place a constraint on its base type.
Answer: Subtype

PROG-113A / ► Week 15: Long Quiz / ► Long Quiz 3 (30/30)


(Correction)
How do you test the output of a PL/SQL block?
Answer: Use a predefined Oracle package and its procedure
Which of the folllowing statement describes PL/SQL?
Answer: PL/SQL is an Oracle proprietary, procedural, 3GL programming language
Which of the following syntax to declare EXCEPTION named e_invalid_id?
Answer: e_invalid_id EXCEPTION;
In PL/SQL Block Structure, which of the following are mandatory?
Answer: BEGIN and END
This is a type of cursor which is created and managed internally by the Oracle server to process
SQL statements
Answer: Implicit
PL/SQL stands for
Answer: Procedural Language extension to SQL
Which of the following PL/SQL will execute successfully?
Answer: DECLARE
v_salary INTEGER(20);
BEGIN
SELECT salary INTO v_salary FROM employees WHERE employee_id = 150;
END;
What is the last clause in trapping exceptions?
Answer: WHEN OTHERS
PL/SQL Provides a block structure for executable units of ________________.
Answer: Code
Evaluate the following PL/SQL.
DECLARE
v_email VARCHAR(20);
BEGIN
SELECT email INTO v_email FROM EMPLOYEES WHERE email like 'D%';
DBMS_OUTPUT.PUT_LINE ('Employees whose email address starts with letter D :'
|| v_email);
EXCEPTION
WHEN TOO_MANY_ROWS THEN
DBMS_OUTPUT.PUT_LINE (' Your select statement retrieved multiple rows.');
END;
Answer: The PL/SQL block will run successfully.
Which of the folllowing is TRUE?
Answer: SQL code are embedded within PL/SQL statements
You can trap any error by including a corresponding handler within the exception-handling
section of the PL/SQL block.
Answer: True
When an exception is user defined, the exception is raised ____________ .
Answer: Explicitly
Evaluate the PL/SQL
DECLARE
v_first_name VARCHAR2(50);
v_last_name VARCHAR2(50);
v_salary INTEGER(20);
BEGIN
SELECT first_name, last_name, salary INTO v_first_name, v_last_name, v_salary FROM
employees WHERE department_id = 60;
DBMS_OUTPUT.PUT_LINE('Firstname : '|| v_first_name);
DBMS_OUTPUT.PUT_LINE('Lastname : '|| v_last_name);
DBMS_OUTPUT.PUT_LINE('Salary : '|| v_salary);
END;
Answer: Error in Line 6.
Evaluate the following PL/SQL.
DECLARE
v_employee_id employees.employee_id%TYPE := 114;
BEGIN
DELETE employees WHERE employee_id = v_employee_id;
END;
Answer: The PL/SQL will delete employee number 114.
Which of the following does NOT describes SELECT Statement in a PL/SQL.
Answer: Queries must return only one column.
What are the three PL/SQL block types?
Answer: Anonymous, Procedure, Function
What is the exception name when PL/SQL has an internal problem
Answer: PROGRAM_ERROR
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?
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;
What is the error trapping function that returns the numeric value of the error code?
Answer: SQLCODE
What is the exception name when single row SELECT returned no data.
Answer: NO_DATA_FOUND
Which of the following DOES NOT describes an exception?
Answer: Exception is a PL/SQL error that is raised before program execution.
Evaluate the following PL/SQL.
DECLARE
v_employee_id employees.employee_id%TYPE := 114;
BEGIN
DELETE employees WHERE employee_id = v_employee_id;
END;
Answer: The PL/SQL will delete employee number 114.
In the DECLARE section of the PL/SQL block,
Answer: All of the choices
When an exception is predefined by Oracle server, the exception is raised ____________ .
Answer: Explicitly
Which of the will display the Employee ID and number of years in service with employee ID
150?
Answer: DECLARE
v_salaryemployees.salary%TYPE := 10000;
v_employee_idemployees.employee_id%TYPE := 150;
v_years INTEGER(10);
BEGIN
SELECT employee_id, ROUND((SYSDATE - hire_date) /365,0) INTO v_employee_id, v_years
FROM employees WHERE employee_id = v_employee_id ;
DBMS_OUTPUT.PUT_LINE('Employee ID:' || v_employee_id);
DBMS_OUTPUT.PUT_LINE('Number of years : ' || v_years);
END;
Actions are being performed when error occurs during PL/SQL execution in the
Answer: EXCEPTION
You can use this procedure to issue user-defined error messages from stored subprograms.
Answer: RAISE_APPLICATION_ERROR

PROG-113A / ► Week 14: Handling Exceptions / ► Short Quiz 12

Evaluate the following PL/SQL.


DECLARE
v_email VARCHAR(20);
BEGIN
SELECT email INTO v_email FROM EMPLOYEES WHERE email like 'D%';
DBMS_OUTPUT.PUT_LINE ('Employees whose email address starts with letter D :'
|| v_email);
EXCEPTION
WHEN TOO_MANY_ROWS THEN
DBMS_OUTPUT.PUT_LINE (' Your select statement retrieved multiple rows.');
END;
Answer: The PL/SQL block will run successfully.
Which of the following DOES NOT describes an exception?
Answer: Exception is a PL/SQL error that is raised before program execution.
What is the exception name when single row SELECT returned no data.
Answer: NO_DATA_FOUND
RAISE_APPLICATION_ERROR is used in two different places. These are
___________________.
Answer: Executable and exceptions section
What is the error trapping function that returns the numeric value of the error code?
Answer: SQLCODE
What is the exception name when PL/SQL has an internal problem
Answer: PROGRAM_ERROR
Evaluate the following PL/SQL. At what line number is the error of the PL/SQL?
DECLARE
v_deptno NUMBER := 800;
e_invalid EXCEPTION;
BEGIN
DELETE FROM departments
WHERE department_id = v_deptno;
IF SQL % NOT_FOUND THEN
RAISE e_invalid;
END IF;
COMMIT;
EXCEPTION
WHEN e_invalid THEN
DBMS_OUTPUT.PUT_LINE('No such department id.');
END;
Answer: 7
What is the last clause in trapping exceptions?
Answer: WHEN OTHERS
Complete the diagram in Trapping Non-Predefined Oracle Server Errors.
Answer: Declare, Associate, Reference

PROG-113A / ► Week 14: Handling Exceptions / ► Learning Activity 12

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

PROG-113A / ► Week 13: Interacting with Oracle Server / ► Learning Activity 11

Which of the following does NOT describes SELECT Statement in a PL/SQL.


Answer: Queries must return only one column.
Evaluate the following PL/SQL.
1 DECLARE

2 v_employee_id employees.employee_id%TYPE := 114;

3 BEGIN

4 DELETE employees WHERE employee_id = 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;

PROG-113A / ► Week 12: Introduction to PLSQL / ► Short Quiz 10

Which of the folllowing is TRUE?


Answer: SQL code are embedded withing PL/SQL statements
In the DECLARE section of the PL/SQL block
Answer: All of the choices
In PL/SQL Block Structure, which of the following are OPTIONAL?
Answer: None of the choices
What are the three PL/SQL block types?
Answer: Anonymous, Procedure, Function
How do you test the output of a PL/SQL block?
Answer: Use a predefined Oracle package and its procedure
You want to display the name, salary and tax of employee #150. Which of the PL/SQL will
execute successfully? Note tax is computed as 2% of the salary.
Answer: DECLARE
v_first_name VARCHAR2(50);
v_last_name VARCHAR2(50);
v_salary INTEGER(20);
v_tax INTEGER(10);
BEGIN
SELECT first_name, last_name, salary, salary * 0.02 INTO v_first_name, v_last_name,
v_salary, v_tax FROM employees WHERE employee_id = 150;
DBMS_OUTPUT.PUT_LINE('Firstname : '|| v_first_name);
DBMS_OUTPUT.PUT_LINE('Lastname : '|| v_last_name);
DBMS_OUTPUT.PUT_LINE('Salary : '|| v_salary);
DBMS_OUTPUT.PUT_LINE('Tax : '|| v_tax);
END;
Which of the folllowing statement describes PL/SQL?
Answer: PL/SQL is an Oracle proprietary, procedural, 3GL programming language

PROG-113A / ► Week 12: Introduction to PLSQL / ► Learning Activity 10


PL/SQL stands for
Answer: Procedural Language extension to SQL
PL/SQL Provides a block structure for executable units of ________________.
Answer: Code
In PL/SQL Block Structure, which of the following are mandatory?
Answer: BEGIN and END
Which of the following PL/SQL will execute successfully?
Answer: DECLARE
v_salary INTEGER(20);
BEGIN
SELECT salary INTO v_salary FROM employees WHERE employee_id = 150;
END;
Actions are being performed when error occurs during PL/SQL execution in the
Answer: EXCEPTION

PROG-113A / ► Week 11: Using Subqueries to Solve Queries / ► Short Quiz 9

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')
Evaluate the SQL command
SELECT employee_id, job_id, salary from employees where salary < ALL (SELECT salary
FROM employees WHERE job_id = 'FI_ACCOUNT') AND job_id = 'IT_PROG'
Answer: This has no error.

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')

Evaluate the SQL command


SELECT employee_id, last_name, first_name, job_id FROM employees WHERE department_id
= (SELECT max(department_id) FROM employees GROUP BY department_id)
Answer: This will return an error. Single-row subquery returns more than one row.

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)

PROG-113A / ► Week 11: Using Subqueries to Solve Queries / ► Learning Activity 9


Which of the following is INCORRECT?
Answer: Use single-row operators with multiple-row subqueries
Which of the folllowing is required in a subquery?
Answer: SELECT
Which of the following is CORRECT about sub-queries?
Answer: Subquery execute before the main query executes.
Evaluate the SQL Command
SELECT job_id, job_title FROM jobs J WHERE INCLUDES
(SELECT * FROM employees WHERE J.job_id = e.job_id );
Answer: The SQL will return an error. Invalid "INCLUDES" parameter.
Evaluate the SQL command
SELECT employee_id, salary from employees where salary = ANY (SELECT salary FROM employees
WHERE job_id = 'IT_PROG') AND job_id = 'ST_CLERK'
Answer: This has no error.
The General Manager request to the Database Administrator to generate the total number of parts
and total outstanding balance on hand of every class in warehouse number 1&2.
Which of the following SQL command will generate the required output.
-SELECT warehouse, class, count(partnum), sum(onhand) GROUP BY warehouse,class
HAVING warehouse = 1 or warehouse = 2 FROM parts;

Display the employee's name, job title, job_id and the department name of employees with
department id of 100.
-SELECT E.employee_id, J.job_title, e.job_id, D.department_name
FROM employees E
JOIN jobs J ON E.job_id = J.job_id
JOIN departments D ON E.department_id = D.department_id
WHERE E.department_id = 100

Display the part number whose class is not HW, AG or SG.


-SELECT partnum FROM parts WHERE NOT IN class ('HW', 'AG', SG')
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?
-. SELECT DESCRIPTION RENAME AS TITLE, PARTNUM RENAME AS ID, ONHAND RENAME AS
STOCK FROM PARTS;
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 _____________.
-FULL OUTER JOIN
Which of the following is NOT a task of a Database Administrator
-None of the choices

SELECT employee_id, min_salary, max_salary FROM employees, departments WHERE


salary>= 10000 && salary <= 20000
-The SQL command will produce an error.

These are collection of objects such as tables, views, and sequences.


-Container’
Display the first 5 letter in the surname of all the employees whose firstname starts with letter 'N'
-SELECT SUBSTR(last_name,1,5), first_name FROM employees WHERE
SUBSTR(first_name,1,1) IN 'N'
Which of the following SELECT statement is the correct PL/SQL that will display all rows and
columns?
-SELECT FROM TABLE PARTS;
Display all employees whose job id contains the word 'ACCOUNT'.
-SELECT * FROM EMPLOYEES WHERE job_id LIKE '%ACCOUNT%';
Display employee's name and id whose firstname starts with letter D and job id is IT_PROG.
-SELECT employee_id, first_name, last_name FROM employees ORDER BY department_id
WHERE first_name LIKE 'D%' and job_id = 'IT_PROG'
The following are capabilities of SQL SELECT
-Create records, Remove Table, Edit record

Display the part number whose class is not HW, AG or SG.


-SELECT partnum FROM parts WHERE class NOT IN = (‘HW’, AG’, SG’)
Each row of data in a table can be uniquely identified by a
-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;
Display all location id between 1000 to 2000.
- DISPLAY location_id FROM departments WHERE location_id BETWEEN 1000 TO 2000
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 does NOT describes SELECT Statement in a PL/SQL.


Answer: Queries must return only one column.
You want to display all the records of employee the same with the salary employee number 103.
Answer: SELECT * FROM employees WHERE salary = (SELECT salary from employees where
employee_id= 103)
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;
Which of the folllowing is TRUE?
Answer: SQL code are embedded within PL/SQL statements
When an exception is user defined, the exception is raised ____________ .
Answer: Explicitly
Which of the folllowing is TRUE?
Answer: SQL code are embedded withing PL/SQL statements
Weak REF CURSOR is very flexible.
Answer: True
How do you test the output of a PL/SQL block?
Answer: Use a predefined Oracle package and its procedure
Restrictive, specifies a RETURN type, associates only with type-compatible queries are description
of a ________________.
Answer: Strong REF CURSOR
Which of the following DOES NOT describes an exception?
Answer: Exception is a PL/SQL error that is raised before program execution.
These are local variables declared in the parameter list of a subprogram specification.
Answer: Formal parameter
Which of the following rules is INCORRECT about cursor variables?
Answer: None of the choices.
When an exception is predefined by Oracle server, the exception is raised ____________ .
Answer: Explicitly
Which of the following DOES NOT describes an exception?
Answer: Exception is a PL/SQL error that is raised before program execution.
Evaluate the following PL/SQL.
CREATE OR REPLACE PROCEDURE query_employee
(p_id IN employees.employee_id%TYPE,
p_name OUT employees.last_name%TYPE,
p_salary OUT employees.salary%TYPE) IS
BEGIN SELECT last_name, salary INTO p_name, p_salary
FROM employeesWHERE employee_id = p_id;
END query_employee
Answer: No error
You want to know the total number of employees whose firstname starts with letter D.
Which of the folllowing PLS/SQL executes successfully?
Answer: DECLARE
v_first_name employees.first_name%TYPE := 'D%';
BEGIN
SELECT COUNT(*) INTO v_first_name FROM employees WHERE first_name LIKE v_first_name;
DBMS_OUTPUT.PUT_LINE(v_first_name);
END;
What is the error trapping function that returns the numeric value of the error code?
Answer: SQLCODE
You want to display the name, salary and tax of employee #150. Which of the PL/SQL will execute
successfully? Note tax is computed as 2% of the salary.
Answer: DECLARE
v_first_name VARCHAR2(50);
v_last_name VARCHAR2(50);
v_salary INTEGER(20);
v_tax INTEGER(10);
BEGIN
SELECT first_name, last_name, salary, salary * 0.02 INTO v_first_name, v_last_name, v_salary,
v_tax FROM employees WHERE employee_id = 150;
DBMS_OUTPUT.PUT_LINE('Firstname : '|| v_first_name);
DBMS_OUTPUT.PUT_LINE('Lastname : '|| v_last_name);
DBMS_OUTPUT.PUT_LINE('Salary : '|| v_salary);
DBMS_OUTPUT.PUT_LINE('Tax : '|| v_tax);
END;
Which of the following is the syntax to close a cursor?
Answer: CLOSE cursor_variable_name;
Which of the following rules is INCORRECT about cursor variables?
Answer: None of the choices.
What are the three PL/SQL block types?
Answer: Anonymous, Procedure, Function
You can trap any error by including a corresponding handler within the exception-handling section of
the PL/SQL block.
Answer: True
Which of the following describes weak REF CURSOR?
Answer: Associates with any query
Given the answer in item __________, which of the folllowing stored procedure will display the
employee id and salary of Steven King?
Answer: DECLARE
v_employee_id employees.employee_id%TYPE;
v_emp_sal employees.salary%TYPE;
BEGIN
query_emp('King', 'Steven', v_employee_id, v_emp_sal);
DBMS_OUTPUT.PUT_LINE('Employee ID ' || v_employee_id ||' earns '|| to_char(v_emp_sal,
'$999,999.00'));
END;
You have been tasked to update the database by creating a PL/SQL to increase the salary of all IT
Programmer employees by 50% 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 *0.50 WHERE job_id = v_job_id;
END;
Which of the folllowing is required in a subquery?
Answer: SELECT
What is the exception name when PL/SQL has an internal problem
Answer: PROGRAM_ERROR
In the DECLARE section of the PL/SQL block,
Answer: All of the choices
Actions are being performed when error occurs during PL/SQL execution in the
Answer: EXCEPTION
What is the exception name when PL/SQL has an internal problem
Answer: PROGRAM_ERROR
Which of the folllowing statement describes PL/SQL?
Answer: PL/SQL is an Oracle proprietary, procedural, 3GL programming language
Evaluate the following PL/SQL.
DECLARE
v_employee_id employees.employee_id%TYPE := 114;
BEGIN
DELETE employees WHERE employee_id = v_employee_id;
END;
Answer: The PL/SQL will delete employee number 114.
Which of the following command is used to create a stand-alone procedure that is stored in the
Oracle database?
Answer: CREATE PROCEDURE
Evaluate the following PL/SQL.
DECLARE
v_email VARCHAR(20);
BEGIN
SELECT email INTO v_email FROM EMPLOYEES WHERE email like 'D%';
DBMS_OUTPUT.PUT_LINE ('Employees whose email address starts with letter D :'
|| v_email);
EXCEPTION
WHEN TOO_MANY_ROWS THEN
DBMS_OUTPUT.PUT_LINE (' Your select statement retrieved multiple rows.');
END;
Answer: The PL/SQL block will run successfully.
Which of the following is the syntax to define a REF CURSOR type?
Answer: TYPE ref_type_name IS REF CURSOR
[RETURN return_type];
The PL/SQL code block helps modularize code by using:
Answer: All of the choices
Which of the following is the syntax to fetch from a cursor variable?
Answer: FETCH cursor_variable_name INTO variable_name1
[,variable_name2,. . .] | record_name;
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')
Procedure can be stored in the database as a schema object.
Answer: True
In PL/SQL Block Structure, which of the following are mandatory?
Answer: BEGIN and END
PL/SQL stands for
Answer: Procedural Language extension to SQL
Which of the following is CORRECT about sub-queries?
Answer: Subquery execute before the main query executes.
Which of the following does NOT describes SELECT Statement in a PL/SQL.
Answer: Queries must return only one column.
PL/SQL Provides a block structure for executable units of ________________.
Answer: Code
Evaluate the SQL command
SELECT employee_id, salary from employees where salary = ANY (SELECT salary FROM
employees WHERE job_id = 'IT_PROG') AND job_id = 'ST_CLERK'
Answer: This has no error.
Which of the following PL/SQL will execute successfully?
Answer: DECLARE
v_salary INTEGER(20);
BEGIN
SELECT salary INTO v_salary FROM employees WHERE employee_id = 150;
END;
In PL/SQL Block Structure, which of the following are OPTIONAL?
Answer: None of the choices
Evaluate the following PL/SQL. At what line number is the error of the PL/SQL?
DECLARE
v_deptno NUMBER := 800;
e_invalid EXCEPTION;
BEGIN
DELETE FROM departments
WHERE department_id = v_deptno;
IF SQL % NOT_FOUND THEN
RAISE e_invalid;
END IF;
COMMIT;
EXCEPTION
WHEN e_invalid THEN
DBMS_OUTPUT.PUT_LINE('No such department id.');
END;
Answer: 7
What is the error trapping function that returns the numeric value of the error code?
Answer: SQLCODE
Fetch into a record when fetching from a cursor.
Answer: True

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
Enforcing environmental policies is one of the major causes of job loss and
unemployment. - False
True or False: Dates in file names should be written in YYYY-MM-DD format. - False
Big business companies are the only ones responsible for enforcing environmental
policies since they can afford alternative cleaner technology. - False
Pre-review activities in the review process includes review planning, preparation and
individual review. - true
Increase work productivity by arranging items in such a way that they are easy to find
and pick up. - true
Montreal protocol protects the ozone layer by ____________________. - phasing out
harmful substances
Business industries will not be affected by the environmental crisis. - False
True or False: Protocols are set of standards rules which describes how something
should be done and different companies have different protocols as well. - true
Presidential Decree No. 856 is an international treaty that imposes limitations on the
greenhouse gas emissions of several countries. - True
True or False: Organizational aims are different from the mission statement; they refer
to the results an organization is aspiring for. - true
The cost / benefit analysis document is appropriately named. - False
A printed progress report to be submitted to the adviser. - purpose
True or False: Statutory requirements are identified by the vendors or suppliers and
they include value, stability, diversity and capacity. - False
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. - False
Identify whether the statement is a strength, weakness, opportunity or threat: The
student record system could be used by other schools other than Ricka’s school. -
opportunity
True or False: Reviewing the related literature includes review of concepts, theories and
previous research findings. - true
Companies can freely make their own set of environmental policies without consulting
the workers’ union, or any local or national laws about it. - False
Kyoto protocol addresses environmental issues through the campaign of
____________________. - reducing greenhouse gas emissions
Humans rely on natural resources for survival. - true
Quantitative research, compared to qualitative research, uses measurable - Data
ISO/IEC 25010:2011’s product quality model has eight (8) major characteristics. - true
True or False: Usually, the summary of the report is the first thing that’s being read. -
true
____________________ is when you conduct regular audits and inspections to
evaluate your work performance. - Shitsuke
“XYZ is so cool! I tried to install it in my old computer and it still runs smoothly. Given
that the computer’s video card is a bit faulty.“ - Reliability
True or False: There are five main elements of a written report – topic, style, structure,
facts and contents. - false
True or False: To gather data, you can either conduct an interview, survey, observation,
mail questionnaire, coding and tabulation. - false
PROG LONG QUIZ 4

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;
query_emp('King', 'Steven', v_employee_id, v_emp_sal);
BEGIN
DBMS_OUTPUT.PUT_LINE('Employee ID ' || v_employee_id ||' earns '|| to_char(v_emp_sal,
'$999,999.00'));
END;
b. DECLARE
query_emp('King', 'Steven', v_employee_id, v_emp_sal);
BEGIN
v_employee_id employees.employee_id VARCHAR(10);
v_emp_sal employees.salary NUMERIC(10);
DBMS_OUTPUT.PUT_LINE('Employee ID ' || v_employee_id ||' earns '|| to_char(v_emp_sal,
'$999,999.00'));
END;
c. DECLARE
v_employee_id employees.employee_id VARCHAR(10);
v_emp_sal employees.salary NUMERIC(10);
BEGIN
query_emp('King', 'Steven', v_employee_id, v_emp_sal);
DBMS_OUTPUT.PUT_LINE('Employee ID ' || v_employee_id ||' earns '|| to_char(v_emp_sal,
'$999,999.00'));
END;
d. DECLARE
v_employee_id employees.employee_id%TYPE;
v_emp_sal employees.salary%TYPE;
BEGIN
query_emp('King', 'Steven', v_employee_id, v_emp_sal);
DBMS_OUTPUT.PUT_LINE('Employee ID ' || v_employee_id ||' earns '|| to_char(v_emp_sal,
'$999,999.00'));
END;

Question 2
Complete
Mark 1.00 out of 1.00

Flag question

Question text
The PL/SQL code block helps modularize code by using:
Select one:
a. All of the choices
b. Database triggers
c. Packages
d. Procedures
e. Anonymous blocks
f. Functions

Question 3
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Which of the following rules is INCORRECT about cursor variables?
Select one:
a. You cannot assign a null value to cursor variables.
b. Cursors and cursor variables are not interoperable.
c. You cannot use REF CURSOR types in CREATE TABLE or VIEW statements.
d. You cannot use comparison operators to test cursor variables.
e. None of the choices.
f. You cannot use cursor variables with remote subprograms on another server.

Question 4
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Which of the following is the syntax to close a cursor?
Select one:
a. SET cursor_variable_nameCLOSE;
b. CLOSE cursor_variable_name;
c. EXIT cursor_variable_name;
d. QUIT cursor_variable_name;

Question 5
Complete
Mark 1.00 out of 1.00
Flag question

Question text
Which of the folllowing is TRUE?
Select one:
a. PL/SQL statements are embedded within SQL code.
b. None of the choices
c. SQL code are embedded within PL/SQL statements
d. You can embed procedural construct within SQL code

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
b. Index
c. Data dictionary
d. Data
e. Schema

Question 8
Complete
Mark 1.00 out of 1.00

Flag question

Question text
What is the default parameter mode when no mode is specified?
Select one:
a. IN
b. DEFAULT
c. OUT
d. IN OUT

Question 9
Complete
Mark 1.00 out of 1.00

Flag question

Question text
When an exception is predefined by Oracle server, the exception is raised ____________ .
Select one:
a. Implicitly
b. Interactively
c. Exclusively
d. Explicitly
e. None of the choices

Question 10
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Evaluate the following PL/SQL. Which of the following will line creates an error?

1. CREATE OR REPLACE PROCEDURE query_emp


2. (
3. p_department_id IN employees.department_id%TYPE,
4. p_name OUT employees.last_name%TYPE,
5. p_salary OUT employees.salary%TYPE
6. )
7. IS
8. BEGIN
9. SELECT last_name, salary, department_id INTO p_name, p_salary,
p_department_id
10. FROM employees
11. WHERE salary >= p_salary AND department_id = p_department_id ;
12. END query_emp;

Select one:
a. Line 1
b. Line 5
c. Line 9
d. Line 3
e. No error
f. Line 11

Question 11
Complete
Mark 1.00 out of 1.00

Flag question

Question text
These are local variables declared in the parameter list of a subprogram specification.
Select one:
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:
a. Improved data security and integrity
b. Improved code clarity
c. Improved performance
d. None of the choices
e. Easy maintenance

Question 14
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Which of the following command is used to create a stand-alone procedure that is stored in the
Oracle database?
Select one:
a. PROCEDURE
b. BUILD PROCEDURE
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
Flag question

Question text
Which of the following is the syntax to fetch from a cursor variable?
Select one:
a. FETCH cursor_variable_name INTO variable_name1
[,variable_name2,. . .] | record_name;
b. GET cursor_variable_name INTO variable_name1
[,variable_name2,. . .] | record_name;
c. POST cursor_variable_name INTO variable_name1
[,variable_name2,. . .] | record_name;
d. RETRIEVE cursor_variable_name INTO variable_name1
[,variable_name2,. . .] | record_name;

Question 17
Complete
Mark 1.00 out of 1.00

Flag question

Question text
PL/SQL stands for
Select one:
a. Procedural Language extension to SQL
b. Procedural Libraries of SQL
c. Procedural Logic of SQL
d. Process Linkage to SQL

Question 18
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Which of the following is the syntax to define a REF CURSOR type?
Select one:
a. DECLARE ref_type_name AS REF CURSOR
[RETURN return_type];
b. DEFINE ref_type_name AS REF CURSOR
[RETURN return_type];
c. TYPE ref_type_name IS REF CURSOR
[RETURN return_type];
d. SET ref_type_name IS REF CURSOR
[RETURN return_type];

Question 19
Complete
Mark 1.00 out of 1.00

Flag question

Question text
What is the error trapping function that returns the numeric value of the error code?
Select one:
a. SQLCODE
b. ERRORCODE
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:
a. Anonymous, Procedure, Function
b. SELECT, UPDATE, INSERT
c. Add, Edit, Delete
d. DECLARE, BEGIN, END

Question 21
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Evaluate the following PL/SQL.

1. DECLARE
2. v_employee_id employees.employee_id%TYPE := 114;
3. BEGIN
4. 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:
a. DECLARE
v_job_id employees.job_id%TYPE := 'IT_PROG';
BEGIN
UPDATE employees SET salary = salary * 2 WHERE job_id = v_job_id;
END;
b. DECLARE
v_job_id employees.job_id%TYPE := 'IT_PROG';
v_salary employees.salary := salary;
BEGIN
UPDATE employees SET v_salary = salary * 1.00 WHERE v_job_id = job_id;
END;
c. DECLARE
v_job_id employees.job_id%TYPE := 'IT_PROG';
BEGIN
UPDATE employees SET salary = salary * 100% WHERE job_id = v_job_id;
END;
d. DECLARE
v_job_id employees.job_id%TYPE := 'IT_PROG';
v_salary employees.salary := salary;
BEGIN
UPDATE employees SET salary = v_salary * 0.100% WHERE job_id = v_job_id;
END;

Question 23
Complete
Mark 1.00 out of 1.00

Flag question

Question text
This is a type of cursor which is created and managed internally by the Oracle server to process
SQL statements
Select one:
a. Interactive
b. Implicit
c. Explicit
d. Exclusive
e. Coded

Question 24
Complete
Mark 1.00 out of 1.00
Flag question

Question text
Which of the following describes weak REF CURSOR?
Select one:
a. Restrictive
b. All of the choices
c. Is not flexible
d. Associates with any query

Question 25
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Evaluate the following PL/SQL.

1. DECLARE
2. v_employee_id employees.employee_id%TYPE := 114;
3. BEGIN
4. 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
Flag question

Question text
What is the exception name when PL/SQL has an internal problem
Select one:
a. ERROR_MSG
b. EXECUTION_ERROR
c. RUNTIME_ERROR
d. PROGRAM_ERROR

Question 27
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Which of the folllowing 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
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
Flag question

Question text
Evaluate the following. What will be the output?

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
Question text
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 one:
a. SELECT job_title FROM jobs WHERE min_salary >= 5000 AND max_salary<= 10000
b. SELECT job_title FROM employees WHERE salary >= 5000 AND salary <= 10000
c. 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
Complete
Mark 2.00 out of 2.00

Flag question

Question text
What is the SQL command to count the number of records in the employees table?
Select one:
a. SELECT ALL FROM employees
b. SELECT * FROM employees;
c. SELECT COUNT(*) FROM employees
d. SELECT SUM(*) FROM employees;

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
Question 4
Complete
Mark 2.00 out of 2.00

Flag question

Question text
Evaluate the following SQL command
SELECT * FROM jobs WHERE job_title LIKE 'Manager%'
Select one:
a. The SQL command will produce an error.
b. The SQL command will display all employees with Manager position
c. The SQL command will display all records in the database
d. No records will be displayed

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:
a. SELECT employee_id, hire_date, TO_DATE(hire_date,'Month') AS "Hired Month", job_id FROM
b. SELECT employee_id, hire_date, MONTH(hire_date,'Month') AS "Hired Month", job_id FROM
employees
c. SELECT employee_id, hire_date, TO_CHAR(hire_date,'Month') AS "Hired Month", job_id FROM
employees
d. SELECT employee_id, hire_date, TO_MONTH(hire_date,'Month') AS "Hired Month", job_id
FROM employees

Question 6
Complete
Mark 2.00 out of 2.00
Flag question

Question text
You want to generate the total salary per month of every department in the company.
Select one:
a. SELECT department_id, salary FROM employees ORDER BY SUM(salary)
b. SELECT department_id, TOTAL(salary) FROM employees GROUP BY department_id
c. SELECT department_id, salary FROM employees GROUP BY SUM(salary) ORDER BY
department_id
d. SELECT department_id, SUM(salary) FROM employees GROUP BY 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:
a. SELECT last_name, TO_INT(salary, '$999,999.99') AS "MONTHLY SALARY" FROM employees
WHERE salary < 10,000 WHERE last_name STARTS 'D%'
b. SELECT last_name, TO_CHAR(salary, '$999,999.99') AS "MONTHLY SALARY" FROM
employees WHERE salary < 10000 WHERE last_name LIKE 'D%'
c. SELECT last_name, TO_INTEGER(salary, $999,999.99) AS "MONTHLY SALARY" FROM
employees WHERE salary < 10000 WHERE last_name IN 'D%'
d. SELECT last_name, TO_NUMBER(salary, '$999,999.99') AS "MONTHLY SALARY" FROM
employees WHERE salary < 10,000 WHERE last_name = ‘D%’

Question 8
Complete
Mark 2.00 out of 2.00
Flag question

Question text
Display the lastname of every employee in the company. Display the output in a single column and
label it as Fullname
Format: JuanReyes
Select one:
a. None of the choices
b. SELECT CONCATENATE(first_name, last_name) AS Fullname FROM employees
c. SELECT CONCAT(first_name, last_name) FROM employees
d. SELECT CONCAT(first_name, last_name) AS Fullname FROM employees

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:
a. SELECT SUBSTR(last_name,1,5), first_name FROM employees WHERE first_name IN 'N'
b. SELECT SUBSTR(last_name,1,5), first_name FROM employees WHERE
SUBSTR(first_name,1,1) = 'N'
c. SELECT SUBSTR(surname,1,5), first_name FROM employees WHERE
SUBSTR(first_name,1,1) IN 'N'
d. SELECT SUBSTR(surname,1,5), first_name FROM employees WHERE first_name = 'N'
e. SELECT SUBSTR(last_name,1,5), first_name FROM employees WHERE
SUBSTR(first_name,1,1) IN 'N'

Question 10
Complete
Mark 2.00 out of 2.00
Flag question

Question text
Austin David was transferred to Purchasing Department. You are assigned to update the database.
Which of the following SQL command will satisfy the requirements?
Select one:
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’
d. UPDATE employees SET department_id = 30 WHERE first_name = ‘David’ AND last_name =
‘Austin’

Question 11
Complete
Mark 2.00 out of 2.00

Flag question

Question text
John want to know how many employees receiving salary below 10,000.
What SQL command he need to run?
Select one:
a. SELECT COUNT(*) FROM employees WHERE salary < 10000;
b. SELECT COUNT(salary) FROM employees WHERE salary < 10,000;
c. SELECT COUNT(emp_id) FROM employees WHERE salary <= 10000;
d. SELECT salary FROM COUNT(employees)WHERE salary < 10000;

Question 12
Complete
Mark 2.00 out of 2.00
Flag question

Question text
Evaluate the following SQL command
SELECT employee_id, salary, department_id FROM employees WHERE department_id IN (60,70)
Select one:
a. The SQL command will produce an error.
b. The SQL command will display employees with department id 60 and 70.
c. The SQL command will give an incorrect output.
d. The SQL command will display employees with department id 60 or 70.

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 give the required output?
Select one:
a. SELECT last_name, hire_date FROM employees WHERE hire_date>=
TO_DATE('01-Jan-2006', 'DD-Mon-RR') AND hire_date<= TO_DATE('31-Dec-2006', 'DD-Mon-RR')
AND salary > 5000;
b. SELECT last_name, hire_date FROM employees WHERE hire_date>=
TO_DATE('Jan-2000', 'Month-YYYY') AND hire_date<= TO_DATE('Dec-2006', 'Month-‘YYYY') AND
salary > 5,000;
c. 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;
d. SELECT last_name, hire_date FROM employees WHERE hire_date>=
TO_DATE('2000', 'YYYY') AND hire_date<= TO_DATE('2006', 'YYYY') OR salary > 5000;

Question 14
Complete
Mark 2.00 out of 2.00
Flag question

Question text
List all employees except for IT_PROG job id.
Select one:
a. SELECT *FROM employees EXCEPT JOB_ID != 'IT_PROG'
b. SELECT *FROM employees WHERE JOB_ID NOT IN ('IT_PROG')
c. SELECT *FROM employees WHERE JOB_ID <> 'IT_PROG'
d. All of the choices

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:
a. The SQL will produce Cartesian Product
b. The SQL will display the employee id, department id and the minimum and maximum salary
whose salary is between 10000 and 20000.
c. The SQL command will produce an error.
d. The SQL command will give an incorrect output.

Question 16
Complete
Mark 2.00 out of 2.00

Flag question

Question text
Display all the records in the employee table. Arrange the output in by lastname from A-Z order.
Select one:
a. SELECT * FROM employees SORT BY lastname
b. SELECT * FROM employees ORDER BY lastname
c. SELECT * FROM employees ORDER BY lastname AZ
d. SELECT * FROM employees SORT BY lastname ascending

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:
a. SELECT employee_id, first_name, last_name FROM employees ORDER BY department_id
WHERE first_name LIKE 'D%' and job_id = 'IT_PROG'
b. SELECT employees FROM employee_id, first_name, last_name WHERE first_name LIKE ‘D%’
and job_id = ‘IT_PROG’ ORDER BY department_id
c. SELECT employee_id, first_name, last_name FROM employees WHERE job_id = 'IT_PROG' OR
first_name LIKE 'D%' and 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 command will produce the output.
Select one:
a. SELECT AVERAGE(salary) FROM employees WHERE job_id = 'FI_ACCOUNT';
b. SELECT AVG(salary) FROM employees WHERE job_id = 'FI_ACCOUNT';
c. SELECT AVE(salary) FROM employees WHERE job_id = 'FI_ACCOUNT';
d. SELECT COUNT AVG(salary) FROM employees WHERE job_id = 'FI_ACCOUNT';

Question 19
Complete
Mark 2.00 out of 2.00

Flag question

Question text
Display all location id between 1000 to 2000.
Select one:
a. DISPLAY location_id FROM departments WHERE location_id LING 1000 UP TO 2000
b. DISPLAY location_id FROM departments WHERE location_id BETWEEN 1000 TO 2000
c. SELECT location_id FROM departments WHERE location_id IN 1000 AND 2000
d. SELECT location_id FROM departments WHERE location_id BETWEEN 1000 AND 2000

Question 20
Complete
Mark 2.00 out of 2.00

Flag question

Question text
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 one:
a. SELECT employee_id, salary, salary + (salary .03) FROM employees
b. SELECT employee_id, salary, salary * .03 FROM employees
c. SELECT employee_id, salary, salary * 1.03 FROM employees
d. SELECT employee_id, salary FROM employees WHERE salary)
e. SELECT employee_id, salary, salary * .30 FROM employees

Question 21
Complete
Mark 2.00 out of 2.00

Flag question

Question text
Display the employee id, salary, number of years and the hiring date of every employee in the
company.
Select one:
a. SELECT employee_id,salary, hire_date, hire_date- SYSDATE /365 FROM employees;
b. SELECT employee_id, salary, hire_date, ROUND((SYSDATE - hire_date) /365,0) FROM
employees;
c. SELECT employee_id, salary, hire_date, hire_date /365 FROM employees;

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:
a. SELECT E.employee_id, J.job_title, e.job_id, D.department_name
FROM employees E
JOIN jobs J ON E.job_id = J.job_id
JOIN departments D ON E.department_id = D.department_id
WHERE E.department_id = 100
b. SELECT E.employee_id, J.job_title, e.job_id, D.department_name
FROM employees E
JOIN department D ON E.job_id = J.job_id
JOIN jobs J ON E.department_id = D.department_id
WHERE E.department_id = 100
c. SELECT E.employee_id, J.job_title, e.job_id, D.department_name
FROM jobs J
INNER JOIN department D ON E.job_id = J.job_id
INNER JOIN employees EON E.department_id = D.department_id
WHERE E.department_id = 100
d. SELECT E.employee_id, J.job_title, e.job_id, D.department_name
FROM jobs J
NATURAL JOIN department D ON E.job_id = J.job_id
NATURAL JOIN employees E ON E.department_id = D.department_id
WHERE E.department_id = 100

Question 23
Complete
Mark 2.00 out of 2.00

Flag question

Question text
In creating Joins,the NATURALJOIN and USING clauses are____________
Select one:
a. Mutually Inclusive
b. Limited to 2 relational tables
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 working in Finance Department. Label the annual salary to ANNUAL
SALARY.
Sort the output in from highest to lowest salary. (4 POINTS)
Select one:
a. 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
NATURAL JOIN jobs J ON E.job_id = J.job_id
NATURAL JOIN departments D ON E.department_id = D.department_id
ORDER BY "ANNUAL SALARY" DESC
WHERE D.location_id = 1700 AND D.department_name = 'Finance'
b. 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
JOINemployees E ON E.department_id = D.department_id
WHERE D.location_id = 1700 AND D.department_name = 'Finance'
ORDER BY "ANNUAL SALARY" DESC
c. 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
d. 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
OUTER JOIN jobs J ON E.job_id = J.job_id
OUTER 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

PROG-113A / ? Week 7: Manipulate Data / ? Short Quiz 7

9/10

Create a SQL command to update the employees table

Employee id : 200

Name : Mr. Gary Park

Date hired : July 1, 2017

Position :IT Programmer

Salary : 10000

Department of assignment : 60

Reporting to manager : 103

answer: INSERT INTO employees


(employee_id,first_name,last_name,hire_date,job_id,salary,manager_id,department_id)

VALUES (200,'Gary','Park',TO_DATE('Jul 1, 2017', 'MON DD, YYYY'), 'IT_PROG', 10000, 103, 60)

Add a 500 pesos increase in salary of all employees who have rendered services 10 years and above.

answer: UPDATE employees SET salary = salary + 500 where TO_CHAR(sysdate,'YYYY') -


TO_CHAR(hire_date,'YYYY') >= 10
Diana Lorentz was transferred to Administration department. Using the employees and department
table information update the profile of employee.

answer: UPDATE employees SET manager_id = 200, department_id = 10 WHERE last_name =


'Lorentz' AND first_name = 'Diana';

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.

answer: UPDATE departments SET department_name = 'Procurement', manager_id = 100


WHERE department_name = 'Treasury'

Which of the following will erase all records in the departments table

answer: 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.

answer: Run the ROLLBACK command

Which of the following DOES NOT describes the state of the data after the COMMIT command

answer: None of the choices

Which of the following describes the command below?

SELECT * FROM employees WHERE department = 60 FOR UPDATE

answer: Locks the rows in the EMPLOYEES table with department id is 60.

SQL command to create a marker in the current transaction.

answer: SAVEPOINT

YOu want to display the employee's id and formatted date hired as shown below

Which SQL statement give the required output?

Required output:

Answer: SELECT employee_id,TO_CHAR(hire_date,'fmMonth DD, YYYY')AS "Hired Date" FROM


employees

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?
Answer: SELECT employee_id, hire_date, TO_DATE(hire_date,'Month') AS "Hired Month",
job_id FROM employees WHERE job_id NOT = 'AD_VP';

IT_PROG

Answer: SELECT last_name, TO_CHAR(hire_date,'YYYY')FROM employees WHERE job_id='IT_PROG';

You want to display the employee’s last name whose salary is below 10,000 and whose lastname starts
with letter K.

Answer: SELECT last_name, TO_CHAR(salary, '$999,999.99') AS "MONTHLY SALARY" FROM


employees WHERE salary < 10000WHERE last_name LIKE ‘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.

Answer: SELECT * FROM parts ORDER BY price

Display all the records whose stock is below 20 and in warehouse number 3.

Answer: SELECT * FROM parts WHERE onhand< 20 AND warehouse = 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%';

Display the part number whose class is not HW, AG or SG.

Answer: None of the choices

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.

ANSWER: SELECT *FROM parts WHERE price > 10000;

Which of the following SQL command will display all records with class code of AP?

Answer: SELECT * FROM parts WHERE class = ‘AP’;

Which of the following SQL commands will display all stocks whole class is HW or AP.

Answer: SELECT ALL FROM parts WHERE IN class = ('HW','AP');

Which of the following SQL commands will display all the stocks on hand from 10 to 30?

Answer: SELECT * FROM parts WHERE onhand BETWEEN 10 AND 30;


Create an SQL command to display the name of the parts, warehouse number, price and the
available stock on hand whose price is below 500. Arrange the list by warehouse number and by
class.
ANswer: SELECT partnum, description, warehouse, onhand, price FROM parts WHERE price <
500 ORDER BY warehouse, class;

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.

Answer: SELECT ONHAND-5 + 5 (* WAREHOUSE), DESCRIPTION FROM PARTS;

Which of the following is the correct report that will display the class from table PARTS.

answer: SELECT CLASS FROM PARTS;


Which of the following SELECT statement is the correct PL/SQL that willcreate a report that will add
10% increase in PRICE? List only the column DESCRIPTION, CLASS and PRICE.

Answer: SELECT PRICE*0.10, DESCRIPTION, CLASS FROM PARTS;

Which of the following SELECT statement is the correct PL/SQL that will display all rows and columns?

Answer: SELECT * FROM PARTS;


Which of the following SELECT statement is the correct PL/SQL that willcreate a report specifying
only the column PRICE, ONHAND and DESCRIPTION?

Answer: SELECT PRICE, ONHAND, DESCRIPTION FROM PARTS;

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"

Answer: SELECT DISTINCT WAREHOUSE AS "No. of available warehouse"FROM PARTS;


Which of the following SELECT statement is the correctreport the will merge the column CLASS and
PRICE rename the COLUMN as "CLASS PRICE"

Answer: SELECT (CLASS||PRICE) AS "CLASS PRICE" FROM PARTS;


Which of the following SELECT statement is the correct PL/SQL that will display eliminate the
duplicate rows for column class and warehouse.
Answer: SELECT DISTINCT CLASS, WAREHOUSE FROM PARTS;

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?

Answer: Select description AS 'TITLE',Partnum AS'ID',ONHAND AS'STOCK' FROM PARTS;


Remove all manager positions in the department table.

Answer: DELETE FROM jobs WHERE job_title LIKE '%Manager%';

A new department name training with department id 300 was created in the company.

Answer: INSERT INTO departments VALUES(300,'TRAINING',203,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

Answer: INSERT INTO JOBS VALUES('DB_ADMIN','database administrator',10000,18000)


Update the Purchasing department name to Procurement. And this will be managed by the Manager
of Administration department.

Answer: UPDATE departments SET department_name = 'Procurement', manager_id = 200


WHERE department_name = 'Purchasing'

remove the shareholder services department in the department table

answer: DELETE FROM departments WHERE department_name = ‘Shareholder Services’

John want to know how many employees receiving salary below 10,000

Answer: SELECT COUNT(*) FROM employees WHERE salary < 10000;

What is the SQL command to display the date of the first employee that was hired?

Answer: SELECT MIN(hire_date) FROM employees;

Aldrin wants to know the highest salary in every department. which of the following sql will display the
required output?

Answer: SELECT department_id,MAX(SALARY) FROM employees GROUP BY department_id

The general manager request to the database administrator to generate the total salary per month of
every department in the company.

Answer: 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.

Answer: SELECT AVG(salary) FROM employees WHERE job_id ='IT_PROG';


Display the warehouse number, class, highest price & lowest price, total on hand balance whose
class is AP.

Answer: SELECT warehouse, class, MAX(price), MIN(PRICE), sum(onhand)


FROM parts
WHERE class = 'AP'
GROUP BY warehouse, class
ORDER BY warehouse
The General Manager request to the database administrator to general total number of parts and total
outstanding balance on hand of every class

Answer: SELECT warehouse,class,count(partnum),sum(onhand) GROUP BY warehouse,class HAVING


warehouse = 1 or warehouse = 2 FROM parts;

Aldrin wants to know the outstanding total balance on hand on every class per warehouse

answer: SELECT warehouse,class,sum(onhand) FROM parts GROUP BY warehouse,class

Which of the following SQL command will display all records with part number contains the number 9?

Answer: SELECT * from parts WHERE partnum LIKe '%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

Answer: SELECT warehouse, class, sum(onhand) FROM parts GROUP BY warehouse,class


HAVING SUM(ONHAND) > 50

There was 10% price increase in the all the parts in warehouse number 3.

Answer: SELECT PARTNUM,price,price * 1.1 FROM parts where warehouse = 3

SELECT * FROM parts WHERE (warehouse = 1 or warehouse = 2) AND class in ('HW','AP')AND(PRICE>200


AND price < 500);

Answer: 2 rows returned

What will be the output of the SQL command?

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.

answer: SELECT COUNT(*) FROM parts WHERE warehouse = 3;

Which of the following will erase all records in the departments table

Answer: TRUNCATE TABLE departments


INSERT, DELETE, UPDATE are ________________ commands

answer: DML

Which of the following DOES NOT describes the state of the data after the commit command

ANswer: NONE OF THE CHOICES

SELECT * FROM employees WHERE department = 60 FOR UPDATE


ANswer: Locks the rows in the employees table with department id is 60

A cartesian product is formed when

Answer: ALL OF THE CHOICES

Select employee_id, hire_date, department_name FROM employees departments

ANswer: The SQL command will prduce a correct output

Nathaniel had accidentally deleted all the records in the newly updated oracle database using the
DELETE SQL command.

Answer: RUN THE ROLLBACK COMMAND


A join between two tables that returns the results of the INNER join as well as the_______________
rows from the left (or right) table is called a left (or right) OUTER join.

Answer: Unmatched

SQL command to create a marker in the current transaction

Answer: SAVEPOINT

The insert statement can add multiple rows.

ANswer: FALSE

INSERT INTO table_name (column1,column2,colum3,....)

VALUES (value1,value2,value3,....)

WHERE Condition.

Answer: This will produce an error.

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: FULL OUTER JOIN


A Database Administrator can create and remove users and tables.

Answer: the statement is correct

Multiple fields in not Allowed in a foreign key.

Answer: FALSE
A_______________ consists of a collection of DML statements that form a logical unit of work.

ANswer: Transaction
INDEX is an example of _____________________ privilege.

Answer: Object
A FOREIGN KEY IS A FIELD IN ONE TABLE THAT REFERS TO THE PRIMARY KEY IN ANOTHER TABLE.

ANSWER: TRUE

GRANT select

ON user1

TO departments;

ANswer: THE SQL COMMAND IS INCORRECT


GRANT is a _____________________ command.

ANSWER: DCL

Which of the following command will delete all records in the table employees.

ANswer: DELETE FROM employees

employee id :250

name : aldrin rich

ANSWER: INSERT INTO EMPLOYEES(employee_id,first_name,last_name,hire_date,job_id,salary


manager_id,department_id) VALUES(250,'aldrin','rich',TO_DATE('Jul 1,2017','MON
DD,YYYY'),'ACCOUNTANT',10000,103,60)

Display all the employee id names of employees, job id, hiring_date

ANswer: SELECT A,first_name,A.last_name,A.job_id,B,department_name,A.Salary,A.hire_date FROM


employees a JOIN departments B ON ( A.department_id = B.department_id) WHERE
B.department_name = 'IT'

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 salary = salary + 1200 where TO_CHAR(sysdate,'YYYY') -


TO_CHAR(hire_date,'YYYY') >= 10

Diana lorentz was transferred to administration department

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?
-CREATE matt ACCESS 1234
What are the 2 types of security being applied to a database
GRANT & REVOKE
Employee id : 200
Name : Mr. Gary Park
Date hired : July 1, 2017
Position :IT Programmer
Salary : 10000
Department of assignment : 60
Reporting to manager : 103
-INSERT INTO employees
(employee_id,first_name,last_name,hire_date,job_id,salary,manager_id,department_id)
VALUES (200,'Gary','Park',TO_DATE('Jul 1, 2017', 'MON DD, YYYY'), 'IT_PROG', 10000, 103,
60)
Which of the following is NOT a Data Manipulation Language?
-SELECT

SQL stands for Structured Query Language


Which of the 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
PROGRAMMING GRADE 11
(PROG-111) WEEK 1-9
AMALEAKS.BLOGSPOT.COM
Started on Thursday, 28 December 2017, 1:20 PM
State Finished
Completed on Thursday, 28 December 2017, 1:39 PM
Time taken 19 mins 41 secs
Grade 8.00 out of 10.00 (80%)
Question 1
Complete
Question 2
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Refer to the revision history below and decide whether the statement is TRUE or
FALSE.

True or False: Major revisions on progress, budget and risk management were
conducted in the second version of the document.
Answer: true
Question 3
Complete
Mark 0.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 problems in Materials, Measurement,
Method, People, Equipment or Environment.

Most of the programmers are not informed of the progress or status of the
project. This is a Answer people problem.
When the program was written, some team mates are
talking too loud and distracted the others. This cause is
categorized under _________________.
Some of the programmers were not present duringrequirements gathering, this
cause is classified as a
_________________ problem.
Question 4
Complete
Mark 1.00 out of 1.00

Flag question
Question text
The quality of a product is the responsibility of ____________________ in the
workplace.
Select one:
a. HR staff
b. IT staff
c. Everyone
d. Admin staff
Question 5
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: If you want to inform every one of events, memos and
other announcements, use the bulletin board.
Answer: true
Question 6
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Naming conventions are records of system activities arranged in
chronological order for documentary purposes.
Answer: false
Question 7
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Which one of the following is a characteristic of mentoring?
Select one:
a. The focus is on inspiring respect for professional skills.
b. The focus is on utilizing existing competencies.
c. The focus is on technical or professional development.
d. The focus is on realizing trainee’s potential skills.
Question 8
Complete
Mark 1.00 out of 1.00
Flag question
Question text
True or False: It is fine to use strong or shocking colors for PowerPoint
presentation slides.
Answer: false
Question 9
Complete
Mark 1.00 out of 1.00

Flag question
Question text
It is a means of facilitating relationships which also serves as a way for parties to
consider what decisions or course of action they must make.
Select one:
a. Technical
b. Interpersonal
c. Boundaries
d. Feedback
e. Active listening
f. Communication
g. Interpretation
h. Channel
i. Negotiation
j. Empathy
Question 10
Complete
Mark 0.00 out of 1.00
Flag question
Question text
True or False: Foreign co-workers having conversation issues with everyone in the
office are better left off on their own.
false
Answer:

Complete
Mark 1.00 out of 1.00

Flag question
Question text
Which one of the following DO NOT resolve diversity in the workplace?
Select one:
a. Creating a sense of equality by encouraging employees to voice out their
opinions.
b. Conducting regular trainings to update company policies.
c. Involving all employees in the formulation and execution of company
programs.
d. Rewarding only the skilled employees while scolding the other employees
who perform poorly.
Question 2
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Through feedback, programmers can learn if the system or program
has all the functions and features defined by the clients.
Answer: true
Question 3
Complete
Mark 0.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 problems in Materials, Measurement,
Method, People, Equipment or Environment.

Due to a tight deadline, the programmers decided to write the code immediately
without a plan. This cause is classified under Answer measurement .
When the program was written, some team mates are
talking too loud and distracted the others. This cause is
categorized under _________________.
Some of the programmers were not present duringrequirements gathering, this
cause is classified as a
_________________ problem.
Question 4
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: All team members must be doing their parts diligently for the
success of the team’s efforts.
Answer: true
Question 5
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: You can send the message in whatever format you like, since the
receiver can just try to interpret and understand the message in any way.
Answer: false
Question 6
Complete
Mark 1.00 out of 1.00

Flag question
Question text
This group of people is knowledgeable in software applications:
Select one:
a. Design engineer, development engineer, engineer, Quality Assurance
Specialist, Tester
b. Analyst, engineer, data modeler, business analyst, computer engineer
c. Administrator, analyst, test engineer, tester
d. Designer or Engineer, Programmer or Analyst
Question 7
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Which among the following statements is TRUE?
Select one:
a. Encoding refers to the method of conveying the message, such as speaking,
writing or gesturing.
b. The source is the information or subject matter of communication.
c. Feedback can be a useful reference when planning for communications in
the future.
d. Encoding is the process by which the receiver interprets and understands
the message.

Question 1
Answer saved
Marked out of 1.00

Flag question
Question text
This practice is a form of self-evaluation, where you think about what you did and
learn what you can from it. It motivates you to do better next time you are faced
with the same situation.
Select one:
a. Quality Control
b. Performance Appraisal
c. Reflective Behavior
d. Safety Programs
Question 2
Answer saved
Marked out of 1.00

Flag question
Question text
True or False: In identifying the problem, it should be specific and not broad or
vague.
Answer: true
Question 3
Answer saved
Marked out of 1.00

Flag question
Question text
True or False: Presentations must be interesting, lively and engaging.
Answer: true
Question 4
Answer saved
Marked out of 1.00

Flag question
Question text
It is a meeting where you receive and learn information and training on a specific
subject.
Select one:
a. Exhibit
b. Business meeting
c. Seminar
d. Meet and greet
Question 5
Answer saved
Marked out of 1.00
Flag question
Question text
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
Question 6
Answer saved
Marked out of 1.00

Flag question
Question text
True or False: Taking home of a little bit of office supplies will surely be ignored
and won’t do much harm to the company.
Answer: false
Question 7
Answer saved
Marked out of 1.00

Flag question
Question text
Referring to the figure below, determine if the statement is TRUE or FALSE.

The file for the second version of risk management is properly named.

false
Answer:
Question 8
Answer saved
Marked out of 1.00
Flag question
Question text
The following are all safety procedures that may be observed by a company,
EXCEPT for:
Select one:
a. Conducting earthquake drills
b. Placing fire extinguishers within the workplace
c. Having a first aid kit at hand
d. Using faulty cable wiring all over the place
Question 9
Answer saved
Marked out of 1.00

Flag question
Question text
Effective monitoring can be done through the following, EXCEPT:
Select one:
a. Conducting investigations
b. Carrying out spot checks
c. Collecting office records
d. Completing safety inspections
Question 10
Answer saved
Marked out of 1.00

Flag question
Question text
Which one of the following practices will result to a proper presentation?
Select one:
a. Using slides with strong shocking background colors
b. Using font styles that are readable
c. Using pictures or images that are of no relevance to the presentation
d. Using font styles that are readable and Using pictures or images that are of
no relevance to the presentation

True or False: Foreign co-workers having conversation issues with everyone in the
office are better left off on their own.
A: False

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

True or False: Understanding everyone’s interest is the second step in the


problem solving process. This is when you choose the optimal solution.
Answer: false

These kind of words or terms are often discouraged to be used during a


presentation, especially if the audience is not that familiar with programming
terms.
A: technical words

Referring to the figure below, determine if the statement is TRUE or FALSE.

The first version of the risk management file should be named Risk Management
V01.
A: true

It is the ability to understand another person’s point of view and opinions.


Select one:
a. Negotiation
b. Communication
c. Technical
d. Interpretation
e. Feedback
f. Active listening
g. Interpersonal
h. Empathy
i. Boundaries
j. Channel

True or False: Team building activities are important to further improve team
interaction and cooperation.
Answer: true
Question 3
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Stick only to technical terms for your presentation. There is no need
to give any simple explanation when you use technical terms.
Answer: false

Which one of the following is a characteristic of mentoring?


Select one:
a. The focus is on technical or professional development.
b. The focus is on utilizing existing competencies.
c. The focus is on inspiring respect for professional skills.
d. The focus is on realizing trainee’s potential skills.

Refer to the revision history below and decide whether the statement is TRUE or
FALSE.
True or False: Major revisions on progress, budget and risk management were
conducted in the second version of the document.
Answer: true
Analyze the diagram below to answer. Fill in the blanks with the correct answer or
categorize the causes if they are considered problems in Materials, Measurement,
Method, People, Equipment or Environment.

Most of the programmers are not informed of the progress or status of the
methods
project. This is a Answer problem.

It is a means of facilitating relationships which also serves as a way for parties to


consider what decisions or course of action they must make.
Select one:
a. Interpretation
b. Interpersonal
c. Technical
d. Empathy
e. Active listening
f. Channel
g. Negotiation
h. Communication
i. Feedback
j. Boundaries

True or False: After finding out what the problem is, it is not time to identify the
fundamental cause of the problem.
A:
Who among the following can give feedback to an employee?
Select one:
a. All of the choices
b. Teammates
c. Colleagues
d. None of the choices
e. Superiors

The following are all part of the communication process, EXCEPT for one:
Select one:
a. Feedback
b. Source
c. Printing
d. Decoding

The quality of a product is the responsibility of ____________________ in the


workplace.
Select one:
a. IT staff
b. HR staff
c. Everyone
d. Admin staff
Question 2
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 problems in Materials, Measurement,
Method, People, Equipment or Environment.

One programmer, who is just a recent graduate, was assigned to do a big task. His
colleagues are not aware that he doesn’t have the skills required. This falls
under Answer people .
When the program was written, some team mates are
talking too loud and distracted the others. This cause is
categorized under _________________.
Some of the programmers were not present duringrequirements gathering, this
cause is classified as a
_________________ problem.

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 problems in Materials, Measurement,
Method, People, Equipment or Environment.

Equipment
The problem identified in the diagram is a buggy java Answer .

Question 4
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Which among the following statements is TRUE?
Select one:
a. The source is the information or subject matter of communication.
b. Encoding refers to the method of conveying the message, such as speaking,
writing or gesturing.
c. Feedback can be a useful reference when planning for communications in
the future.
d. Encoding is the process by which the receiver interprets and understands
the message.
Question 5
Complete

Flag question
Question text
This Internet online resource allows the user to interact either as a learner or
instructor.
Select one:
Answer: udemy
Question 6
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: In identifying the problem, it should be specific and not broad or
vague.
Answer: true
Question 7
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Expertise in using the Internet and Internet-based services, handling computer
hardware, computer operation and maintenance, and troubleshooting computer
systems are some examples of ____________________ skills.
Select one:
a. Technical
b. Soft
c. Business
d. All of the choices
Question 8
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Naming conventions are records of system activities arranged in
chronological order for documentary purposes.
Answer: false
Question 9
Complete
Mark 1.00 out of 1.00

Flag question
Question text
The following are all safety procedures that may be observed by a company,
EXCEPT for:
Select one:
a. Placing fire extinguishers within the workplace
b. Having a first aid kit at hand
c. Conducting earthquake drills
d. Using faulty cable wiring all over the place
Question 10
Complete

Question 2
Complete
Mark 1.00 out of 1.00

Flag question
Question text
This refers to how people make sense of, understand or perceive something.
Select one:
a. Boundaries
b. Technical
c. Communication
d. Interpretation
e. Channel
f. Active listening
g. Empathy
h. Interpersonal
i. Negotiation
j. Feedback
Question 3
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Expertise in using the Internet and Internet-based services, handling computer
hardware, computer operation and maintenance, and troubleshooting computer
systems are some examples of ____________________ skills.
Select one:
a. All of the choices
b. Soft
c. Business
d. Technical
Question 4
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Employees should be encouraged to take on career paths that not
only develop their skills, but also improve their performance in the work that they
do.
Answer: true
Question 5
Complete
Mark 1.00 out of 1.00

Flag question
Question text
This group of people is knowledgeable in software applications:
Select one:
a. Design engineer, development engineer, engineer, Quality Assurance
Specialist, Tester
b. Analyst, engineer, data modeler, business analyst, computer engineer
c. Administrator, analyst, test engineer, tester
d. Designer or Engineer, Programmer or Analyst
Question 6
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Which one of the following is a characteristic of mentoring?
Select one:
a. The focus is on realizing trainee’s potential skills.
b. The focus is on utilizing existing competencies.
c. The focus is on inspiring respect for professional skills.
d. The focus is on technical or professional development.
Question 7
Complete
Mark 1.00 out of 1.00

Flag question
Question text
It is a meeting where you receive and learn information and training on a specific
subject.
Select one:
a. Meet and greet
b. Exhibit
c. Seminar
d. Business meeting
Question 8
Complete
Mark 1.00 out of 1.00

Flag question
Question text
The following are all safety procedures that may be observed by a company,
EXCEPT for:
Select one:
a. Having a first aid kit at hand
b. Using faulty cable wiring all over the place
c. Conducting earthquake drills
d. Placing fire extinguishers within the workplace
Question 9
Complete
Mark 1.00 out of 1.00

Flag question
Question text
This refers to face-to-face communication between two or more people.
Select one:
a. Negotiation
b. Interpretation
c. Feedback
d. Active listening
e. Technical
f. Communication
g. Empathy
h. Interpersonal
i. Channel
j. Boundaries
Question 10
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Evaluating the options require determining the advantages and
disadvantages of each option.
true
Answer:

Started on Friday, 5 January 2018, 6:50 PM


State Finished
Completed on Friday, 5 January 2018, 6:58 PM
Time taken 8 mins 26 secs
Grade 10.00 out of 10.00 (100%)
Question 1
Complete
Mark 1.00 out of 1.00

Flag question
Question text
It is a means of facilitating relationships which also serves as a way for parties to
consider what decisions or course of action they must make.
Select one:
a. Communication
b. Technical
c. Empathy
d. Boundaries
e. Active listening
f. Negotiation
g. Interpersonal
h. Interpretation
i. Channel
j. Feedback
Question 2
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: After finding out what the problem is, it is not time to identify the
fundamental cause of the problem.
Answer: true
Question 3
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: In naming files, provide simple and short names that could easily be
understood by everyone.
true
Answer:
Question 4
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Referring to the figure below, determine if the statement is TRUE or FALSE.

The final copy of the project charter is properly named.


Answer: false
Question 5
Complete
Mark 1.00 out of 1.00

Flag question
Question text
____________________ is a formal meeting where people are gathered to
discuss topics that revolve around their same interests.
Select one:
a. Concert
b. Seminar
c. Workshop
d. Conference
Question 6
Complete
Mark 1.00 out of 1.00

Flag question
Question text
value
Answer covers quality, service and delivery of the goods or services from
the vendor to the client.
Question 7
Complete
Mark 1.00 out of 1.00

Flag question
Question text
In the workplace, ______________ is all about the level of work performance
required in completing a task.
Select one:
a. Standard
b. Feedback
c. Values
d. Goal
Question 8
Complete
Mark 1.00 out of 1.00

Flag question
Question text
This practice is a form of self-evaluation, where you think about what you did and
learn what you can from it. It motivates you to do better next time you are faced
with the same situation.
Select one:
a. Reflective Behavior
b. Safety Programs
c. Quality Control
d. Performance Appraisal
Question 9
Complete
Mark 1.00 out of 1.00
Flag question
Question text
True or False: Memos, also known as memorandum, are distributed for people
working in the same organization or company.
Answer: true
Question 10
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Always use readable fonts in presentations.
true
Answer:

Question 8
Complete
Mark 1.00 out of 1.00

Flag question
Question text
These kind of words or terms are often discouraged to be used during a
presentation, especially if the audience is not that familiar with programming
terms.
Select one:
a. Channel
b. Interpersonal
c. Negotiation
d. Interpretation
e. Technical
f. Feedback
g. Active listening
h. Communication
i. Boundaries
j. Empathy
Question 9
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Some of the famous computer professional networks are:
Select one:
a. Philippine Computer Society
b. Computer Society of the Philippines
c. Philippine Computer Society and VIP International Unite
d. Computer Society of the Philippines and Philippine Computer Society
e. Computer Society of the Philippines and VIP International Unite
f. VIP International Unite
g. All of the choices
h. None of the choices
Question 10
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Answer handw is considered a personal type of written communication and it
includes postcards and written letters.
True or False: Communicating with internal and external clients is important for
programmers.
Answer: true

This is one way to measure success rate not onlyyour communication, but also to
evaluate your work.
Select one:
a. Feedback
b. Communication
c. Technical
d. Interpretation
e. Empathy
f. Channel
g. Active listening
h. Boundaries
i. Negotiation
j. Interpersonal
Question 2
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Ice breaker activities can be related or not to the presentation.
Answer: true

____________________ is a formal meeting where people are gathered to


discuss topics that revolve around their same interests.
Select one:
a. Seminar
b. Conference
c. Workshop
d. Concert
Question 2
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: According to Hicks, the first step in an effective problem solving
process is clearly defining the problem.
Answer: true
Question 3
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Stick only to technical terms for your presentation. There is no need
to give any simple explanation when you use technical terms.
Answer: false
Question 4
Complete
Mark 1.00 out of 1.00

Flag question
Question text
This is the method by which a message is conveyed, such as speaking, writing or
gesturing.
Select one:
a. Negotiation
b. Interpersonal
c. Interpretation
d. Technical
e. Empathy
f. Boundaries
g. Communication
h. Channel
i. Active listening
j. Feedback
Question 5
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 problems in Materials, Measurement,
Method, People, Equipment or Environment.
Few programmers are complaining about slow Internet connection and this
affects their work. This cause is categorized in Answer equipment .
When the program was written, some team mates are
talking too loud and distracted the others. This cause is
categorized under _________________.
Some of the programmers were not present duringrequirements gathering, this
cause is classified as a
_________________ problem.
Question 6
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Expertise in using the Internet and Internet-based services, handling computer
hardware, computer operation and maintenance, and troubleshooting computer
systems are some examples of ____________________ skills.
Select one:
a. Technical
b. Business
c. All of the choices
d. Soft
Question 7
Complete
Mark 1.00 out of 1.00

Flag question
Question text
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.
Answer: false
Question 8
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Referring to the figure below, determine if the statement is TRUE or FALSE.
The final copy of the project charter is properly named.
Answer: false
Question 9
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Answer informa oral communication may be done in a workplace and it takes
different forms such as telephone conversations, face-to-face conversations and
brainstorming.
Question 10
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Nowadays, teammates have no need for communications
technology since they can just interact face to face.
false
Answer:

Every country, whether industrialized or still developing, must actively cooperate


in enforcing environmental measures.
Select one:
a. True
b. False
Question 3
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Decide whether it is a communication instrument or purpose.
A printed progress report to be submitted to the adviser.
Answer: instrument
Question 4
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product
quality model and write the letter that corresponds to your answer.
Confidentiality
Select one:
a. Maintainability
b. Reliability
c. Compatibility
d. Usability
e. Security
f. Portability
g. Performance Efficiency
h. Functional Suitability
Question 5
Complete
Mark 1.00 out of 1.00

Flag question
Question text
In the 5S method, this stage refers to arranging items in a way that they are easy
to find and pick up.
Select one:
a. Shitsuke
b. Seiton
c. Seiketsu
d. Seiri
Question 6
Complete
Mark 1.00 out of 1.00

Flag question
Question text
____________________ is when you conduct regular audits and inspections to
evaluate your work performance.
Select one:
a. Seiso
b. Seiketsu
c. Shitsuke
d. Seiri
Question 7
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product
quality model and write the letter that corresponds to your answer.
Accessibility
Select one:
a. Usability
b. Compatibility
c. Maintainability
d. Security
e. Reliability
f. Portability
g. Performance Efficiency
h. Functional Suitability
Question 8
Complete
Mark 1.00 out of 1.00

Flag question
Question text
The 5s method is based on the ____________________.
Select one:
a. Takoyaki Production System
b. Tonari Production System
c. Tatsumaki Production System
d. Toyota Production Sytem
Question 9
Complete
Mark 1.00 out of 1.00

Flag question
Question text
According to Humphrey, a quality plan starts with product introduction where the
product qualities and target market are identified.
Select one:
a. False
b. True

True or False: One of the ways to motivate teamwork in the workplace is to make
sure that maintenance is conducted and planned for system enhancement.
Answer: false
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.
Select one:
a. False

A: ergonomic
factors are concerned whether employees are comfortable, stressed or possibly
be injured due to the arrangement of things in the workplace.
True or False: Reviewing the related literature includes review of concepts,
theories and previous research findings.
Answer: true
Enforcing environmental policies is one of the major causes of job loss and
unemployment.
Select one:
a. True
b. False
True or False: To gather data, you can either conduct an interview, survey,
observation, mail questionnaire, coding and tabulation.
Answer: false
Risks, which could harm the product’s quality, must be determined and managed
well along with the actions to be taken.
Select one:
a. False
b. True
Collective bargaining refers to the bargain sale of previously used office
equipment.
Select one:
a. False
b. True
Identify whether the following task should be listed as a milestone or be included
in the Gantt chart.
The user interface design and layout has been completed.
Answer: milestone
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product
quality model and write the letter that corresponds to your answer.
Installability
Select one:
a. Maintainability
b. Performance Efficiency
c. Reliability
d. Portability
e. Functional Suitability
f. Security
g. Usability
h. Compatibility
Question 3
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product
quality model and write the letter that corresponds to your answer.
Interoperability
Select one:
a. Functional Suitability
b. Compatibility
c. Maintainability
d. Security
e. Reliability
f. Portability
g. Usability
h. Performance Efficiency
Question 4
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product
quality model and write the letter that corresponds to your answer.
Maturity
Select one:
a. Compatibility
b. Portability
c. Reliability
d. Performance Efficiency
e. Security
f. Functional Suitability
g. Usability
h. Maintainability
Question 5
Complete

Flag question
Question text
The Montreal protocol is designed to help protect the ozone layer.
Select one:
a. True
b. False

A: briefing
notes are prepared with issues or topics that decision makers should be informed
about.
Qualitative research aims to gain insights on opinions, behaviors and attitude
through Answer: UNSTRUCTURED techniques.
Question 10
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product
quality model and write the letter that corresponds to your answer.
Testability
Select one:
a. Maintainability
Conceptual research is usually carried out by and thinkers to come up with new
concepts. Answer: philosopher
True or False: Most of the readers will skim the conclusion first to get an idea of
what the paper is all about.
Answer: false
Question 13
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Quality improvement process is conducted to avoid errors and faults from
recurring in the future.
Select one:
a. True
b. False
True or False: There are five main elements of a written report – topic, style,
structure, facts and contents.
Answer: false
Presidential Decree No. 856 is an international treaty that imposes limitations on
the greenhouse gas emissions of several countries.
Select one:
a. True
b. False
True or False: Dates in file names should be written in YYYY-MM-DD format.
Asnwer: true
Companies can freely make their own set of environmental policies without
consulting the workers’ union, or any local or national laws about it.
Select one:
a. True
b. False
Question 20
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 ‘Grandparents
Answer: external

Started on Saturday, 6 January 2018, 9:51 PM


State Finished
Completed on Saturday, 6 January 2018, 10:13 PM
Time taken 21 mins 12 secs
Grade 18.00 out of 20.00 (90%)
Question 1
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Referring to the figure below, determine if the statement is TRUE or FALSE.
The minutes dated back December 3, 2016 is properly named.
Answer: false
Question 2
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product
quality model and write the letter that corresponds to your answer.
Recoverability
Select one:
a. Portability
b. Security
c. Usability
d. Compatibility
e. Maintainability
f. Performance Efficiency
g. Functional Suitability
h. Reliability
Question 3
Complete
Mark 1.00 out of 1.00

Flag question
Question text
The 5S Method is a Japanese perspective technique developed by EiichiroOda.
Select one:
a. False
b. True
Question 4
Complete
Mark 1.00 out of 1.00

Flag question
Question text
The protection of the natural resources is possible through the collective efforts
of each group in the society.
Select one:
a. False
b. True
Question 5
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Referring to the figure below, determine if the statement is TRUE or FALSE.
The minutes of the meeting for December 1, 2016 is appropriately named.
Answer: true
Question 6
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: A milestone refers to the scope and out of scope of a project. It is
defined so that the project is implemented on time and on budget.
Answer: false
Question 7
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Montreal protocol protects the ozone layer by ____________________.
Select one:
a. phasing out harmful substances
b. reducing greenhouse gas emissions
c. banning the use of perfumes
d. using locally produced products
Question 8
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Email, SMS and Gantt chart are samples of communication
frequency that you could utilize.
Answer: false
Question 9
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 be notified that the project proposal has been approved.
inform
Answer:
Question 10
Complete
Mark 1.00 out of 1.00

Flag question
Question text
This body was tasked to implement the provisions of P.D. No. 856.
Select one:
a. Department of Wealth
b. Department of Health
c. Department of Sanitation
d. Department of Cleanliness
Question 11
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Organizational aims are different from the mission statement; they
refer to the results an organization is aspiring for.
Answer: true
Question 12
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Refer to the revision history below and decide whether the statement is TRUE or
FALSE.
There were only two staff accountable and responsible for the overall changes of
the document.
Answer: true
Question 13
Complete
Mark 1.00 out of 1.00

Flag question
Question text
During solution implementation, the problem solvers should be Answer:
PROACTIVE to assure that the problem is being addressed properly.
Question 14
Complete
Mark 0.00 out of 1.00

Flag question
Question text
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.
“XYZ is so cool! I tried to install it in my old computer and it still runs smoothly.
Given that the computer’s video card is a bit faulty.“
Select one:
a. Performance Efficiency
b. Reliability
c. Usability
d. Security
e. Maintainability
f. Portability
g. Compatibility
h. Functional Stability
Question 15
Complete
Mark 1.00 out of 1.00

Flag question
Question text
By conducting a research, you can help the society by contributing to the body
of Answer know le.
Question 16
Complete
Mark 0.00 out of 1.00

Flag question
Question text
Environmental issues have no relation to the workplace.
Select one:
b. False
Question 17
Complete
Mark 1.00 out of 1.00

Flag question
Question text
In a nutshell, a research is conducted by identifying a problem, identifies
hypoth
formulating a Answer , gathering and analyzing data, presenting the
findings, and drawing a conclusion.
Question 18
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Business industries will not be affected by the environmental crisis.
Select one:
a. True
b. False
Question 19
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Usually, the summary of the report is the first thing that’s being
read.
Answer: true
Question 20
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: To present the results and findings of a research, you can use a bar
graph, line graph or pie chart.
Answer: true
True or False: Seminar lectures, conference talks, presentations of reports and
group meetings are samples of informal oral communication conducted in a
workplace.
Answer: False
These are developed by industries as a guide for establishments and business
enterprises to conduct their operations in a way that prevents or reduces
environmental harm.
Answer: Environmental codes of practice
True or False: There are different types of communication and written
communication is one which can be used in a workplace.
Answer: true
True or False: There are different types of communication and written
communication is one which can be used in a workplace.
Answer: false
Quantitative research, compared to qualitative research, uses measurable Answer
data
to uncover patterns.
Protecting the environment and natural resources also means protecting stable
employment.
Select one:
a. True
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 assure that the project schedule is followed strictly.
Answer: responsible
____________________ is setting the best practices in the workplace as your
work standards.
Select one:
a. Seiso
b. Seiri
c. Shitsuke
d. Seiketsu
Humans rely on natural resources for survival.
Select one:
a. True
b. False
Question text
Environmental policies won’t really make a difference, businesses will still strive
and be successful without giving a care for the environment.
Select one:
a. True
b. False
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
h. Functional Suitability
ISO/IEC 25010:2011’s SQuaRE stands for System Quality Assurance and
Requirements Evaluation. This standard is used in evaluating the quality of
software.
Select one:
a. False
b. True
True or False: You can emphasize the key points in your report by stating them in
the references and conclusion.
Answer: false
Question 19
Complete
Mark 1.00 out of 1.00
Question text
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.
“One good thing I find with XYZ as when my laptop shuts down accidentally, my
game score and status can still be recovered. No need to repeat a level.”
Select one:
b. Reliability
True or False: In an effective written communication, structure refers to the facts
presented in the paper.
Answer: false
The Kyoto protocol requires the participation of both industrialized and
developing nations in reducing environmental harm.
Select one:
b. False
Question 2
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Kyoto protocol addresses environmental issues through the campaign of
____________________.
Select one:
a. banning the use of pesticides
b. using imported products
c. reducing greenhouse gas emissions
d. phasing out harmful substances
Question 3
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product
quality model and write the letter that corresponds to your answer.
Reusability
Select one:
a. Reliability
b. Portability
c. Usability
d. Functional Suitability
e. Compatibility
f. Maintainability
g. Security
h. Performance Efficiency
Question 4
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product
quality model and write the letter that corresponds to your answer.
Operability
Select one:
a. Performance Efficiency
b. Security
c. Usability
d. Compatibility
e. Portability
f. Reliability
g. Maintainability
h. Functional Suitability
Question 5
Complete
Mark 0.00 out of 1.00

Flag question
Question text
Referring to the figure below, determine if the statement is TRUE or FALSE.
The project objectives file follows the standards of naming convention.
Answer: FALSE
Question 6
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Sometimes, people conduct research to earn Answer :respect from others.
Question 7
Complete
Mark 1.00 out of 1.00

Flag question
Question text
One good practice is to use water filtration system instead of buying bottled
water every time.
Select one:
a. False
b. True
Question 8
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Researches are primarily conducted to solve a problem and to
contribute the body of knowledge in a particular field.
Answer: true
Question 9
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Protocols are set of standards rules which describes how something
should be done and different companies have different protocols as well.
Answer: true
Question 10
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Increase work productivity by arranging items in such a way that they are easy to
find and pick up.
Select one:
a. False
b. True
Question 11
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product
quality model and write the letter that corresponds to your answer.
Time behavior
Select one:
a. Portability
b. Reliability
c. Performance Efficiency
d. Maintainability
e. Compatibility
f. Security
g. Usability
h. Functional Suitability
Question 12
Complete
Mark 1.00 out of 1.00

Flag question
Question text
stability
Answer refers to the supplier’s / vendor’s capacity to conduct
long term contractual obligations.
Question 13
Complete
Mark 0.00 out of 1.00

Flag question
Question text
True or False: Statutory requirements are identified by the vendors or suppliers
and they include value, stability, diversity and capacity.
Answer: FALSE
Question 14
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Big business companies are the only ones responsible for enforcing
environmental policies since they can afford alternative cleaner technology.
Select one:
a. False
b. True
Question 15
Complete
Mark 1.00 out of 1.00
Flag question
Question text
theory
Fundamental research covers generalization and formulation of Answer .
Question 16
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Research findings are not applicable in developing government
policies. Researchers should be purely academic.
Answer: false
Question 17
Complete
Mark 1.00 out of 1.00

Flag question
Question text
ISO 9001 international standard for quality’s core processes are divided into two
(2) – product delivery process and support process.
Select one:
a. False
b. True
Question 18
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Answer applied research is concerned in solving a problem that the private
organization or the society is facing.
Question 19
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Standards are based on untested concepts and theories that the company has yet
to encounter.
Select one:
a. True
b. False
Question 20
Complete
Mark 1.00 out of 1.00

Flag question
Question text
descrip
If a researcher is conducting a Answer research, he / she has no control
over variables.
____________________ is a means by which the employees, speaking through the
unions they belong to, can come to an agreement with their employers about
employment, environmental and other work-related concerns.
ANSWER; Collective bargaining
unstructured
notes are prepared with issues or topics that decision makers should be informed
about.

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 – like additional characters and skills.”
Select one:
g. Maintainability
Research can be used to accurately represent the Answer: characteristics
of a particular individual or group, an event or a situation.
The cost / benefit analysis document is appropriately named.
Answer: false

Grade 9.00 out of 10.00 (90%)


Question 1
Complete
Mark 1.00 out of 1.00
Flag question
Question text
This type of programming language uses series of 0s and 1s to represent data.
Select one:
a. Machine language
b. High-level language
c. Advanced language
d. Assembly language
Question 2
Complete
Mark 1.00 out of 1.00

Flag question
Question text
PASCAL is an example of a low-level language.
Select one:
a. False
b. True
Question 3
Complete
Mark 1.00 out of 1.00

Flag question
Question text
C# has features that are directly based on the Short Code.
Select one:
a. False
b. True
Question 4
1.00

Flag question
Question text
Arlan right clicked on his taskbar and unchecked the Lock Taskbar. What will
happen if he drags his taskbar to the right side of his screen?
Select one:
a. Start button will be located at the bottom right.
b. All of the choices
c. All icons will transfer to the right.
d. None of the choices.
e. Taskbar will display vertically at the right.
Question 5
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Answer charles is the father of computer.
Question 6
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Refer to the image below and write only the letter of the correct answer in the
space provided.

Something’s wrong with the serial port. Which port should I investigate?
Answer: c
Question 7
Complete
Mark 1.00 out of 1.00

Flag question
Question text
This refers to the process of using programming languages to instruct the
computer to perform specific tasks.
Select one:
a. Programming
b. Troubleshooting
c. Scanning
d. Debugging
Question 8
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Using the Answer java language, you can write windowed applications, build
databases, as well as control handheld devices.
Question 9
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Bridget’s mouse is not responding and she has to close her browser. Which of the
following is an alternative way using a keyboard to close an application?
Select one:
a. Alt + F4
b. Ctrl + C
c. Esc + 1
d. Shift + X
Question 10
Complete
Mark 1.00 out of 1.00

Flag question
Question text
COBOL is the programming language ideally used for
_________________________ purposes.
Select one:
a. Business
b. Artificial intelligence
c. Systematic
d. Internet

Who is the first computer programmer?


Select one:
a. Lady Lovelace Ada Augusta
b. Sir Wilhelm Maximilian Wundt
c. Lady Agatha Russell
d. Sir KonradZuse
Question 3
Complete
Mark 1.00 out of 1.00

Flag question
Question text
The earphones is an example of a _______________, while Internet Explorer is an
example of _______________.
Select one:
a. platform operating system
b. hardware, computer user
c. input device, output device
d. peripheral device, application program
Question 4
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Windows is to Personal Computer (PC) while Mac OSX is to Mac laptops and
computers.
Select one:
a. True
b. False
FORTRAN was the first ever “modern” computer language.
Select one:
a. True
b. False
An operating system has three major components – hardware, application
program or software and the user.
Select one:
a. False
b. True
Question 1
Complete
out of 1.00

Flag question
Question text
Maria has two printers – Printer Z and Printer A. She set Printer Z as the default
printer. What will happen the next time she prints a document?
Select one:

e. All of the choices.

Which of the following statements is TRUE?


Select one:
a. Natural language can be used in programming.
b. Today’s programming languages are all limited in scope and application.
c. A programming language may have its own area of specialization.
d. Poorly constructed coding statements are acceptable.
Question 3
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Refer to the image below and write only the letter of the correct answer in the
space provided.

The monitor suddenly turned black, which port should I check?


g
Answer:
Question 4
Complete
Mark 1.00 out of 1.00

Flag question
Question text
If you are confused on what to do, press F2 on your keyboard and the Windows
Help feature will open.
Select one:
a. True
b. False
An operating system has three major components – hardware, application
program or software and the user.
Select one:
a. True
b. False

computer programs
are actually a set of computer instructions that are developed using a
programming language.
Ctrl + S is the shortcut key for Save while Ctrl + S + A is the shortcut key for Save
As.
Select one:
a. False
b. True
Image files can be opened using MS Paint, Notedpad and Windows Photo Viewer.
Select one:
a. False
b. True
The mouse suddenly stopped working. Which port should I check?
Answer: b
Since natural languages are vaguely structured, they cannot be used for
programming.
Select one:
a. False
b. True
C++, an extension of the C language, introduced object-oriented programming.
Select one:
a. True
b. False
I think I plugged the speakers wrong. The power is turned on but I can’t hear any
sound Which port should I check?
Answer: f
Which of the following is not a default margin options when setting up the page
for printing?
Select one:
a. Narrow
b. Wide
c. Normal
d. Regular
LISP and PROLOG are programming languages that are best used when dealing
with Artificial Intelligence.
Select one:
a. False
b. True
COBOL stands for Convenient Business Oriented Language.
Select one:
a. True
b. False

Question 1
Complete
Mark 1.00 out of 1.00
Question text
Observe the names of the following variables and routines and decide whether its
format is CORRECT or WRONG.
Student.StudentBirthday for a class property.
Select one:
a. Wrong
b. Correct
Question 2
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Answer short c was the first language implemented for BINAC.
Question 3
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Refer to the image below and write only the letter of the correct answer in the
space provided.

We were playing games locally and I got disconnected. I think something’s wrong
with this port.
Answer: e
Question 4
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Refer to the image below to answer the following question. What type of image is
shown?
Select one:
a. Program chart
b. Data flow
c. Control flow
d. Flow chart
Question 5
Complete
out of 1.00

Flag question
Question text
Answer: high-level language is a type of programming language that is composed
of symbols and words that follow some rules similar to that of a natural language.
Refer to the image below to answer the following question. What happens when
Limit is equal to 3?
Select one:
c. Program goes back to login page.
Question 7
Complete
Mark 1.00 out of 1.00
Flag question
Question text
The set of rules that must be strictly followed when using a programming
language is called AnswerSYNTAX
Question 8
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Refer to the pseudocode below and answer the following question: What if the
computed BMI equals to 10, what will the program do?

Select one:
b. Print Underweight.
Question 9
Complete
Mark 1.00 out of 1.00

Flag question
Question text
A deleted file or folder found in the Recycle Bin can still be restored.
Select one:
b. True
Question 10
Complete
Flag question
Question text
.MPEG, .MP3 and .MOV are filename extensions for videos.
Select one:
b. False
Question 11
Complete
Mark 1.00 out of 1.00
lag question
Question text
Refer to the image below to answer the following question. What symbol is used
to begin and end the program?
b. Terminal
Question 12
Complete
Mark 1.00 out of 1.00
Question text
Refer to the image below and write only the letter of the correct answer in the
space provided.

My headset is working but the microphone is not. Which port should I check?
Answer: f
Question 13
Complete
Mark 1.00 out of 1.00

Flag question
Question text
You will find running application programs and process in the Task Manager.
Select one:
b. True
Question 14
Complete
Mark 1.00 out of 1.00
Question text
Ana is working on a new project and she was asking for the program’s purpose,
processes, algorithm, restrictions and some notes. According to the program
development life cycle, in which phase is Ana working on?
Select one:
b. Testing and Debugging
c. Analyze the Problem
Complete
Mark 1.00 out of 1.00
Question text
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?
Select one:
a. IV, I, V, III, II
Question 16
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Refer to the pseudocode below and answer the following question: If the
calculated BMI results to 26, what will the program do?

Select one:
a. display Normal
b. display Overweight
c. display Obese
d. display Underweight
Question 17
Complete
out of 1.00
Question text
Observe the names of the following variables and routines and decide whether its
format is CORRECT or WRONG.
PresentAdress for a column name in the table “Student”.
b. Wrong
Question 18
Complete
Mark 1.00 out of 1.00
Observe the names of the following variables and routines and decide whether its
format is CORRECT or WRONG.
Employees for a table name.
Select one:
a. Wrong
Question 19
Complete
Mark 1.00 out of 1.00
Question text
Refer to the image below to answer the following question. What process is
illustrated in the diagram?

Select one:
b. Social media login limit.
Question 20
Complete
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.
passingSCORE for a constant variable.
Select one:
a. Wrong

microso
C# was released by Answer .
Question 2
Complete
Mark 1.00 out of 1.00

Flag question
Question text
A Answer programis the code or language that allows a user to instruct a computer
to perform specific tasks.
Question 3
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Max is already writing the code for his project. In which phase of the PDLC is he
working on?
Select one:
a. Testing and Debugging
b. Analyze the Problem
c. Documentation
d. Coding and Execution
Question 4
Complete
out of 1.00

Flag question
Question text
Refer to the image below to answer the following question. John tries to log in for
the fourth time, what does he see on his screen?

Select one:
a. Social Media Page

Question 5
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Who is considered as a user (component of an operating system)?
Select one:
a. Students
b. All of the choices
c. Programmer
d. None of the choices
e. IT Staff
Question 6
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Programs written in high-level languages are translated into machine-readable
form using interpreters or compilers.
Select one:
a. False
b. True
Question 7
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Java is an example of
Select one:
a. Average level language
b. Low-level language
c. High-level language
d. Advanced language
Question 8
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Refer to the image below to answer the following question. What happens every
time the given username and password is incorrect?
Select one:
a. Limit is set to 0.
b. 1 is added to Limit.
c. 3 is set as the Limit.
d. Limit is set to 1.
Question 9
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Refer to the pseudocode below and answer the following question: The program
calculated for the BMI and it is equal to 50, what will the program do?

Select one:
a. Display Underweight.
b. Nothing, it is above 30.
c. Loop the program.
d. Print Obese.
Question 10
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Refer to the image below and write only the letter of the correct answer in the
space provided.

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
Question 11
Complete
Mark 1.00 out of 1.00

Flag question
Question text
He is known as the father of the Java programming language.
Select one:
a. Dennis Ritchie
b. BjarneStroustrup
c. J.W. Mauchly
d. James Gosling
Question 12
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Even when you close all running application programs, there are still process
running in the background.
Select one:
a. True
b. False
Question 13
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Jet is writing the pseudocode for his program. Which phase of program
development life cycle is he in?
Select one:
a. Documentation
b. Formalize the Solution
c. Design the Program
d. Test the Program
Question 14
Complete
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.
studentAge for a variable name.
Select one:
b. Correct
Question 15
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Refer to the image below to answer the following question. What type of
flowchart symbol contains the text “Limit >=3?”?

Select one:
a. Terminal
b. Decision
c. Flow lines
d. Connector
Question 16
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Jamie finished debugging her program. What is the next step she should do?
Select one:
a. Documentation
b. Design the Program
c. Test the Program
d. Formalize the Solution
Question 17
Complete
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. limitIsReached for a Boolean variable.
Select one:
a. Wrong
b. Correct
Question 18
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Over time, man’s efforts to find better ways to communicate with computers
resulted to the evolution of programming languages.
Select one:
a. True
b. False
Question 19
Complete
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.
CEILING_GRADE for a constant variable.
Select one:
a. Correct
Question 20
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Refer to the pseudocode below and answer the following question: What
happens after weight is given?

b. ask for height

PROG111 - Programming (Java) NC II Part 1


LONG QUIZ4
Presidential Decree No. 856 is an international treaty that imposes limitations on the greenhouse gas
emissions of several countries.
answer False
Q2.
According to Humphrey, a quality plan starts with product introduction where the product qualities and
target market are identified.
-True
Question 3
Standards are based on untested concepts and theories that the company has yet to encounter.
-False
Question 4
ISO/IEC 25010:2011’s product quality model has eight (8) major characteristics.
-True
Question 5
Companies can freely make their own set of environmental policies without consulting the workers’ union, or
any local or national laws about it.
- False
Question 6
Environmental policies won’t really make a difference, businesses will still strive and be successful without
giving a care for the environment.
Select one:
a False
Question 7
____________________ is setting the best practices in the workplace as your work standards.
Select one:
-Seiketsu
Question 8
Seiri is making work easier by reducing unnecessary items to deal with.
- True
Question 9
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 – like additional characters and skills.”
Select one:
a. Compatibility
Question 10
Complete
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.
Select one:
- False
Question 11
Every country, whether industrialized or still developing, must actively cooperate in enforcing environmental
measures.
Select one:
True
Question 12
Big business companies are the only ones responsible for enforcing environmental policies since they can
afford alternative cleaner technology.
Select one:
False
Question 13
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product quality model and write the
letter that corresponds to your answer.
Interoperability
-Compatibility
Question 14
Critical thinking skills is an essential skill which includes listening effectively, adapting communication skills
and understanding underlying issues.
Select one:
-False
Question 15
The 5S Method is a Japanese perspective technique developed by Eiichiro Oda.
b. False
Question 16
The Kyoto protocol requires the participation of both industrialized and developing nations in reducing
environmental harm.
-False
Question 17
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product quality model and write the
letter that corresponds to your answer.
Testability
ans. Maintainability
Question 18
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product quality model and write the
letter that corresponds to your answer.
Recoverability
Reliability
Question 19
Pre-review activities in the review process includes review planning, preparation and individual review.
Select one:
a. True
Question 20
____________________ is when you conduct regular audits and inspections to evaluate your work
performance.
-Shitsuke
Question 21
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product quality model and write the
letter that corresponds to your answer.
Accessibility
Usability
Question 22
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.
“I find it really enjoying to play XYZ since I can invite my friends from social media profile. It works well with
this social media app!”
Select one:
ans.compatibility
Question 23
Kyoto protocol addresses environmental issues through the campaign of ____________________.
Select one:
ans. reducing greenhouse gas emissions
Question 24
This body was tasked to implement the provisions of P.D. No. 856.
ans. Department of Health
Question 25
Montreal protocol protects the ozone layer by ____________________.
ans. phasing out harmful substances
Question 26
One good practice is to use water filtration system instead of buying bottled water every time.
ans. True
Question 28
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product quality model and write the
letter that corresponds to your answer.
Installability
ans.Portability
Question 27
Quality improvement process is conducted to avoid errors and faults from recurring in the future.
Select one:
ans. True

PROGRAMMING GRADE 11
(PROG-111) WEEK 1-9
AMALEAKS.BLOGSPOT.COM
PROGRAMMING GRADE 11
(PROG-111) WEEK 10 QUARTERLY EXAM
AMALEAKS.BLOGSPOT.COM
Question 1
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. 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.

Answer: accountable

Question 3
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Refer to the image below and write only the letter of the correct answer in the space provided.
I cannot type anything but my mouse is working, I am using a brand new USB keyboard, which port should I
check?

Answer: D

Question 4
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Monitoring and evaluating means brainstorming.

Answer: False

Question 5
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Axel is finally documenting his work. What could he be writing?

Select one:
a. requirements of the program
b. system analysis
c. bug reviews and errors
d. instructions for the users

Question 6
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Machine language and assembly language are collectively referred to as _________________________.

Select one:
a. Average level language
b. Low-level language
c. Advanced language
d. High-level language

Question 7
Complete
Mark 1.00 out of 1.00
Flag question

Question text
True or False: Nothing good ever comes from giving feedback. If anything, anyone who does give will only get
scolded by the boss.

Answer: False

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 problems in Materials, Measurement, Method, People, Equipment or Environment.

When the software used was checked, the project manager discovered that some of the programmers are
using an old version of Java. This cause is categorized under

Answer. Materials
Question 9
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 be told about the
students who volunteered to test the student record system.

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:
a. email
b. social media
c. hyperlinks
d. speaking

Question 12
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Refer to the pseudocode below and answer the following question:
What is the first thing that the program will do?

Select one:
a. ask for BMI
b. print height
c. ask for height
d. print BMI

Question 13
Complete
Mark 1.00 out of 1.00

Flag question

Question text
____________________ in the workplace protection of sensitive business information through precautionary
measures like confidentiality clauses or non-disclosure agreements.

Select one:
a. Curiosity
b. Integrity
c. Secrecy
d. Confidentiality

Question 14
Complete
Mark 0.00 out of 1.00

Flag question

Question text
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product quality model and write the
letter that corresponds to your answer.
Capacity

Select one:
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.

Answer: False

Question 17
Complete
Mark 1.00 out of 1.00

Flag question

Question text
In ____________________, 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
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.

Answer: True

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:
a. True
b. 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:
a. True
b. 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
b. Actions
c. Objectives
d. Process

Question 23
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Categorize the following 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
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

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 problems in Materials, Measurement, Method, People, Equipment or Environment.

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

Question 27
Complete
Mark 1.00 out of 1.00

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
Complete
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:
a. Correct
b. Wrong

Question 29
Complete
Mark 1.00 out of 1.00

Flag question

Question text
In adding a new printer, the _____________ will guide you on the steps to be taken.

Select one:
a. Printer Guide
b. Printer Affix
c. Printer Install
d. Printer Wizard

Question 30
Complete
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

Question text
Refer to the image below and write only the letter of the correct answer in the space provided.

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 text
Identify whether the following task should be listed as a milestone or be included in the Gantt chart.
Fix bugs and errors detected in the system.

Answer: Gantt chart

Question 33
Complete
Mark 1.00 out of 1.00

Flag question

Question text
In the correct order, the essential parts of the communication process are:

Select one:
a. Source, Message, Encoding, Channel, Decoding, Receiver, Feedback
b. Source, Message, Encoding, Channel, Receiver, Decoding, Feedback
c. Source, Message, Encoding, Channel, Decoding, Feedback, Receiver
d. Source, Message, Encoding, Receiver, Decoding, Channel, Feedback

Question 34
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
Answer: internal

Question 35
Complete
Mark 1.00 out of 1.00

Flag question

Question text
True or False: To solve a problem means to know first what the problem is before coming up with the feasible
solutions.

Answer: True

Question 36
Complete
Mark 1.00 out of 1.00

Flag question

Question text
True or False: Listing down the issues related to the problem is second to the last step in an effective problem
solving process.

Answer: False

Question 37
Complete
Mark 1.00 out of 1.00

Flag question

Question text
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:
a. Portability
b. Security
c. Maintainability
d. Functional Suitability
e. Usability
f. Compatibility
g. Performance Efficiency
h. Reliability

Question 38
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Monica accidentally unplugged the mouse PS/2 port. What will happen to the mouse connected thru the
universal serial bus port?

Select one:
a. The mouse will stop working.
b. None of the choices.
c. The mouse will freeze.
d. All of the choices
e. The mouse will be disabled.

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

Flag question

Question text
Decide whether it is a communication instrument or purpose.
A Gantt chart that shows the schedule for the development process of the student record system.

Answer: instrument

Question 41
Complete
Mark 1.00 out of 1.00
Flag question

Question text
A product or service 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 Control
c. Safety Programs
d. Reflective Behavior

Question 42
Complete
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.
ComputeTotalScore() for a routine to sum up the scores.

Select one:
a. Wrong
b. 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
Mark 1.00 out of 1.00

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

Question text
The first computer concept invented is called _________________________.

Select one:
a. COBOL
b. Analytical Engine
c. FORTRAN
d. PlanKalKul

Question 49
Complete
Mark 1.00 out of 1.00

Flag question

Question text
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.
“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.”

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

Flag question

Question text
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product quality model and write the
letter that corresponds to your answer.
Integrity

Select one:
a. Compatibility
b. Maintainability
c. Usability
d. Functional Suitability
e. Reliability
f. Performance Efficiency
g. Security
h. Portability

PROGRAMMING GRADE 11
(PROG-111) WEEK 10 QUARTERLY EXAM
AMALEAKS.BLOGSPOT.COM
PROGRAMMING GRADE 11
(PROG-111) WEEK 10 QUARTERLY EXAM
AMALEAKS.BLOGSPOT.COM
Question 1
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. 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.

Answer: accountable

Question 3
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Refer to the image below and write only the letter of the correct answer in the space provided.
I cannot type anything but my mouse is working, I am using a brand new USB keyboard, which port should I
check?

Answer: D

Question 4
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Monitoring and evaluating means brainstorming.

Answer: False

Question 5
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Axel is finally documenting his work. What could he be writing?

Select one:
a. requirements of the program
b. system analysis
c. bug reviews and errors
d. instructions for the users

Question 6
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Machine language and assembly language are collectively referred to as _________________________.

Select one:
a. Average level language
b. Low-level language
c. Advanced language
d. High-level language

Question 7
Complete
Mark 1.00 out of 1.00
Flag question

Question text
True or False: Nothing good ever comes from giving feedback. If anything, anyone who does give will only get
scolded by the boss.

Answer: False

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 problems in Materials, Measurement, Method, People, Equipment or Environment.

When the software used was checked, the project manager discovered that some of the programmers are
using an old version of Java. This cause is categorized under

Answer. Materials
Question 9
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 be told about the
students who volunteered to test the student record system.

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:
a. email
b. social media
c. hyperlinks
d. speaking

Question 12
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Refer to the pseudocode below and answer the following question:
What is the first thing that the program will do?

Select one:
a. ask for BMI
b. print height
c. ask for height
d. print BMI

Question 13
Complete
Mark 1.00 out of 1.00

Flag question

Question text
____________________ in the workplace protection of sensitive business information through precautionary
measures like confidentiality clauses or non-disclosure agreements.

Select one:
a. Curiosity
b. Integrity
c. Secrecy
d. Confidentiality

Question 14
Complete
Mark 0.00 out of 1.00

Flag question

Question text
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product quality model and write the
letter that corresponds to your answer.
Capacity

Select one:
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.

Answer: False

Question 17
Complete
Mark 1.00 out of 1.00

Flag question

Question text
In ____________________, 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
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.

Answer: True

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:
a. True
b. 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:
a. True
b. 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
b. Actions
c. Objectives
d. Process

Question 23
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Categorize the following 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
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

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 problems in Materials, Measurement, Method, People, Equipment or Environment.

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

Question 27
Complete
Mark 1.00 out of 1.00

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
Complete
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:
a. Correct
b. Wrong

Question 29
Complete
Mark 1.00 out of 1.00

Flag question

Question text
In adding a new printer, the _____________ will guide you on the steps to be taken.

Select one:
a. Printer Guide
b. Printer Affix
c. Printer Install
d. Printer Wizard

Question 30
Complete
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

Question text
Refer to the image below and write only the letter of the correct answer in the space provided.

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 text
Identify whether the following task should be listed as a milestone or be included in the Gantt chart.
Fix bugs and errors detected in the system.

Answer: Gantt chart

Question 33
Complete
Mark 1.00 out of 1.00

Flag question

Question text
In the correct order, the essential parts of the communication process are:

Select one:
a. Source, Message, Encoding, Channel, Decoding, Receiver, Feedback
b. Source, Message, Encoding, Channel, Receiver, Decoding, Feedback
c. Source, Message, Encoding, Channel, Decoding, Feedback, Receiver
d. Source, Message, Encoding, Receiver, Decoding, Channel, Feedback

Question 34
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
Answer: internal

Question 35
Complete
Mark 1.00 out of 1.00

Flag question

Question text
True or False: To solve a problem means to know first what the problem is before coming up with the feasible
solutions.

Answer: True

Question 36
Complete
Mark 1.00 out of 1.00

Flag question

Question text
True or False: Listing down the issues related to the problem is second to the last step in an effective problem
solving process.

Answer: False

Question 37
Complete
Mark 1.00 out of 1.00

Flag question

Question text
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:
a. Portability
b. Security
c. Maintainability
d. Functional Suitability
e. Usability
f. Compatibility
g. Performance Efficiency
h. Reliability

Question 38
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Monica accidentally unplugged the mouse PS/2 port. What will happen to the mouse connected thru the
universal serial bus port?

Select one:
a. The mouse will stop working.
b. None of the choices.
c. The mouse will freeze.
d. All of the choices
e. The mouse will be disabled.

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

Flag question

Question text
Decide whether it is a communication instrument or purpose.
A Gantt chart that shows the schedule for the development process of the student record system.

Answer: instrument

Question 41
Complete
Mark 1.00 out of 1.00
Flag question

Question text
A product or service 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 Control
c. Safety Programs
d. Reflective Behavior

Question 42
Complete
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.
ComputeTotalScore() for a routine to sum up the scores.

Select one:
a. Wrong
b. 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
Mark 1.00 out of 1.00

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

Question text
The first computer concept invented is called _________________________.

Select one:
a. COBOL
b. Analytical Engine
c. FORTRAN
d. PlanKalKul

Question 49
Complete
Mark 1.00 out of 1.00

Flag question

Question text
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.
“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.”

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

Flag question

Question text
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product quality model and write the
letter that corresponds to your answer.
Integrity

Select one:
a. Compatibility
b. Maintainability
c. Usability
d. Functional Suitability
e. Reliability
f. Performance Efficiency
g. Security
h. Portability

PROGRAMMING GRADE 11
(PROG-111) WEEK 10 QUARTERLY EXAM
AMALEAKS.BLOGSPOT.COM
PROGRAMMING GRADE 11
(PROG-111) WEEK 11-20
AMALEAKS.BLOGSPOT.COM

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
Question text
True or False: Operators, in Java programming language, use special symbols to call methods and their
objects.
Answer:
False
Question text
Read each statement carefully and decide whether it’s TRUE or FALSE.
There are no errors in the program.
Select one:
False
Question text
Refer to the block of codes below. Read each statement carefully and decide whether it’s TRUE or FALSE.
Line 9 uses a traditional comment which uses double forward slash.
Answer: False
Question text
True or False: Many programmers can be literate with Java programming language for it is intended to be
that way.
Answer:
True
Question text
True or False: You’ll know there’s an error if you see a red circle with an exclamation point in Netbeans IDE.
Answer:
True
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 = (x = 100) >= z;
Select one:
True
The file is accurately named – Students.java.

-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.
-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

The last line of code will output 100.0.

-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

There are keywords found in line 7.

-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 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.

-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

Substrings can contain 1 or 2 arguments.


-true

Determine the output.

-bar

The index of the letter “y” in string “Doggy” is 5.


-False

Determine the output.


-foo

TRUE OR FALSE: The value “val_3” is a white space “ “.

-False

True or False: Variable 1st_num is a good variable name in Java programming.

-False

TRUE OR FALSE: “val_2” contains “The”

-True

True or False: Instance variables are declared inside a method but outside a class.

-False

True or False: Variable names in Java are not necessarily case sensitive.

-False

Determine the output

-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

result = !((x * 10) < z);


-False

result = -(-z) == 43;

-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

x += x;
result = x == 154;
-False

The second line 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

A string can contain numbers.

-True

TRUE OR FALSE: This is an example of concatenation.


-True

TRUE OR FALSE: The value of “val_4” is “fox”


-False

TRUE OR FALSE: “val_2” contains “The”.


-True

Determine the output.

-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

Strings can be declared with str.


-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

Among the expressions below which is a statement?

-True

Expressions can be long and complex.

-true

number++; is an expression

-true

For-loops has a set number of iterations before starting.

-True

The equals( ) method can compare more than 2 arrays.

-False
While loops can use Booleans at test expressions.

-True

The test expression of the if statement is _______


-less than or equal to

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

x+1 is example of a statement.

-False

number++; is a block

-False

Arrays are

-Objects

The operator “new” allocates a memory block the size of what is declared.

-true

A class block can be an expression

-False

Statements can be expressions.

-False

Integer arrays can be populated with characters.

-False

Declaration clauses are declared as “number + 1”.

-False

Loops can be stopped with a break; statement.

-True

The equivalent of Paragraphs in coding is?


-Expressions

If statements cannot be nested in switches

-true

The length( ) method returns the size (number of indices) has.

-True

When polymorphism is used, the Java object can only take one form. Subclasses should have the same
function with the parent class.

-False

Arrays can contain (Answer) number of elements.

-Any

“||” and “&&” can be used in conditional statements.

-True

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

Expressions can be statements.

-True

Blocks can contain more blocks of code.

-True

If-else statements can be nested in?

-All of the choices

Statements are equivalent to paragraphs.

-False

A (answer) array is an array containing true or false values.


-boolean

Switches are always used with if-else statements

-False

True or False: The modulus operator returns the remainder of a division operation instead of the quotient.

-true

Determine the output.


String val_1 = “564298”;

-5698

Determine the output.


String val_1 = “35”;

-4

The return value of the length( ) method is an integer

-true

A superclass is also known as a parent class.

-true

For-loops can be nested in while loops.

-true

In instantiating an object, the keyword instance is used.

-False

Object oriented programming utilizes the top down method

-False

Expressions are like clauses.

-true

The sort( ) method is always ascending.

-true

Arrays are data types.

-False
Variables must be declared as (Answer) for it to be fully hidden.

-private

While statements check the test expression at the end.

-False

The else statement can be used alone.

-False

The fill( ) method (Answer) the array with specific values.

-Fills

The output of println is

-55555

The person’s weight is declared correctly with the correct data type (byte) and value (160).

-FALSE

Determine the output.


String val_1 = “foo”

String val_2 = “bar”

val_2 = val_1;

val_1 = val_3;

System.out.println(val_1);

-bar

Determine the output.


String val_1 = “foo”

String val_2 = “bar”

val_2 = val_1;

val_1 = val_3;

System.out.println(val_2);

-foo

Switches can work properly even without the “break” expression.


-True

Blocks can be one liner or huge classes.

-True

The test expressions in conditional statements can be left empty.

-False

Abstraction works by hiding the implementation details and showing only the functions necessary.

-True

A single array can hold multiple data types

-False

A polymorphic object can pass more than one Is-a test.

-True

Another loop can be used as test expression.

-False

True or False: Public, static and void are sample of Java reserved keywords.

-True

The value of “pStr” in line 24 is

-True

The default syntax of a constructor is <class_name>(parameter, parameter){ }

-False

A nested class is not an inner class.

-False

Nested classes causes them to become abstracted

-False

A nested class is also called

-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
A constructor can only have 1-2 overloads or parameters.

-False

All possible data types of an array can be retuned as a string by the toString( ) method.

-True

Abstracted classes can contain 1 or more abstract methods.

-True

Abstraction shows the every bit of detail and implementation on how an application does something.

-False

Initialization is a process where the constructor is called for.

-True

The default syntax of a constructor is <class_name>( ){ }

-True

Classes cannot be nested.

-False

Abstract classes cannot have nested classes.

-False

The parent class of a nested class is called an outer class

-True

An inner class can be constructed directly without reference to the outer class.

-False

Arrays can be read backwards

-True

A single array can hold

-One data type

Abstracted methods already have implementations inside.

-False

are special methods to initialize objects.


-constructors

Constructors have 3 basic rules to follow.

-False

Nesting classes increases encapsulation.

-True

Each index can only contain (Answer) element.

-one

The sort( ) method can be set to sort only a part of an array.

-False

Subclasses or child classes could have different behaviors but still share the same functions from their parent
class.

-True

Abstract methods must have an explicit return value

-False

An abstract class must not contain abstract methods.

-False

Abstracted classes can be nested.

-True

A subclass constructor cannot invoke a superclass constructor.

-False

A class acquiring fields and methods of another class is called inheritance.

-True

Parallelsorting utilizes

-More cpu processing cores

method can copy one array to another.

-arraycopy()

Conditional test expressions can contain declarations


-True

A child class inherits all the methods of every other class.

-False

f the value of “pStr” in line 7 is changed to _______ then the value of “pStr” in line 24 will be changed as well.

-True

The type of loop that checks the test expression at the end.

-do-while

An array of integers should be declared as

-int[]

A class which contains the abstract keyword in its declaration is known as an

-abstract class

Please refer to figure 1 to answer the question below: In figure 1 if(x==5) is

-skipped

The first line of the code should have either a yes or no value.

-False

Determine the output.

String val_1 = “25”;

String val_2 = “80”;

-200

What does ‘new’ in int[ ] myArray = new int[n] do?

-Assigns memory for the array

is also known as a parent class.

-Super class

Determine the output.


String val_1 = “foobar”;

String val_2 = “”;

-boar
Polymorphic objects can pass (answer) Is-a test.

-More than one

True or False: Traditional comments start with /** (forward slash and two asterisks) and ends with */
(asterisk and forward slash).

-False

True or False: Netbeans is one of the IDEs or Integrated Development Environment to run Java programs.

-True

For-loops can check the test expression at the end.

-False

Polymorphism is the ability of a Java object to take

-Directly

Constructors can have

-any number

When the program runs, and assuming there are no errors, its first line will be begin printing.

-FALSE

Which of these is a proper decrement?

-x-10;

All are methods of the array class except

-substring()

The error in Figure 2 is

-“tralse”;

A constructor (answer) contain an explicit return type

-cannot

Abstracted methods need (answer) for implementations.

-sub-classes

Line 14 will yield an error. It will be corrected if you place */ after the method.

-FALSE
The name of a constructor must be (answer) as your class.

-same

The limit of dimensions an array can have without errors is

-255

This type of declaration is discouraged.

-String myArray[ ];

The following figure shows the Netbeans Integrated Development Environment.

-True

The equivalent of clauses in coding is?


-Expressions
Int num = 1; for(num=num;num<=10;num++) is an acceptable code snippet.
-true
Loop that has a pre-determined number of iterations
-while
An int can be used even if it is declared outside a for-loop.
-true
Overload methods must be the same name as the class
-true
What the break statement in this example does is ________.
-Ends the whole instance of the loop
The random( ) method sorts the array randomly.
-False
The last part in a for loop setup can be an ________.
- both
The “1” in arrayName[1] is called an ________.
-Index
The continue; statement ends all the iterations of a loop.
- False
Which is not a proper increment?
- n+-;
Infine for-loops can be declared as for( ){ }.
- False
If-if is more logical than else-if.
- False
The else statement can be removed if not needed.
-True
Expressions, Statements and Blocks are like composing sentences and paragraphs.
-True
You can declare a new method in the subclass which is not declared in the superclass.
-True
The return value of the equals( ) method is ________ .
-None of the choices
The Arrays.sort( ) method sorts an array into _________ order.
-Ascending
This type of declaration is discouraged: “int myArray[ ]”
- True
An if-else-if-else statement is a block.
-True
If the increment num=num+2 is changed to num++, the final value of num will be ________.
-5
The term of each pass through a loop makes is called?
-iteration
Loops must always have a continue or break statement.
-False
1+2+3/4*5 is an unambiguous expression
-False
Conditional statements can contain more conditional statements.
- True
int num = 1;
if(num==1 && num<=1){
body;
}
The conditional statement will _______.
- execute the body
byte( ][ ][ ) myArray; is an example of ________.
- An error
An array _______ hold objects.
- can
A reference variable can be reassigned to other objects provided that it is not declared
________.
- final
The test expression of conditional statement cannot contain _______
-!
Each pass through of a loop is called a cycle.
- True
If the increment “num = num + 2” is changed to “num = num + 1” the final output will be
_______.
-0
Ifs and else-ifs test expressions return true or false.
- True
_______ classes increase the encapsulation of you methods and data.
- nesting
Constructed methods are initialized with 0 or null depending on the data type.
- true
The else statement catches whatever argument the if and else-if didn’t
- True
An iteration of a loop is equivalent to one pass through.
- true
38. If we change the initial value of num in line 6 to “num = 0”, the println output will be
_______
-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
A loop can contain no expressions or statements inside.
- true
Conditional statements are the same as declaration statements.
- False
You cannot use inherited methods directly in a child class.
- False
The equals( ) method compares 2 arrays.
- True
Method invocations are statements
- True
To implement encapsulation, you have to declare class variables with the private modifier.
- True
Inner class methods can be called by constructing the inner class.
- False
Encapsulated data are hidden from other classes.
- True

Refer to the code snippet below. Identify what part of a method is shown in each number (the
underlined one).
GIVEN: public int getArea

Answer: Method Name

Fill in the blanks with the correct answer.

Answer: val_1 + val_2

Read each statement carefully and decide whether it’s TRUE or FALSE.
The filename of the Java file above is computesum.java.

Answer: False

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

GIVEN: int getArea

Answer: Return Type

Fill in the blank:

Answer: foo

Procedural programming will be tricky for applications.

Answer: small

Strings can directly concatenated to an int.

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

Answer: FALSE

Fill in the blank:

Answer: barfoo

Refer to the code snippet below. Determine whether the given is a local variable, instance
variable, access modifier or a class name.
GIVEN: private class EmployeeRecord

Answer: access modifier

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

Answer: FALSE

Fill in the blank:


Answer: 200

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

Answer: False

Fill in the blank:

Answer: foo

Refer to the block of codes below. Read each statement carefully and decide whether it’s TRUE
or FALSE.
There are no errors in line 11.

Answer: TRUE

Determine the output.

Answer: error

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

Answer: False

Refer to the code snippet below. Determine whether the given is a local variable, instance
variable, access modifier or a class name.
GIVEN: private class EmployeeRecord

Answer: class name

Determine the output.

Answer: chocolate bar

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

Answer: False

Fill in the blank:


Answer: 6

The “indexOf( )” method returns the first instance of the specified character.

Answer: True

Please refer to figure 1 to answer the question below:

If we change the initial value of num in line 6 to “num = 0”, the println output will be

Answer: 0

Strings can readily accept int values.

Answer: True

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

Answer: True
Refer to the code snippet below. Determine whether the given is a local variable, instance
variable, access modifier or a class name.

GIVEN: int noOfEmployee

Answer: local variable

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

Answer: True
Refer to the program below. Read each statement carefully and write the output for each line
specified.

Line 22 will display on the screen.

Answer: 1
PROG-111A-LAB
AMALEAKS.BLOGSPOT.COM

Started on Thursday, 28 December 2017, 1:20 PM


State Finished
Completed on Thursday, 28 December 2017, 1:39 PM
Time taken 19 mins 41 secs
Grade 8.00 out of 10.00 (80%)
Question 1
Complete
Question 2
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Refer to the revision history below and decide whether the statement is TRUE or
FALSE.

True or False: Major revisions on progress, budget and risk management were
conducted in the second version of the document.
Answer: true
Question 3
Complete
Mark 0.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 problems in Materials, Measurement,
Method, People, Equipment or Environment.
Most of the programmers are not informed of the progress or status of the
project. This is a Answer people problem.
When the program was written, some team mates are
talking too loud and distracted the others. This cause is
categorized under _________________.
Some of the programmers were not present duringrequirements gathering, this
cause is classified as a
_________________ problem.
Question 4
Complete
Mark 1.00 out of 1.00

Flag question
Question text
The quality of a product is the responsibility of ____________________ in the
workplace.
Select one:
a. HR staff
b. IT staff
c. Everyone
d. Admin staff
Question 5
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: If you want to inform every one of events, memos and
other announcements, use the bulletin board.
true
Answer:
Question 6
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Naming conventions are records of system activities arranged in
chronological order for documentary purposes.
Answer: false
Question 7
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Which one of the following is a characteristic of mentoring?
Select one:
a. The focus is on inspiring respect for professional skills.
b. The focus is on utilizing existing competencies.
c. The focus is on technical or professional development.
d. The focus is on realizing trainee’s potential skills.
Question 8
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: It is fine to use strong or shocking colors for PowerPoint
presentation slides.
Answer: false
Question 9
Complete
Mark 1.00 out of 1.00

Flag question
Question text
It is a means of facilitating relationships which also serves as a way for parties to
consider what decisions or course of action they must make.
Select one:
a. Technical
b. Interpersonal
c. Boundaries
d. Feedback
e. Active listening
f. Communication
g. Interpretation
h. Channel
i. Negotiation
j. Empathy
Question 10
Complete
Mark 0.00 out of 1.00

Flag question
Question text
True or False: Foreign co-workers having conversation issues with everyone in the
office are better left off on their own.
false
Answer:
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Which one of the following DO NOT resolve diversity in the workplace?
Select one:
a. Creating a sense of equality by encouraging employees to voice out their
opinions.
b. Conducting regular trainings to update company policies.
c. Involving all employees in the formulation and execution of company
programs.
d. Rewarding only the skilled employees while scolding the other employees
who perform poorly.
Question 2
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Through feedback, programmers can learn if the system or program
has all the functions and features defined by the clients.
Answer: true
Question 3
Complete
Mark 0.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 problems in Materials, Measurement,
Method, People, Equipment or Environment.

Due to a tight deadline, the programmers decided to write the code immediately
without a plan. This cause is classified under Answer measurement .
When the program was written, some team mates are
talking too loud and distracted the others. This cause is
categorized under _________________.
Some of the programmers were not present duringrequirements gathering, this
cause is classified as a
_________________ problem.
Question 4
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: All team members must be doing their parts diligently for the
success of the team’s efforts.
Answer: true
Question 5
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: You can send the message in whatever format you like, since the
receiver can just try to interpret and understand the message in any way.
Answer: false
Question 6
Complete
Mark 1.00 out of 1.00

Flag question
Question text
This group of people is knowledgeable in software applications:
Select one:
a. Design engineer, development engineer, engineer, Quality Assurance
Specialist, Tester
b. Analyst, engineer, data modeler, business analyst, computer engineer
c. Administrator, analyst, test engineer, tester
d. Designer or Engineer, Programmer or Analyst
Question 7
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Which among the following statements is TRUE?
Select one:
a. Encoding refers to the method of conveying the message, such as speaking,
writing or gesturing.
b. The source is the information or subject matter of communication.
c. Feedback can be a useful reference when planning for communications in
the future.
d. Encoding is the process by which the receiver interprets and understands
the message.

Question 1
Answer saved
Marked out of 1.00

Flag question
Question text
This practice is a form of self-evaluation, where you think about what you did and
learn what you can from it. It motivates you to do better next time you are faced
with the same situation.
Select one:
a. Quality Control
b. Performance Appraisal
c. Reflective Behavior
d. Safety Programs
Question 2
Answer saved
Marked out of 1.00

Flag question
Question text
True or False: In identifying the problem, it should be specific and not broad or
vague.
true
Answer:
Question 3
Answer saved
Marked out of 1.00
Flag question
Question text
True or False: Presentations must be interesting, lively and engaging.
Answer: true
Question 4
Answer saved
Marked out of 1.00

Flag question
Question text
It is a meeting where you receive and learn information and training on a specific
subject.
Select one:
a. Exhibit
b. Business meeting
c. Seminar
d. Meet and greet
Question 5
Answer saved
Marked out of 1.00

Flag question
Question text
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.
false
Answer:
Question 6
Answer saved
Marked out of 1.00

Flag question
Question text
True or False: Taking home of a little bit of office supplies will surely be ignored
and won’t do much harm to the company.
Answer: false
Question 7
Answer saved
Marked out of 1.00

Flag question
Question text
Referring to the figure below, determine if the statement is TRUE or FALSE.

The file for the second version of risk management is properly named.

Answer: false
Question 8
Answer saved
Marked out of 1.00

Flag question
Question text
The following are all safety procedures that may be observed by a company,
EXCEPT for:
Select one:
a. Conducting earthquake drills
b. Placing fire extinguishers within the workplace
c. Having a first aid kit at hand
d. Using faulty cable wiring all over the place
Question 9
Answer saved
Marked out of 1.00

Flag question
Question text
Effective monitoring can be done through the following, EXCEPT:
Select one:
a. Conducting investigations
b. Carrying out spot checks
c. Collecting office records
d. Completing safety inspections
Question 10
Answer saved
Marked out of 1.00

Flag question
Question text
Which one of the following practices will result to a proper presentation?
Select one:
a. Using slides with strong shocking background colors
b. Using font styles that are readable
c. Using pictures or images that are of no relevance to the presentation
d. Using font styles that are readable and Using pictures or images that are of
no relevance to the presentation
True or False: Foreign co-workers having conversation issues with
everyone in the office are better left off on their own.
A: False

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

True or False: Understanding everyone’s interest is the second step in the


problem solving process. This is when you choose the optimal solution.
Answer: false

These kind of words or terms are often discouraged to be used during a


presentation, especially if the audience is not that familiar with
programming terms.
A: technical words

Referring to the figure below, determine if the statement is TRUE or


FALSE.

The first version of the risk management file should be named Risk
Management V01.
A: true

It is the ability to understand another person’s point of view and opinions.


Select one:
a. Negotiation
b. Communication
c. Technical
d. Interpretation
e. Feedback
f. Active listening
g. Interpersonal
h. Empathy
i. Boundaries
j. Channel
True or False: A team refers only to a group of people who work in the
same workplace and who see each other on a regular basis.
Answer: true
Handwritten- is considered a personal type of written communication and it includes
postcards and written letters.

True or False: Team building activities are important to further improve


team interaction and cooperation.
Answer: true
Question 3
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Stick only to technical terms for your presentation. There is
no need to give any simple explanation when you use technical terms.
Answer: false

Which one of the following is a characteristic of mentoring?


Select one:
a. The focus is on technical or professional development.
b. The focus is on utilizing existing competencies.
c. The focus is on inspiring respect for professional skills.
d. The focus is on realizing trainee’s potential skills.

Refer to the revision history below and decide whether the statement is
TRUE or FALSE.
True or False: Major revisions on progress, budget and risk management
were conducted in the second version of the document.
Answer: true
Analyze the diagram below to answer. Fill in the blanks with the correct
answer or categorize the causes if they are considered problems in
Materials, Measurement, Method, People, Equipment or Environment.

Most of the programmers are not informed of the progress or status of the
methods
project. This is a Answer problem.

It is a means of facilitating relationships which also serves as a way for


parties to consider what decisions or course of action they must make.
Select one:
a. Interpretation
b. Interpersonal
c. Technical
d. Empathy
e. Active listening
f. Channel
g. Negotiation
h. Communication
i. Feedback
j. Boundaries

True or False: After finding out what the problem is, it is not time to identify
the fundamental cause of the problem.
A:
Who among the following can give feedback to an employee?
Select one:
a. All of the choices
b. Teammates
c. Colleagues
d. None of the choices
e. Superiors
The following are all part of the communication process, EXCEPT for one:
Select one:
a. Feedback
b. Source
c. Printing
d. Decoding

The quality of a product is the responsibility of ____________________ in


the workplace.
Select one:
a. IT staff
b. HR staff
c. Everyone
d. Admin staff
Question 2
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 problems in
Materials, Measurement, Method, People, Equipment or Environment.

One programmer, who is just a recent graduate, was assigned to do a big


task. His colleagues are not aware that he doesn’t have the skills required.
This falls under Answer people .
When the program was written, some team mates are
talking too loud and distracted the others. This cause is
categorized under _________________.
Some of the programmers were not present duringrequirements gathering,
this cause is classified as a
_________________ problem.

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 problems in
Materials, Measurement, Method, People, Equipment or Environment.

Equipment
The problem identified in the diagram is a buggy java Answer .

Question 4
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Which among the following statements is TRUE?
Select one:
a. The source is the information or subject matter of communication.
b. Encoding refers to the method of conveying the message, such as
speaking, writing or gesturing.
c. Feedback can be a useful reference when planning for
communications in the future.
d. Encoding is the process by which the receiver interprets and
understands the message.
Question 5
Complete
Flag question
Question text
This Internet online resource allows the user to interact either as a learner
or instructor.
Select one:
Answer: udemy
Question 6
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: In identifying the problem, it should be specific and not broad
or vague.
Answer: true
Question 7
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Expertise in using the Internet and Internet-based services, handling
computer hardware, computer operation and maintenance, and
troubleshooting computer systems are some examples of
____________________ skills.
Select one:
a. Technical
b. Soft
c. Business
d. All of the choices
Question 8
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Naming conventions are records of system activities
arranged in chronological order for documentary purposes.
Answer: false
Question 9
Complete
Mark 1.00 out of 1.00

Flag question
Question text
The following are all safety procedures that may be observed by a
company, EXCEPT for:
Select one:
a. Placing fire extinguishers within the workplace
b. Having a first aid kit at hand
c. Conducting earthquake drills
d. Using faulty cable wiring all over the place
Question 10
Complete
Question 2
Complete
Mark 1.00 out of 1.00

Flag question
Question text
This refers to how people make sense of, understand or perceive something.
Select one:
a. Boundaries
b. Technical
c. Communication
d. Interpretation
e. Channel
f. Active listening
g. Empathy
h. Interpersonal
i. Negotiation
j. Feedback
Question 3
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Expertise in using the Internet and Internet-based services, handling computer
hardware, computer operation and maintenance, and troubleshooting computer
systems are some examples of ____________________ skills.
Select one:
a. All of the choices
b. Soft
c. Business
d. Technical
Question 4
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Employees should be encouraged to take on career paths that not
only develop their skills, but also improve their performance in the work that they
do.
Answer: true
Question 5
Complete
Mark 1.00 out of 1.00

Flag question
Question text
This group of people is knowledgeable in software applications:
Select one:
a. Design engineer, development engineer, engineer, Quality Assurance
Specialist, Tester
b. Analyst, engineer, data modeler, business analyst, computer engineer
c. Administrator, analyst, test engineer, tester
d. Designer or Engineer, Programmer or Analyst
Question 6
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Which one of the following is a characteristic of mentoring?
Select one:
a. The focus is on realizing trainee’s potential skills.
b. The focus is on utilizing existing competencies.
c. The focus is on inspiring respect for professional skills.
d. The focus is on technical or professional development.
Question 7
Complete
Mark 1.00 out of 1.00

Flag question
Question text
It is a meeting where you receive and learn information and training on a specific
subject.
Select one:
a. Meet and greet
b. Exhibit
c. Seminar
d. Business meeting
Question 8
Complete
Mark 1.00 out of 1.00

Flag question
Question text
The following are all safety procedures that may be observed by a company,
EXCEPT for:
Select one:
a. Having a first aid kit at hand
b. Using faulty cable wiring all over the place
c. Conducting earthquake drills
d. Placing fire extinguishers within the workplace
Question 9
Complete
Mark 1.00 out of 1.00

Flag question
Question text
This refers to face-to-face communication between two or more people.
Select one:
a. Negotiation
b. Interpretation
c. Feedback
d. Active listening
e. Technical
f. Communication
g. Empathy
h. Interpersonal
i. Channel
j. Boundaries
Question 10
Complete
Mark 1.00 out of 1.00
Flag question
Question text
True or False: Evaluating the options require determining the advantages and
disadvantages of each option.

true
Answer:

Started on Friday, 5 January 2018, 6:50 PM


State Finished
Completed on Friday, 5 January 2018, 6:58 PM
Time taken 8 mins 26 secs
Grade 10.00 out of 10.00 (100%)
Question 1
Complete
Mark 1.00 out of 1.00

Flag question
Question text
It is a means of facilitating relationships which also serves as a way for parties to
consider what decisions or course of action they must make.
Select one:
a. Communication
b. Technical
c. Empathy
d. Boundaries
e. Active listening
f. Negotiation
g. Interpersonal
h. Interpretation
i. Channel
j. Feedback
Question 2
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: After finding out what the problem is, it is not time to identify the
fundamental cause of the problem.
Answer: true
Question 3
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: In naming files, provide simple and short names that could easily be
understood by everyone.
Answer: true
Question 4
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Referring to the figure below, determine if the statement is TRUE or FALSE.

The final copy of the project charter is properly named.


Answer: false
Question 5
Complete
Mark 1.00 out of 1.00

Flag question
Question text
____________________ is a formal meeting where people are gathered to
discuss topics that revolve around their same interests.
Select one:
a. Concert
b. Seminar
c. Workshop
d. Conference
Question 6
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Answer value covers quality, service and delivery of the goods or services from
the vendor to the client.
Question 7
Complete
Mark 1.00 out of 1.00
Flag question
Question text
In the workplace, ______________ is all about the level of work performance
required in completing a task.
Select one:
a. Standard
b. Feedback
c. Values
d. Goal
Question 8
Complete
Mark 1.00 out of 1.00

Flag question
Question text
This practice is a form of self-evaluation, where you think about what you did and
learn what you can from it. It motivates you to do better next time you are faced
with the same situation.
Select one:
a. Reflective Behavior
b. Safety Programs
c. Quality Control
d. Performance Appraisal
Question 9
Complete
Mark 1.00 out of 1.00
Flag question
Question text
True or False: Memos, also known as memorandum, are distributed for people
working in the same organization or company.
Answer: true
Question 10
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Always use readable fonts in presentations.
true
Answer:

Question 8
Complete
Mark 1.00 out of 1.00

Flag question
Question text
These kind of words or terms are often discouraged to be used during a
presentation, especially if the audience is not that familiar with programming
terms.
Select one:
a. Channel
b. Interpersonal
c. Negotiation
d. Interpretation
e. Technical
f. Feedback
g. Active listening
h. Communication
i. Boundaries
handw
j. Empathy
Question 9
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Some of the famous computer professional networks are:
Select one:
a. Philippine Computer Society
b. Computer Society of the Philippines
c. Philippine Computer Society and VIP International Unite
d. Computer Society of the Philippines and Philippine Computer Society
e. Computer Society of the Philippines and VIP International Unite
f. VIP International Unite
g. All of the choices
h. None of the choices
Question 10
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Answer is considered a personal type of written communication and it includes
postcards and written letters.
True or False: Communicating with internal and external clients is important for
programmers.
Answer: true

This is one way to measure success rate not onlyyour communication, but also to
evaluate your work.
Select one:
a. Feedback
b. Communication
c. Technical
d. Interpretation
e. Empathy
f. Channel
g. Active listening
h. Boundaries
i. Negotiation
j. Interpersonal
Question 2
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Ice breaker activities can be related or not to the presentation.
Answer: true

____________________ is a formal meeting where people are gathered to


discuss topics that revolve around their same interests.
Select one:
a. Seminar
b. Conference
c. Workshop
d. Concert
Question 2
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: According to Hicks, the first step in an effective problem solving
process is clearly defining the problem.
Answer: true
Question 3
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Stick only to technical terms for your presentation. There is no need
to give any simple explanation when you use technical terms.
Answer: false
Question 4
Complete
Mark 1.00 out of 1.00

Flag question
Question text
This is the method by which a message is conveyed, such as speaking, writing or
gesturing.
Select one:
a. Negotiation
b. Interpersonal
c. Interpretation
d. Technical
e. Empathy
f. Boundaries
g. Communication
h. Channel
i. Active listening
j. Feedback
Question 5
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 problems in Materials, Measurement,
Method, People, Equipment or Environment.
Few programmers are complaining about slow Internet connection and this
affects their work. This cause is categorized in Answer equipment .
When the program was written, some team mates are
talking too loud and distracted the others. This cause is
categorized under _________________.
Some of the programmers were not present duringrequirements gathering, this
cause is classified as a
_________________ problem.
Question 6
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Expertise in using the Internet and Internet-based services, handling computer
hardware, computer operation and maintenance, and troubleshooting computer
systems are some examples of ____________________ skills.
Select one:
a. Technical
b. Business
c. All of the choices
d. Soft
Question 7
Complete
Mark 1.00 out of 1.00

Flag question
Question text
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.
Answer: false
Question 8
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Referring to the figure below, determine if the statement is TRUE or FALSE.
The final copy of the project charter is properly named.
Answer: false
Question 9
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Answer informa oral communication may be done in a workplace and it takes
different forms such as telephone conversations, face-to-face conversations and
brainstorming.
Question 10
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Nowadays, teammates have no need for communications
technology since they can just interact face to face.
false
Answer:

Every country, whether industrialized or still developing, must actively cooperate


in enforcing environmental measures.
Select one:
a. True
b. False
Question 3
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Decide whether it is a communication instrument or purpose.
A printed progress report to be submitted to the adviser.
Answer: instrument
Question 4
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product
quality model and write the letter that corresponds to your answer.
Confidentiality
Select one:
a. Maintainability
b. Reliability
c. Compatibility
d. Usability
e. Security
f. Portability
g. Performance Efficiency
h. Functional Suitability
Question 5
Complete
Mark 1.00 out of 1.00

Flag question
Question text
In the 5S method, this stage refers to arranging items in a way that they are easy
to find and pick up.
Select one:
a. Shitsuke
b. Seiton
c. Seiketsu
d. Seiri
Question 6
Complete
Mark 1.00 out of 1.00

Flag question
Question text
____________________ is when you conduct regular audits and inspections to
evaluate your work performance.
Select one:
a. Seiso
b. Seiketsu
c. Shitsuke
d. Seiri
Question 7
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product
quality model and write the letter that corresponds to your answer.
Accessibility
Select one:
a. Usability
b. Compatibility
c. Maintainability
d. Security
e. Reliability
f. Portability
g. Performance Efficiency
h. Functional Suitability
Question 8
Complete
Mark 1.00 out of 1.00

Flag question
Question text
The 5s method is based on the ____________________.
Select one:
a. Takoyaki Production System
b. Tonari Production System
c. Tatsumaki Production System
d. Toyota Production Sytem
Question 9
Complete
Mark 1.00 out of 1.00

Flag question
Question text
According to Humphrey, a quality plan starts with product introduction where the
product qualities and target market are identified.
Select one:
a. False
b. True

True or False: One of the ways to motivate teamwork in the workplace is to make
sure that maintenance is conducted and planned for system enhancement.
Answer: false
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.
Select one:
a. False

A: ergonomic
factors are concerned whether employees are comfortable, stressed or possibly
be injured due to the arrangement of things in the workplace.
True or False: Reviewing the related literature includes review of concepts,
theories and previous research findings.
Answer: true
Enforcing environmental policies is one of the major causes of job loss and
unemployment.
Select one:
a. True
b. False
True or False: To gather data, you can either conduct an interview, survey,
observation, mail questionnaire, coding and tabulation.
Answer: false
Risks, which could harm the product’s quality, must be determined and managed
well along with the actions to be taken.
Select one:
a. False
b. True
Collective bargaining refers to the bargain sale of previously used office
equipment.
Select one:
a. False
b. True
Identify whether the following task should be listed as a milestone or be included
in the Gantt chart.
The user interface design and layout has been completed.
Answer: milestone
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product
quality model and write the letter that corresponds to your answer.
Installability
Select one:
a. Maintainability
b. Performance Efficiency
c. Reliability
d. Portability
e. Functional Suitability
f. Security
g. Usability
h. Compatibility
Question 3
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product
quality model and write the letter that corresponds to your answer.
Interoperability
Select one:
a. Functional Suitability
b. Compatibility
c. Maintainability
d. Security
e. Reliability
f. Portability
g. Usability
h. Performance Efficiency
Question 4
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product
quality model and write the letter that corresponds to your answer.
Maturity
Select one:
a. Compatibility
b. Portability
c. Reliability
d. Performance Efficiency
e. Security
f. Functional Suitability
g. Usability
h. Maintainability
Question 5
Complete

Flag question
Question text
The Montreal protocol is designed to help protect the ozone layer.
Select one:
a. True
b. False

A: briefing
notes are prepared with issues or topics that decision makers should be informed
about.
Qualitative research aims to gain insights on opinions, behaviors and attitude
through Answer: UNSTRUCTURED techniques.
Question 10
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product
quality model and write the letter that corresponds to your answer.
Testability
Select one:
a. Maintainability
Conceptual research is usually carried out by and thinkers to come up with new
concepts. Answer: philosopher
True or False: Most of the readers will skim the conclusion first to get an idea of
what the paper is all about.
Answer: false
Question 13
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Quality improvement process is conducted to avoid errors and faults from
recurring in the future.
Select one:
a. True
b. False
True or False: There are five main elements of a written report – topic, style,
structure, facts and contents.
Answer: false
Presidential Decree No. 856 is an international treaty that imposes limitations on
the greenhouse gas emissions of several countries.
Select one:
a. True
b. False
True or False: Dates in file names should be written in YYYY-MM-DD format.
Asnwer: true
Companies can freely make their own set of environmental policies without
consulting the workers’ union, or any local or national laws about it.
Select one:
a. True
b. False
Question 20
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 ‘Grandparents
Answer: external

Started on Saturday, 6 January 2018, 9:51 PM


State Finished
Completed on Saturday, 6 January 2018, 10:13 PM
Time taken 21 mins 12 secs
Grade 18.00 out of 20.00 (90%)
Question 1
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Referring to the figure below, determine if the statement is TRUE or FALSE.
The minutes dated back December 3, 2016 is properly named.
Answer: false
Question 2
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product
quality model and write the letter that corresponds to your answer.
Recoverability
Select one:
a. Portability
b. Security
c. Usability
d. Compatibility
e. Maintainability
f. Performance Efficiency
g. Functional Suitability
h. Reliability
Question 3
Complete
Mark 1.00 out of 1.00

Flag question
Question text
The 5S Method is a Japanese perspective technique developed by Eiichiro Oda.
Select one:
a. False
b. True
Question 4
Complete
Mark 1.00 out of 1.00

Flag question
Question text
The protection of the natural resources is possible through the collective efforts
of each group in the society.
Select one:
a. False
b. True
Question 5
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Referring to the figure below, determine if the statement is TRUE or FALSE.
The minutes of the meeting for December 1, 2016 is appropriately named.
Answer: true
Question 6
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: A milestone refers to the scope and out of scope of a project. It is
defined so that the project is implemented on time and on budget.
Answer: false
Question 7
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Montreal protocol protects the ozone layer by ____________________.
Select one:
a. phasing out harmful substances
b. reducing greenhouse gas emissions
c. banning the use of perfumes
d. using locally produced products
Question 8
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Email, SMS and Gantt chart are samples of communication
frequency that you could utilize.
Answer: false
Question 9
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 be notified that the project proposal has been approved.
inform
Answer:
Question 10
Complete
Mark 1.00 out of 1.00

Flag question
Question text
This body was tasked to implement the provisions of P.D. No. 856.
Select one:
a. Department of Wealth
b. Department of Health
c. Department of Sanitation
d. Department of Cleanliness
Question 11
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Organizational aims are different from the mission statement; they
refer to the results an organization is aspiring for.
Answer: true
Question 12
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Refer to the revision history below and decide whether the statement is TRUE or
FALSE.
There were only two staff accountable and responsible for the overall changes of
the document.
Answer: true
Question 13
Complete
Mark 1.00 out of 1.00

Flag question
Question text
During solution implementation, the problem solvers should be Answer:
PROACTIVE to assure that the problem is being addressed properly.
Question 14
Complete
Mark 0.00 out of 1.00

Flag question
Question text
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.
“XYZ is so cool! I tried to install it in my old computer and it still runs smoothly.
Given that the computer’s video card is a bit faulty.“
Select one:
a. Performance Efficiency
b. Reliability
c. Usability
d. Security
e. Maintainability
f. Portability
g. Compatibility
h. Functional Stability
Question 15
Complete
Mark 1.00 out of 1.00

Flag question
Question text
By conducting a research, you can help the society by contributing to the body
of Answer know le.
Question 16
Complete
Mark 0.00 out of 1.00

Flag question
Question text
Environmental issues have no relation to the workplace.
Select one:
b. False
Question 17
Complete
Mark 1.00 out of 1.00

Flag question
Question text
In a nutshell, a research is conducted by identifying a problem, identifies
hypoth
formulating a Answer , gathering and analyzing data, presenting the
findings, and drawing a conclusion.
Question 18
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Business industries will not be affected by the environmental crisis.
Select one:
a. True
b. False
Question 19
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Usually, the summary of the report is the first thing that’s being
read.
Answer: true
Question 20
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: To present the results and findings of a research, you can use a bar
graph, line graph or pie chart.
Answer: true
True or False: Seminar lectures, conference talks, presentations of reports
and group meetings are samples of informal oral communication conducted
in a workplace.
Answer: False
These are developed by industries as a guide for establishments and
business enterprises to conduct their operations in a way that prevents or
reduces environmental harm.
Answer: Environmental codes of practice
True or False: There are different types of communication and written
communication is one which can be used in a workplace.
Answer: true
True or False: There are different types of communication and written
communication is one which can be used in a workplace.
Answer: false
Quantitative research, compared to qualitative research, uses
measurable Answer data to uncover patterns.
Protecting the environment and natural resources also means protecting
stable employment.
Select one:
a. True
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 assure that the project schedule is followed strictly.
Answer: responsible
____________________ is setting the best practices in the workplace as
your work standards.
Select one:
a. Seiso
b. Seiri
c. Shitsuke
d. Seiketsu
Humans rely on natural resources for survival.
Select one:
a. True
b. False
Question text
Environmental policies won’t really make a difference, businesses will still
strive and be successful without giving a care for the environment.
Select one:
a. True
b. False
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
h. Functional Suitability
ISO/IEC 25010:2011’s SQuaRE stands for System Quality Assurance and
Requirements Evaluation. This standard is used in evaluating the quality of
software.
Select one:
a. False
b. True
True or False: You can emphasize the key points in your report by stating
them in the references and conclusion.
Answer: false
Question 19
Complete
Mark 1.00 out of 1.00
Question text
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.
“One good thing I find with XYZ as when my laptop shuts down
accidentally, my game score and status can still be recovered. No need to
repeat a level.”
Select one:
b. Reliability
True or False: In an effective written communication, structure refers to the
facts presented in the paper.
Answer: false
The Kyoto protocol requires the participation of both industrialized and developing
nations in reducing environmental harm.
Select one:
b. False
Question 2
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Kyoto protocol addresses environmental issues through the campaign of
____________________.
Select one:
a. banning the use of pesticides
b. using imported products
c. reducing greenhouse gas emissions
d. phasing out harmful substances
Question 3
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product
quality model and write the letter that corresponds to your answer.
Reusability
Select one:
a. Reliability
b. Portability
c. Usability
d. Functional Suitability
e. Compatibility
f. Maintainability
g. Security
h. Performance Efficiency
Question 4
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product
quality model and write the letter that corresponds to your answer.
Operability
Select one:
a. Performance Efficiency
b. Security
c. Usability
d. Compatibility
e. Portability
f. Reliability
g. Maintainability
h. Functional Suitability
Question 5
Complete
Mark 0.00 out of 1.00

Flag question
Question text
Referring to the figure below, determine if the statement is TRUE or FALSE.
The project objectives file follows the standards of naming convention.
Answer: FALSE
Question 6
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Sometimes, people conduct research to earn Answer :respect from others.
Question 7
Complete
Mark 1.00 out of 1.00

Flag question
Question text
One good practice is to use water filtration system instead of buying bottled water
every time.
Select one:
a. False
b. True
Question 8
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Researches are primarily conducted to solve a problem and to
contribute the body of knowledge in a particular field.
true
Answer:
Question 9
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Protocols are set of standards rules which describes how something
should be done and different companies have different protocols as well.
Answer: true
Question 10
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Increase work productivity by arranging items in such a way that they are easy to
find and pick up.
Select one:
a. False
b. True
Question 11
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product
quality model and write the letter that corresponds to your answer.
Time behavior
Select one:
a. Portability
b. Reliability
c. Performance Efficiency
d. Maintainability
e. Compatibility
f. Security
g. Usability
h. Functional Suitability
Question 12
Complete
Mark 1.00 out of 1.00

Flag question
Question text

stability
Answer refers to the supplier’s / vendor’s capacity to conduct
long term contractual obligations.
Question 13
Complete
Mark 0.00 out of 1.00

Flag question
Question text
True or False: Statutory requirements are identified by the vendors or suppliers and
they include value, stability, diversity and capacity.
Answer: FALSE
Question 14
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Big business companies are the only ones responsible for enforcing environmental
policies since they can afford alternative cleaner technology.
Select one:
a. False
b. True
Question 15
Complete
Mark 1.00 out of 1.00

Flag question
Question text
theory
Fundamental research covers generalization and formulation of Answer .
Question 16
Complete
Mark 1.00 out of 1.00

Flag question
Question text
True or False: Research findings are not applicable in developing government
policies. Researchers should be purely academic.
Answer: false
Question 17
Complete
Mark 1.00 out of 1.00
Flag question
Question text
ISO 9001 international standard for quality’s core processes are divided into two
(2) – product delivery process and support process.
Select one:
a. False
b. True
Question 18
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Answer applied research is concerned in solving a problem that the private
organization or the society is facing.
Question 19
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Standards are based on untested concepts and theories that the company has yet to
encounter.
Select one:
a. True
b. False
Question 20
Complete
Mark 1.00 out of 1.00

Flag question
Question text
If a researcher is conducting a Answer descrip research, he / she has no control over
variables.
____________________ is a means by which the employees, speaking
through the unions they belong to, can come to an agreement with their
employers about employment, environmental and other work-related
concerns.
ANSWER; Collective bargaining

unstructured
notes are prepared with issues or topics that decision makers should be informed
about.

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 – like additional characters and skills.”
Select one:
g. Maintainability
Research can be used to accurately represent the Answer: characteristics
of a particular individual or group, an event or a situation.
The cost / benefit analysis document is appropriately named.
Answer: false

Grade 9.00 out of 10.00 (90%)


Question 1
Complete
Mark 1.00 out of 1.00

Flag question
Question text
This type of programming language uses series of 0s and 1s to represent data.
Select one:
a. Machine language
b. High-level language
c. Advanced language
d. Assembly language
Question 2
Complete
Mark 1.00 out of 1.00

Flag question
Question text
PASCAL is an example of a low-level language.
Select one:
a. False
b. True
Question 3
Complete
Mark 1.00 out of 1.00

Flag question
Question text
C# has features that are directly based on the Short Code.
Select one:
a. False
b. True
Question 4
1.00

Flag question
Question text
Arlan right clicked on his taskbar and unchecked the Lock Taskbar. What will
happen if he drags his taskbar to the right side of his screen?
Select one:
a. Start button will be located at the bottom right.
b. All of the choices
c. All icons will transfer to the right.
d. None of the choices.
e. Taskbar will display vertically at the right.
Question 5
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Answer charles is the father of computer.
Question 6
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Refer to the image below and write only the letter of the correct answer in the
space provided.

Something’s wrong with the serial port. Which port should I investigate?
Answer: c
Question 7
Complete
Mark 1.00 out of 1.00

Flag question
Question text
This refers to the process of using programming languages to instruct the
computer to perform specific tasks.
Select one:
a. Programming
b. Troubleshooting
c. Scanning
d. Debugging
Question 8
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Using the Answer java language, you can write windowed applications, build
databases, as well as control handheld devices.
Question 9
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Bridget’s mouse is not responding and she has to close her browser. Which of the
following is an alternative way using a keyboard to close an application?
Select one:
a. Alt + F4
b. Ctrl + C
c. Esc + 1
d. Shift + X
Question 10
Complete
Mark 1.00 out of 1.00

Flag question
Question text
COBOL is the programming language ideally used for
_________________________ purposes.
Select one:
a. Business
b. Artificial intelligence
c. Systematic
d. Internet

Who is the first computer programmer?


Select one:
a. Lady Lovelace Ada Augusta
b. Sir Wilhelm Maximilian Wundt
c. Lady Agatha Russell
d. Sir Konrad Zuse
Question 3
Complete
Mark 1.00 out of 1.00

Flag question
Question text
The earphones is an example of a _______________, while Internet Explorer is an
example of _______________.
Select one:
a. platform operating system
b. hardware, computer user
c. input device, output device
d. peripheral device, application program
Question 4
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Windows is to Personal Computer (PC) while Mac OSX is to Mac laptops and
computers.
Select one:
a. True
b. False
FORTRAN was the first ever “modern” computer language.
Select one:
a. True
b. False
An operating system has three major components – hardware, application
program or software and the user.
Select one:
a. False
b. True
Question 1
Complete
out of 1.00

Flag question
Question text
Maria has two printers – Printer Z and Printer A. She set Printer Z as the default
printer. What will happen the next time she prints a document?
Select one:

e. All of the choices.

Which of the following statements is TRUE?


Select one:
a. Natural language can be used in programming.
b. Today’s programming languages are all limited in scope and application.
c. A programming language may have its own area of specialization.
d. Poorly constructed coding statements are acceptable.
Question 3
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Refer to the image below and write only the letter of the correct answer in the
space provided.

The monitor suddenly turned black, which port should I check?


Answer: g
Question 4
Complete
Mark 1.00 out of 1.00

Flag question
Question text
If you are confused on what to do, press F2 on your keyboard and the Windows
Help feature will open.
Select one:
a. True
b. False
An operating system has three major components – hardware, application
program or software and the user.
Select one:
a. True
b. False

computer programs
are actually a set of computer instructions that are developed using a
programming language.
Ctrl + S is the shortcut key for Save while Ctrl + S + A is the shortcut key for Save
As.
Select one:
a. False
b. True
Image files can be opened using MS Paint, Notedpad and Windows Photo Viewer.
Select one:
a. False
b. True
The mouse suddenly stopped working. Which port should I check?
Answer: b
Since natural languages are vaguely structured, they cannot be used for
programming.
Select one:
a. False
b. True
C++, an extension of the C language, introduced object-oriented programming.
Select one:
a. True
b. False
I think I plugged the speakers wrong. The power is turned on but I can’t hear any
sound Which port should I check?
Answer: f
Which of the following is not a default margin options when setting up the page
for printing?
Select one:
a. Narrow
b. Wide
c. Normal
d. Regular
LISP and PROLOG are programming languages that are best used when dealing
with Artificial Intelligence.
Select one:
a. False
b. True
COBOL stands for Convenient Business Oriented Language.
Select one:
a. True
b. False

Question 1
Complete
Mark 1.00 out of 1.00
Question text
Observe the names of the following variables and routines and decide whether its
format is CORRECT or WRONG.
Student.StudentBirthday for a class property.
Select one:
a. Wrong
b. Correct
Question 2
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Answer short c was the first language implemented for BINAC.
Question 3
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Refer to the image below and write only the letter of the correct answer in the
space provided.
We were playing games locally and I got disconnected. I think something’s wrong
with this port.
Answer: e
Question 4
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Refer to the image below to answer the following question. What type of image is
shown?

Select one:
a. Program chart
b. Data flow
c. Control flow
d. Flow chart
Question 5
Complete
out of 1.00

Flag question
Question text
Answer: high-level language is a type of programming language that is composed
of symbols and words that follow some rules similar to that of a natural language.
Refer to the image below to answer the following question. What happens when
Limit is equal to 3?
Select one:
c. Program goes back to login page.
Question 7
Complete
Mark 1.00 out of 1.00
Flag question
Question text
The set of rules that must be strictly followed when using a programming
language is called Answer SYNTAX
Question 8
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Refer to the pseudocode below and answer the following question: What if the
computed BMI equals to 10, what will the program do?

Select one:
b. Print Underweight.
Question 9
Complete
Mark 1.00 out of 1.00

Flag question
Question text
A deleted file or folder found in the Recycle Bin can still be restored.
Select one:
b. True
Question 10
Complete
Flag question
Question text
.MPEG, .MP3 and .MOV are filename extensions for videos.
Select one:
b. False
Question 11
Complete
Mark 1.00 out of 1.00
lag question
Question text
Refer to the image below to answer the following question. What symbol is used
to begin and end the program?
b. Terminal
Question 12
Complete
Mark 1.00 out of 1.00
Question text
Refer to the image below and write only the letter of the correct answer in the
space provided.

My headset is working but the microphone is not. Which port should I check?
Answer: f
Question 13
Complete
Mark 1.00 out of 1.00

Flag question
Question text
You will find running application programs and process in the Task Manager.
Select one:
b. True
Question 14
Complete
Mark 1.00 out of 1.00
Question text
Ana is working on a new project and she was asking for the program’s purpose,
processes, algorithm, restrictions and some notes. According to the program
development life cycle, in which phase is Ana working on?
Select one:
b. Testing and Debugging
c. Analyze the Problem
Complete
Mark 1.00 out of 1.00
Question text
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?
Select one:
a. IV, I, V, III, II
Question 16
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Refer to the pseudocode below and answer the following question: If the
calculated BMI results to 26, what will the program do?

Select one:
a. display Normal
b. display Overweight
c. display Obese
d. display Underweight
Question 17
Complete
out of 1.00
Question text
Observe the names of the following variables and routines and decide whether its
format is CORRECT or WRONG.
PresentAdress for a column name in the table “Student”.
b. Wrong
Question 18
Complete
Mark 1.00 out of 1.00
Observe the names of the following variables and routines and decide whether its
format is CORRECT or WRONG.
Employees for a table name.
Select one:
a. Wrong
Question 19
Complete
Mark 1.00 out of 1.00
Question text
Refer to the image below to answer the following question. What process is
illustrated in the diagram?

Select one:
b. Social media login limit.
Question 20
Complete
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.
passingSCORE for a constant variable.
Select one:
a. Wrong
microso
C# was released by Answer .
Question 2
Complete
Mark 1.00 out of 1.00

Flag question
Question text
A Answer programis the code or language that allows a user to instruct a computer
to perform specific tasks.
Question 3
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Max is already writing the code for his project. In which phase of the PDLC is he
working on?
Select one:
a. Testing and Debugging
b. Analyze the Problem
c. Documentation
d. Coding and Execution
Question 4
Complete
out of 1.00

Flag question
Question text
Refer to the image below to answer the following question. John tries to log in for
the fourth time, what does he see on his screen?

Select one:
a. Social Media Page

Question 5
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Who is considered as a user (component of an operating system)?
Select one:
a. Students
b. All of the choices
c. Programmer
d. None of the choices
e. IT Staff
Question 6
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Programs written in high-level languages are translated into machine-readable
form using interpreters or compilers.
Select one:
a. False
b. True
Question 7
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Java is an example of
Select one:
a. Average level language
b. Low-level language
c. High-level language
d. Advanced language
Question 8
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Refer to the image below to answer the following question. What happens every
time the given username and password is incorrect?
Select one:
a. Limit is set to 0.
b. 1 is added to Limit.
c. 3 is set as the Limit.
d. Limit is set to 1.
Question 9
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Refer to the pseudocode below and answer the following question: The program
calculated for the BMI and it is equal to 50, what will the program do?

Select one:
a. Display Underweight.
b. Nothing, it is above 30.
c. Loop the program.
d. Print Obese.
Question 10
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Refer to the image below and write only the letter of the correct answer in the
space provided.

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
Question 11
Complete
Mark 1.00 out of 1.00

Flag question
Question text
He is known as the father of the Java programming language.
Select one:
a. Dennis Ritchie
b. Bjarne Stroustrup
c. J.W. Mauchly
d. James Gosling
Question 12
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Even when you close all running application programs, there are still process
running in the background.
Select one:
a. True
b. False
Question 13
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Jet is writing the pseudocode for his program. Which phase of program
development life cycle is he in?
Select one:
a. Documentation
b. Formalize the Solution
c. Design the Program
d. Test the Program
Question 14
Complete
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.
studentAge for a variable name.
Select one:
b. Correct
Question 15
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Refer to the image below to answer the following question. What type of
flowchart symbol contains the text “Limit >=3?”?

Select one:
a. Terminal
b. Decision
c. Flow lines
d. Connector
Question 16
Complete
Mark 1.00 out of 1.00
Flag question
Question text
Jamie finished debugging her program. What is the next step she should do?
Select one:
a. Documentation
b. Design the Program
c. Test the Program
d. Formalize the Solution
Question 17
Complete
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. limitIsReached for a Boolean variable.
Select one:
a. Wrong
b. Correct
Question 18
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Over time, man’s efforts to find better ways to communicate with computers
resulted to the evolution of programming languages.
Select one:
a. True
b. False
Question 19
Complete
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.
CEILING_GRADE for a constant variable.
Select one:
a. Correct
Question 20
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Refer to the pseudocode below and answer the following question: What
happens after weight is given?

b. ask for height


AMALEAKS.BLOGSPOT.COM
PROG ORACLE 113 GRADE
12 WEEK 1-10
Question 1
Complete
Mark 2.00 out of 2.00

Flag question

Question text
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 one:
a. SELECT job_title FROM jobs WHERE min_salary >= 5000 AND max_salary<= 10000
b. SELECT job_title FROM employees WHERE salary >= 5000 AND salary <= 10000
c. 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
Complete
Mark 2.00 out of 2.00

Flag question

Question text
What is the SQL command to count the number of records in the employees table?

Select one:
a. SELECT ALL FROM employees
b. SELECT * FROM employees;
c. SELECT COUNT(*) FROM employees
d. SELECT SUM(*) FROM employees;

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

Question 4
Complete
Mark 2.00 out of 2.00

Flag question

Question text
Evaluate the following SQL command
SELECT * FROM jobs WHERE job_title LIKE 'Manager%'

Select one:
a. The SQL command will produce an error.
b. The SQL command will display all employees with Manager position
c. The SQL command will display all records in the database
d. No records will be displayed

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:
a. SELECT employee_id, hire_date, TO_DATE(hire_date,'Month') AS "Hired Month", job_id FROM
b. SELECT employee_id, hire_date, MONTH(hire_date,'Month') AS "Hired Month", job_id FROM
employees
c. SELECT employee_id, hire_date, TO_CHAR(hire_date,'Month') AS "Hired Month", job_id FROM
employees
d. SELECT employee_id, hire_date, TO_MONTH(hire_date,'Month') AS "Hired Month", job_id
FROM employees

Question 6
Complete
Mark 2.00 out of 2.00

Flag question

Question text
You want to generate the total salary per month of every department in the company.

Select one:
a. SELECT department_id, salary FROM employees ORDER BY SUM(salary)
b. SELECT department_id, TOTAL(salary) FROM employees GROUP BY department_id
c. SELECT department_id, salary FROM employees GROUP BY SUM(salary) ORDER BY
department_id
d. SELECT department_id, SUM(salary) FROM employees GROUP BY 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:
a. SELECT last_name, TO_INT(salary, '$999,999.99') AS "MONTHLY SALARY" FROM employees
WHERE salary < 10,000 WHERE last_name STARTS 'D%'
b. SELECT last_name, TO_CHAR(salary, '$999,999.99') AS "MONTHLY SALARY" FROM
employees WHERE salary < 10000 WHERE last_name LIKE 'D%'
c. SELECT last_name, TO_INTEGER(salary, $999,999.99) AS "MONTHLY SALARY" FROM
employees WHERE salary < 10000 WHERE last_name IN 'D%'
d. SELECT last_name, TO_NUMBER(salary, '$999,999.99') AS "MONTHLY SALARY" FROM
employees WHERE salary < 10,000 WHERE last_name = ‘D%’

Question 8
Complete
Mark 2.00 out of 2.00

Flag question

Question text
Display the lastname of every employee in the company. Display the output in a single column and
label it as Fullname
Format: JuanReyes

Select one:
a. None of the choices
b. SELECT CONCATENATE(first_name, last_name) AS Fullname FROM employees
c. SELECT CONCAT(first_name, last_name) FROM employees
d. SELECT CONCAT(first_name, last_name) AS Fullname FROM employees

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:
a. SELECT SUBSTR(last_name,1,5), first_name FROM employees WHERE first_name IN 'N'
b. SELECT SUBSTR(last_name,1,5), first_name FROM employees WHERE
SUBSTR(first_name,1,1) = 'N'
c. SELECT SUBSTR(surname,1,5), first_name FROM employees WHERE SUBSTR(first_name,1,1)
IN 'N'
d. SELECT SUBSTR(surname,1,5), first_name FROM employees WHERE first_name = 'N'
e. SELECT SUBSTR(last_name,1,5), first_name FROM employees WHERE
SUBSTR(first_name,1,1) IN 'N'

Question 10
Complete
Mark 2.00 out of 2.00

Flag question

Question text
Austin David was transferred to Purchasing Department. You are assigned to update the database.
Which of the following SQL command will satisfy the requirements?

Select one:
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’
d. UPDATE employees SET department_id = 30 WHERE first_name = ‘David’ AND last_name =
‘Austin’

Question 11
Complete
Mark 2.00 out of 2.00
Flag question

Question text
John want to know how many employees receiving salary below 10,000.
What SQL command he need to run?

Select one:
a. SELECT COUNT(*) FROM employees WHERE salary < 10000;
b. SELECT COUNT(salary) FROM employees WHERE salary < 10,000;
c. SELECT COUNT(emp_id) FROM employees WHERE salary <= 10000;
d. SELECT salary FROM COUNT(employees)WHERE salary < 10000;

Question 12
Complete
Mark 2.00 out of 2.00

Flag question

Question text
Evaluate the following SQL command
SELECT employee_id, salary, department_id FROM employees WHERE department_id IN (60,70)

Select one:
a. The SQL command will produce an error.
b. The SQL command will display employees with department id 60 and 70.
c. The SQL command will give an incorrect output.
d. The SQL command will display employees with department id 60 or 70.

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 give the required output?

Select one:
a. SELECT last_name, hire_date FROM employees WHERE hire_date>=
TO_DATE('01-Jan-2006', 'DD-Mon-RR') AND hire_date<= TO_DATE('31-Dec-2006', 'DD-Mon-RR')
AND salary > 5000;
b. SELECT last_name, hire_date FROM employees WHERE hire_date>=
TO_DATE('Jan-2000', 'Month-YYYY') AND hire_date<= TO_DATE('Dec-2006', 'Month-‘YYYY') AND
salary > 5,000;
c. 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;
d. SELECT last_name, hire_date FROM employees WHERE hire_date>=
TO_DATE('2000', 'YYYY') AND hire_date<= TO_DATE('2006', 'YYYY') OR salary > 5000;

Question 14
Complete
Mark 2.00 out of 2.00

Flag question

Question text
List all employees except for IT_PROG job id.

Select one:
a. SELECT *FROM employees EXCEPT JOB_ID != 'IT_PROG'
b. SELECT *FROM employees WHERE JOB_ID NOT IN ('IT_PROG')
c. SELECT *FROM employees WHERE JOB_ID <> 'IT_PROG'
d. All of the choices

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:
a. The SQL will produce Cartesian Product
b. The SQL will display the employee id, department id and the minimum and maximum salary
whose salary is between 10000 and 20000.
c. The SQL command will produce an error.
d. The SQL command will give an incorrect output.

Question 16
Complete
Mark 2.00 out of 2.00

Flag question

Question text
Display all the records in the employee table. Arrange the output in by lastname from A-Z order.

Select one:
a. SELECT * FROM employees SORT BY lastname
b. SELECT * FROM employees ORDER BY lastname
c. SELECT * FROM employees ORDER BY lastname AZ
d. SELECT * FROM employees SORT BY lastname ascending

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:
a. SELECT employee_id, first_name, last_name FROM employees ORDER BY department_id
WHERE first_name LIKE 'D%' and job_id = 'IT_PROG'
b. SELECT employees FROM employee_id, first_name, last_name WHERE first_name LIKE ‘D%’
and job_id = ‘IT_PROG’ ORDER BY department_id
c. SELECT employee_id, first_name, last_name FROM employees WHERE job_id = 'IT_PROG' OR
first_name LIKE 'D%' and 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 command will produce the output.

Select one:
a. SELECT AVERAGE(salary) FROM employees WHERE job_id = 'FI_ACCOUNT';
b. SELECT AVG(salary) FROM employees WHERE job_id = 'FI_ACCOUNT';
c. SELECT AVE(salary) FROM employees WHERE job_id = 'FI_ACCOUNT';
d. SELECT COUNT AVG(salary) FROM employees WHERE job_id = 'FI_ACCOUNT';

Question 19
Complete
Mark 2.00 out of 2.00

Flag question

Question text
Display all location id between 1000 to 2000.

Select one:
a. DISPLAY location_id FROM departments WHERE location_id LING 1000 UP TO 2000
b. DISPLAY location_id FROM departments WHERE location_id BETWEEN 1000 TO 2000
c. SELECT location_id FROM departments WHERE location_id IN 1000 AND 2000
d. SELECT location_id FROM departments WHERE location_id BETWEEN 1000 AND 2000
Question 20
Complete
Mark 2.00 out of 2.00

Flag question

Question text
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 one:
a. SELECT employee_id, salary, salary + (salary .03) FROM employees
b. SELECT employee_id, salary, salary * .03 FROM employees
c. SELECT employee_id, salary, salary * 1.03 FROM employees
d. SELECT employee_id, salary FROM employees WHERE salary)
e. SELECT employee_id, salary, salary * .30 FROM employees

Question 21
Complete
Mark 2.00 out of 2.00

Flag question

Question text
Display the employee id, salary, number of years and the hiring date of every employee in the
company.

Select one:
a. SELECT employee_id,salary, hire_date, hire_date- SYSDATE /365 FROM employees;
b. SELECT employee_id, salary, hire_date, ROUND((SYSDATE - hire_date) /365,0) FROM
employees;
c. SELECT employee_id, salary, hire_date, hire_date /365 FROM employees;

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:
a. SELECT E.employee_id, J.job_title, e.job_id, D.department_name
FROM employees E
JOIN jobs J ON E.job_id = J.job_id
JOIN departments D ON E.department_id = D.department_id
WHERE E.department_id = 100
b. SELECT E.employee_id, J.job_title, e.job_id, D.department_name
FROM employees E
JOIN department D ON E.job_id = J.job_id
JOIN jobs J ON E.department_id = D.department_id
WHERE E.department_id = 100
c. SELECT E.employee_id, J.job_title, e.job_id, D.department_name
FROM jobs J
INNER JOIN department D ON E.job_id = J.job_id
INNER JOIN employees EON E.department_id = D.department_id
WHERE E.department_id = 100
d. SELECT E.employee_id, J.job_title, e.job_id, D.department_name
FROM jobs J
NATURAL JOIN department D ON E.job_id = J.job_id
NATURAL JOIN employees E ON E.department_id = D.department_id
WHERE E.department_id = 100

Question 23
Complete
Mark 2.00 out of 2.00

Flag question

Question text
In creating Joins,the NATURALJOIN and USING clauses are____________

Select one:
a. Mutually Inclusive
b. Limited to 2 relational tables
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 working in Finance Department. Label the annual salary to ANNUAL
SALARY.
Sort the output in from highest to lowest salary. (4 POINTS)

Select one:
a. 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
NATURAL JOIN jobs J ON E.job_id = J.job_id
NATURAL JOIN departments D ON E.department_id = D.department_id
ORDER BY "ANNUAL SALARY" DESC
WHERE D.location_id = 1700 AND D.department_name = 'Finance'
b. 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
JOINemployees E ON E.department_id = D.department_id
WHERE D.location_id = 1700 AND D.department_name = 'Finance'
ORDER BY "ANNUAL SALARY" DESC
c. 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
d. 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
OUTER JOIN jobs J ON E.job_id = J.job_id
OUTER 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
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’;

Which of the following SQL commands will display all stocks whose class is HW or AP.
SELECT * FROM parts WHERE IN class ('HW', '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?
SELECT employee_id, hire_date, TO_CHAR(hire_date,'Month') AS "Hired Month" FROM employees;

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;

John want to know how many employees receiving salary below 10,000. What SQL command he need to
run?
SELECT COUNT(*) FROM employees WHERE salary < 10000;
----------------------------------------
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%'

What will be the output of the following SQL?


SELECT * FROM parts WHERE (warehouse = 1 or warehouse = 2) AND class IN ('HW', 'AP') AND (price >
200 AND price < 500);
2 rows returned

What will be the output of the SQL command?


SELECT SUM(onhand) FROM PARTS where class = 'HW' OR class = 'AP' AND warehouse = 1;
137

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
output?
SELECT first_name, last_name, job_id, min_salary, max_salary FROM employees JOIN jobs USING
(job_id);
What will be the output of the SQL command below?
SELECT first_name, last_name, job_title FROM employees CROSS JOIN jobs ORDER BY last_name;
A Cartesian product

What will be the output of the SQL command below?


SELECT last_name, job_id, job_title FROM employees NATURAL JOIN jobs
List of names and job title of matched records from the employees and jobs table

----------------------------------------
SQ6

Given the SQL command


SELECT * FROM employees JOIN departments USING (department_id)
Which of the following describes the SQL command?
Joined table from the employees and department table

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

Display the manager id and employee id of every employee


SELECT E.employee_id, D.manager_id FROM employees E JOIN departments D ON E.department_id =
D.department_id

Given the SQL command


SELECT employees.first_name, employees.last_name, employees.salary,departments.department_name
FROM employees, departments
WHERE employees.department_id = departments.department_id;
Which of the following describes the SQL command?
List of employees name, salary and department name

----------------------------------------
LA7

Remove the Shareholder Services department in the department table


DELETE FROM departments WHERE department_name = ‘Shareholder Services’

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 update the information in the department table.
INSERT INTO departments VALUES (300, 'Training', 203, 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)

Remove all Manager positions in the department table.


DELETE FROM jobs WHERE job_title LIKE '%Manager%';
----------------------------------------
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 describes the command below?


SELECT * FROM employees WHERE department = 60 FOR UPDATE
Locks the rows in the EMPLOYEES table with department id is 60.

Which of the following will erase all records in the departments table
TRUNCATE TABLE departments

SQL command to create a marker in the current transaction.


SAVEPOINT

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

You want to cancel the privilege of matt to add records from the employees table.
REVOKE insert ON employees FROM 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 provide privilege to update the employees table?


GRANT update (salary) ON employees TO matt

Which of the following will is the correct command to create a role.


CREATE ROLE gen_manager

Matt wants to change his password from 1234 to abcd.


Which of the following will perform the task?
ALTER USER matt IDENTIFIED abcd;

The DBA will create a new user name sales.


Which of the following SQL command will perform the creation?
CREATE sales ACCESS 1234

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

What privileges that manipulates the content of the database objects.


Object Privileges

----------------------------------------
1st Q Exam

Evaluate the following SQL command


SELECT employee_id, salary, department_id FROM employees WHERE department_id IN (60,70)
The SQL command will display employees with department id 60 or 70.

True or False. The AND, OR, NOT are comparison operators.


False
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

List all employees except for IT_PROG job id.


All of the choices

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

Evaluate the following SQL command


SELECT * FROM jobs WHERE job_title LIKE 'Manager%'
No records will be displayed

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

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 last_name, TO_INTEGER(salary, $999,999.99) AS "MONTHLY SALARY" FROM employees
WHERE salary < 10000 WHERE last_name IN 'D%'

In creating Joins,the NATURALJOIN and USING clauses are____________


Mutually Exclusive

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

Which of the following does NOT describes SELECT Statement in a PL/SQL.


Answer: Queries must return only one column.
You want to display all the records of employee the same with the salary employee number 103.
Answer: SELECT * FROM employees WHERE salary = (SELECT salary from employees where
employee_id= 103)
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;
Which of the folllowing is TRUE?
Answer: SQL code are embedded within PL/SQL statements
When an exception is user defined, the exception is raised ____________ .
Answer: Explicitly
Which of the folllowing is TRUE?
Answer: SQL code are embedded withing PL/SQL statements
Weak REF CURSOR is very flexible.
Answer: True
How do you test the output of a PL/SQL block?
Answer: Use a predefined Oracle package and its procedure
Restrictive, specifies a RETURN type, associates only with type-compatible queries are description
of a ________________.
Answer: Strong REF CURSOR
Which of the following DOES NOT describes an exception?
Answer: Exception is a PL/SQL error that is raised before program execution.
These are local variables declared in the parameter list of a subprogram specification.
Answer: Formal parameter
Which of the following rules is INCORRECT about cursor variables?
Answer: None of the choices.
When an exception is predefined by Oracle server, the exception is raised ____________ .
Answer: Explicitly
Which of the following DOES NOT describes an exception?
Answer: Exception is a PL/SQL error that is raised before program execution.
Evaluate the following PL/SQL.
CREATE OR REPLACE PROCEDURE query_employee
(p_id IN employees.employee_id%TYPE,
p_name OUT employees.last_name%TYPE,
p_salary OUT employees.salary%TYPE) IS
BEGIN SELECT last_name, salary INTO p_name, p_salary
FROM employeesWHERE employee_id = p_id;
END query_employee
Answer: No error
You want to know the total number of employees whose firstname starts with letter D.
Which of the folllowing PLS/SQL executes successfully?
Answer: DECLARE
v_first_name employees.first_name%TYPE := 'D%';
BEGIN
SELECT COUNT(*) INTO v_first_name FROM employees WHERE first_name LIKE v_first_name;
DBMS_OUTPUT.PUT_LINE(v_first_name);
END;
What is the error trapping function that returns the numeric value of the error code?
Answer: SQLCODE
You want to display the name, salary and tax of employee #150. Which of the PL/SQL will execute
successfully? Note tax is computed as 2% of the salary.
Answer: DECLARE
v_first_name VARCHAR2(50);
v_last_name VARCHAR2(50);
v_salary INTEGER(20);
v_tax INTEGER(10);
BEGIN
SELECT first_name, last_name, salary, salary * 0.02 INTO v_first_name, v_last_name, v_salary,
v_tax FROM employees WHERE employee_id = 150;
DBMS_OUTPUT.PUT_LINE('Firstname : '|| v_first_name);
DBMS_OUTPUT.PUT_LINE('Lastname : '|| v_last_name);
DBMS_OUTPUT.PUT_LINE('Salary : '|| v_salary);
DBMS_OUTPUT.PUT_LINE('Tax : '|| v_tax);
END;
Which of the following is the syntax to close a cursor?
Answer: CLOSE cursor_variable_name;
Which of the following rules is INCORRECT about cursor variables?
Answer: None of the choices.
What are the three PL/SQL block types?
Answer: Anonymous, Procedure, Function
You can trap any error by including a corresponding handler within the exception-handling section of
the PL/SQL block.
Answer: True
Which of the following describes weak REF CURSOR?
Answer: Associates with any query
Given the answer in item __________, which of the folllowing stored procedure will display the
employee id and salary of Steven King?
Answer: DECLARE
v_employee_id employees.employee_id%TYPE;
v_emp_sal employees.salary%TYPE;
BEGIN
query_emp('King', 'Steven', v_employee_id, v_emp_sal);
DBMS_OUTPUT.PUT_LINE('Employee ID ' || v_employee_id ||' earns '|| to_char(v_emp_sal,
'$999,999.00'));
END;
You have been tasked to update the database by creating a PL/SQL to increase the salary of all IT
Programmer employees by 50% 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 *0.50 WHERE job_id = v_job_id;
END;
Which of the folllowing is required in a subquery?
Answer: SELECT
What is the exception name when PL/SQL has an internal problem
Answer: PROGRAM_ERROR
In the DECLARE section of the PL/SQL block,
Answer: All of the choices
Actions are being performed when error occurs during PL/SQL execution in the
Answer: EXCEPTION
What is the exception name when PL/SQL has an internal problem
Answer: PROGRAM_ERROR
Which of the folllowing statement describes PL/SQL?
Answer: PL/SQL is an Oracle proprietary, procedural, 3GL programming language
Evaluate the following PL/SQL.
DECLARE
v_employee_id employees.employee_id%TYPE := 114;
BEGIN
DELETE employees WHERE employee_id = v_employee_id;
END;
Answer: The PL/SQL will delete employee number 114.
Which of the following command is used to create a stand-alone procedure that is stored in the
Oracle database?
Answer: CREATE PROCEDURE
Evaluate the following PL/SQL.
DECLARE
v_email VARCHAR(20);
BEGIN
SELECT email INTO v_email FROM EMPLOYEES WHERE email like 'D%';
DBMS_OUTPUT.PUT_LINE ('Employees whose email address starts with letter D :'
|| v_email);
EXCEPTION
WHEN TOO_MANY_ROWS THEN
DBMS_OUTPUT.PUT_LINE (' Your select statement retrieved multiple rows.');
END;
Answer: The PL/SQL block will run successfully.
Which of the following is the syntax to define a REF CURSOR type?
Answer: TYPE ref_type_name IS REF CURSOR
[RETURN return_type];
The PL/SQL code block helps modularize code by using:
Answer: All of the choices
Which of the following is the syntax to fetch from a cursor variable?
Answer: FETCH cursor_variable_name INTO variable_name1
[,variable_name2,. . .] | record_name;
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')
Procedure can be stored in the database as a schema object.
Answer: True
In PL/SQL Block Structure, which of the following are mandatory?
Answer: BEGIN and END
PL/SQL stands for
Answer: Procedural Language extension to SQL
Which of the following is CORRECT about sub-queries?
Answer: Subquery execute before the main query executes.
Which of the following does NOT describes SELECT Statement in a PL/SQL.
Answer: Queries must return only one column.
PL/SQL Provides a block structure for executable units of ________________.
Answer: Code
Evaluate the SQL command
SELECT employee_id, salary from employees where salary = ANY (SELECT salary FROM
employees WHERE job_id = 'IT_PROG') AND job_id = 'ST_CLERK'
Answer: This has no error.
Which of the following PL/SQL will execute successfully?
Answer: DECLARE
v_salary INTEGER(20);
BEGIN
SELECT salary INTO v_salary FROM employees WHERE employee_id = 150;
END;
In PL/SQL Block Structure, which of the following are OPTIONAL?
Answer: None of the choices
Evaluate the following PL/SQL. At what line number is the error of the PL/SQL?
DECLARE
v_deptno NUMBER := 800;
e_invalid EXCEPTION;
BEGIN
DELETE FROM departments
WHERE department_id = v_deptno;
IF SQL % NOT_FOUND THEN
RAISE e_invalid;
END IF;
COMMIT;
EXCEPTION
WHEN e_invalid THEN
DBMS_OUTPUT.PUT_LINE('No such department id.');
END;
Answer: 7
What is the error trapping function that returns the numeric value of the error code?
Answer: SQLCODE
Fetch into a record when fetching from a cursor.
Answer: True

Which of the following is the syntax to open a cursor varial


Answer: OPEN cursor_variable_name
FOR select_statement;
Which of the following is the syntax to define a REF CURSOR type?
Answer: TYPE ref_type_name IS REF CURSOR
[RETURN return_type];
Weak REF CURSOR is very flexible.
Answer: True
Evaluate the following. What will be the output?
DECLARE
SUBTYPE Accumulator IS NUMBER (4,2);
v_amount accumulator;
v_num1 NUMBER;
v_num2 NUMBER;
v_num3 NUMBER;
BEGIN
v_amount := 10.50;
v_num1 := 1;
v_num2 := 2;
v_num3 := 3;
v_num1 := v_amount;
v_num2 := v_num1 + v_amount;
v_num2 := v_num2 - v_num3;
dbms_output.put_line('Total is: ' || v_num2);
END;
Answer: 18
Which of the following is the syntax to fetch from a cursor variable?
Answer: FETCH cursor_variable_name INTO variable_name1
[,variable_name2,. . .] | record_name;
Fetch into a record when fetching from a cursor.
Answer: True
Which of the following is the syntax to close a cursor?
Answer: CLOSE cursor_variable_name;
This is a subset of an existing data type that may place a constraint on its base type.
Answer: Subtype
Which of the following rules is INCORRECT about cursor variables?
Answer: None of the choices.
Use column aliases in cursors for calculated columns fetched into records declared with %COLUMNTYPE.
Answer: False
PROG-113A / ► Week 18: Designing PL/SQL / ► Learning Activity 14

Which of the following rules is INCORRECT about cursor variables?


Answer: None of the choices.
Which of the following describes weak REF CURSOR?
Answer: Associates with any query
Restrictive, specifies a RETURN type, associates only with type-compatible queries are
description of a ________________.
Answer: Strong REF CURSOR
Which of the following is INCORRECT about the guidelines for cursor design?
Answer: Use column aliases in cursors for calculated columns fetched into records declared with
%COLUMNTYPE.
This is a subset of an existing data type that may place a constraint on its base type.
Answer: Subtype

PROG-113A / ► Week 17: / ► Short Quiz 13


Evaluate the following PL/SQL.
CREATE OR REPLACE PROCEDURE query_employee
(p_id IN employees.employee_id%TYPE,
p_name OUT employees.last_name%TYPE,
p_salary OUT employees.salary%TYPE) IS
BEGIN SELECT last_name, salary INTO p_name, p_salary
FROM employeesWHERE employee_id = p_id;
END query_employee
Answer: No error
Evaluate the following PL/SQL. Which of the following will line creates an error?
CREATE OR REPLACE PROCEDURE query_emp
(
p_department_id IN employees.department_id%TYPE,
p_name OUT employees.last_name%TYPE,
p_salary OUT employees.salary%TYPE
)
IS
BEGIN
SELECT last_name, salary, department_id INTO p_name, p_salary, p_department_id
FROM employees
WHERE salary >= p_salary AND department_id = p_department_id ;
END query_emp;
Answer: Line 3
These are local variables declared in the parameter list of a subprogram specification.
Answer: Formal parameter
Given the answer in item __________, which of the folllowing stored procedure will display the
employee id and salary of Steven King?
Answer: DECLARE
v_employee_id employees.employee_id%TYPE;
v_emp_sal employees.salary%TYPE;
BEGIN
query_emp('King', 'Steven', v_employee_id, v_emp_sal);
DBMS_OUTPUT.PUT_LINE('Employee ID ' || v_employee_id ||' earns '|| to_char(v_emp_sal,
'$999,999.00'));
END;

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

PROG-113A / ► Week 16: Creating Procedures / ► Learning Activity 13


Procedure can be stored in the database as a schema object.
Answer: True
The PL/SQL code block helps modularize code by using:
Answer: All of the choices
Which of the following command is used to create a stand-alone procedure that is stored in the Oracle
database?
Answer: CREATE PROCEDURE
Which of the folllowing 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
Answer: iii & v
Which if the following is NOT a benefits of using modular program constructs?
Answer: None of the choices

PROG-113A / ► Week 18: Designing PL/SQL / ► Short Quiz 14


Which of the following is the syntax to open a cursor varial
Answer: OPEN cursor_variable_name
FOR select_statement;
Which of the following is the syntax to define a REF CURSOR type?
Answer: TYPE ref_type_name IS REF CURSOR
[RETURN return_type];
Weak REF CURSOR is very flexible.
Answer: True
Evaluate the following. What will be the output?
DECLARE
SUBTYPE Accumulator IS NUMBER (4,2);
v_amount accumulator;
v_num1 NUMBER;
v_num2 NUMBER;
v_num3 NUMBER;
BEGIN
v_amount := 10.50;
v_num1 := 1;
v_num2 := 2;
v_num3 := 3;
v_num1 := v_amount;
v_num2 := v_num1 + v_amount;
v_num2 := v_num2 - v_num3;
dbms_output.put_line('Total is: ' || v_num2);
END;
Answer: 18
Which of the following is the syntax to fetch from a cursor variable?
Answer: FETCH cursor_variable_name INTO variable_name1
[,variable_name2,. . .] | record_name;
Fetch into a record when fetching from a cursor.
Answer: True
Which of the following is the syntax to close a cursor?
Answer: CLOSE cursor_variable_name;
This is a subset of an existing data type that may place a constraint on its base type.
Answer: Subtype
Which of the following rules is INCORRECT about cursor variables?
Answer: None of the choices.
Use column aliases in cursors for calculated columns fetched into records declared with %COLUMNTYPE.
Answer: False

PROG-113A / ► Week 18: Designing PL/SQL / ► Learning Activity 14

Which of the following rules is INCORRECT about cursor variables?


Answer: None of the choices.
Which of the following describes weak REF CURSOR?
Answer: Associates with any query
Restrictive, specifies a RETURN type, associates only with type-compatible queries are
description of a ________________.
Answer: Strong REF CURSOR
Which of the following is INCORRECT about the guidelines for cursor design?
Answer: Use column aliases in cursors for calculated columns fetched into records declared with
%COLUMNTYPE.
This is a subset of an existing data type that may place a constraint on its base type.
Answer: Subtype

PROG-113A / ► Week 15: Long Quiz / ► Long Quiz 3 (30/30)


(Correction)
How do you test the output of a PL/SQL block?
Answer: Use a predefined Oracle package and its procedure
Which of the folllowing statement describes PL/SQL?
Answer: PL/SQL is an Oracle proprietary, procedural, 3GL programming language
Which of the following syntax to declare EXCEPTION named e_invalid_id?
Answer: e_invalid_id EXCEPTION;
In PL/SQL Block Structure, which of the following are mandatory?
Answer: BEGIN and END
This is a type of cursor which is created and managed internally by the Oracle server to process
SQL statements
Answer: Implicit
PL/SQL stands for
Answer: Procedural Language extension to SQL
Which of the following PL/SQL will execute successfully?
Answer: DECLARE
v_salary INTEGER(20);
BEGIN
SELECT salary INTO v_salary FROM employees WHERE employee_id = 150;
END;
What is the last clause in trapping exceptions?
Answer: WHEN OTHERS
PL/SQL Provides a block structure for executable units of ________________.
Answer: Code
Evaluate the following PL/SQL.
DECLARE
v_email VARCHAR(20);
BEGIN
SELECT email INTO v_email FROM EMPLOYEES WHERE email like 'D%';
DBMS_OUTPUT.PUT_LINE ('Employees whose email address starts with letter D :'
|| v_email);
EXCEPTION
WHEN TOO_MANY_ROWS THEN
DBMS_OUTPUT.PUT_LINE (' Your select statement retrieved multiple rows.');
END;
Answer: The PL/SQL block will run successfully.
Which of the folllowing is TRUE?
Answer: SQL code are embedded within PL/SQL statements
You can trap any error by including a corresponding handler within the exception-handling
section of the PL/SQL block.
Answer: True
When an exception is user defined, the exception is raised ____________ .
Answer: Explicitly
Evaluate the PL/SQL
DECLARE
v_first_name VARCHAR2(50);
v_last_name VARCHAR2(50);
v_salary INTEGER(20);
BEGIN
SELECT first_name, last_name, salary INTO v_first_name, v_last_name, v_salary FROM
employees WHERE department_id = 60;
DBMS_OUTPUT.PUT_LINE('Firstname : '|| v_first_name);
DBMS_OUTPUT.PUT_LINE('Lastname : '|| v_last_name);
DBMS_OUTPUT.PUT_LINE('Salary : '|| v_salary);
END;
Answer: Error in Line 6.
Evaluate the following PL/SQL.
DECLARE
v_employee_id employees.employee_id%TYPE := 114;
BEGIN
DELETE employees WHERE employee_id = v_employee_id;
END;
Answer: The PL/SQL will delete employee number 114.
Which of the following does NOT describes SELECT Statement in a PL/SQL.
Answer: Queries must return only one column.
What are the three PL/SQL block types?
Answer: Anonymous, Procedure, Function
What is the exception name when PL/SQL has an internal problem
Answer: PROGRAM_ERROR
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?
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;
What is the error trapping function that returns the numeric value of the error code?
Answer: SQLCODE
What is the exception name when single row SELECT returned no data.
Answer: NO_DATA_FOUND
Which of the following DOES NOT describes an exception?
Answer: Exception is a PL/SQL error that is raised before program execution.
Evaluate the following PL/SQL.
DECLARE
v_employee_id employees.employee_id%TYPE := 114;
BEGIN
DELETE employees WHERE employee_id = v_employee_id;
END;
Answer: The PL/SQL will delete employee number 114.
In the DECLARE section of the PL/SQL block,
Answer: All of the choices
When an exception is predefined by Oracle server, the exception is raised ____________ .
Answer: Explicitly
Which of the will display the Employee ID and number of years in service with employee ID
150?
Answer: DECLARE
v_salaryemployees.salary%TYPE := 10000;
v_employee_idemployees.employee_id%TYPE := 150;
v_years INTEGER(10);
BEGIN
SELECT employee_id, ROUND((SYSDATE - hire_date) /365,0) INTO v_employee_id, v_years
FROM employees WHERE employee_id = v_employee_id ;
DBMS_OUTPUT.PUT_LINE('Employee ID:' || v_employee_id);
DBMS_OUTPUT.PUT_LINE('Number of years : ' || v_years);
END;
Actions are being performed when error occurs during PL/SQL execution in the
Answer: EXCEPTION
You can use this procedure to issue user-defined error messages from stored subprograms.
Answer: RAISE_APPLICATION_ERROR

PROG-113A / ► Week 14: Handling Exceptions / ► Short Quiz 12

Evaluate the following PL/SQL.


DECLARE
v_email VARCHAR(20);
BEGIN
SELECT email INTO v_email FROM EMPLOYEES WHERE email like 'D%';
DBMS_OUTPUT.PUT_LINE ('Employees whose email address starts with letter D :'
|| v_email);
EXCEPTION
WHEN TOO_MANY_ROWS THEN
DBMS_OUTPUT.PUT_LINE (' Your select statement retrieved multiple rows.');
END;
Answer: The PL/SQL block will run successfully.
Which of the following DOES NOT describes an exception?
Answer: Exception is a PL/SQL error that is raised before program execution.
What is the exception name when single row SELECT returned no data.
Answer: NO_DATA_FOUND
RAISE_APPLICATION_ERROR is used in two different places. These are
___________________.
Answer: Executable and exceptions section
What is the error trapping function that returns the numeric value of the error code?
Answer: SQLCODE
What is the exception name when PL/SQL has an internal problem
Answer: PROGRAM_ERROR
Evaluate the following PL/SQL. At what line number is the error of the PL/SQL?
DECLARE
v_deptno NUMBER := 800;
e_invalid EXCEPTION;
BEGIN
DELETE FROM departments
WHERE department_id = v_deptno;
IF SQL % NOT_FOUND THEN
RAISE e_invalid;
END IF;
COMMIT;
EXCEPTION
WHEN e_invalid THEN
DBMS_OUTPUT.PUT_LINE('No such department id.');
END;
Answer: 7
What is the last clause in trapping exceptions?
Answer: WHEN OTHERS
Complete the diagram in Trapping Non-Predefined Oracle Server Errors.
Answer: Declare, Associate, Reference

PROG-113A / ► Week 14: Handling Exceptions / ► Learning Activity 12

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

PROG-113A / ► Week 13: Interacting with Oracle Server / ► Learning Activity 11

Which of the following does NOT describes SELECT Statement in a PL/SQL.


Answer: Queries must return only one column.
Evaluate the following PL/SQL.
1 DECLARE

2 v_employee_id employees.employee_id%TYPE := 114;

3 BEGIN

4 DELETE employees WHERE employee_id = 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;

PROG-113A / ► Week 12: Introduction to PLSQL / ► Short Quiz 10

Which of the folllowing is TRUE?


Answer: SQL code are embedded withing PL/SQL statements
In the DECLARE section of the PL/SQL block
Answer: All of the choices
In PL/SQL Block Structure, which of the following are OPTIONAL?
Answer: None of the choices
What are the three PL/SQL block types?
Answer: Anonymous, Procedure, Function
How do you test the output of a PL/SQL block?
Answer: Use a predefined Oracle package and its procedure
You want to display the name, salary and tax of employee #150. Which of the PL/SQL will
execute successfully? Note tax is computed as 2% of the salary.
Answer: DECLARE
v_first_name VARCHAR2(50);
v_last_name VARCHAR2(50);
v_salary INTEGER(20);
v_tax INTEGER(10);
BEGIN
SELECT first_name, last_name, salary, salary * 0.02 INTO v_first_name, v_last_name,
v_salary, v_tax FROM employees WHERE employee_id = 150;
DBMS_OUTPUT.PUT_LINE('Firstname : '|| v_first_name);
DBMS_OUTPUT.PUT_LINE('Lastname : '|| v_last_name);
DBMS_OUTPUT.PUT_LINE('Salary : '|| v_salary);
DBMS_OUTPUT.PUT_LINE('Tax : '|| v_tax);
END;
Which of the folllowing statement describes PL/SQL?
Answer: PL/SQL is an Oracle proprietary, procedural, 3GL programming language

PROG-113A / ► Week 12: Introduction to PLSQL / ► Learning Activity 10


PL/SQL stands for
Answer: Procedural Language extension to SQL
PL/SQL Provides a block structure for executable units of ________________.
Answer: Code
In PL/SQL Block Structure, which of the following are mandatory?
Answer: BEGIN and END
Which of the following PL/SQL will execute successfully?
Answer: DECLARE
v_salary INTEGER(20);
BEGIN
SELECT salary INTO v_salary FROM employees WHERE employee_id = 150;
END;
Actions are being performed when error occurs during PL/SQL execution in the
Answer: EXCEPTION

PROG-113A / ► Week 11: Using Subqueries to Solve Queries / ► Short Quiz 9


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')

Evaluate the SQL command


SELECT employee_id, job_id, salary from employees where salary < ALL (SELECT salary
FROM employees WHERE job_id = 'FI_ACCOUNT') AND job_id = 'IT_PROG'
Answer: This has no error.

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')

Evaluate the SQL command


SELECT employee_id, last_name, first_name, job_id FROM employees WHERE department_id
= (SELECT max(department_id) FROM employees GROUP BY department_id)
Answer: This will return an error. Single-row subquery returns more than one row.

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)

PROG-113A / ► Week 11: Using Subqueries to Solve Queries / ► Learning Activity 9


Which of the following is INCORRECT?
Answer: Use single-row operators with multiple-row subqueries
Which of the folllowing is required in a subquery?
Answer: SELECT
Which of the following is CORRECT about sub-queries?
Answer: Subquery execute before the main query executes.
Evaluate the SQL Command
SELECT job_id, job_title FROM jobs J WHERE INCLUDES
(SELECT * FROM employees WHERE J.job_id = e.job_id );
Answer: The SQL will return an error. Invalid "INCLUDES" parameter.
Evaluate the SQL command
SELECT employee_id, salary from employees where salary = ANY (SELECT salary FROM employees
WHERE job_id = 'IT_PROG') AND job_id = 'ST_CLERK'
Answer: This has no error.

Question 1
Complete
Mark 2.00 out of 2.00

Flag question

Question text
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 one:
a. SELECT job_title FROM jobs WHERE min_salary >= 5000 AND max_salary<= 10000
b. SELECT job_title FROM employees WHERE salary >= 5000 AND salary <= 10000
c. 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
Complete
Mark 2.00 out of 2.00

Flag question

Question text
What is the SQL command to count the number of records in the employees table?

Select one:
a. SELECT ALL FROM employees
b. SELECT * FROM employees;
c. SELECT COUNT(*) FROM employees
d. SELECT SUM(*) FROM employees;

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

Question 4
Complete
Mark 2.00 out of 2.00

Flag question

Question text
Evaluate the following SQL command
SELECT * FROM jobs WHERE job_title LIKE 'Manager%'

Select one:
a. The SQL command will produce an error.
b. The SQL command will display all employees with Manager position
c. The SQL command will display all records in the database
d. No records will be displayed

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:
a. SELECT employee_id, hire_date, TO_DATE(hire_date,'Month') AS "Hired Month", job_id FROM
b. SELECT employee_id, hire_date, MONTH(hire_date,'Month') AS "Hired Month", job_id FROM
employees
c. SELECT employee_id, hire_date, TO_CHAR(hire_date,'Month') AS "Hired Month", job_id FROM
employees
d. SELECT employee_id, hire_date, TO_MONTH(hire_date,'Month') AS "Hired Month", job_id
FROM employees

Question 6
Complete
Mark 2.00 out of 2.00

Flag question

Question text
You want to generate the total salary per month of every department in the company.

Select one:
a. SELECT department_id, salary FROM employees ORDER BY SUM(salary)
b. SELECT department_id, TOTAL(salary) FROM employees GROUP BY department_id
c. SELECT department_id, salary FROM employees GROUP BY SUM(salary) ORDER BY
department_id
d. SELECT department_id, SUM(salary) FROM employees GROUP BY 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:
a. SELECT last_name, TO_INT(salary, '$999,999.99') AS "MONTHLY SALARY" FROM employees
WHERE salary < 10,000 WHERE last_name STARTS 'D%'
b. SELECT last_name, TO_CHAR(salary, '$999,999.99') AS "MONTHLY SALARY" FROM
employees WHERE salary < 10000 WHERE last_name LIKE 'D%'
c. SELECT last_name, TO_INTEGER(salary, $999,999.99) AS "MONTHLY SALARY" FROM
employees WHERE salary < 10000 WHERE last_name IN 'D%'
d. SELECT last_name, TO_NUMBER(salary, '$999,999.99') AS "MONTHLY SALARY" FROM
employees WHERE salary < 10,000 WHERE last_name = ‘D%’

Question 8
Complete
Mark 2.00 out of 2.00

Flag question

Question text
Display the lastname of every employee in the company. Display the output in a single column and
label it as Fullname
Format: JuanReyes

Select one:
a. None of the choices
b. SELECT CONCATENATE(first_name, last_name) AS Fullname FROM employees
c. SELECT CONCAT(first_name, last_name) FROM employees
d. SELECT CONCAT(first_name, last_name) AS Fullname FROM employees

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:
a. SELECT SUBSTR(last_name,1,5), first_name FROM employees WHERE first_name IN 'N'
b. SELECT SUBSTR(last_name,1,5), first_name FROM employees WHERE
SUBSTR(first_name,1,1) = 'N'
c. SELECT SUBSTR(surname,1,5), first_name FROM employees WHERE SUBSTR(first_name,1,1)
IN 'N'
d. SELECT SUBSTR(surname,1,5), first_name FROM employees WHERE first_name = 'N'
e. SELECT SUBSTR(last_name,1,5), first_name FROM employees WHERE
SUBSTR(first_name,1,1) IN 'N'

Question 10
Complete
Mark 2.00 out of 2.00

Flag question

Question text
Austin David was transferred to Purchasing Department. You are assigned to update the database.
Which of the following SQL command will satisfy the requirements?

Select one:
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’
d. UPDATE employees SET department_id = 30 WHERE first_name = ‘David’ AND last_name =
‘Austin’

Question 11
Complete
Mark 2.00 out of 2.00

Flag question

Question text
John want to know how many employees receiving salary below 10,000.
What SQL command he need to run?

Select one:
a. SELECT COUNT(*) FROM employees WHERE salary < 10000;
b. SELECT COUNT(salary) FROM employees WHERE salary < 10,000;
c. SELECT COUNT(emp_id) FROM employees WHERE salary <= 10000;
d. SELECT salary FROM COUNT(employees)WHERE salary < 10000;

Question 12
Complete
Mark 2.00 out of 2.00

Flag question

Question text
Evaluate the following SQL command
SELECT employee_id, salary, department_id FROM employees WHERE department_id IN (60,70)

Select one:
a. The SQL command will produce an error.
b. The SQL command will display employees with department id 60 and 70.
c. The SQL command will give an incorrect output.
d. The SQL command will display employees with department id 60 or 70.

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 give the required output?

Select one:
a. SELECT last_name, hire_date FROM employees WHERE hire_date>=
TO_DATE('01-Jan-2006', 'DD-Mon-RR') AND hire_date<= TO_DATE('31-Dec-2006', 'DD-Mon-RR')
AND salary > 5000;
b. SELECT last_name, hire_date FROM employees WHERE hire_date>=
TO_DATE('Jan-2000', 'Month-YYYY') AND hire_date<= TO_DATE('Dec-2006', 'Month-‘YYYY') AND
salary > 5,000;
c. 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;
d. SELECT last_name, hire_date FROM employees WHERE hire_date>=
TO_DATE('2000', 'YYYY') AND hire_date<= TO_DATE('2006', 'YYYY') OR salary > 5000;

Question 14
Complete
Mark 2.00 out of 2.00

Flag question

Question text
List all employees except for IT_PROG job id.

Select one:
a. SELECT *FROM employees EXCEPT JOB_ID != 'IT_PROG'
b. SELECT *FROM employees WHERE JOB_ID NOT IN ('IT_PROG')
c. SELECT *FROM employees WHERE JOB_ID <> 'IT_PROG'
d. All of the choices

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:
a. The SQL will produce Cartesian Product
b. The SQL will display the employee id, department id and the minimum and maximum salary
whose salary is between 10000 and 20000.
c. The SQL command will produce an error.
d. The SQL command will give an incorrect output.

Question 16
Complete
Mark 2.00 out of 2.00
Flag question

Question text
Display all the records in the employee table. Arrange the output in by lastname from A-Z order.

Select one:
a. SELECT * FROM employees SORT BY lastname
b. SELECT * FROM employees ORDER BY lastname
c. SELECT * FROM employees ORDER BY lastname AZ
d. SELECT * FROM employees SORT BY lastname ascending

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:
a. SELECT employee_id, first_name, last_name FROM employees ORDER BY department_id
WHERE first_name LIKE 'D%' and job_id = 'IT_PROG'
b. SELECT employees FROM employee_id, first_name, last_name WHERE first_name LIKE ‘D%’
and job_id = ‘IT_PROG’ ORDER BY department_id
c. SELECT employee_id, first_name, last_name FROM employees WHERE job_id = 'IT_PROG' OR
first_name LIKE 'D%' and 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 command will produce the output.

Select one:
a. SELECT AVERAGE(salary) FROM employees WHERE job_id = 'FI_ACCOUNT';
b. SELECT AVG(salary) FROM employees WHERE job_id = 'FI_ACCOUNT';
c. SELECT AVE(salary) FROM employees WHERE job_id = 'FI_ACCOUNT';
d. SELECT COUNT AVG(salary) FROM employees WHERE job_id = 'FI_ACCOUNT';

Question 19
Complete
Mark 2.00 out of 2.00

Flag question

Question text
Display all location id between 1000 to 2000.

Select one:
a. DISPLAY location_id FROM departments WHERE location_id LING 1000 UP TO 2000
b. DISPLAY location_id FROM departments WHERE location_id BETWEEN 1000 TO 2000
c. SELECT location_id FROM departments WHERE location_id IN 1000 AND 2000
d. SELECT location_id FROM departments WHERE location_id BETWEEN 1000 AND 2000

Question 20
Complete
Mark 2.00 out of 2.00

Flag question

Question text
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 one:
a. SELECT employee_id, salary, salary + (salary .03) FROM employees
b. SELECT employee_id, salary, salary * .03 FROM employees
c. SELECT employee_id, salary, salary * 1.03 FROM employees
d. SELECT employee_id, salary FROM employees WHERE salary)
e. SELECT employee_id, salary, salary * .30 FROM employees

Question 21
Complete
Mark 2.00 out of 2.00

Flag question

Question text
Display the employee id, salary, number of years and the hiring date of every employee in the
company.

Select one:
a. SELECT employee_id,salary, hire_date, hire_date- SYSDATE /365 FROM employees;
b. SELECT employee_id, salary, hire_date, ROUND((SYSDATE - hire_date) /365,0) FROM
employees;
c. SELECT employee_id, salary, hire_date, hire_date /365 FROM employees;

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:
a. SELECT E.employee_id, J.job_title, e.job_id, D.department_name
FROM employees E
JOIN jobs J ON E.job_id = J.job_id
JOIN departments D ON E.department_id = D.department_id
WHERE E.department_id = 100
b. SELECT E.employee_id, J.job_title, e.job_id, D.department_name
FROM employees E
JOIN department D ON E.job_id = J.job_id
JOIN jobs J ON E.department_id = D.department_id
WHERE E.department_id = 100
c. SELECT E.employee_id, J.job_title, e.job_id, D.department_name
FROM jobs J
INNER JOIN department D ON E.job_id = J.job_id
INNER JOIN employees EON E.department_id = D.department_id
WHERE E.department_id = 100
d. SELECT E.employee_id, J.job_title, e.job_id, D.department_name
FROM jobs J
NATURAL JOIN department D ON E.job_id = J.job_id
NATURAL JOIN employees E ON E.department_id = D.department_id
WHERE E.department_id = 100

Question 23
Complete
Mark 2.00 out of 2.00

Flag question

Question text
In creating Joins,the NATURALJOIN and USING clauses are____________

Select one:
a. Mutually Inclusive
b. Limited to 2 relational tables
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 working in Finance Department. Label the annual salary to ANNUAL
SALARY.
Sort the output in from highest to lowest salary. (4 POINTS)

Select one:
a. 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
NATURAL JOIN jobs J ON E.job_id = J.job_id
NATURAL JOIN departments D ON E.department_id = D.department_id
ORDER BY "ANNUAL SALARY" DESC
WHERE D.location_id = 1700 AND D.department_name = 'Finance'
b. 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
JOINemployees E ON E.department_id = D.department_id
WHERE D.location_id = 1700 AND D.department_name = 'Finance'
ORDER BY "ANNUAL SALARY" DESC
c. 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
d. 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
OUTER JOIN jobs J ON E.job_id = J.job_id
OUTER 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
PROG-113A-LAB-1812S / (47/50)► Week 10: Quarterly Examination / ► First
Quarter Exam

Question 1
Answer saved
Marked out of 1.00

Remove flag

Question text
You can relate data to multiple tables using a foreign key.

Select one:
True
False

Question 2
Answer saved
Marked out of 1.00

Remove flag

Question text
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.

Select one:
a. SELECT (ONHAND-5) + 5(* WAREHOUSE), DESCRIPTION FROM PARTS;
b. SELECT ONHAND-5 + 5 * WAREHOUSE, DESCRIPTION FROM PARTS;
c. SELECT (ONHAND-5) + 5 * WAREHOUSE, DESCRIPTION FROM PARTS;
d. SELECT ONHAND-5 + 5 (* WAREHOUSE), DESCRIPTION FROM PARTS;

Question 3
Answer saved
Marked out of 1.00
Flag question

Question text
INSERT, DELETE, UPDATE are ________________ commands

Select one:
a. DCL
b. DML
c. DDL
d. All of the choices

Question 4
Answer saved
Marked out of 1.00

Flag question

Question text
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 one:
a. SELECT employee_id, salary, salary * .03 FROM employees
b. SELECT employee_id, salary, salary * .30 FROM employees
c. SELECT employee_id, salary, salary * 1.03 FROM employees
d. SELECT employee_id, salary, salary + (salary .03) FROM employees
e. SELECT employee_id, salary FROM employees WHERE salary)

Question 5
Answer saved
Marked out of 1.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 K.
Which SQL statement give the required output format of the salary?
Select one:
a. SELECT last_name, TO_CHAR(salary, '$999,999.99') AS "MONTHLY SALARY" FROM
employees WHERE salary < 10000WHERE last_name LIKE ‘K%’
b. SELECT last_name, TO_NUMBER(salary, '$999,999.99') AS "MONTHLY SALARY" FROM
employees WHERE salary < 10,000WHERE last_name = ‘K%’
c. SELECT last_name, TO_INTEGER(salary, $999,999.99) AS "MONTHLY SALARY" FROM
employees WHERE salary < 10000 WHERE last_name IN 'K%'
d. SELECT last_name, TO_INT(salary, '$999,999.99') AS "MONTHLY SALARY" FROM
employees WHERE salary < 10,000 WHERE last_name STARTS 'K%'

Question 6
Answer saved
Marked out of 1.00

Remove flag

Question text
Which of the following is the correct report that will display the CLASS from table PARTS.

Select one:
a. SELECT * CLASS FROM PARTS;
b. SELECT CLASS AS CLASS FROM PARTS;
c. SELECT 'CLASS' FROM PARTS;
d. SELECT CLASS FROM PARTS;

Question 7
Answer saved
Marked out of 1.00

Remove flag

Question text
Evaluate the following SQL command
SELECT employee_id, salary, department_id FROM employees WHERE department_id IN (60,70)
Select one:
a. The SQL command will display employees with department id 60 or 70.
b. The SQL command will give an incorrect output.
c. The SQL command will produce an error.
d. The SQL command will display employees with department id 60 and 70.

Question 8
Answer saved
Marked out of 1.00

Remove flag

Question text
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 one:
a. SELECT AVG(salary) FROM employees WHERE job_id = 'FI_ACCOUNT';
b. SELECT AVE(salary) FROM employees WHERE job_id = 'FI_ACCOUNT';
c. SELECT AVERAGE(salary) FROM employees WHERE job_id = 'FI_ACCOUNT';
d. SELECT COUNT AVG(salary) FROM employees WHERE job_id = 'FI_ACCOUNT';

Question 9
Answer saved
Marked out of 1.00

Remove flag

Question text
Evaluate the following SQL command
SELECT employee_id, min_salary, max_salary FROM employees, departments WHERE
salary>= 10000 && salary <= 20000

Select one:
a. The SQL will produce Cartesian Product
b. The SQL will display the employee id, department id and the minimum and maximum salary
whose salary is between 10000 and 20000.
c. The SQL command will give an incorrect output.
d. The SQL command will produce an error.

Question 10
Answer saved
Marked out of 1.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:
a. SELECT last_name, TO_INTEGER(salary, $999,999.99) AS "MONTHLY SALARY" FROM
employees WHERE salary < 10000 WHERE last_name IN 'D%'
b. SELECT last_name, TO_INT(salary, '$999,999.99') AS "MONTHLY SALARY" FROM
employees WHERE salary < 10,000 WHERE last_name STARTS 'D%'
c. SELECT last_name, TO_CHAR(salary, '$999,999.99') AS "MONTHLY SALARY" FROM
employees WHERE salary < 10000 WHERE last_name LIKE 'D%'
d. SELECT last_name, TO_NUMBER(salary, '$999,999.99') AS "MONTHLY SALARY" FROM
employees WHERE salary < 10,000 WHERE last_name = ‘D%’

Question 11
Answer saved
Marked out of 1.00

Flag question

Question text
Which of the following will is the correct command to create a role.

Select one:
a. CREATE ROLE gen_manager
b. None of the choices
c. GRANT ROLE gen_manager
d. CREATE gen_manager ROLE

Question 12
Answer saved
Marked out of 1.00

Flag question

Question text
What is the SQL command to display the date of the first employee that was hired?

Select one:
a. SELECT FIRST(hire_date) FROM employees;
b. SELECT hire_date FROM employees WHERE TO_CHAR(hire_date) = ‘FIRST’;
c. SELECT MIN(hire_date) FROM employees;
d. SELECT hire_date FROM employees WHERE FIRST(hire_date );

Question 13
Answer saved
Marked out of 1.00

Flag question

Question text
You want to display the employee id and the year when an employee was hired.
Which SQL statement give the required output?

Select one:
a. SELECT employee_id, YEAR(hire_date,'YYYY') FROM employees;
b. SELECT employee_id, YEAR(hire_date') FROM employees;
c. SELECT employee_id, TO_YEAR(hire_date,'YYYY') FROM employees;
d. SELECT employee_id, TO_CHAR(hire_date,'YYYY') FROM employees;

Question 14
Answer saved
Marked out of 1.00

Remove flag

Question text
Evaluate the following SQL command
SELECT employee_id, hire_date, department_name FROM employees, departments
WHERE departments.department_id = employees.department_id

Select one:
a. The SQL command will produce an error.
b. The SQL command will give an incorrect output.
c. The SQL command should have ALIAS for the table to produce a correct output.
d. The SQL command will produce a correct output.

Question 15
Answer saved
Marked out of 1.00

Remove flag

Question text
Display all the records whose stock is below 20 and in warehouse number 3.

Select one:
a. SELECT * FROM parts WHERE onhand< 20 OR warehouse = 3;
b. SELECT * FROM parts WHERE onhand> 20 OR warehouse = 3;
c. SELECT * FROM parts WHERE onhand< 20 AND warehouse = 3;
d. SELECT * FROM parts WHERE onhand<= 20 AND warehouse = 3;
e. SELECT ALL FROM parts WHERE onhand< 20 AND warehouse = 3;
f. SELECT ALL FROM parts WHERE onhand<= 20 AND warehouse = 3;

Question 16
Answer saved
Marked out of 1.00

Flag question

Question text
TRUE OR FALSE.
A FOREIGN KEY is a field in one table that refers to the PRIMARY KEY in another table.

Select one:
True
False

Question 17
Answer saved
Marked out of 1.00

Flag question

Question text
INDEX is an example of _____________________ privilege.

Select one:
a. System
b. None of the choices
c. Object
d. Data

Question 18
Answer saved
Marked out of 1.00

Flag question

Question text
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 one:
a. SELECT AVERAGE(salary) FROM employees WHERE job_id = 'IT_PROG';
b. SELECT AVE(salary) FROM employees WHERE job_id = 'IT_PROG';
c. SELECT AVG(salary) FROM employees WHERE job_id = 'IT_PROG';
d. SELECT COUNT AVG(salary) FROM employees WHERE job_id = 'IT_PROG';

Question 19
Answer saved
Marked out of 1.00
Flag question

Question text
A _______________ consists of a collection of DML statements that form a logical unit of work.

Select one:
a. All of the choices
b. Transaction
c. SQL command
d. Database

Question 20
Answer saved
Marked out of 1.00

Remove flag

Question text
Which of the following SELECT statement is the correct PL/SQL that will display all rows and
columns?

Select one:
a. SELECT TABLE PARTS;
b. SELECT FROM TABLE PARTS;
c. SELECT * FROM PARTS;
d. SELECT ALL FROM PARTS;

Question 21
Answer saved
Marked out of 1.00

Remove flag

Question text
Display all the records in the employee table. Arrange the output in by lastname from A-Z order.
Select one:
a. SELECT * FROM employees SORT BY lastname
b. SELECT * FROM employees ORDER BY lastname AZ
c. SELECT * FROM employees ORDER BY lastname
d. SELECT * FROM employees SORT BY lastname ascending

Question 22
Answer saved
Marked out of 1.00

Flag question

Question text
Austin David was transferred to Purchasing Department. You are assigned to update the database.
Which of the following SQL command will satisfy the requirements?

Select one:
a. UPDATE first_name = ‘David’ AND last_name = ‘Austin’ FROM employees SET
department_id = 30
b. UPDATE employees SET department_id = 30 WHERE first_name = ‘David’ AND last_name
= ‘Austin’
c. UPDATE department_id = 30 WHERE first_name = ‘David’ AND last_name = ‘Austin’
d. UPDATE employees WHERE department_id = 30 SET first_name = ‘David’ AND last_name
= ‘Austin’

Question 23
Answer saved
Marked out of 1.00

Flag question

Question text
The General Manager request to the Database Administrator to generate the total number of parts
and total outstanding balance on hand of every class in warehouse number 1&2.
Which of the following SQL command will generate the required output.

Select one:
a. SELECT warehouse, class, count(partnum), sum(onhand) GROUP BY warehouse,class
HAVING warehouse = 1 or warehouse = 2 FROM parts;
b. SELECT warehouse, class, count(partnum), sum(onhand) GROUP BY warehouse,class
WHERE warehouse = 1 or warehouse = 2 FROM parts;
c. SELECT warehouse, class, SUM(partnum), SUM(onhand) FROM parts GROUP BY
warehouse,class HAVING warehouse = 1 AND warehouse = 2;
d. SELECT warehouse, class, COUNT(partnum), SUM(onhand) FROM parts GROUP BY
warehouse,class HAVING warehouse = 1 OR warehouse = 2;

Question 24
Answer saved
Marked out of 1.00

Flag question

Question text
John want to know how many employees receiving salary below 10,000.
What SQL command he need to run?

Select one:
a. SELECT COUNT(salary) FROM employees WHERE salary < 10,000;
b. SELECT COUNT(*) FROM employees WHERE salary < 10000;
c. SELECT salary FROM COUNT(employees)WHERE salary < 10000;
d. SELECT COUNT(emp_id) FROM employees WHERE salary <= 10000;

Question 25
Answer saved
Marked out of 1.00

Flag question

Question text
What privileges that manipulates the content of the database objects.

Select one:
a. Object Privileges
b. Connection Privileges
c. Network Privileges
d. System Privileges
Question 26
Answer saved
Marked out of 1.00

Remove flag

Question text
Each row of data in a table can be uniquely identified by a

Select one:
a. foreign key
b. primary key
c. local key
d. relational key
e. index key

Question 27
Answer saved
Marked out of 1.00

Flag question

Question text
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 one:
a. SELECT job_title FROM employees WHERE salary >= 5000 AND salary <= 10000
b. SELECT employees_id, job_title FROM employees WHERE salary >= 5000 AND salary <=
10000
c. SELECT job_title FROM jobs WHERE salary >= 5000 AND salary <= 10000
d. SELECT job_title FROM jobs WHERE min_salary >= 5000 AND max_salary<= 10000

Question 28
Answer saved
Marked out of 1.00
Remove flag

Question text
Display all location id between 1000 to 2000.

Select one:
a. DISPLAY location_id FROM departments WHERE location_id LING 1000 UP TO 2000
b. SELECT location_id FROM departments WHERE location_id IN 1000 AND 2000
c. DISPLAY location_id FROM departments WHERE location_id BETWEEN 1000 TO 2000
d. SELECT location_id FROM departments WHERE location_id BETWEEN 1000 AND 2000

Question 29
Answer saved
Marked out of 1.00

Flag question

Question text
You want to display the employee's last name and date hired in year 2002 whose salary is above
5000.
Which SQL statement give the required output?

Select one:
a. 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-2002', 'DD-Mon-YYYY')AND salary
ABOVE 5000;
b. 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;
c. SELECT last_name, hire_date FROM employees WHERE hire_date >= TO_DATE('2000',
'YYYY') AND hire_date <= TO_DATE('2002', 'YYYY') OR salary > 5000;
d. SELECT last_name, hire_date FROM employees WHERE hire_date >= TO_DATE('Jan-
2000', 'Month-YYYY') AND hire_date <= TO_DATE('Dec-2002', 'Month-‘YYYY') AND salary > 5,000;

Question 30
Answer saved
Marked out of 1.00
Flag question

Question text
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 one:
a. SELECT partnum, price, price * 0.1 FROM parts WHERE warehouse = 3
b. SELECT partnum, price, price * 10% FROM parts WHERE warehouse = 3
c. SELECT partnum, price, price * 1.1 FROM parts WHERE warehouse = 3
d. SELECT partnum, price, price * 1.10% FROM parts WHERE warehouse = 3

Question 31
Answer saved
Marked out of 1.00

Remove flag

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 give the required output?

Select one:
a. 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;
b. SELECT last_name, hire_date FROM employees WHERE hire_date>=
TO_DATE('01-Jan-2006', 'DD-Mon-RR') AND hire_date<= TO_DATE('31-Dec-2006', 'DD-Mon-RR')
AND salary > 5000;
c. SELECT last_name, hire_date FROM employees WHERE hire_date>=
TO_DATE('Jan-2000', 'Month-YYYY') AND hire_date<= TO_DATE('Dec-2006', 'Month-‘YYYY') AND
salary > 5,000;
d. SELECT last_name, hire_date FROM employees WHERE hire_date>=
TO_DATE('2000', 'YYYY') AND hire_date<= TO_DATE('2006', 'YYYY') OR salary > 5000;

Question 32
Answer saved
Marked out of 1.00
Remove flag

Question text
Which of the following SQL commands will display all the stocks on hand from 10 to 30?

Select one:
a. SELECT * FROM parts WHERE BETWEEN onhand = 10 AND onhand = 30;
b. SELECT * FROM parts WHERE onhand BETWEEN 10 to 30;
c. SELECT * FROM onhand WHERE parts BETWEEN onhand = 10 AND onhand = 30;
d. SELECT * FROM parts WHERE onhand BETWEEN 10 AND 30;
e. SELECT * FROM parts WHERE BETWEEN onhand>=10 to onhand<=30;

Question 33
Answer saved
Marked out of 1.00

Flag question

Question text
ANSI SQL commands cannot be abbreviated.

Select one:
True
False

Question 34
Answer saved
Marked out of 1.00

Remove flag

Question text
Display the lastname of every employee in the company. Display the output in a single column and
label it as Fullname
Format: JuanReyes
Select one:
a. SELECT CONCATENATE(first_name, last_name) AS Fullname FROM employees
b. None of the choices
c. SELECT CONCAT(first_name, last_name) FROM employees
d. SELECT CONCAT(first_name, last_name) AS Fullname FROM employees

Question 35
Answer saved
Marked out of 1.00

Remove flag

Question text
Evaluate the following SQL command
SELECT * FROM jobs WHERE job_title LIKE 'Manager%'

Select one:
a. The SQL command will display all records in the database
b. The SQL command will display all employees with Manager position
c. No records will be displayed
d. The SQL command will produce an error.

Question 36
Answer saved
Marked out of 1.00

Flag question

Question text
Aldrin wants to know the highest salary in every department. Which of the following SQL command
will display the required output?

Select one:
a. SELECT department_id, HIGH(salary) FROM employees GROUP BY department_id AND
salary;
b. SELECT department_id, HIGHEST(salary) FROM employees GROUP BY salary;
c. SELECT department_id, MAX(salary) FROM employees GROUP BY department_id
d. SELECT department_id, MAXIMUM(salary) FROM employees GROUP BY department_id;
Question 37
Answer saved
Marked out of 1.00

Remove flag

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:
a. SELECT employee_id, hire_date, TO_MONTH(hire_date,'Month') AS "Hired Month", job_id
FROM employees
b. SELECT employee_id, hire_date, TO_DATE(hire_date,'Month') AS "Hired Month", job_id
FROM
c. SELECT employee_id, hire_date, MONTH(hire_date,'Month') AS "Hired Month", job_id FROM
employees
d. SELECT employee_id, hire_date, TO_CHAR(hire_date,'Month') AS "Hired Month", job_id
FROM employees

Question 38
Answer saved
Marked out of 1.00

Flag question

Question text
Which of the following describes the command below?
SELECT * FROM employees WHERE department = 60 FOR UPDATE

Select one:
a. Locks the rows in the EMPLOYEES table with department id is 60.
b. Unlock all records with department id = 60
c. All users accessing the department id 60 can accept UPDATE command simultaneously.
d. Creates a temporary table with department = 60

Question 39
Answer saved
Marked out of 1.00
Flag question

Question text
Display the employee id, number of years and the hiring date of every employee in the company.

Select one:
a. SELECT employee_id, hire_date, ROUND((SYSDATE - hire_date),0 /365,0) FROM
employees;
b. SELECT employee_id, hire_date, ROUND((SYSDATE - hire_date) /365,0) FROM employees;
c. SELECT employee_id, hire_date, hire_date /365 FROM employees;
d. SELECT employee_id, hire_date, hire_date- SYSDATE /365 FROM employees;

Question 40
Answer saved
Marked out of 1.00

Flag question

Question text
The DBA will create a new user name sales.
Which of the following SQL command will perform the creation?

Select one:
a. CREATE USER FR0M DB_USER SET user=’sales’ password=NULL
b. None of the choices
c. CREATE USERNAME sales SET PASSWORD default
d. CREATE sales ACCESS 1234
e. CREATE USER sales IDENTIFIED BY 1234

Question 41
Answer saved
Marked out of 1.00

Flag question
Question text
Which of the following SQL command will display the summary table showing the total quantity on
hand per class.

Select one:
a. SELECT class, TOTAL(onhand) AS "QTY ON HAND" FROM parts GROUP BY class, onhand
b. SELECT class, onhand AS "QTY ON HAND" FROM parts GROUP BY sum(onhand)
c. SELECT class, sum(onhand) AS "QTY ON HAND" FROM parts GROUP BY onhand
d. SELECT class, sum(onhand) AS "QTY ON HAND" FROM parts GROUP BY class

Question 42
Answer saved
Marked out of 1.00

Remove flag

Question text
Display the first 5 letter in the surname of all the employees whose firstname starts with letter 'N'

Select one:
a. SELECT SUBSTR(last_name,1,5), first_name FROM employees WHERE
SUBSTR(first_name,1,1) IN 'N'
b. SELECT SUBSTR(last_name,1,5), first_name FROM employees WHERE
SUBSTR(first_name,1,1) = 'N'
c. SELECT SUBSTR(surname,1,5), first_name FROM employees WHERE first_name = 'N'
d. SELECT SUBSTR(surname,1,5), first_name FROM employees WHERE
SUBSTR(first_name,1,1) IN 'N'
e. SELECT SUBSTR(last_name,1,5), first_name FROM employees WHERE first_name IN 'N'

Question 43
Answer saved
Marked out of 1.00

Flag question

Question text
Display the employee id, salary, number of years and the hiring date of every employee in the
company.
Select one:
a. SELECT employee_id,salary, hire_date, hire_date- SYSDATE /365 FROM employees;
b. SELECT employee_id, salary, hire_date, hire_date /365 FROM employees;
c. SELECT employee_id, salary, hire_date, ROUND((SYSDATE - hire_date) /365,0) FROM
employees;

Question 44
Answer saved
Marked out of 1.00

Flag question

Question text
True or False. The AND, OR, NOT are comparison operators.

Select one:
True
False

Question 45
Answer saved
Marked out of 1.00

Flag question

Question text
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 one:
a. SELECT employee_id, hire_date, MONTH(hire_date,'Month') AS "Hired Month",
job_id FROM employees WHERE job_id EXCLUDE ('AD_VP');
b. SELECT employee_id, hire_date, TO_CHAR(hire_date,'Month') AS "Hired Month", job_id
FROM employees WHERE job_id NOT IN ('AD_VP');
c. SELECT employee_id, hire_date, TO_MONTH(hire_date,'Month') AS "Hired Month", job_id
FROM employees WHERE job_id NOT ('AD_VP');
d. SELECT employee_id, hire_date, TO_DATE(hire_date,'Month') AS "Hired Month", job_id
FROM employees WHERE job_id NOT = 'AD_VP';
Question 46
Answer saved
Marked out of 1.00

Remove flag

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:
a. SELECT employees FROM employee_id, first_name, last_name WHERE first_name LIKE
‘D%’ and job_id = ‘IT_PROG’ ORDER BY department_id
b. SELECT employee_id, first_name, last_name FROM employees WHERE job_id = 'IT_PROG'
OR first_name LIKE 'D%' and ORDER BY department_id
c. SELECT employee_id, first_name, last_name FROM employees ORDER BY department_id
WHERE first_name LIKE 'D%' and job_id = 'IT_PROG'
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 47
Answer saved
Marked out of 1.00

Flag question

Question text
TRUE OR FALSE.
An owner has all the privileges on the object.

Select one:
True
False

Question 48
Answer saved
Marked out of 1.00
Flag question

Question text
You want to generate the total salary per month of every department in the company.

Select one:
a. SELECT department_id, SUM(salary) FROM employees GROUP BY department_id
b. SELECT department_id, salary FROM employees ORDER BY SUM(salary)
c. SELECT department_id, salary FROM employees GROUP BY SUM(salary) ORDER BY
department_id
d. SELECT department_id, TOTAL(salary) FROM employees GROUP BY department_id

Question 49
Answer saved
Marked out of 1.00

Flag question

Question text
Which of the following SQL commands will display all stocks whose class is HW or AP.

Select one:
a. SELECT * FROM parts WHERE IN (class = ‘HW’, class= ‘AP’);
b. SELECT ALL FROM class WHERE parts IN = (‘HW’, ‘AP’);
c. SELECT * FROM parts WHERE IN class ('HW', 'AP');
d. SELECT ALL FROM parts WHERE IN class = (‘HW’, ‘AP’);
e. SELECT * FROM parts WHERE class IN ('HW', 'AP');

Question 50
Answer saved
Marked out of 1.00

Flag question

Question text
What is the SQL command to count the number of records in the employees table?

Select one:
a. SELECT ALL FROM employees
b. SELECT * FROM employees;
c. SELECT COUNT(*) FROM employees
d. SELECT SUM(*) FROM employees;
AMALEAKS.BLOGSPOT.COM
PROG113A WEEK 1-20

SQL stands for LONG QUIZ PROG-113


LONG QUIZ NO. 4

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 – like additional characters and skills.”
ANSWER: 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
6. Kyoto protocol addresses environmental issues through the campaign of
____________________.
ANSWER: reducing greenhouse gas emissions
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
9. ____________________ is when you conduct regular audits and inspections to evaluate your
work performance.
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 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.
“One good thing I find with XYZ as when my laptop shuts down accidentally, my game score and
status can still be recovered. No need to repeat a level.”
ANSWER: Reliability
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

17. 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.
“I find it really enjoying to play XYZ since I can invite my friends from social media profile. It works
well with this social media app!”
ANSWER: Compatibility
18. 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.
“XYZ is so cool! I tried to install it in my old computer and it still runs smoothly. Given that the
computer’s video card is a bit faulty.“
ANSWER: Reliability

19. ____________________ is setting the best practices in the workplace as your work standards.
ANSWER: Seiketsu
20. The 5S Method is a Japanese perspective technique developed by Eiichiro Oda.
ANSWER: FALSER

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
28. Montreal protocol protects the ozone layer by ____________________.
ANSWER: phasing out harmful substances
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
LONG QUIZ NO. 6
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?

ANSWER: display Overweight


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
10. Java is an example of
ANSWER: HIGH-LEVEL LANGUAGE

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
13. He is known as the father of the Java programming language.

ANSWER: JAMES GOSLING


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
interpreters or compilers.
ANSWER: TRUE
17. was the first language implemented for BINAC.

ANSWER: Short Code


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?
ANSWER: ASK FOR HEIGHT

22. A_________is the code or language that allows a user to instruct a computer to perform specific
tasks.
ANSWER: Programming Language
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
26. Who is considered as a user (component of an operating system)?

ANSWER: ALL OF THE CHOICES


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
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
Question text
True or False: Operators, in Java programming language, use special symbols to call methods and their
objects.
Answer:
False
Question text
Read each statement carefully and decide whether it’s TRUE or FALSE.
There are no errors in the program.
Select one:
False
Question text
Refer to the block of codes below. Read each statement carefully and decide whether it’s TRUE or FALSE.
Line 9 uses a traditional comment which uses double forward slash.
Answer: False
Question text
True or False: Many programmers can be literate with Java programming language for it is intended to be that
way.
Answer:
True
Question text
True or False: You’ll know there’s an error if you see a red circle with an exclamation point in Netbeans IDE.
Answer:
True
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 = (x = 100) >= z;
Select one:
True
The file is accurately named – Students.java.
-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.
-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
The last line of code will output 100.0.
-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
There are keywords found in line 7.
-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 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.
-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

Substrings can contain 1 or 2 arguments.


-true
Determine the output.

-bar

The index of the letter “y” in string “Doggy” is 5.


-False
Determine the output.
-foo
TRUE OR FALSE: The value “val_3” is a white space “ “.
-False
True or False: Variable 1st_num is a good variable name in Java programming.
-False

TRUE OR FALSE: “val_2” contains “The”


-True
True or False: Instance variables are declared inside a method but outside a class.
-False
True or False: Variable names in Java are not necessarily case sensitive.
-False
Determine the output

-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
result = !((x * 10) < z);
-False

result = -(-z) == 43;


-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
x += x;
result = x == 154;
-False
The second line 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
A string can contain numbers.
-True

TRUE OR FALSE: This is an example of concatenation.


-True

TRUE OR FALSE: The value of “val_4” is “fox”


-False
TRUE OR FALSE: “val_2” contains “The”.
-True
Determine the output.
-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

Strings can be declared with str.


-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
Among the expressions below which is a statement?
-True

Expressions can be long and complex.


-true
number++; is an expression
-true

For-loops has a set number of iterations before starting.


-True
The equals( ) method can compare more than 2 arrays.
-False
While loops can use Booleans at test expressions.
-True
The test expression of the if statement is _______
-less than or equal to
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
x+1 is example of a statement.
-False
number++; is a block
-False

Arrays are
-Integers
The operator “new” allocates a memory block the size of what is declared.
-true
A class block can be an expression
-False
Statements can be expressions.
-False

Integer arrays can be populated with characters.


-False
Declaration clauses are declared as “number + 1”.
-False

Loops can be stopped with a break; statement.


-True
The equivalent of Paragraphs in coding is?
-Expressions
If statements cannot be nested in switches
-true
The length( ) method returns the size (number of indices) has.
-True
When polymorphism is used, the Java object can only take one form. Subclasses should have the
same function with the parent class.
-False
Arrays can contain (Answer) number of elements.
-Any
“||” and “&&” can be used in conditional statements.
-True
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
Expressions can be statements.
-True
Blocks can contain more blocks of code.
-True
If-else statements can be nested in?
-All of the choices
Statements are equivalent to paragraphs.
-False

A (answer) array is an array containing true or false values.


-boolean
Switches are always used with if-else statements
-False
True or False: The modulus operator returns the remainder of a division operation instead of the
quotient.
-true
Determine the output.
String val_1 = “564298”;

-5698
Determine the output.
String val_1 = “35”;
-4
The return value of the length( ) method is an integer
-true
A superclass is also known as a parent class.
-true
For-loops can be nested in while loops.
-true
In instantiating an object, the keyword instance is used.
-False
Object oriented programming utilizes the top down method
-False
Expressions are like clauses.
-true
The sort( ) method is always ascending.
-true
Arrays are data types.
-False
Variables must be declared as (Answer) for it to be fully hidden.

-private
While statements check the test expression at the end.
-False
The else statement can be used alone.
-False
The fill( ) method (Answer) the array with specific values.
-Fills
The output of println is

-55555
The person’s weight is declared correctly with the correct data type (byte) and value (160).
-FALSE

Determine the output.


String val_1 = “foo”
String val_2 = “bar”

val_2 = val_1;
val_1 = val_3;
System.out.println(val_1);
-bar
Determine the output.
String val_1 = “foo”
String val_2 = “bar”
val_2 = val_1;

val_1 = val_3;
System.out.println(val_2);
-foo
Switches can work properly even without the “break” expression.
-True
Blocks can be one liner or huge classes.
-True
The test expressions in conditional statements can be left empty.
-False
Abstraction works by hiding the implementation details and showing only the functions necessary.
-True
A single array can hold multiple data types
-False
A polymorphic object can pass more than one Is-a test.
-True
Another loop can be used as test expression.
-False
True or False: Public, static and void are sample of Java reserved keywords.
-True

The value of “pStr” in line 24 is


-True
The default syntax of a constructor is <class_name>(parameter, parameter){ }
-False

A nested class is not an inner class.


-False
Nested classes causes them to become abstracted
-False
A nested class is also called
-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
A constructor can only have 1-2 overloads or parameters.
-False
All possible data types of an array can be retuned as a string by the toString( ) method.
-True
Abstracted classes can contain 1 or more abstract methods.
-True
Abstraction shows the every bit of detail and implementation on how an application does something.
-False
Initialization is a process where the constructor is called for.
-True

The default syntax of a constructor is <class_name>( ){ }


-True
Classes cannot be nested.
-False

Abstract classes cannot have nested classes.


-False
The parent class of a nested class is called an outer class
-True

An inner class can be constructed directly without reference to the outer class.
-False
Arrays can be read backwards
-True

A single array can hold


-One data type
Abstracted methods already have implementations inside.
-False
are special methods to initialize objects.
-constructors
Constructors have 3 basic rules to follow.
-False
Nesting classes increases encapsulation.
-True

Each index can only contain (Answer) element.


-one
The sort( ) method can be set to sort only a part of an array.
-False

Subclasses or child classes could have different behaviors but still share the same functions from
their parent class.
-True

Abstract methods must have an explicit return value


-False
An abstract class must not contain abstract methods.
-False
Abstracted classes can be nested.
-True
A subclass constructor cannot invoke a superclass constructor.
-False
A class acquiring fields and methods of another class is called inheritance.
-True
Parallelsorting utilizes

-More cpu processing cores


method can copy one array to another.
-arraycopy

SHORT QUIZ PROG 111- PROG111 - Programming (Java) NC II Part 1


SHORT QUIZ 8.
1. The 5s method is based on the ____________________.
ANSWER: Toyota Production Sytem
2. Environmental issues have no relation to the workplace
ANSWER: FALSE
3. Protecting the environment and natural resources also means protecting
stable employment.
ANSWER: TRUE
4. In the 5S method, this stage refers to arranging items in a way that they are
easy to find and pick up.
ANSWER: SEITON
5. Seiso refers to cleaning your workplace on a regular basis.
ANSWER: TRUE
6. Humans rely on natural resources for survival.
ANSWER: TRUE
7. These are developed by industries as a guide for establishments and
business enterprises to conduct their operations in a way that prevents or
reduces environmental harm.
ANSWER: Environmental codes of practice
8. Business industries will not be affected by the environmental crisis.
ANSWER: FALSE
9. Presidential Decree No. 856, one of the Philippine environmental laws, is
also known as ____________________.
ANSWER: Code on Sanitation of the Philippines
10. The protection of the natural resources is possible through the collective
efforts of each group in the society.
ANSWER: TRUE
SHORT QUIZ 9
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.
“Thanks to XYZ, I can baby sit my little brother. It’s so easy to use that a 5-year
old can play it as well.”
ANSWER: Usability
2. Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s
product quality model and write the letter that corresponds 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
the ISO/IEC 25010:2011. Read their feedback below and decide which product
quality attribute is being described.
“XYZ is so cool I can play it with my phone, laptop, Xbox and PS4!”
ANSWER: Portability
7. 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.
“Finally we can play XYZ! Surprising enough, all features and functions are
present. It has all the controls a gamer needs.”
ANSWER: Functional Stability
8. Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s
product quality model and write the letter that corresponds 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
2. Ctrl + S is the shortcut key for Save while Ctrl + S + A is the shortcut key for
Save As.
ANSWER: FALSE
3. The earphones is an example of a _______________, while Internet Explorer is
an example of _______________.
ANSWER: peripheral device, application program
4. I’ve purchased a modern gaming mouse but it doesn’t have a PS/2 plug.
Where I connect it?
ANSWER: D
5. Arlan right clicked on his taskbar and unchecked the Lock Taskbar. What
will happen if he drags his taskbar to the right side of his screen?
ANSWER: Taskbar will display vertically at the right.
6. Something’s wrong with the serial port. Which port should I investigate?
ANSWER: C
7. Windows is to Personal Computer (PC) while Mac OSX is to Mac laptops and
computers.
ANSWER: TRUE
8. An operating system has three major components – hardware, application
program or software and the user.
ANSWER: FALSE
9. Which of the following is not a default margin options when setting up the
page for printing?
ANSWER: REGULAR
10. If you are confused on what to do, press F2 on your keyboard and the
Windows Help feature will open.
ANSWER: FALSE

SHORT QUIZ 11
1. This type of programming language uses series of 0s and 1s to represent
data.
ANSWER: Machine language
2. C++, an extension of the C language, introduced object-oriented
programming.
ANSWER: True
3. C# has features that are directly based on the Short Code.
ANSWER: FALSE
4. COBOL stands for Convenient Business Oriented Language.
ANSWER: FALSE
5. Which of the following statements is TRUE?
ANSWER: A programming language may have its own area of
specialization.

6. Using the language, you can write windowed applications, build


databases, as well as control handheld devices.
ANSWER: Java

7. is the father of computer.


ANSWER: CHARLES BABBAGE
8. Since natural languages are vaguely structured, they cannot be used for
programming.
ANSWER: TRUE
9. COBOL is the programming language ideally used for _________________________
purposes.
ANSWER: Business
10. PASCAL is an example of a low-level language.
ANSWER: FALSE

SHORT QUIZ 12
1. Refer to the image below to answer the following question. What happens
every time the given username and password is incorrect?
ANSWER: 1 IS ADDED TO THE LIMIT
2. Refer to the image below to answer the following question. What symbol is
used to begin and end the program?
ANSWER: Terminal
3. Observe the names of the following variables and routines and decide
whether its format is CORRECT or WRONG. limitIsReached for a Boolean
variable.
ANSWER: CORRECT
4. Refer to the image below to answer the following question. When will the
program end?
ANSWER: When home page is loaded.
5. Jet is writing the pseudocode for his program. Which phase of program
development life cycle is he in?
ANSWER: Design the Program.
6. Ana is working on a new project and she was asking for the program’s
purpose, processes, algorithm, restrictions and some notes. According to the
program development life cycle, in which phase is Ana working on?
ANSWER: ANALYZE THE PROBLEM
7. Observe the names of the following variables and routines and decide
whether its format is CORRECT or WRONG.
ContactNumber for a column name in the table “Student”.
ANSWER: CORRECT
8. Observe the names of the following variables and routines and decide
whether its format is CORRECT or WRONG.
PresentAdress for a column name in the table “Student”
ANSWER: WRONG
9. Refer to the image below to answer the following question. What will
happen if the username is incorrect but the password given is correct?
ANSWER: 3
10. Refer to the image below to answer the following question. What happens
when Limit is equal to 3?
ANSWER: Program goes back to login page

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
Enforcing environmental policies is one of the major causes of job loss and
unemployment. - False
True or False: Dates in file names should be written in YYYY-MM-DD format. - False
Big business companies are the only ones responsible for enforcing environmental
policies since they can afford alternative cleaner technology. - False
Pre-review activities in the review process includes review planning, preparation and
individual review. - true
Increase work productivity by arranging items in such a way that they are easy to find
and pick up. - true
Montreal protocol protects the ozone layer by ____________________. - phasing out
harmful substances
Business industries will not be affected by the environmental crisis. - False
True or False: Protocols are set of standards rules which describes how something
should be done and different companies have different protocols as well. - true
Presidential Decree No. 856 is an international treaty that imposes limitations on the
greenhouse gas emissions of several countries. - True
True or False: Organizational aims are different from the mission statement; they refer
to the results an organization is aspiring for. - true
The cost / benefit analysis document is appropriately named. - False
A printed progress report to be submitted to the adviser. - purpose
True or False: Statutory requirements are identified by the vendors or suppliers and
they include value, stability, diversity and capacity. - False
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. - False
Identify whether the statement is a strength, weakness, opportunity or threat: The
student record system could be used by other schools other than Ricka’s school. -
opportunity
True or False: Reviewing the related literature includes review of concepts, theories and
previous research findings. - true
Companies can freely make their own set of environmental policies without consulting
the workers’ union, or any local or national laws about it. - False
Kyoto protocol addresses environmental issues through the campaign of
____________________. - reducing greenhouse gas emissions
Humans rely on natural resources for survival. - true
Quantitative research, compared to qualitative research, uses measurable - Data
ISO/IEC 25010:2011’s product quality model has eight (8) major characteristics. - true
True or False: Usually, the summary of the report is the first thing that’s being read. -
true
____________________ is when you conduct regular audits and inspections to
evaluate your work performance. - Shitsuke
“XYZ is so cool! I tried to install it in my old computer and it still runs smoothly. Given
that the computer’s video card is a bit faulty.“ - Reliability
True or False: There are five main elements of a written report – topic, style, structure,
facts and contents. - false
True or False: To gather data, you can either conduct an interview, survey, observation,
mail questionnaire, coding and tabulation. - false

LONG QUIZ PROG-111

LONG QUIZ NO. 4

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 – like additional characters and skills.”
ANSWER: 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
6. Kyoto protocol addresses environmental issues through the campaign of
____________________.
ANSWER: reducing greenhouse gas emissions
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
9. ____________________ is when you conduct regular audits and inspections to evaluate your
work performance.
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 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.
“One good thing I find with XYZ as when my laptop shuts down accidentally, my game score and
status can still be recovered. No need to repeat a level.”
ANSWER: Reliability
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
17. 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.
“I find it really enjoying to play XYZ since I can invite my friends from social media profile. It works
well with this social media app!”
ANSWER: Compatibility
18. 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.
“XYZ is so cool! I tried to install it in my old computer and it still runs smoothly. Given that the
computer’s video card is a bit faulty.“

ANSWER: Reliability

19. ____________________ is setting the best practices in the workplace as your work standards.
ANSWER: Seiketsu

20. The 5S Method is a Japanese perspective technique developed by Eiichiro Oda.


ANSWER: FALSER
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
28. Montreal protocol protects the ozone layer by ____________________.
ANSWER: phasing out harmful substances
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
LONG QUIZ NO. 6
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?
ANSWER: display Overweight
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
10. Java is an example of
ANSWER: HIGH-LEVEL LANGUAGE

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
13. He is known as the father of the Java programming language.
ANSWER: JAMES GOSLING

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
interpreters or compilers.
ANSWER: TRUE
17. was the first language implemented for BINAC.

ANSWER: Short Code


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?
ANSWER: ASK FOR HEIGHT
22. A_________is the code or language that allows a user to instruct a computer to perform specific
tasks.
ANSWER: Programming Language
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
26. Who is considered as a user (component of an operating system)?
ANSWER: ALL OF THE CHOICES
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

PROG-113A / ► Week 18: Designing PL/SQL / ► Short Quiz 14


Which of the following is the syntax to open a cursor varial
Answer: OPEN cursor_variable_name
FOR select_statement;
Which of the following is the syntax to define a REF CURSOR type?
Answer: TYPE ref_type_name IS REF CURSOR
[RETURN return_type];
Weak REF CURSOR is very flexible.
Answer: True
Evaluate the following. What will be the output?
DECLARE
SUBTYPE Accumulator IS NUMBER (4,2);
v_amount accumulator;
v_num1 NUMBER;
v_num2 NUMBER;
v_num3 NUMBER;
BEGIN
v_amount := 10.50;
v_num1 := 1;
v_num2 := 2;
v_num3 := 3;
v_num1 := v_amount;
v_num2 := v_num1 + v_amount;
v_num2 := v_num2 - v_num3;
dbms_output.put_line('Total is: ' || v_num2);
END;
Answer: 18
Which of the following is the syntax to fetch from a cursor variable?
Answer: FETCH cursor_variable_name INTO variable_name1
[,variable_name2,. . .] | record_name;
Fetch into a record when fetching from a cursor.
Answer: True
Which of the following is the syntax to close a cursor?
Answer: CLOSE cursor_variable_name;
This is a subset of an existing data type that may place a constraint on its base type.
Answer: Subtype
Which of the following rules is INCORRECT about cursor variables?
Answer: None of the choices.
Use column aliases in cursors for calculated columns fetched into records declared with %COLUMNTYPE.
Answer: False

PROG-113A / ► Week 18: Designing PL/SQL / ► Learning Activity 14

Which of the following rules is INCORRECT about cursor variables?


Answer: None of the choices.
Which of the following describes weak REF CURSOR?
Answer: Associates with any query
Restrictive, specifies a RETURN type, associates only with type-compatible queries are
description of a ________________.
Answer: Strong REF CURSOR
Which of the following is INCORRECT about the guidelines for cursor design?
Answer: Use column aliases in cursors for calculated columns fetched into records declared with
%COLUMNTYPE.
This is a subset of an existing data type that may place a constraint on its base type.
Answer: Subtype

PROG-113A / ► Week 17: / ► Short Quiz 13


Evaluate the following PL/SQL.
CREATE OR REPLACE PROCEDURE query_employee
(p_id IN employees.employee_id%TYPE,
p_name OUT employees.last_name%TYPE,
p_salary OUT employees.salary%TYPE) IS
BEGIN SELECT last_name, salary INTO p_name, p_salary
FROM employeesWHERE employee_id = p_id;
END query_employee
Answer: No error
Evaluate the following PL/SQL. Which of the following will line creates an error?
CREATE OR REPLACE PROCEDURE query_emp
(
p_department_id IN employees.department_id%TYPE,
p_name OUT employees.last_name%TYPE,
p_salary OUT employees.salary%TYPE
)
IS
BEGIN
SELECT last_name, salary, department_id INTO p_name, p_salary, p_department_id
FROM employees
WHERE salary >= p_salary AND department_id = p_department_id ;
END query_emp;
Answer: Line 3
These are local variables declared in the parameter list of a subprogram specification.
Answer: Formal parameter
Given the answer in item __________, which of the folllowing stored procedure will display the
employee id and salary of Steven King?
Answer: DECLARE
v_employee_id employees.employee_id%TYPE;
v_emp_sal employees.salary%TYPE;
BEGIN
query_emp('King', 'Steven', v_employee_id, v_emp_sal);
DBMS_OUTPUT.PUT_LINE('Employee ID ' || v_employee_id ||' earns '|| to_char(v_emp_sal,
'$999,999.00'));
END;

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

PROG-113A / ► Week 16: Creating Procedures / ► Learning Activity 13


Procedure can be stored in the database as a schema object.
Answer: True
The PL/SQL code block helps modularize code by using:
Answer: All of the choices
Which of the following command is used to create a stand-alone procedure that is stored in the Oracle
database?
Answer: CREATE PROCEDURE
Which of the folllowing 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
Answer: iii & v
Which if the following is NOT a benefits of using modular program constructs?
Answer: None of the choices

PROG-113A / ► Week 18: Designing PL/SQL / ► Short Quiz 14


Which of the following is the syntax to open a cursor varial
Answer: OPEN cursor_variable_name
FOR select_statement;
Which of the following is the syntax to define a REF CURSOR type?
Answer: TYPE ref_type_name IS REF CURSOR
[RETURN return_type];
Weak REF CURSOR is very flexible.
Answer: True
Evaluate the following. What will be the output?
DECLARE
SUBTYPE Accumulator IS NUMBER (4,2);
v_amount accumulator;
v_num1 NUMBER;
v_num2 NUMBER;
v_num3 NUMBER;
BEGIN
v_amount := 10.50;
v_num1 := 1;
v_num2 := 2;
v_num3 := 3;
v_num1 := v_amount;
v_num2 := v_num1 + v_amount;
v_num2 := v_num2 - v_num3;
dbms_output.put_line('Total is: ' || v_num2);
END;
Answer: 18
Which of the following is the syntax to fetch from a cursor variable?
Answer: FETCH cursor_variable_name INTO variable_name1
[,variable_name2,. . .] | record_name;
Fetch into a record when fetching from a cursor.
Answer: True
Which of the following is the syntax to close a cursor?
Answer: CLOSE cursor_variable_name;
This is a subset of an existing data type that may place a constraint on its base type.
Answer: Subtype
Which of the following rules is INCORRECT about cursor variables?
Answer: None of the choices.
Use column aliases in cursors for calculated columns fetched into records declared with %COLUMNTYPE.
Answer: False

PROG-113A / ► Week 18: Designing PL/SQL / ► Learning Activity 14

Which of the following rules is INCORRECT about cursor variables?


Answer: None of the choices.
Which of the following describes weak REF CURSOR?
Answer: Associates with any query
Restrictive, specifies a RETURN type, associates only with type-compatible queries are
description of a ________________.
Answer: Strong REF CURSOR
Which of the following is INCORRECT about the guidelines for cursor design?
Answer: Use column aliases in cursors for calculated columns fetched into records declared with
%COLUMNTYPE.
This is a subset of an existing data type that may place a constraint on its base type.
Answer: Subtype

PROG-113A / ► Week 15: Long Quiz / ► Long Quiz 3 (30/30)


(Correction)
How do you test the output of a PL/SQL block?
Answer: Use a predefined Oracle package and its procedure
Which of the folllowing statement describes PL/SQL?
Answer: PL/SQL is an Oracle proprietary, procedural, 3GL programming language
Which of the following syntax to declare EXCEPTION named e_invalid_id?
Answer: e_invalid_id EXCEPTION;
In PL/SQL Block Structure, which of the following are mandatory?
Answer: BEGIN and END
This is a type of cursor which is created and managed internally by the Oracle server to process
SQL statements
Answer: Implicit
PL/SQL stands for
Answer: Procedural Language extension to SQL
Which of the following PL/SQL will execute successfully?
Answer: DECLARE
v_salary INTEGER(20);
BEGIN
SELECT salary INTO v_salary FROM employees WHERE employee_id = 150;
END;
What is the last clause in trapping exceptions?
Answer: WHEN OTHERS
PL/SQL Provides a block structure for executable units of ________________.
Answer: Code
Evaluate the following PL/SQL.
DECLARE
v_email VARCHAR(20);
BEGIN
SELECT email INTO v_email FROM EMPLOYEES WHERE email like 'D%';
DBMS_OUTPUT.PUT_LINE ('Employees whose email address starts with letter D :'
|| v_email);
EXCEPTION
WHEN TOO_MANY_ROWS THEN
DBMS_OUTPUT.PUT_LINE (' Your select statement retrieved multiple rows.');
END;
Answer: The PL/SQL block will run successfully.
Which of the folllowing is TRUE?
Answer: SQL code are embedded within PL/SQL statements
You can trap any error by including a corresponding handler within the exception-handling
section of the PL/SQL block.
Answer: True
When an exception is user defined, the exception is raised ____________ .
Answer: Explicitly
Evaluate the PL/SQL
DECLARE
v_first_name VARCHAR2(50);
v_last_name VARCHAR2(50);
v_salary INTEGER(20);
BEGIN
SELECT first_name, last_name, salary INTO v_first_name, v_last_name, v_salary FROM
employees WHERE department_id = 60;
DBMS_OUTPUT.PUT_LINE('Firstname : '|| v_first_name);
DBMS_OUTPUT.PUT_LINE('Lastname : '|| v_last_name);
DBMS_OUTPUT.PUT_LINE('Salary : '|| v_salary);
END;
Answer: Error in Line 6.
Evaluate the following PL/SQL.
DECLARE
v_employee_id employees.employee_id%TYPE := 114;
BEGIN
DELETE employees WHERE employee_id = v_employee_id;
END;
Answer: The PL/SQL will delete employee number 114.
Which of the following does NOT describes SELECT Statement in a PL/SQL.
Answer: Queries must return only one column.
What are the three PL/SQL block types?
Answer: Anonymous, Procedure, Function
What is the exception name when PL/SQL has an internal problem
Answer: PROGRAM_ERROR
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?
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;
What is the error trapping function that returns the numeric value of the error code?
Answer: SQLCODE
What is the exception name when single row SELECT returned no data.
Answer: NO_DATA_FOUND
Which of the following DOES NOT describes an exception?
Answer: Exception is a PL/SQL error that is raised before program execution.
Evaluate the following PL/SQL.
DECLARE
v_employee_id employees.employee_id%TYPE := 114;
BEGIN
DELETE employees WHERE employee_id = v_employee_id;
END;
Answer: The PL/SQL will delete employee number 114.
In the DECLARE section of the PL/SQL block,
Answer: All of the choices
When an exception is predefined by Oracle server, the exception is raised ____________ .
Answer: Explicitly
Which of the will display the Employee ID and number of years in service with employee ID
150?
Answer: DECLARE
v_salaryemployees.salary%TYPE := 10000;
v_employee_idemployees.employee_id%TYPE := 150;
v_years INTEGER(10);
BEGIN
SELECT employee_id, ROUND((SYSDATE - hire_date) /365,0) INTO v_employee_id, v_years
FROM employees WHERE employee_id = v_employee_id ;
DBMS_OUTPUT.PUT_LINE('Employee ID:' || v_employee_id);
DBMS_OUTPUT.PUT_LINE('Number of years : ' || v_years);
END;
Actions are being performed when error occurs during PL/SQL execution in the
Answer: EXCEPTION
You can use this procedure to issue user-defined error messages from stored subprograms.
Answer: RAISE_APPLICATION_ERROR

PROG-113A / ► Week 14: Handling Exceptions / ► Short Quiz 12

Evaluate the following PL/SQL.


DECLARE
v_email VARCHAR(20);
BEGIN
SELECT email INTO v_email FROM EMPLOYEES WHERE email like 'D%';
DBMS_OUTPUT.PUT_LINE ('Employees whose email address starts with letter D :'
|| v_email);
EXCEPTION
WHEN TOO_MANY_ROWS THEN
DBMS_OUTPUT.PUT_LINE (' Your select statement retrieved multiple rows.');
END;
Answer: The PL/SQL block will run successfully.
Which of the following DOES NOT describes an exception?
Answer: Exception is a PL/SQL error that is raised before program execution.
What is the exception name when single row SELECT returned no data.
Answer: NO_DATA_FOUND
RAISE_APPLICATION_ERROR is used in two different places. These are
___________________.
Answer: Executable and exceptions section
What is the error trapping function that returns the numeric value of the error code?
Answer: SQLCODE
What is the exception name when PL/SQL has an internal problem
Answer: PROGRAM_ERROR
Evaluate the following PL/SQL. At what line number is the error of the PL/SQL?
DECLARE
v_deptno NUMBER := 800;
e_invalid EXCEPTION;
BEGIN
DELETE FROM departments
WHERE department_id = v_deptno;
IF SQL % NOT_FOUND THEN
RAISE e_invalid;
END IF;
COMMIT;
EXCEPTION
WHEN e_invalid THEN
DBMS_OUTPUT.PUT_LINE('No such department id.');
END;
Answer: 7
What is the last clause in trapping exceptions?
Answer: WHEN OTHERS
Complete the diagram in Trapping Non-Predefined Oracle Server Errors.
Answer: Declare, Associate, Reference

PROG-113A / ► Week 14: Handling Exceptions / ► Learning Activity 12

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

PROG-113A / ► Week 13: Interacting with Oracle Server / ► Learning Activity 11

Which of the following does NOT describes SELECT Statement in a PL/SQL.


Answer: Queries must return only one column.
Evaluate the following PL/SQL.
1 DECLARE

2 v_employee_id employees.employee_id%TYPE := 114;

3 BEGIN
4 DELETE employees WHERE employee_id = 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;

PROG-113A / ► Week 12: Introduction to PLSQL / ► Short Quiz 10

Which of the folllowing is TRUE?


Answer: SQL code are embedded withing PL/SQL statements
In the DECLARE section of the PL/SQL block
Answer: All of the choices
In PL/SQL Block Structure, which of the following are OPTIONAL?
Answer: None of the choices
What are the three PL/SQL block types?
Answer: Anonymous, Procedure, Function
How do you test the output of a PL/SQL block?
Answer: Use a predefined Oracle package and its procedure
You want to display the name, salary and tax of employee #150. Which of the PL/SQL will
execute successfully? Note tax is computed as 2% of the salary.
Answer: DECLARE
v_first_name VARCHAR2(50);
v_last_name VARCHAR2(50);
v_salary INTEGER(20);
v_tax INTEGER(10);
BEGIN
SELECT first_name, last_name, salary, salary * 0.02 INTO v_first_name, v_last_name,
v_salary, v_tax FROM employees WHERE employee_id = 150;
DBMS_OUTPUT.PUT_LINE('Firstname : '|| v_first_name);
DBMS_OUTPUT.PUT_LINE('Lastname : '|| v_last_name);
DBMS_OUTPUT.PUT_LINE('Salary : '|| v_salary);
DBMS_OUTPUT.PUT_LINE('Tax : '|| v_tax);
END;
Which of the folllowing statement describes PL/SQL?
Answer: PL/SQL is an Oracle proprietary, procedural, 3GL programming language

PROG-113A / ► Week 12: Introduction to PLSQL / ► Learning Activity 10


PL/SQL stands for
Answer: Procedural Language extension to SQL
PL/SQL Provides a block structure for executable units of ________________.
Answer: Code
In PL/SQL Block Structure, which of the following are mandatory?
Answer: BEGIN and END
Which of the following PL/SQL will execute successfully?
Answer: DECLARE
v_salary INTEGER(20);
BEGIN
SELECT salary INTO v_salary FROM employees WHERE employee_id = 150;
END;
Actions are being performed when error occurs during PL/SQL execution in the
Answer: EXCEPTION

PROG-113A / ► Week 11: Using Subqueries to Solve Queries / ► Short Quiz 9

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')

Evaluate the SQL command


SELECT employee_id, job_id, salary from employees where salary < ALL (SELECT salary
FROM employees WHERE job_id = 'FI_ACCOUNT') AND job_id = 'IT_PROG'
Answer: This has no error.

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')

Evaluate the SQL command


SELECT employee_id, last_name, first_name, job_id FROM employees WHERE department_id
= (SELECT max(department_id) FROM employees GROUP BY department_id)
Answer: This will return an error. Single-row subquery returns more than one row.

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)

PROG-113A / ► Week 11: Using Subqueries to Solve Queries / ► Learning Activity 9


Which of the following is INCORRECT?
Answer: Use single-row operators with multiple-row subqueries
Which of the folllowing is required in a subquery?
Answer: SELECT
Which of the following is CORRECT about sub-queries?
Answer: Subquery execute before the main query executes.
Evaluate the SQL Command
SELECT job_id, job_title FROM jobs J WHERE INCLUDES
(SELECT * FROM employees WHERE J.job_id = e.job_id );
Answer: The SQL will return an error. Invalid "INCLUDES" parameter.
Evaluate the SQL command
SELECT employee_id, salary from employees where salary = ANY (SELECT salary FROM employees
WHERE job_id = 'IT_PROG') AND job_id = 'ST_CLERK'
Answer: This has no error.

True or False: Foreign co-workers having conversation issues with


everyone in the office are better left off on their own.
A: False

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

True or False: Understanding everyone’s interest is the second step in the


problem solving process. This is when you choose the optimal solution.
Answer: false

These kind of words or terms are often discouraged to be used during a


presentation, especially if the audience is not that familiar with
programming terms.
A: technical words

Referring to the figure below, determine if the statement is TRUE or


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 :)

Which of the following does NOT describes SELECT Statement in a PL/SQL.


Answer: Queries must return only one column.
You want to display all the records of employee the same with the salary employee number 103.
Answer: SELECT * FROM employees WHERE salary = (SELECT salary from employees where
employee_id= 103)
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;
Which of the folllowing is TRUE?
Answer: SQL code are embedded within PL/SQL statements
When an exception is user defined, the exception is raised ____________ .
Answer: Explicitly
Which of the folllowing is TRUE?
Answer: SQL code are embedded withing PL/SQL statements
Weak REF CURSOR is very flexible.
Answer: True
How do you test the output of a PL/SQL block?
Answer: Use a predefined Oracle package and its procedure
Restrictive, specifies a RETURN type, associates only with type-compatible queries are description
of a ________________.
Answer: Strong REF CURSOR
Which of the following DOES NOT describes an exception?
Answer: Exception is a PL/SQL error that is raised before program execution.
These are local variables declared in the parameter list of a subprogram specification.
Answer: Formal parameter
Which of the following rules is INCORRECT about cursor variables?
Answer: None of the choices.
When an exception is predefined by Oracle server, the exception is raised ____________ .
Answer: Explicitly
Which of the following DOES NOT describes an exception?
Answer: Exception is a PL/SQL error that is raised before program execution.
Evaluate the following PL/SQL.
CREATE OR REPLACE PROCEDURE query_employee
(p_id IN employees.employee_id%TYPE,
p_name OUT employees.last_name%TYPE,
p_salary OUT employees.salary%TYPE) IS
BEGIN SELECT last_name, salary INTO p_name, p_salary
FROM employeesWHERE employee_id = p_id;
END query_employee
Answer: No error
You want to know the total number of employees whose firstname starts with letter D.
Which of the folllowing PLS/SQL executes successfully?
Answer: DECLARE
v_first_name employees.first_name%TYPE := 'D%';
BEGIN
SELECT COUNT(*) INTO v_first_name FROM employees WHERE first_name LIKE v_first_name;
DBMS_OUTPUT.PUT_LINE(v_first_name);
END;
What is the error trapping function that returns the numeric value of the error code?
Answer: SQLCODE
You want to display the name, salary and tax of employee #150. Which of the PL/SQL will execute
successfully? Note tax is computed as 2% of the salary.
Answer: DECLARE
v_first_name VARCHAR2(50);
v_last_name VARCHAR2(50);
v_salary INTEGER(20);
v_tax INTEGER(10);
BEGIN
SELECT first_name, last_name, salary, salary * 0.02 INTO v_first_name, v_last_name, v_salary,
v_tax FROM employees WHERE employee_id = 150;
DBMS_OUTPUT.PUT_LINE('Firstname : '|| v_first_name);
DBMS_OUTPUT.PUT_LINE('Lastname : '|| v_last_name);
DBMS_OUTPUT.PUT_LINE('Salary : '|| v_salary);
DBMS_OUTPUT.PUT_LINE('Tax : '|| v_tax);
END;
Which of the following is the syntax to close a cursor?
Answer: CLOSE cursor_variable_name;
Which of the following rules is INCORRECT about cursor variables?
Answer: None of the choices.
What are the three PL/SQL block types?
Answer: Anonymous, Procedure, Function
You can trap any error by including a corresponding handler within the exception-handling section of
the PL/SQL block.
Answer: True
Which of the following describes weak REF CURSOR?
Answer: Associates with any query
Given the answer in item __________, which of the folllowing stored procedure will display the
employee id and salary of Steven King?
Answer: DECLARE
v_employee_id employees.employee_id%TYPE;
v_emp_sal employees.salary%TYPE;
BEGIN
query_emp('King', 'Steven', v_employee_id, v_emp_sal);
DBMS_OUTPUT.PUT_LINE('Employee ID ' || v_employee_id ||' earns '|| to_char(v_emp_sal,
'$999,999.00'));
END;
You have been tasked to update the database by creating a PL/SQL to increase the salary of all IT
Programmer employees by 50% 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 *0.50 WHERE job_id = v_job_id;
END;
Which of the folllowing is required in a subquery?
Answer: SELECT
What is the exception name when PL/SQL has an internal problem
Answer: PROGRAM_ERROR
In the DECLARE section of the PL/SQL block,
Answer: All of the choices
Actions are being performed when error occurs during PL/SQL execution in the
Answer: EXCEPTION
What is the exception name when PL/SQL has an internal problem
Answer: PROGRAM_ERROR
Which of the folllowing statement describes PL/SQL?
Answer: PL/SQL is an Oracle proprietary, procedural, 3GL programming language
Evaluate the following PL/SQL.
DECLARE
v_employee_id employees.employee_id%TYPE := 114;
BEGIN
DELETE employees WHERE employee_id = v_employee_id;
END;
Answer: The PL/SQL will delete employee number 114.
Which of the following command is used to create a stand-alone procedure that is stored in the
Oracle database?
Answer: CREATE PROCEDURE
Evaluate the following PL/SQL.
DECLARE
v_email VARCHAR(20);
BEGIN
SELECT email INTO v_email FROM EMPLOYEES WHERE email like 'D%';
DBMS_OUTPUT.PUT_LINE ('Employees whose email address starts with letter D :'
|| v_email);
EXCEPTION
WHEN TOO_MANY_ROWS THEN
DBMS_OUTPUT.PUT_LINE (' Your select statement retrieved multiple rows.');
END;
Answer: The PL/SQL block will run successfully.
Which of the following is the syntax to define a REF CURSOR type?
Answer: TYPE ref_type_name IS REF CURSOR
[RETURN return_type];
The PL/SQL code block helps modularize code by using:
Answer: All of the choices
Which of the following is the syntax to fetch from a cursor variable?
Answer: FETCH cursor_variable_name INTO variable_name1
[,variable_name2,. . .] | record_name;
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')
Procedure can be stored in the database as a schema object.
Answer: True
In PL/SQL Block Structure, which of the following are mandatory?
Answer: BEGIN and END
PL/SQL stands for
Answer: Procedural Language extension to SQL
Which of the following is CORRECT about sub-queries?
Answer: Subquery execute before the main query executes.
Which of the following does NOT describes SELECT Statement in a PL/SQL.
Answer: Queries must return only one column.
PL/SQL Provides a block structure for executable units of ________________.
Answer: Code
Evaluate the SQL command
SELECT employee_id, salary from employees where salary = ANY (SELECT salary FROM
employees WHERE job_id = 'IT_PROG') AND job_id = 'ST_CLERK'
Answer: This has no error.
Which of the following PL/SQL will execute successfully?
Answer: DECLARE
v_salary INTEGER(20);
BEGIN
SELECT salary INTO v_salary FROM employees WHERE employee_id = 150;
END;
In PL/SQL Block Structure, which of the following are OPTIONAL?
Answer: None of the choices
Evaluate the following PL/SQL. At what line number is the error of the PL/SQL?
DECLARE
v_deptno NUMBER := 800;
e_invalid EXCEPTION;
BEGIN
DELETE FROM departments
WHERE department_id = v_deptno;
IF SQL % NOT_FOUND THEN
RAISE e_invalid;
END IF;
COMMIT;
EXCEPTION
WHEN e_invalid THEN
DBMS_OUTPUT.PUT_LINE('No such department id.');
END;
Answer: 7
What is the error trapping function that returns the numeric value of the error code?
Answer: SQLCODE
Fetch into a record when fetching from a cursor.
Answer: True

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’;

Which of the following SQL commands will display all stocks whose class is HW or AP.
SELECT * FROM parts WHERE IN class ('HW', '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?
SELECT employee_id, hire_date, TO_CHAR(hire_date,'Month') AS "Hired Month" FROM employees;

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;

John want to know how many employees receiving salary below 10,000. What SQL command he need to
run?
SELECT COUNT(*) FROM employees WHERE salary < 10000;

----------------------------------------
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%'

What will be the output of the following SQL?


SELECT * FROM parts WHERE (warehouse = 1 or warehouse = 2) AND class IN ('HW', 'AP') AND (price >
200 AND price < 500);
2 rows returned

What will be the output of the SQL command?


SELECT SUM(onhand) FROM PARTS where class = 'HW' OR class = 'AP' AND warehouse = 1;
137

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
output?
SELECT first_name, last_name, job_id, min_salary, max_salary FROM employees JOIN jobs USING
(job_id);
What will be the output of the SQL command below?
SELECT first_name, last_name, job_title FROM employees CROSS JOIN jobs ORDER BY last_name;
A Cartesian product

What will be the output of the SQL command below?


SELECT last_name, job_id, job_title FROM employees NATURAL JOIN jobs
List of names and job title of matched records from the employees and jobs table

----------------------------------------
SQ6

Given the SQL command


SELECT * FROM employees JOIN departments USING (department_id)
Which of the following describes the SQL command?
Joined table from the employees and department table

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

Display the manager id and employee id of every employee


SELECT E.employee_id, D.manager_id FROM employees E JOIN departments D ON E.department_id =
D.department_id

Given the SQL command


SELECT employees.first_name, employees.last_name, employees.salary,departments.department_name
FROM employees, departments
WHERE employees.department_id = departments.department_id;
Which of the following describes the SQL command?
List of employees name, salary and department name

----------------------------------------
LA7

Remove the Shareholder Services department in the department table


DELETE FROM departments WHERE department_name = ‘Shareholder Services’

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 update the information in the department table.
INSERT INTO departments VALUES (300, 'Training', 203, 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)

Remove all Manager positions in the department table.


DELETE FROM jobs WHERE job_title LIKE '%Manager%';
----------------------------------------
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 describes the command below?


SELECT * FROM employees WHERE department = 60 FOR UPDATE
Locks the rows in the EMPLOYEES table with department id is 60.

Which of the following will erase all records in the departments table
TRUNCATE TABLE departments

SQL command to create a marker in the current transaction.


SAVEPOINT

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

You want to cancel the privilege of matt to add records from the employees table.
REVOKE insert ON employees FROM 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 provide privilege to update the employees table?


GRANT update (salary) ON employees TO matt

Which of the following will is the correct command to create a role.


CREATE ROLE gen_manager

Matt wants to change his password from 1234 to abcd.


Which of the following will perform the task?
ALTER USER matt IDENTIFIED abcd;

The DBA will create a new user name sales.


Which of the following SQL command will perform the creation?
CREATE sales ACCESS 1234

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

What privileges that manipulates the content of the database objects.


Object Privileges

----------------------------------------
1st Q Exam

Evaluate the following SQL command


SELECT employee_id, salary, department_id FROM employees WHERE department_id IN (60,70)
The SQL command will display employees with department id 60 or 70.

True or False. The AND, OR, NOT are comparison operators.


False

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

List all employees except for IT_PROG job id.


All of the choices

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

Evaluate the following SQL command


SELECT * FROM jobs WHERE job_title LIKE 'Manager%'
No records will be displayed

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

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 last_name, TO_INTEGER(salary, $999,999.99) AS "MONTHLY SALARY" FROM employees
WHERE salary < 10000 WHERE last_name IN 'D%'

In creating Joins,the NATURALJOIN and USING clauses are____________


Mutually Exclusive

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
Question text
True or False: Operators, in Java programming language, use special symbols to call methods and their
objects.
Answer:
False
Question text
Read each statement carefully and decide whether it’s TRUE or FALSE.
There are no errors in the program.
Select one:
False
Question text
Refer to the block of codes below. Read each statement carefully and decide whether it’s TRUE or FALSE.
Line 9 uses a traditional comment which uses double forward slash.
Answer: False
Question text
True or False: Many programmers can be literate with Java programming language for it is intended to be that
way.
Answer:
True
Question text
True or False: You’ll know there’s an error if you see a red circle with an exclamation point in Netbeans IDE.
Answer:
True
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 = (x = 100) >= z;
Select one:
True
The file is accurately named – Students.java.
-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.
-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
The last line of code will output 100.0.
-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

There are keywords found in line 7.


-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 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.
-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

Substrings can contain 1 or 2 arguments.


-true
Determine the output.

-bar

The index of the letter “y” in string “Doggy” is 5.


-False
Determine the output.
-foo
TRUE OR FALSE: The value “val_3” is a white space “ “.
-False
True or False: Variable 1st_num is a good variable name in Java programming.
-False

TRUE OR FALSE: “val_2” contains “The”


-True
True or False: Instance variables are declared inside a method but outside a class.
-False

True or False: Variable names in Java are not necessarily case sensitive.
-False
Determine the output
-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
result = !((x * 10) < z);
-False

result = -(-z) == 43;


-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
x += x;
result = x == 154;
-False
The second line 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
A string can contain numbers.
-True

TRUE OR FALSE: This is an example of concatenation.


-True

TRUE OR FALSE: The value of “val_4” is “fox”


-False

TRUE OR FALSE: “val_2” contains “The”.


-True
Determine the output.
-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
Strings can be declared with str.
-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
Among the expressions below which is a statement?
-True
Expressions can be long and complex.
-true

number++; is an expression
-true
For-loops has a set number of iterations before starting.
-True

The equals( ) method can compare more than 2 arrays.


-False
While loops can use Booleans at test expressions.
-True

The test expression of the if statement is _______


-less than or equal to
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
x+1 is example of a statement.
-False

number++; is a block
-False
Arrays are
-Integers
The operator “new” allocates a memory block the size of what is declared.
-true
A class block can be an expression
-False
Statements can be expressions.
-False

Integer arrays can be populated with characters.


-False
Declaration clauses are declared as “number + 1”.
-False

Loops can be stopped with a break; statement.


-True
The equivalent of Paragraphs in coding is?
-Expressions

If statements cannot be nested in switches


-true
The length( ) method returns the size (number of indices) has.
-True
When polymorphism is used, the Java object can only take one form. Subclasses should have the
same function with the parent class.
-False
Arrays can contain (Answer) number of elements.
-Any
“||” and “&&” can be used in conditional statements.
-True
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
Expressions can be statements.
-True
Blocks can contain more blocks of code.
-True
If-else statements can be nested in?
-All of the choices

Statements are equivalent to paragraphs.


-False
A (answer) array is an array containing true or false values.
-boolean
Switches are always used with if-else statements
-False
True or False: The modulus operator returns the remainder of a division operation instead of the
quotient.
-true
Determine the output.
String val_1 = “564298”;
-5698
Determine the output.
String val_1 = “35”;
-4

The return value of the length( ) method is an integer


-true
A superclass is also known as a parent class.
-true

For-loops can be nested in while loops.


-true
In instantiating an object, the keyword instance is used.
-False

Object oriented programming utilizes the top down method


-False
Expressions are like clauses.
-true
The sort( ) method is always ascending.
-true
Arrays are data types.
-False
Variables must be declared as (Answer) for it to be fully hidden.

-private
While statements check the test expression at the end.
-False
The else statement can be used alone.
-False
The fill( ) method (Answer) the array with specific values.
-Fills
The output of println is

-55555
The person’s weight is declared correctly with the correct data type (byte) and value (160).
-FALSE
Determine the output.
String val_1 = “foo”
String val_2 = “bar”

val_2 = val_1;
val_1 = val_3;
System.out.println(val_1);
-bar
Determine the output.
String val_1 = “foo”
String val_2 = “bar”

val_2 = val_1;
val_1 = val_3;
System.out.println(val_2);
-foo
Switches can work properly even without the “break” expression.
-True
Blocks can be one liner or huge classes.
-True
The test expressions in conditional statements can be left empty.
-False

Abstraction works by hiding the implementation details and showing only the functions necessary.
-True
A single array can hold multiple data types
-False

A polymorphic object can pass more than one Is-a test.


-True
Another loop can be used as test expression.
-False

True or False: Public, static and void are sample of Java reserved keywords.
-True
The value of “pStr” in line 24 is
-True

The default syntax of a constructor is <class_name>(parameter, parameter){ }


-False
A nested class is not an inner class.
-False
Nested classes causes them to become abstracted
-False
A nested class is also called

-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
A constructor can only have 1-2 overloads or parameters.
-False
All possible data types of an array can be retuned as a string by the toString( ) method.
-True
Abstracted classes can contain 1 or more abstract methods.
-True
Abstraction shows the every bit of detail and implementation on how an application does something.
-False
Initialization is a process where the constructor is called for.
-True
The default syntax of a constructor is <class_name>( ){ }
-True
Classes cannot be nested.
-False
Abstract classes cannot have nested classes.
-False
The parent class of a nested class is called an outer class
-True
An inner class can be constructed directly without reference to the outer class.
-False
Arrays can be read backwards
-True
A single array can hold
-One data type

Abstracted methods already have implementations inside.


-False
are special methods to initialize objects.
-constructors

Constructors have 3 basic rules to follow.


-False
Nesting classes increases encapsulation.
-True

Each index can only contain (Answer) element.


-one
The sort( ) method can be set to sort only a part of an array.
-False
Subclasses or child classes could have different behaviors but still share the same functions from
their parent class.
-True

Abstract methods must have an explicit return value


-False
An abstract class must not contain abstract methods.
-False

Abstracted classes can be nested.


-True
A subclass constructor cannot invoke a superclass constructor.
-False
A class acquiring fields and methods of another class is called inheritance.
-True
Parallelsorting utilizes

-More cpu processing cores


method can copy one array to another.
-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.
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
Question text
True or False: Operators, in Java programming language, use special symbols to call methods and their
objects.
Answer:
False
Question text
Read each statement carefully and decide whether it’s TRUE or FALSE.
There are no errors in the program.
Select one:
False
Question text
Refer to the block of codes below. Read each statement carefully and decide whether it’s TRUE or FALSE.
Line 9 uses a traditional comment which uses double forward slash.
Answer: False
Question text
True or False: Many programmers can be literate with Java programming language for it is intended to be that
way.
Answer:
True
Question text
True or False: You’ll know there’s an error if you see a red circle with an exclamation point in Netbeans IDE.
Answer:
True
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 = (x = 100) >= z;
Select one:
True
The file is accurately named – Students.java.
-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.
-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
The last line of code will output 100.0.
-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
There are keywords found in line 7.
-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 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.
-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

Substrings can contain 1 or 2 arguments.


-true
Determine the output.

-bar

The index of the letter “y” in string “Doggy” is 5.


-False
Determine the output.
-foo
TRUE OR FALSE: The value “val_3” is a white space “ “.

-False
True or False: Variable 1st_num is a good variable name in Java programming.
-False

TRUE OR FALSE: “val_2” contains “The”


-True
True or False: Instance variables are declared inside a method but outside a class.
-False
True or False: Variable names in Java are not necessarily case sensitive.
-False

Determine the output


-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
result = !((x * 10) < z);
-False
result = -(-z) == 43;
-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

x += x;
result = x == 154;
-False
The second line 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
A string can contain numbers.
-True

TRUE OR FALSE: This is an example of concatenation.


-True

TRUE OR FALSE: The value of “val_4” is “fox”


-False

TRUE OR FALSE: “val_2” contains “The”.


-True
Determine the output.
-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

Strings can be declared with str.


-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

Among the expressions below which is a statement?


-True
Expressions can be long and complex.
-true
number++; is an expression
-true
For-loops has a set number of iterations before starting.
-True
The equals( ) method can compare more than 2 arrays.
-False
While loops can use Booleans at test expressions.
-True
The test expression of the if statement is _______
-less than or equal to
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
x+1 is example of a statement.
-False
number++; is a block
-False
Arrays are
-Integers
The operator “new” allocates a memory block the size of what is declared.
-true
A class block can be an expression
-False
Statements can be expressions.
-False
Integer arrays can be populated with characters.
-False
Declaration clauses are declared as “number + 1”.
-False
Loops can be stopped with a break; statement.
-True
The equivalent of Paragraphs in coding is?
-Expressions
If statements cannot be nested in switches
-true

The length( ) method returns the size (number of indices) has.


-True
When polymorphism is used, the Java object can only take one form. Subclasses should have the
same function with the parent class.
-False
Arrays can contain (Answer) number of elements.
-Any

“||” and “&&” can be used in conditional statements.


-True
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

Expressions can be statements.


-True
Blocks can contain more blocks of code.
-True

If-else statements can be nested in?


-All of the choices
Statements are equivalent to paragraphs.
-False

A (answer) array is an array containing true or false values.


-boolean
Switches are always used with if-else statements
-False
True or False: The modulus operator returns the remainder of a division operation instead of the
quotient.
-true
Determine the output.
String val_1 = “564298”;
-5698
Determine the output.
String val_1 = “35”;
-4
The return value of the length( ) method is an integer
-true
A superclass is also known as a parent class.
-true
For-loops can be nested in while loops.
-true
In instantiating an object, the keyword instance is used.
-False
Object oriented programming utilizes the top down method
-False
Expressions are like clauses.
-true

The sort( ) method is always ascending.


-true
Arrays are data types.
-False

Variables must be declared as (Answer) for it to be fully hidden.


-private
While statements check the test expression at the end.
-False

The else statement can be used alone.


-False
The fill( ) method (Answer) the array with specific values.
-Fills

The output of println is


-55555
The person’s weight is declared correctly with the correct data type (byte) and value (160).
-FALSE

Determine the output.


String val_1 = “foo”

String val_2 = “bar”


val_2 = val_1;
val_1 = val_3;
System.out.println(val_1);

-bar
Determine the output.
String val_1 = “foo”
String val_2 = “bar”
val_2 = val_1;
val_1 = val_3;

System.out.println(val_2);
-foo
Switches can work properly even without the “break” expression.
-True
Blocks can be one liner or huge classes.
-True
The test expressions in conditional statements can be left empty.
-False
Abstraction works by hiding the implementation details and showing only the functions necessary.
-True
A single array can hold multiple data types
-False
A polymorphic object can pass more than one Is-a test.
-True
Another loop can be used as test expression.
-False
True or False: Public, static and void are sample of Java reserved keywords.
-True
The value of “pStr” in line 24 is

-True
The default syntax of a constructor is <class_name>(parameter, parameter){ }
-False

A nested class is not an inner class.


-False
Nested classes causes them to become abstracted
-False

A nested class is also called


-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
A constructor can only have 1-2 overloads or parameters.
-False

All possible data types of an array can be retuned as a string by the toString( ) method.
-True
Abstracted classes can contain 1 or more abstract methods.
-True

Abstraction shows the every bit of detail and implementation on how an application does something.
-False
Initialization is a process where the constructor is called for.
-True
The default syntax of a constructor is <class_name>( ){ }
-True
Classes cannot be nested.
-False
Abstract classes cannot have nested classes.
-False
The parent class of a nested class is called an outer class
-True
An inner class can be constructed directly without reference to the outer class.
-False
Arrays can be read backwards
-True
A single array can hold
-One data type
Abstracted methods already have implementations inside.
-False
are special methods to initialize objects.
-constructors
Constructors have 3 basic rules to follow.
-False
Nesting classes increases encapsulation.
-True
Each index can only contain (Answer) element.
-one
The sort( ) method can be set to sort only a part of an array.
-False
Subclasses or child classes could have different behaviors but still share the same functions from
their parent class.
-True
Abstract methods must have an explicit return value
-False
An abstract class must not contain abstract methods.
-False
Abstracted classes can be nested.
-True

A subclass constructor cannot invoke a superclass constructor.


-False
A class acquiring fields and methods of another class is called inheritance.
-True

Parallelsorting utilizes
-More cpu processing cores
method can copy one array to another.
-arraycopy()

The equivalent of clauses in coding is?


-Expressions
Int num = 1; for(num=num;num<=10;num++) is an acceptable code snippet.
-true
Loop that has a pre-determined number of iterations
-while
An int can be used even if it is declared outside a for-loop.
-true
Overload methods must be the same name as the class
-true
What the break statement in this example does is ________.
-Ends the whole instance of the loop
The random( ) method sorts the array randomly.
-False
The last part in a for loop setup can be an ________.
- both
The “1” in arrayName[1] is called an ________.
-Index
The continue; statement ends all the iterations of a loop.
- False
Which is not a proper increment?
- n+-;
Infine for-loops can be declared as for( ){ }.
- False
If-if is more logical than else-if.
- False
The else statement can be removed if not needed.
-True
Expressions, Statements and Blocks are like composing sentences and paragraphs.
-True
You can declare a new method in the subclass which is not declared in the superclass.
-True
The return value of the equals( ) method is ________ .
-None of the choices
The Arrays.sort( ) method sorts an array into _________ order.
-Ascending
This type of declaration is discouraged: “int myArray[ ]”
- True
An if-else-if-else statement is a block.
-True
If the increment num=num+2 is changed to num++, the final value of num will be
________.
-5
The term of each pass through a loop makes is called?
-iteration
Loops must always have a continue or break statement.
-False
1+2+3/4*5 is an unambiguous expression
-False
Conditional statements can contain more conditional statements.
- True
int num = 1;
if(num==1 && num<=1){
body;
}
The conditional statement will _______.
- execute the body
byte( ][ ][ ) myArray; is an example of ________.
- An error
An array _______ hold objects.
- can
A reference variable can be reassigned to other objects provided that it is not declared
________.
- final
The test expression of conditional statement cannot contain _______
-!
Each pass through of a loop is called a cycle.
- True
If the increment “num = num + 2” is changed to “num = num + 1” the final output will be
_______.
-0
Ifs and else-ifs test expressions return true or false.
- True
_______ classes increase the encapsulation of you methods and data.
- nesting
Constructed methods are initialized with 0 or null depending on the data type.
- true
The else statement catches whatever argument the if and else-if didn’t
- True
An iteration of a loop is equivalent to one pass through.
- true
38. If we change the initial value of num in line 6 to “num = 0”, the println output will be
_______
-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
A loop can contain no expressions or statements inside.
- true
Conditional statements are the same as declaration statements.
- False
You cannot use inherited methods directly in a child class.
- False
The equals( ) method compares 2 arrays.
- True
Method invocations are statements
- True
To implement encapsulation, you have to declare class variables with the private
modifier.
- True
Inner class methods can be called by constructing the inner class.
- False
Encapsulated data are hidden from other classes.
- True
Procedural programming will be tricky for applications.
Answer: small
Strings can directly concatenated to an int.
Answer: False

1. Machine language and assembly language are collectively referred to as


_________________________
Answer: LOW-LEVEL LANGUAGE
2. 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

3. Machine language is also known as Answer language.


4. Kyoto protocol addresses environmental issues through the campaign of
____________________.
Answer: reducing greenhouse gas emissions
5. 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 – like additional characters and skills.”
Select one:
Answer: Maintainability
6.C# was released by Answer Micros
.

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?

Answer: Social media login limit.


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.
I cannot type anything but my mouse is working, I am using a brand new USB keyboard, which port
should I check?
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.
ANSWER: PRINTER WIZARD
13.Big business companies are the only ones responsible for enforcing environmental policies since
they can afford alternative cleaner technology.
ANSWER: FALSE
14. Who is considered as a user (component of an operating system)?
ANSWER; ALL OF THE CHOICES

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.
ANSWER: High-Level 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?
ANSWER: IV, I, V, III, II
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

21. The first computer concept invented is called _________________________.


ANSWER; ANALYTICAL ENGINE

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
23.Java is an example of

ANSWER: HIGH-LEVEL LANGUAGE


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 it be connected?
ANSWER: D
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
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. ead 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.
“I find it really enjoying to play XYZ since I can invite my friends from social media profile. It works
well with this social media app!”
ANSWER: COMPATIBILITY
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.

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.”
ANSWER: SECURITY
33.Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product quality model
and write the letter that corresponds to your answer.
Capacity
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: ASK FOR HEIGHT
35.Montreal protocol protects the ozone layer by ____________________.
ANSWER: phasing out harmful substances
36. 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
37. Refer to the image below to answer the following question.
By default, what is the value of limit?
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 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.
“XYZ is so cool! I tried to install it in my old computer and it still runs smoothly. Given that the
computer’s video card is a bit faulty.“
ANSWER: Reliability

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: NONE OF THE CHOICES


44. Refer to the pseudocode below and answer the following question: What happens after weight is
given?
ANSWER: ASK FOR HEIGHT
45.Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product quality model
and write the letter that corresponds to your answer.
Learnability
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?

ANSWER: display Overweight


47.Axel is finally documenting his work. What could he be writing?

ANSWER: instructions for the users


48. 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.
“One good thing I find with XYZ as when my laptop shuts down accidentally, my game score and
status can still be recovered. No need to repeat a level.”
ANSWER: Reliability
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
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. 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.
Answer: accountable
Question text
True or False: Monitoring and evaluating means brainstorming.
Answer: False
Question 5
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Axel is finally documenting his work. What could he be writing?
Select one:
a. requirements of the program
b. system analysis
c. bug reviews and errors
d. instructions for the users

Question 6
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Machine language and assembly language are collectively referred to as
_________________________.
Select one:
a. Average level language
b. Low-level language
c. Advanced language
d. High-level language

Question 7
Complete
Mark 1.00 out of 1.00

Flag question

Question text
True or False: Nothing good ever comes from giving feedback. If anything, anyone who does give
will only get scolded by the boss.
Answer: False

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 problems in Materials, Measurement, Method, People, Equipment or
Environment.

When the software used was checked, the project manager discovered that some of the
programmers are using an old version of Java. This cause is categorized under

Answer. Materials

Question 9
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 be told
about the students who volunteered to test the student record system.
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:
a. email
b. social media
c. hyperlinks
d. speaking

Question 12
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Refer to the pseudocode below and answer the following question:
What is the first thing that the program will do?
Select one:
a. ask for BMI
b. print height
c. ask for height
d. print BMI

Question 13
Complete
Mark 1.00 out of 1.00

Flag question

Question text
____________________ in the workplace protection of sensitive business information through
precautionary measures like confidentiality clauses or non-disclosure agreements.
Select one:
a. Curiosity
b. Integrity
c. Secrecy
d. Confidentiality

Question 14
Complete
Mark 0.00 out of 1.00
Flag question

Question text
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product quality model and
write the letter that corresponds to your answer.
Capacity
Select one:
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.
Answer: False

Question 17
Complete
Mark 1.00 out of 1.00

Flag question

Question text
In ____________________, 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
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.
Answer: True

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:
a. True
b. 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:
a. True
b. 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
b. Actions
c. Objectives
d. Process

Question 23
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Categorize the following 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
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
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 problems in Materials, Measurement, Method, People, Equipment or
Environment.

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

Question 27
Complete
Mark 1.00 out of 1.00

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
Complete
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:
a. Correct
b. Wrong

Question 29
Complete
Mark 1.00 out of 1.00

Flag question

Question text
In adding a new printer, the _____________ will guide you on the steps to be taken.
Select one:
a. Printer Guide
b. Printer Affix
c. Printer Install
d. Printer Wizard

Question 30
Complete
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

Question text
Refer to the image below and write only the letter of the correct answer in the space provided.

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 text
Identify whether the following task should be listed as a milestone or be included in the Gantt chart.
Fix bugs and errors detected in the system.
Answer: Gantt chart

Question 33
Complete
Mark 1.00 out of 1.00

Flag question

Question text
In the correct order, the essential parts of the communication process are:
Select one:
a. Source, Message, Encoding, Channel, Decoding, Receiver, Feedback
b. Source, Message, Encoding, Channel, Receiver, Decoding, Feedback
c. Source, Message, Encoding, Channel, Decoding, Feedback, Receiver
d. Source, Message, Encoding, Receiver, Decoding, Channel, Feedback

Question 34
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
Answer: internal

Question 35
Complete
Mark 1.00 out of 1.00

Flag question

Question text
True or False: To solve a problem means to know first what the problem is before coming up with
the feasible solutions.
Answer: True

Question 36
Complete
Mark 1.00 out of 1.00

Flag question

Question text
True or False: Listing down the issues related to the problem is second to the last step in an
effective problem solving process.
Answer: False

Question 37
Complete
Mark 1.00 out of 1.00

Flag question

Question text
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:
a. Portability
b. Security
c. Maintainability
d. Functional Suitability
e. Usability
f. Compatibility
g. Performance Efficiency
h. Reliability

Question 38
Complete
Mark 1.00 out of 1.00
Flag question

Question text
Monica accidentally unplugged the mouse PS/2 port. What will happen to the mouse connected thru
the universal serial bus port?
Select one:
a. The mouse will stop working.
b. None of the choices.
c. The mouse will freeze.
d. All of the choices
e. The mouse will be disabled.

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
Flag question

Question text
Decide whether it is a communication instrument or purpose.
A Gantt chart that shows the schedule for the development process of the student record system.

Answer: instrument

Question 41
Complete
Mark 1.00 out of 1.00

Flag question

Question text
A product or service 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 Control
c. Safety Programs
d. Reflective Behavior
Question 42
Complete
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.
ComputeTotalScore() for a routine to sum up the scores.
Select one:
a. Wrong
b. 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
Mark 1.00 out of 1.00

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
Question text
The first computer concept invented is called _________________________.
Select one:
a. COBOL
b. Analytical Engine
c. FORTRAN
d. PlanKalKul

Question 49
Complete
Mark 1.00 out of 1.00

Flag question

Question text
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.
“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.”
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
Flag question

Question text
Categorize the following subcharacteristics of the ISO/IEC 25010:2011’s product quality model and
write the letter that corresponds to your answer.
Integrity
Select one:
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 does NOT describes SELECT Statement in a PL/SQL.


Answer: Queries must return only one column.
You want to display all the records of employee the same with the salary employee number 103.
Answer: SELECT * FROM employees WHERE salary = (SELECT salary from employees where
employee_id= 103)
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;
Which of the folllowing is TRUE?
Answer: SQL code are embedded within PL/SQL statements
When an exception is user defined, the exception is raised ____________ .
Answer: Explicitly
Which of the folllowing is TRUE?
Answer: SQL code are embedded withing PL/SQL statements
Weak REF CURSOR is very flexible.
Answer: True
How do you test the output of a PL/SQL block?
Answer: Use a predefined Oracle package and its procedure
Restrictive, specifies a RETURN type, associates only with type-compatible queries are description
of a ________________.
Answer: Strong REF CURSOR
Which of the following DOES NOT describes an exception?
Answer: Exception is a PL/SQL error that is raised before program execution.
These are local variables declared in the parameter list of a subprogram specification.
Answer: Formal parameter
Which of the following rules is INCORRECT about cursor variables?
Answer: None of the choices.
When an exception is predefined by Oracle server, the exception is raised ____________ .
Answer: Explicitly
Which of the following DOES NOT describes an exception?
Answer: Exception is a PL/SQL error that is raised before program execution.
Evaluate the following PL/SQL.
CREATE OR REPLACE PROCEDURE query_employee
(p_id IN employees.employee_id%TYPE,
p_name OUT employees.last_name%TYPE,
p_salary OUT employees.salary%TYPE) IS
BEGIN SELECT last_name, salary INTO p_name, p_salary
FROM employeesWHERE employee_id = p_id;
END query_employee
Answer: No error
You want to know the total number of employees whose firstname starts with letter D.
Which of the folllowing PLS/SQL executes successfully?
Answer: DECLARE
v_first_name employees.first_name%TYPE := 'D%';
BEGIN
SELECT COUNT(*) INTO v_first_name FROM employees WHERE first_name LIKE v_first_name;
DBMS_OUTPUT.PUT_LINE(v_first_name);
END;
What is the error trapping function that returns the numeric value of the error code?
Answer: SQLCODE
You want to display the name, salary and tax of employee #150. Which of the PL/SQL will execute
successfully? Note tax is computed as 2% of the salary.
Answer: DECLARE
v_first_name VARCHAR2(50);
v_last_name VARCHAR2(50);
v_salary INTEGER(20);
v_tax INTEGER(10);
BEGIN
SELECT first_name, last_name, salary, salary * 0.02 INTO v_first_name, v_last_name, v_salary,
v_tax FROM employees WHERE employee_id = 150;
DBMS_OUTPUT.PUT_LINE('Firstname : '|| v_first_name);
DBMS_OUTPUT.PUT_LINE('Lastname : '|| v_last_name);
DBMS_OUTPUT.PUT_LINE('Salary : '|| v_salary);
DBMS_OUTPUT.PUT_LINE('Tax : '|| v_tax);
END;
Which of the following is the syntax to close a cursor?
Answer: CLOSE cursor_variable_name;
Which of the following rules is INCORRECT about cursor variables?
Answer: None of the choices.
What are the three PL/SQL block types?
Answer: Anonymous, Procedure, Function
You can trap any error by including a corresponding handler within the exception-handling section of
the PL/SQL block.
Answer: True
Which of the following describes weak REF CURSOR?
Answer: Associates with any query
Given the answer in item __________, which of the folllowing stored procedure will display the
employee id and salary of Steven King?
Answer: DECLARE
v_employee_id employees.employee_id%TYPE;
v_emp_sal employees.salary%TYPE;
BEGIN
query_emp('King', 'Steven', v_employee_id, v_emp_sal);
DBMS_OUTPUT.PUT_LINE('Employee ID ' || v_employee_id ||' earns '|| to_char(v_emp_sal,
'$999,999.00'));
END;
You have been tasked to update the database by creating a PL/SQL to increase the salary of all IT
Programmer employees by 50% 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 *0.50 WHERE job_id = v_job_id;
END;
Which of the folllowing is required in a subquery?
Answer: SELECT
What is the exception name when PL/SQL has an internal problem
Answer: PROGRAM_ERROR
In the DECLARE section of the PL/SQL block,
Answer: All of the choices
Actions are being performed when error occurs during PL/SQL execution in the
Answer: EXCEPTION
What is the exception name when PL/SQL has an internal problem
Answer: PROGRAM_ERROR
Which of the folllowing statement describes PL/SQL?
Answer: PL/SQL is an Oracle proprietary, procedural, 3GL programming language
Evaluate the following PL/SQL.
DECLARE
v_employee_id employees.employee_id%TYPE := 114;
BEGIN
DELETE employees WHERE employee_id = v_employee_id;
END;
Answer: The PL/SQL will delete employee number 114.
Which of the following command is used to create a stand-alone procedure that is stored in the
Oracle database?
Answer: CREATE PROCEDURE
Evaluate the following PL/SQL.
DECLARE
v_email VARCHAR(20);
BEGIN
SELECT email INTO v_email FROM EMPLOYEES WHERE email like 'D%';
DBMS_OUTPUT.PUT_LINE ('Employees whose email address starts with letter D :'
|| v_email);
EXCEPTION
WHEN TOO_MANY_ROWS THEN
DBMS_OUTPUT.PUT_LINE (' Your select statement retrieved multiple rows.');
END;
Answer: The PL/SQL block will run successfully.
Which of the following is the syntax to define a REF CURSOR type?
Answer: TYPE ref_type_name IS REF CURSOR
[RETURN return_type];
The PL/SQL code block helps modularize code by using:
Answer: All of the choices
Which of the following is the syntax to fetch from a cursor variable?
Answer: FETCH cursor_variable_name INTO variable_name1
[,variable_name2,. . .] | record_name;
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')
Procedure can be stored in the database as a schema object.
Answer: True
In PL/SQL Block Structure, which of the following are mandatory?
Answer: BEGIN and END
PL/SQL stands for
Answer: Procedural Language extension to SQL
Which of the following is CORRECT about sub-queries?
Answer: Subquery execute before the main query executes.
Which of the following does NOT describes SELECT Statement in a PL/SQL.
Answer: Queries must return only one column.
PL/SQL Provides a block structure for executable units of ________________.
Answer: Code
Evaluate the SQL command
SELECT employee_id, salary from employees where salary = ANY (SELECT salary FROM
employees WHERE job_id = 'IT_PROG') AND job_id = 'ST_CLERK'
Answer: This has no error.
Which of the following PL/SQL will execute successfully?
Answer: DECLARE
v_salary INTEGER(20);
BEGIN
SELECT salary INTO v_salary FROM employees WHERE employee_id = 150;
END;
In PL/SQL Block Structure, which of the following are OPTIONAL?
Answer: None of the choices
Evaluate the following PL/SQL. At what line number is the error of the PL/SQL?
DECLARE
v_deptno NUMBER := 800;
e_invalid EXCEPTION;
BEGIN
DELETE FROM departments
WHERE department_id = v_deptno;
IF SQL % NOT_FOUND THEN
RAISE e_invalid;
END IF;
COMMIT;
EXCEPTION
WHEN e_invalid THEN
DBMS_OUTPUT.PUT_LINE('No such department id.');
END;
Answer: 7
What is the error trapping function that returns the numeric value of the error code?
Answer: SQLCODE
Fetch into a record when fetching from a cursor.
Answer: True

PROG-113A / ► Week 18: Designing PL/SQL / ► Short Quiz 14


Which of the following is the syntax to open a cursor varial
Answer: OPEN cursor_variable_name
FOR select_statement;
Which of the following is the syntax to define a REF CURSOR type?
Answer: TYPE ref_type_name IS REF CURSOR
[RETURN return_type];
Weak REF CURSOR is very flexible.
Answer: True
Evaluate the following. What will be the output?
DECLARE
SUBTYPE Accumulator IS NUMBER (4,2);
v_amount accumulator;
v_num1 NUMBER;
v_num2 NUMBER;
v_num3 NUMBER;
BEGIN
v_amount := 10.50;
v_num1 := 1;
v_num2 := 2;
v_num3 := 3;
v_num1 := v_amount;
v_num2 := v_num1 + v_amount;
v_num2 := v_num2 - v_num3;
dbms_output.put_line('Total is: ' || v_num2);
END;
Answer: 18
Which of the following is the syntax to fetch from a cursor variable?
Answer: FETCH cursor_variable_name INTO variable_name1
[,variable_name2,. . .] | record_name;
Fetch into a record when fetching from a cursor.
Answer: True
Which of the following is the syntax to close a cursor?
Answer: CLOSE cursor_variable_name;
This is a subset of an existing data type that may place a constraint on its base type.
Answer: Subtype
Which of the following rules is INCORRECT about cursor variables?
Answer: None of the choices.
Use column aliases in cursors for calculated columns fetched into records declared with %COLUMNTYPE.
Answer: False

PROG-113A / ► Week 18: Designing PL/SQL / ► Learning Activity 14

Which of the following rules is INCORRECT about cursor variables?


Answer: None of the choices.
Which of the following describes weak REF CURSOR?
Answer: Associates with any query
Restrictive, specifies a RETURN type, associates only with type-compatible queries are
description of a ________________.
Answer: Strong REF CURSOR
Which of the following is INCORRECT about the guidelines for cursor design?
Answer: Use column aliases in cursors for calculated columns fetched into records declared with
%COLUMNTYPE.
This is a subset of an existing data type that may place a constraint on its base type.
Answer: Subtype

PROG-113A / ► Week 17: / ► Short Quiz 13


Evaluate the following PL/SQL.
CREATE OR REPLACE PROCEDURE query_employee
(p_id IN employees.employee_id%TYPE,
p_name OUT employees.last_name%TYPE,
p_salary OUT employees.salary%TYPE) IS
BEGIN SELECT last_name, salary INTO p_name, p_salary
FROM employeesWHERE employee_id = p_id;
END query_employee
Answer: No error
Evaluate the following PL/SQL. Which of the following will line creates an error?
CREATE OR REPLACE PROCEDURE query_emp
(
p_department_id IN employees.department_id%TYPE,
p_name OUT employees.last_name%TYPE,
p_salary OUT employees.salary%TYPE
)
IS
BEGIN
SELECT last_name, salary, department_id INTO p_name, p_salary, p_department_id
FROM employees
WHERE salary >= p_salary AND department_id = p_department_id ;
END query_emp;
Answer: Line 3
These are local variables declared in the parameter list of a subprogram specification.
Answer: Formal parameter
Given the answer in item __________, which of the folllowing stored procedure will display the
employee id and salary of Steven King?
Answer: DECLARE
v_employee_id employees.employee_id%TYPE;
v_emp_sal employees.salary%TYPE;
BEGIN
query_emp('King', 'Steven', v_employee_id, v_emp_sal);
DBMS_OUTPUT.PUT_LINE('Employee ID ' || v_employee_id ||' earns '|| to_char(v_emp_sal,
'$999,999.00'));
END;

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

PROG-113A / ► Week 16: Creating Procedures / ► Learning Activity 13


Procedure can be stored in the database as a schema object.
Answer: True
The PL/SQL code block helps modularize code by using:
Answer: All of the choices
Which of the following command is used to create a stand-alone procedure that is stored in the Oracle
database?
Answer: CREATE PROCEDURE
Which of the folllowing 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
Answer: iii & v
Which if the following is NOT a benefits of using modular program constructs?
Answer: None of the choices
PROG-113A / ► Week 18: Designing PL/SQL / ► Short Quiz 14
Which of the following is the syntax to open a cursor varial
Answer: OPEN cursor_variable_name
FOR select_statement;
Which of the following is the syntax to define a REF CURSOR type?
Answer: TYPE ref_type_name IS REF CURSOR
[RETURN return_type];
Weak REF CURSOR is very flexible.
Answer: True
Evaluate the following. What will be the output?
DECLARE
SUBTYPE Accumulator IS NUMBER (4,2);
v_amount accumulator;
v_num1 NUMBER;
v_num2 NUMBER;
v_num3 NUMBER;
BEGIN
v_amount := 10.50;
v_num1 := 1;
v_num2 := 2;
v_num3 := 3;
v_num1 := v_amount;
v_num2 := v_num1 + v_amount;
v_num2 := v_num2 - v_num3;
dbms_output.put_line('Total is: ' || v_num2);
END;
Answer: 18
Which of the following is the syntax to fetch from a cursor variable?
Answer: FETCH cursor_variable_name INTO variable_name1
[,variable_name2,. . .] | record_name;
Fetch into a record when fetching from a cursor.
Answer: True
Which of the following is the syntax to close a cursor?
Answer: CLOSE cursor_variable_name;
This is a subset of an existing data type that may place a constraint on its base type.
Answer: Subtype
Which of the following rules is INCORRECT about cursor variables?
Answer: None of the choices.
Use column aliases in cursors for calculated columns fetched into records declared with %COLUMNTYPE.
Answer: False

PROG-113A / ► Week 18: Designing PL/SQL / ► Learning Activity 14


Which of the following rules is INCORRECT about cursor variables?
Answer: None of the choices.
Which of the following describes weak REF CURSOR?
Answer: Associates with any query
Restrictive, specifies a RETURN type, associates only with type-compatible queries are
description of a ________________.
Answer: Strong REF CURSOR
Which of the following is INCORRECT about the guidelines for cursor design?
Answer: Use column aliases in cursors for calculated columns fetched into records declared with
%COLUMNTYPE.
This is a subset of an existing data type that may place a constraint on its base type.
Answer: Subtype

PROG-113A / ► Week 15: Long Quiz / ► Long Quiz 3 (30/30)


(Correction)
How do you test the output of a PL/SQL block?
Answer: Use a predefined Oracle package and its procedure
Which of the folllowing statement describes PL/SQL?
Answer: PL/SQL is an Oracle proprietary, procedural, 3GL programming language
Which of the following syntax to declare EXCEPTION named e_invalid_id?
Answer: e_invalid_id EXCEPTION;
In PL/SQL Block Structure, which of the following are mandatory?
Answer: BEGIN and END
This is a type of cursor which is created and managed internally by the Oracle server to process
SQL statements
Answer: Implicit
PL/SQL stands for
Answer: Procedural Language extension to SQL
Which of the following PL/SQL will execute successfully?
Answer: DECLARE
v_salary INTEGER(20);
BEGIN
SELECT salary INTO v_salary FROM employees WHERE employee_id = 150;
END;
What is the last clause in trapping exceptions?
Answer: WHEN OTHERS
PL/SQL Provides a block structure for executable units of ________________.
Answer: Code
Evaluate the following PL/SQL.
DECLARE
v_email VARCHAR(20);
BEGIN
SELECT email INTO v_email FROM EMPLOYEES WHERE email like 'D%';
DBMS_OUTPUT.PUT_LINE ('Employees whose email address starts with letter D :'
|| v_email);
EXCEPTION
WHEN TOO_MANY_ROWS THEN
DBMS_OUTPUT.PUT_LINE (' Your select statement retrieved multiple rows.');
END;
Answer: The PL/SQL block will run successfully.
Which of the folllowing is TRUE?
Answer: SQL code are embedded within PL/SQL statements
You can trap any error by including a corresponding handler within the exception-handling
section of the PL/SQL block.
Answer: True
When an exception is user defined, the exception is raised ____________ .
Answer: Explicitly
Evaluate the PL/SQL
DECLARE
v_first_name VARCHAR2(50);
v_last_name VARCHAR2(50);
v_salary INTEGER(20);
BEGIN
SELECT first_name, last_name, salary INTO v_first_name, v_last_name, v_salary FROM
employees WHERE department_id = 60;
DBMS_OUTPUT.PUT_LINE('Firstname : '|| v_first_name);
DBMS_OUTPUT.PUT_LINE('Lastname : '|| v_last_name);
DBMS_OUTPUT.PUT_LINE('Salary : '|| v_salary);
END;
Answer: Error in Line 6.
Evaluate the following PL/SQL.
DECLARE
v_employee_id employees.employee_id%TYPE := 114;
BEGIN
DELETE employees WHERE employee_id = v_employee_id;
END;
Answer: The PL/SQL will delete employee number 114.
Which of the following does NOT describes SELECT Statement in a PL/SQL.
Answer: Queries must return only one column.
What are the three PL/SQL block types?
Answer: Anonymous, Procedure, Function
What is the exception name when PL/SQL has an internal problem
Answer: PROGRAM_ERROR
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?
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;
What is the error trapping function that returns the numeric value of the error code?
Answer: SQLCODE
What is the exception name when single row SELECT returned no data.
Answer: NO_DATA_FOUND
Which of the following DOES NOT describes an exception?
Answer: Exception is a PL/SQL error that is raised before program execution.
Evaluate the following PL/SQL.
DECLARE
v_employee_id employees.employee_id%TYPE := 114;
BEGIN
DELETE employees WHERE employee_id = v_employee_id;
END;
Answer: The PL/SQL will delete employee number 114.
In the DECLARE section of the PL/SQL block,
Answer: All of the choices
When an exception is predefined by Oracle server, the exception is raised ____________ .
Answer: Explicitly
Which of the will display the Employee ID and number of years in service with employee ID
150?
Answer: DECLARE
v_salaryemployees.salary%TYPE := 10000;
v_employee_idemployees.employee_id%TYPE := 150;
v_years INTEGER(10);
BEGIN
SELECT employee_id, ROUND((SYSDATE - hire_date) /365,0) INTO v_employee_id, v_years
FROM employees WHERE employee_id = v_employee_id ;
DBMS_OUTPUT.PUT_LINE('Employee ID:' || v_employee_id);
DBMS_OUTPUT.PUT_LINE('Number of years : ' || v_years);
END;
Actions are being performed when error occurs during PL/SQL execution in the
Answer: EXCEPTION
You can use this procedure to issue user-defined error messages from stored subprograms.
Answer: RAISE_APPLICATION_ERROR

PROG-113A / ► Week 14: Handling Exceptions / ► Short Quiz 12

Evaluate the following PL/SQL.


DECLARE
v_email VARCHAR(20);
BEGIN
SELECT email INTO v_email FROM EMPLOYEES WHERE email like 'D%';
DBMS_OUTPUT.PUT_LINE ('Employees whose email address starts with letter D :'
|| v_email);
EXCEPTION
WHEN TOO_MANY_ROWS THEN
DBMS_OUTPUT.PUT_LINE (' Your select statement retrieved multiple rows.');
END;
Answer: The PL/SQL block will run successfully.
Which of the following DOES NOT describes an exception?
Answer: Exception is a PL/SQL error that is raised before program execution.
What is the exception name when single row SELECT returned no data.
Answer: NO_DATA_FOUND
RAISE_APPLICATION_ERROR is used in two different places. These are
___________________.
Answer: Executable and exceptions section
What is the error trapping function that returns the numeric value of the error code?
Answer: SQLCODE
What is the exception name when PL/SQL has an internal problem
Answer: PROGRAM_ERROR
Evaluate the following PL/SQL. At what line number is the error of the PL/SQL?
DECLARE
v_deptno NUMBER := 800;
e_invalid EXCEPTION;
BEGIN
DELETE FROM departments
WHERE department_id = v_deptno;
IF SQL % NOT_FOUND THEN
RAISE e_invalid;
END IF;
COMMIT;
EXCEPTION
WHEN e_invalid THEN
DBMS_OUTPUT.PUT_LINE('No such department id.');
END;
Answer: 7
What is the last clause in trapping exceptions?
Answer: WHEN OTHERS
Complete the diagram in Trapping Non-Predefined Oracle Server Errors.
Answer: Declare, Associate, Reference

PROG-113A / ► Week 14: Handling Exceptions / ► Learning Activity 12

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

PROG-113A / ► Week 13: Interacting with Oracle Server / ► Learning Activity 11

Which of the following does NOT describes SELECT Statement in a PL/SQL.


Answer: Queries must return only one column.
Evaluate the following PL/SQL.
1 DECLARE

2 v_employee_id employees.employee_id%TYPE := 114;

3 BEGIN

4 DELETE employees WHERE employee_id = 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;

PROG-113A / ► Week 12: Introduction to PLSQL / ► Short Quiz 10

Which of the folllowing is TRUE?


Answer: SQL code are embedded withing PL/SQL statements
In the DECLARE section of the PL/SQL block
Answer: All of the choices
In PL/SQL Block Structure, which of the following are OPTIONAL?
Answer: None of the choices
What are the three PL/SQL block types?
Answer: Anonymous, Procedure, Function
How do you test the output of a PL/SQL block?
Answer: Use a predefined Oracle package and its procedure
You want to display the name, salary and tax of employee #150. Which of the PL/SQL will
execute successfully? Note tax is computed as 2% of the salary.
Answer: DECLARE
v_first_name VARCHAR2(50);
v_last_name VARCHAR2(50);
v_salary INTEGER(20);
v_tax INTEGER(10);
BEGIN
SELECT first_name, last_name, salary, salary * 0.02 INTO v_first_name, v_last_name,
v_salary, v_tax FROM employees WHERE employee_id = 150;
DBMS_OUTPUT.PUT_LINE('Firstname : '|| v_first_name);
DBMS_OUTPUT.PUT_LINE('Lastname : '|| v_last_name);
DBMS_OUTPUT.PUT_LINE('Salary : '|| v_salary);
DBMS_OUTPUT.PUT_LINE('Tax : '|| v_tax);
END;
Which of the folllowing statement describes PL/SQL?
Answer: PL/SQL is an Oracle proprietary, procedural, 3GL programming language

PROG-113A / ► Week 12: Introduction to PLSQL / ► Learning Activity 10


PL/SQL stands for
Answer: Procedural Language extension to SQL
PL/SQL Provides a block structure for executable units of ________________.
Answer: Code
In PL/SQL Block Structure, which of the following are mandatory?
Answer: BEGIN and END
Which of the following PL/SQL will execute successfully?
Answer: DECLARE
v_salary INTEGER(20);
BEGIN
SELECT salary INTO v_salary FROM employees WHERE employee_id = 150;
END;
Actions are being performed when error occurs during PL/SQL execution in the
Answer: EXCEPTION

PROG-113A / ► Week 11: Using Subqueries to Solve Queries / ► Short Quiz 9

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')
Evaluate the SQL command
SELECT employee_id, job_id, salary from employees where salary < ALL (SELECT salary
FROM employees WHERE job_id = 'FI_ACCOUNT') AND job_id = 'IT_PROG'
Answer: This has no error.

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')

Evaluate the SQL command


SELECT employee_id, last_name, first_name, job_id FROM employees WHERE department_id
= (SELECT max(department_id) FROM employees GROUP BY department_id)
Answer: This will return an error. Single-row subquery returns more than one row.

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)

PROG-113A / ► Week 11: Using Subqueries to Solve Queries / ► Learning Activity 9


Which of the following is INCORRECT?
Answer: Use single-row operators with multiple-row subqueries
Which of the folllowing is required in a subquery?
Answer: SELECT
Which of the following is CORRECT about sub-queries?
Answer: Subquery execute before the main query executes.
Evaluate the SQL Command
SELECT job_id, job_title FROM jobs J WHERE INCLUDES
(SELECT * FROM employees WHERE J.job_id = e.job_id );
Answer: The SQL will return an error. Invalid "INCLUDES" parameter.
Evaluate the SQL command
SELECT employee_id, salary from employees where salary = ANY (SELECT salary FROM employees
WHERE job_id = 'IT_PROG') AND job_id = 'ST_CLERK'
Answer: This has no error.
The General Manager request to the Database Administrator to generate the total number of parts
and total outstanding balance on hand of every class in warehouse number 1&2.
Which of the following SQL command will generate the required output.
-SELECT warehouse, class, count(partnum), sum(onhand) GROUP BY warehouse,class
HAVING warehouse = 1 or warehouse = 2 FROM parts;

Display the employee's name, job title, job_id and the department name of employees with
department id of 100.
-SELECT E.employee_id, J.job_title, e.job_id, D.department_name
FROM employees E
JOIN jobs J ON E.job_id = J.job_id
JOIN departments D ON E.department_id = D.department_id
WHERE E.department_id = 100

Display the part number whose class is not HW, AG or SG.


-SELECT partnum FROM parts WHERE NOT IN class ('HW', 'AG', SG')
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?
-. SELECT DESCRIPTION RENAME AS TITLE, PARTNUM RENAME AS ID, ONHAND RENAME AS
STOCK FROM PARTS;
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 _____________.
-FULL OUTER JOIN
Which of the following is NOT a task of a Database Administrator
-None of the choices

SELECT employee_id, min_salary, max_salary FROM employees, departments WHERE


salary>= 10000 && salary <= 20000
-The SQL command will produce an error.

These are collection of objects such as tables, views, and sequences.


-Container’
Display the first 5 letter in the surname of all the employees whose firstname starts with letter 'N'
-SELECT SUBSTR(last_name,1,5), first_name FROM employees WHERE
SUBSTR(first_name,1,1) IN 'N'
Which of the following SELECT statement is the correct PL/SQL that will display all rows and
columns?
-SELECT FROM TABLE PARTS;
Display all employees whose job id contains the word 'ACCOUNT'.
-SELECT * FROM EMPLOYEES WHERE job_id LIKE '%ACCOUNT%';
Display employee's name and id whose firstname starts with letter D and job id is IT_PROG.
-SELECT employee_id, first_name, last_name FROM employees ORDER BY department_id
WHERE first_name LIKE 'D%' and job_id = 'IT_PROG'
The following are capabilities of SQL SELECT
-Create records, Remove Table, Edit record

Display the part number whose class is not HW, AG or SG.


-SELECT partnum FROM parts WHERE class NOT IN = (‘HW’, AG’, SG’)
Each row of data in a table can be uniquely identified by a
-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;
Display all location id between 1000 to 2000.
- DISPLAY location_id FROM departments WHERE location_id BETWEEN 1000 TO 2000
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 does NOT describes SELECT Statement in a PL/SQL.


Answer: Queries must return only one column.
You want to display all the records of employee the same with the salary employee number 103.
Answer: SELECT * FROM employees WHERE salary = (SELECT salary from employees where
employee_id= 103)
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;
Which of the folllowing is TRUE?
Answer: SQL code are embedded within PL/SQL statements
When an exception is user defined, the exception is raised ____________ .
Answer: Explicitly
Which of the folllowing is TRUE?
Answer: SQL code are embedded withing PL/SQL statements
Weak REF CURSOR is very flexible.
Answer: True
How do you test the output of a PL/SQL block?
Answer: Use a predefined Oracle package and its procedure
Restrictive, specifies a RETURN type, associates only with type-compatible queries are description
of a ________________.
Answer: Strong REF CURSOR
Which of the following DOES NOT describes an exception?
Answer: Exception is a PL/SQL error that is raised before program execution.
These are local variables declared in the parameter list of a subprogram specification.
Answer: Formal parameter
Which of the following rules is INCORRECT about cursor variables?
Answer: None of the choices.
When an exception is predefined by Oracle server, the exception is raised ____________ .
Answer: Explicitly
Which of the following DOES NOT describes an exception?
Answer: Exception is a PL/SQL error that is raised before program execution.
Evaluate the following PL/SQL.
CREATE OR REPLACE PROCEDURE query_employee
(p_id IN employees.employee_id%TYPE,
p_name OUT employees.last_name%TYPE,
p_salary OUT employees.salary%TYPE) IS
BEGIN SELECT last_name, salary INTO p_name, p_salary
FROM employeesWHERE employee_id = p_id;
END query_employee
Answer: No error
You want to know the total number of employees whose firstname starts with letter D.
Which of the folllowing PLS/SQL executes successfully?
Answer: DECLARE
v_first_name employees.first_name%TYPE := 'D%';
BEGIN
SELECT COUNT(*) INTO v_first_name FROM employees WHERE first_name LIKE v_first_name;
DBMS_OUTPUT.PUT_LINE(v_first_name);
END;
What is the error trapping function that returns the numeric value of the error code?
Answer: SQLCODE
You want to display the name, salary and tax of employee #150. Which of the PL/SQL will execute
successfully? Note tax is computed as 2% of the salary.
Answer: DECLARE
v_first_name VARCHAR2(50);
v_last_name VARCHAR2(50);
v_salary INTEGER(20);
v_tax INTEGER(10);
BEGIN
SELECT first_name, last_name, salary, salary * 0.02 INTO v_first_name, v_last_name, v_salary,
v_tax FROM employees WHERE employee_id = 150;
DBMS_OUTPUT.PUT_LINE('Firstname : '|| v_first_name);
DBMS_OUTPUT.PUT_LINE('Lastname : '|| v_last_name);
DBMS_OUTPUT.PUT_LINE('Salary : '|| v_salary);
DBMS_OUTPUT.PUT_LINE('Tax : '|| v_tax);
END;
Which of the following is the syntax to close a cursor?
Answer: CLOSE cursor_variable_name;
Which of the following rules is INCORRECT about cursor variables?
Answer: None of the choices.
What are the three PL/SQL block types?
Answer: Anonymous, Procedure, Function
You can trap any error by including a corresponding handler within the exception-handling section of
the PL/SQL block.
Answer: True
Which of the following describes weak REF CURSOR?
Answer: Associates with any query
Given the answer in item __________, which of the folllowing stored procedure will display the
employee id and salary of Steven King?
Answer: DECLARE
v_employee_id employees.employee_id%TYPE;
v_emp_sal employees.salary%TYPE;
BEGIN
query_emp('King', 'Steven', v_employee_id, v_emp_sal);
DBMS_OUTPUT.PUT_LINE('Employee ID ' || v_employee_id ||' earns '|| to_char(v_emp_sal,
'$999,999.00'));
END;
You have been tasked to update the database by creating a PL/SQL to increase the salary of all IT
Programmer employees by 50% 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 *0.50 WHERE job_id = v_job_id;
END;
Which of the folllowing is required in a subquery?
Answer: SELECT
What is the exception name when PL/SQL has an internal problem
Answer: PROGRAM_ERROR
In the DECLARE section of the PL/SQL block,
Answer: All of the choices
Actions are being performed when error occurs during PL/SQL execution in the
Answer: EXCEPTION
What is the exception name when PL/SQL has an internal problem
Answer: PROGRAM_ERROR
Which of the folllowing statement describes PL/SQL?
Answer: PL/SQL is an Oracle proprietary, procedural, 3GL programming language
Evaluate the following PL/SQL.
DECLARE
v_employee_id employees.employee_id%TYPE := 114;
BEGIN
DELETE employees WHERE employee_id = v_employee_id;
END;
Answer: The PL/SQL will delete employee number 114.
Which of the following command is used to create a stand-alone procedure that is stored in the
Oracle database?
Answer: CREATE PROCEDURE
Evaluate the following PL/SQL.
DECLARE
v_email VARCHAR(20);
BEGIN
SELECT email INTO v_email FROM EMPLOYEES WHERE email like 'D%';
DBMS_OUTPUT.PUT_LINE ('Employees whose email address starts with letter D :'
|| v_email);
EXCEPTION
WHEN TOO_MANY_ROWS THEN
DBMS_OUTPUT.PUT_LINE (' Your select statement retrieved multiple rows.');
END;
Answer: The PL/SQL block will run successfully.
Which of the following is the syntax to define a REF CURSOR type?
Answer: TYPE ref_type_name IS REF CURSOR
[RETURN return_type];
The PL/SQL code block helps modularize code by using:
Answer: All of the choices
Which of the following is the syntax to fetch from a cursor variable?
Answer: FETCH cursor_variable_name INTO variable_name1
[,variable_name2,. . .] | record_name;
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')
Procedure can be stored in the database as a schema object.
Answer: True
In PL/SQL Block Structure, which of the following are mandatory?
Answer: BEGIN and END
PL/SQL stands for
Answer: Procedural Language extension to SQL
Which of the following is CORRECT about sub-queries?
Answer: Subquery execute before the main query executes.
Which of the following does NOT describes SELECT Statement in a PL/SQL.
Answer: Queries must return only one column.
PL/SQL Provides a block structure for executable units of ________________.
Answer: Code
Evaluate the SQL command
SELECT employee_id, salary from employees where salary = ANY (SELECT salary FROM
employees WHERE job_id = 'IT_PROG') AND job_id = 'ST_CLERK'
Answer: This has no error.
Which of the following PL/SQL will execute successfully?
Answer: DECLARE
v_salary INTEGER(20);
BEGIN
SELECT salary INTO v_salary FROM employees WHERE employee_id = 150;
END;
In PL/SQL Block Structure, which of the following are OPTIONAL?
Answer: None of the choices
Evaluate the following PL/SQL. At what line number is the error of the PL/SQL?
DECLARE
v_deptno NUMBER := 800;
e_invalid EXCEPTION;
BEGIN
DELETE FROM departments
WHERE department_id = v_deptno;
IF SQL % NOT_FOUND THEN
RAISE e_invalid;
END IF;
COMMIT;
EXCEPTION
WHEN e_invalid THEN
DBMS_OUTPUT.PUT_LINE('No such department id.');
END;
Answer: 7
What is the error trapping function that returns the numeric value of the error code?
Answer: SQLCODE
Fetch into a record when fetching from a cursor.
Answer: True

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
Enforcing environmental policies is one of the major causes of job loss and
unemployment. - False
True or False: Dates in file names should be written in YYYY-MM-DD format. - False
Big business companies are the only ones responsible for enforcing environmental
policies since they can afford alternative cleaner technology. - False
Pre-review activities in the review process includes review planning, preparation and
individual review. - true
Increase work productivity by arranging items in such a way that they are easy to find
and pick up. - true
Montreal protocol protects the ozone layer by ____________________. - phasing out
harmful substances
Business industries will not be affected by the environmental crisis. - False
True or False: Protocols are set of standards rules which describes how something
should be done and different companies have different protocols as well. - true
Presidential Decree No. 856 is an international treaty that imposes limitations on the
greenhouse gas emissions of several countries. - True
True or False: Organizational aims are different from the mission statement; they refer
to the results an organization is aspiring for. - true
The cost / benefit analysis document is appropriately named. - False
A printed progress report to be submitted to the adviser. - purpose
True or False: Statutory requirements are identified by the vendors or suppliers and
they include value, stability, diversity and capacity. - False
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. - False
Identify whether the statement is a strength, weakness, opportunity or threat: The
student record system could be used by other schools other than Ricka’s school. -
opportunity
True or False: Reviewing the related literature includes review of concepts, theories and
previous research findings. - true
Companies can freely make their own set of environmental policies without consulting
the workers’ union, or any local or national laws about it. - False
Kyoto protocol addresses environmental issues through the campaign of
____________________. - reducing greenhouse gas emissions
Humans rely on natural resources for survival. - true
Quantitative research, compared to qualitative research, uses measurable - Data
ISO/IEC 25010:2011’s product quality model has eight (8) major characteristics. - true
True or False: Usually, the summary of the report is the first thing that’s being read. -
true
____________________ is when you conduct regular audits and inspections to
evaluate your work performance. - Shitsuke
“XYZ is so cool! I tried to install it in my old computer and it still runs smoothly. Given
that the computer’s video card is a bit faulty.“ - Reliability
True or False: There are five main elements of a written report – topic, style, structure,
facts and contents. - false
True or False: To gather data, you can either conduct an interview, survey, observation,
mail questionnaire, coding and tabulation. - false
PROG LONG QUIZ 4

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;
query_emp('King', 'Steven', v_employee_id, v_emp_sal);
BEGIN
DBMS_OUTPUT.PUT_LINE('Employee ID ' || v_employee_id ||' earns '|| to_char(v_emp_sal,
'$999,999.00'));
END;
b. DECLARE
query_emp('King', 'Steven', v_employee_id, v_emp_sal);
BEGIN
v_employee_id employees.employee_id VARCHAR(10);
v_emp_sal employees.salary NUMERIC(10);
DBMS_OUTPUT.PUT_LINE('Employee ID ' || v_employee_id ||' earns '|| to_char(v_emp_sal,
'$999,999.00'));
END;
c. DECLARE
v_employee_id employees.employee_id VARCHAR(10);
v_emp_sal employees.salary NUMERIC(10);
BEGIN
query_emp('King', 'Steven', v_employee_id, v_emp_sal);
DBMS_OUTPUT.PUT_LINE('Employee ID ' || v_employee_id ||' earns '|| to_char(v_emp_sal,
'$999,999.00'));
END;
d. DECLARE
v_employee_id employees.employee_id%TYPE;
v_emp_sal employees.salary%TYPE;
BEGIN
query_emp('King', 'Steven', v_employee_id, v_emp_sal);
DBMS_OUTPUT.PUT_LINE('Employee ID ' || v_employee_id ||' earns '|| to_char(v_emp_sal,
'$999,999.00'));
END;

Question 2
Complete
Mark 1.00 out of 1.00

Flag question

Question text
The PL/SQL code block helps modularize code by using:
Select one:
a. All of the choices
b. Database triggers
c. Packages
d. Procedures
e. Anonymous blocks
f. Functions

Question 3
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Which of the following rules is INCORRECT about cursor variables?
Select one:
a. You cannot assign a null value to cursor variables.
b. Cursors and cursor variables are not interoperable.
c. You cannot use REF CURSOR types in CREATE TABLE or VIEW statements.
d. You cannot use comparison operators to test cursor variables.
e. None of the choices.
f. You cannot use cursor variables with remote subprograms on another server.

Question 4
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Which of the following is the syntax to close a cursor?
Select one:
a. SET cursor_variable_nameCLOSE;
b. CLOSE cursor_variable_name;
c. EXIT cursor_variable_name;
d. QUIT cursor_variable_name;

Question 5
Complete
Mark 1.00 out of 1.00
Flag question

Question text
Which of the folllowing is TRUE?
Select one:
a. PL/SQL statements are embedded within SQL code.
b. None of the choices
c. SQL code are embedded within PL/SQL statements
d. You can embed procedural construct within SQL code

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
b. Index
c. Data dictionary
d. Data
e. Schema

Question 8
Complete
Mark 1.00 out of 1.00

Flag question

Question text
What is the default parameter mode when no mode is specified?
Select one:
a. IN
b. DEFAULT
c. OUT
d. IN OUT

Question 9
Complete
Mark 1.00 out of 1.00

Flag question

Question text
When an exception is predefined by Oracle server, the exception is raised ____________ .
Select one:
a. Implicitly
b. Interactively
c. Exclusively
d. Explicitly
e. None of the choices

Question 10
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Evaluate the following PL/SQL. Which of the following will line creates an error?

1. CREATE OR REPLACE PROCEDURE query_emp


2. (
3. p_department_id IN employees.department_id%TYPE,
4. p_name OUT employees.last_name%TYPE,
5. p_salary OUT employees.salary%TYPE
6. )
7. IS
8. BEGIN
9. SELECT last_name, salary, department_id INTO p_name, p_salary,
p_department_id
10. FROM employees
11. WHERE salary >= p_salary AND department_id = p_department_id ;
12. END query_emp;

Select one:
a. Line 1
b. Line 5
c. Line 9
d. Line 3
e. No error
f. Line 11

Question 11
Complete
Mark 1.00 out of 1.00

Flag question

Question text
These are local variables declared in the parameter list of a subprogram specification.
Select one:
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:
a. Improved data security and integrity
b. Improved code clarity
c. Improved performance
d. None of the choices
e. Easy maintenance

Question 14
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Which of the following command is used to create a stand-alone procedure that is stored in the
Oracle database?
Select one:
a. PROCEDURE
b. BUILD PROCEDURE
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
Flag question

Question text
Which of the following is the syntax to fetch from a cursor variable?
Select one:
a. FETCH cursor_variable_name INTO variable_name1
[,variable_name2,. . .] | record_name;
b. GET cursor_variable_name INTO variable_name1
[,variable_name2,. . .] | record_name;
c. POST cursor_variable_name INTO variable_name1
[,variable_name2,. . .] | record_name;
d. RETRIEVE cursor_variable_name INTO variable_name1
[,variable_name2,. . .] | record_name;

Question 17
Complete
Mark 1.00 out of 1.00

Flag question

Question text
PL/SQL stands for
Select one:
a. Procedural Language extension to SQL
b. Procedural Libraries of SQL
c. Procedural Logic of SQL
d. Process Linkage to SQL

Question 18
Complete
Mark 1.00 out of 1.00

Flag question
Question text
Which of the following is the syntax to define a REF CURSOR type?
Select one:
a. DECLARE ref_type_name AS REF CURSOR
[RETURN return_type];
b. DEFINE ref_type_name AS REF CURSOR
[RETURN return_type];
c. TYPE ref_type_name IS REF CURSOR
[RETURN return_type];
d. SET ref_type_name IS REF CURSOR
[RETURN return_type];

Question 19
Complete
Mark 1.00 out of 1.00

Flag question

Question text
What is the error trapping function that returns the numeric value of the error code?
Select one:
a. SQLCODE
b. ERRORCODE
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:
a. Anonymous, Procedure, Function
b. SELECT, UPDATE, INSERT
c. Add, Edit, Delete
d. DECLARE, BEGIN, END

Question 21
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Evaluate the following PL/SQL.

1. DECLARE
2. v_employee_id employees.employee_id%TYPE := 114;
3. BEGIN
4. 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:
a. DECLARE
v_job_id employees.job_id%TYPE := 'IT_PROG';
BEGIN
UPDATE employees SET salary = salary * 2 WHERE job_id = v_job_id;
END;
b. DECLARE
v_job_id employees.job_id%TYPE := 'IT_PROG';
v_salary employees.salary := salary;
BEGIN
UPDATE employees SET v_salary = salary * 1.00 WHERE v_job_id = job_id;
END;
c. DECLARE
v_job_id employees.job_id%TYPE := 'IT_PROG';
BEGIN
UPDATE employees SET salary = salary * 100% WHERE job_id = v_job_id;
END;
d. DECLARE
v_job_id employees.job_id%TYPE := 'IT_PROG';
v_salary employees.salary := salary;
BEGIN
UPDATE employees SET salary = v_salary * 0.100% WHERE job_id = v_job_id;
END;

Question 23
Complete
Mark 1.00 out of 1.00

Flag question

Question text
This is a type of cursor which is created and managed internally by the Oracle server to process
SQL statements
Select one:
a. Interactive
b. Implicit
c. Explicit
d. Exclusive
e. Coded

Question 24
Complete
Mark 1.00 out of 1.00
Flag question

Question text
Which of the following describes weak REF CURSOR?
Select one:
a. Restrictive
b. All of the choices
c. Is not flexible
d. Associates with any query

Question 25
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Evaluate the following PL/SQL.

1. DECLARE
2. v_employee_id employees.employee_id%TYPE := 114;
3. BEGIN
4. 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
Flag question

Question text
What is the exception name when PL/SQL has an internal problem
Select one:
a. ERROR_MSG
b. EXECUTION_ERROR
c. RUNTIME_ERROR
d. PROGRAM_ERROR

Question 27
Complete
Mark 1.00 out of 1.00

Flag question

Question text
Which of the folllowing 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
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
Flag question

Question text
Evaluate the following. What will be the output?

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
Question text
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 one:
a. SELECT job_title FROM jobs WHERE min_salary >= 5000 AND max_salary<= 10000
b. SELECT job_title FROM employees WHERE salary >= 5000 AND salary <= 10000
c. 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
Complete
Mark 2.00 out of 2.00

Flag question

Question text
What is the SQL command to count the number of records in the employees table?
Select one:
a. SELECT ALL FROM employees
b. SELECT * FROM employees;
c. SELECT COUNT(*) FROM employees
d. SELECT SUM(*) FROM employees;

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
Question 4
Complete
Mark 2.00 out of 2.00

Flag question

Question text
Evaluate the following SQL command
SELECT * FROM jobs WHERE job_title LIKE 'Manager%'
Select one:
a. The SQL command will produce an error.
b. The SQL command will display all employees with Manager position
c. The SQL command will display all records in the database
d. No records will be displayed

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:
a. SELECT employee_id, hire_date, TO_DATE(hire_date,'Month') AS "Hired Month", job_id FROM
b. SELECT employee_id, hire_date, MONTH(hire_date,'Month') AS "Hired Month", job_id FROM
employees
c. SELECT employee_id, hire_date, TO_CHAR(hire_date,'Month') AS "Hired Month", job_id FROM
employees
d. SELECT employee_id, hire_date, TO_MONTH(hire_date,'Month') AS "Hired Month", job_id
FROM employees

Question 6
Complete
Mark 2.00 out of 2.00
Flag question

Question text
You want to generate the total salary per month of every department in the company.
Select one:
a. SELECT department_id, salary FROM employees ORDER BY SUM(salary)
b. SELECT department_id, TOTAL(salary) FROM employees GROUP BY department_id
c. SELECT department_id, salary FROM employees GROUP BY SUM(salary) ORDER BY
department_id
d. SELECT department_id, SUM(salary) FROM employees GROUP BY 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:
a. SELECT last_name, TO_INT(salary, '$999,999.99') AS "MONTHLY SALARY" FROM employees
WHERE salary < 10,000 WHERE last_name STARTS 'D%'
b. SELECT last_name, TO_CHAR(salary, '$999,999.99') AS "MONTHLY SALARY" FROM
employees WHERE salary < 10000 WHERE last_name LIKE 'D%'
c. SELECT last_name, TO_INTEGER(salary, $999,999.99) AS "MONTHLY SALARY" FROM
employees WHERE salary < 10000 WHERE last_name IN 'D%'
d. SELECT last_name, TO_NUMBER(salary, '$999,999.99') AS "MONTHLY SALARY" FROM
employees WHERE salary < 10,000 WHERE last_name = ‘D%’

Question 8
Complete
Mark 2.00 out of 2.00
Flag question

Question text
Display the lastname of every employee in the company. Display the output in a single column and
label it as Fullname
Format: JuanReyes
Select one:
a. None of the choices
b. SELECT CONCATENATE(first_name, last_name) AS Fullname FROM employees
c. SELECT CONCAT(first_name, last_name) FROM employees
d. SELECT CONCAT(first_name, last_name) AS Fullname FROM employees

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:
a. SELECT SUBSTR(last_name,1,5), first_name FROM employees WHERE first_name IN 'N'
b. SELECT SUBSTR(last_name,1,5), first_name FROM employees WHERE
SUBSTR(first_name,1,1) = 'N'
c. SELECT SUBSTR(surname,1,5), first_name FROM employees WHERE
SUBSTR(first_name,1,1) IN 'N'
d. SELECT SUBSTR(surname,1,5), first_name FROM employees WHERE first_name = 'N'
e. SELECT SUBSTR(last_name,1,5), first_name FROM employees WHERE
SUBSTR(first_name,1,1) IN 'N'

Question 10
Complete
Mark 2.00 out of 2.00
Flag question

Question text
Austin David was transferred to Purchasing Department. You are assigned to update the database.
Which of the following SQL command will satisfy the requirements?
Select one:
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’
d. UPDATE employees SET department_id = 30 WHERE first_name = ‘David’ AND last_name =
‘Austin’

Question 11
Complete
Mark 2.00 out of 2.00

Flag question

Question text
John want to know how many employees receiving salary below 10,000.
What SQL command he need to run?
Select one:
a. SELECT COUNT(*) FROM employees WHERE salary < 10000;
b. SELECT COUNT(salary) FROM employees WHERE salary < 10,000;
c. SELECT COUNT(emp_id) FROM employees WHERE salary <= 10000;
d. SELECT salary FROM COUNT(employees)WHERE salary < 10000;

Question 12
Complete
Mark 2.00 out of 2.00
Flag question

Question text
Evaluate the following SQL command
SELECT employee_id, salary, department_id FROM employees WHERE department_id IN (60,70)
Select one:
a. The SQL command will produce an error.
b. The SQL command will display employees with department id 60 and 70.
c. The SQL command will give an incorrect output.
d. The SQL command will display employees with department id 60 or 70.

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 give the required output?
Select one:
a. SELECT last_name, hire_date FROM employees WHERE hire_date>=
TO_DATE('01-Jan-2006', 'DD-Mon-RR') AND hire_date<= TO_DATE('31-Dec-2006', 'DD-Mon-RR')
AND salary > 5000;
b. SELECT last_name, hire_date FROM employees WHERE hire_date>=
TO_DATE('Jan-2000', 'Month-YYYY') AND hire_date<= TO_DATE('Dec-2006', 'Month-‘YYYY') AND
salary > 5,000;
c. 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;
d. SELECT last_name, hire_date FROM employees WHERE hire_date>=
TO_DATE('2000', 'YYYY') AND hire_date<= TO_DATE('2006', 'YYYY') OR salary > 5000;

Question 14
Complete
Mark 2.00 out of 2.00
Flag question

Question text
List all employees except for IT_PROG job id.
Select one:
a. SELECT *FROM employees EXCEPT JOB_ID != 'IT_PROG'
b. SELECT *FROM employees WHERE JOB_ID NOT IN ('IT_PROG')
c. SELECT *FROM employees WHERE JOB_ID <> 'IT_PROG'
d. All of the choices

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:
a. The SQL will produce Cartesian Product
b. The SQL will display the employee id, department id and the minimum and maximum salary
whose salary is between 10000 and 20000.
c. The SQL command will produce an error.
d. The SQL command will give an incorrect output.

Question 16
Complete
Mark 2.00 out of 2.00

Flag question

Question text
Display all the records in the employee table. Arrange the output in by lastname from A-Z order.
Select one:
a. SELECT * FROM employees SORT BY lastname
b. SELECT * FROM employees ORDER BY lastname
c. SELECT * FROM employees ORDER BY lastname AZ
d. SELECT * FROM employees SORT BY lastname ascending

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:
a. SELECT employee_id, first_name, last_name FROM employees ORDER BY department_id
WHERE first_name LIKE 'D%' and job_id = 'IT_PROG'
b. SELECT employees FROM employee_id, first_name, last_name WHERE first_name LIKE ‘D%’
and job_id = ‘IT_PROG’ ORDER BY department_id
c. SELECT employee_id, first_name, last_name FROM employees WHERE job_id = 'IT_PROG' OR
first_name LIKE 'D%' and 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 command will produce the output.
Select one:
a. SELECT AVERAGE(salary) FROM employees WHERE job_id = 'FI_ACCOUNT';
b. SELECT AVG(salary) FROM employees WHERE job_id = 'FI_ACCOUNT';
c. SELECT AVE(salary) FROM employees WHERE job_id = 'FI_ACCOUNT';
d. SELECT COUNT AVG(salary) FROM employees WHERE job_id = 'FI_ACCOUNT';

Question 19
Complete
Mark 2.00 out of 2.00

Flag question

Question text
Display all location id between 1000 to 2000.
Select one:
a. DISPLAY location_id FROM departments WHERE location_id LING 1000 UP TO 2000
b. DISPLAY location_id FROM departments WHERE location_id BETWEEN 1000 TO 2000
c. SELECT location_id FROM departments WHERE location_id IN 1000 AND 2000
d. SELECT location_id FROM departments WHERE location_id BETWEEN 1000 AND 2000

Question 20
Complete
Mark 2.00 out of 2.00

Flag question

Question text
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 one:
a. SELECT employee_id, salary, salary + (salary .03) FROM employees
b. SELECT employee_id, salary, salary * .03 FROM employees
c. SELECT employee_id, salary, salary * 1.03 FROM employees
d. SELECT employee_id, salary FROM employees WHERE salary)
e. SELECT employee_id, salary, salary * .30 FROM employees

Question 21
Complete
Mark 2.00 out of 2.00

Flag question

Question text
Display the employee id, salary, number of years and the hiring date of every employee in the
company.
Select one:
a. SELECT employee_id,salary, hire_date, hire_date- SYSDATE /365 FROM employees;
b. SELECT employee_id, salary, hire_date, ROUND((SYSDATE - hire_date) /365,0) FROM
employees;
c. SELECT employee_id, salary, hire_date, hire_date /365 FROM employees;

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:
a. SELECT E.employee_id, J.job_title, e.job_id, D.department_name
FROM employees E
JOIN jobs J ON E.job_id = J.job_id
JOIN departments D ON E.department_id = D.department_id
WHERE E.department_id = 100
b. SELECT E.employee_id, J.job_title, e.job_id, D.department_name
FROM employees E
JOIN department D ON E.job_id = J.job_id
JOIN jobs J ON E.department_id = D.department_id
WHERE E.department_id = 100
c. SELECT E.employee_id, J.job_title, e.job_id, D.department_name
FROM jobs J
INNER JOIN department D ON E.job_id = J.job_id
INNER JOIN employees EON E.department_id = D.department_id
WHERE E.department_id = 100
d. SELECT E.employee_id, J.job_title, e.job_id, D.department_name
FROM jobs J
NATURAL JOIN department D ON E.job_id = J.job_id
NATURAL JOIN employees E ON E.department_id = D.department_id
WHERE E.department_id = 100

Question 23
Complete
Mark 2.00 out of 2.00

Flag question

Question text
In creating Joins,the NATURALJOIN and USING clauses are____________
Select one:
a. Mutually Inclusive
b. Limited to 2 relational tables
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 working in Finance Department. Label the annual salary to ANNUAL
SALARY.
Sort the output in from highest to lowest salary. (4 POINTS)
Select one:
a. 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
NATURAL JOIN jobs J ON E.job_id = J.job_id
NATURAL JOIN departments D ON E.department_id = D.department_id
ORDER BY "ANNUAL SALARY" DESC
WHERE D.location_id = 1700 AND D.department_name = 'Finance'
b. 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
JOINemployees E ON E.department_id = D.department_id
WHERE D.location_id = 1700 AND D.department_name = 'Finance'
ORDER BY "ANNUAL SALARY" DESC
c. 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
d. 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
OUTER JOIN jobs J ON E.job_id = J.job_id
OUTER 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

PROG-113A / ? Week 7: Manipulate Data / ? Short Quiz 7

9/10

Create a SQL command to update the employees table

Employee id : 200

Name : Mr. Gary Park

Date hired : July 1, 2017

Position :IT Programmer

Salary : 10000

Department of assignment : 60

Reporting to manager : 103

answer: INSERT INTO employees


(employee_id,first_name,last_name,hire_date,job_id,salary,manager_id,department_id)

VALUES (200,'Gary','Park',TO_DATE('Jul 1, 2017', 'MON DD, YYYY'), 'IT_PROG', 10000, 103, 60)

Add a 500 pesos increase in salary of all employees who have rendered services 10 years and above.

answer: UPDATE employees SET salary = salary + 500 where TO_CHAR(sysdate,'YYYY') -


TO_CHAR(hire_date,'YYYY') >= 10
Diana Lorentz was transferred to Administration department. Using the employees and department
table information update the profile of employee.

answer: UPDATE employees SET manager_id = 200, department_id = 10 WHERE last_name =


'Lorentz' AND first_name = 'Diana';

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.

answer: UPDATE departments SET department_name = 'Procurement', manager_id = 100


WHERE department_name = 'Treasury'

Which of the following will erase all records in the departments table

answer: 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.

answer: Run the ROLLBACK command

Which of the following DOES NOT describes the state of the data after the COMMIT command

answer: None of the choices

Which of the following describes the command below?

SELECT * FROM employees WHERE department = 60 FOR UPDATE

answer: Locks the rows in the EMPLOYEES table with department id is 60.

SQL command to create a marker in the current transaction.

answer: SAVEPOINT

YOu want to display the employee's id and formatted date hired as shown below

Which SQL statement give the required output?

Required output:

Answer: SELECT employee_id,TO_CHAR(hire_date,'fmMonth DD, YYYY')AS "Hired Date" FROM


employees

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?
Answer: SELECT employee_id, hire_date, TO_DATE(hire_date,'Month') AS "Hired Month",
job_id FROM employees WHERE job_id NOT = 'AD_VP';

IT_PROG

Answer: SELECT last_name, TO_CHAR(hire_date,'YYYY')FROM employees WHERE job_id='IT_PROG';

You want to display the employee’s last name whose salary is below 10,000 and whose lastname starts
with letter K.

Answer: SELECT last_name, TO_CHAR(salary, '$999,999.99') AS "MONTHLY SALARY" FROM


employees WHERE salary < 10000WHERE last_name LIKE ‘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.

Answer: SELECT * FROM parts ORDER BY price

Display all the records whose stock is below 20 and in warehouse number 3.

Answer: SELECT * FROM parts WHERE onhand< 20 AND warehouse = 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%';

Display the part number whose class is not HW, AG or SG.

Answer: None of the choices

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.

ANSWER: SELECT *FROM parts WHERE price > 10000;

Which of the following SQL command will display all records with class code of AP?

Answer: SELECT * FROM parts WHERE class = ‘AP’;

Which of the following SQL commands will display all stocks whole class is HW or AP.

Answer: SELECT ALL FROM parts WHERE IN class = ('HW','AP');

Which of the following SQL commands will display all the stocks on hand from 10 to 30?

Answer: SELECT * FROM parts WHERE onhand BETWEEN 10 AND 30;


Create an SQL command to display the name of the parts, warehouse number, price and the
available stock on hand whose price is below 500. Arrange the list by warehouse number and by
class.
ANswer: SELECT partnum, description, warehouse, onhand, price FROM parts WHERE price <
500 ORDER BY warehouse, class;

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.

Answer: SELECT ONHAND-5 + 5 (* WAREHOUSE), DESCRIPTION FROM PARTS;

Which of the following is the correct report that will display the class from table PARTS.

answer: SELECT CLASS FROM PARTS;


Which of the following SELECT statement is the correct PL/SQL that willcreate a report that will add
10% increase in PRICE? List only the column DESCRIPTION, CLASS and PRICE.

Answer: SELECT PRICE*0.10, DESCRIPTION, CLASS FROM PARTS;

Which of the following SELECT statement is the correct PL/SQL that will display all rows and columns?

Answer: SELECT * FROM PARTS;


Which of the following SELECT statement is the correct PL/SQL that willcreate a report specifying
only the column PRICE, ONHAND and DESCRIPTION?

Answer: SELECT PRICE, ONHAND, DESCRIPTION FROM PARTS;

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"

Answer: SELECT DISTINCT WAREHOUSE AS "No. of available warehouse"FROM PARTS;


Which of the following SELECT statement is the correctreport the will merge the column CLASS and
PRICE rename the COLUMN as "CLASS PRICE"

Answer: SELECT (CLASS||PRICE) AS "CLASS PRICE" FROM PARTS;


Which of the following SELECT statement is the correct PL/SQL that will display eliminate the
duplicate rows for column class and warehouse.
Answer: SELECT DISTINCT CLASS, WAREHOUSE FROM PARTS;

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?

Answer: Select description AS 'TITLE',Partnum AS'ID',ONHAND AS'STOCK' FROM PARTS;


Remove all manager positions in the department table.

Answer: DELETE FROM jobs WHERE job_title LIKE '%Manager%';

A new department name training with department id 300 was created in the company.

Answer: INSERT INTO departments VALUES(300,'TRAINING',203,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

Answer: INSERT INTO JOBS VALUES('DB_ADMIN','database administrator',10000,18000)


Update the Purchasing department name to Procurement. And this will be managed by the Manager
of Administration department.

Answer: UPDATE departments SET department_name = 'Procurement', manager_id = 200


WHERE department_name = 'Purchasing'

remove the shareholder services department in the department table

answer: DELETE FROM departments WHERE department_name = ‘Shareholder Services’

John want to know how many employees receiving salary below 10,000

Answer: SELECT COUNT(*) FROM employees WHERE salary < 10000;

What is the SQL command to display the date of the first employee that was hired?

Answer: SELECT MIN(hire_date) FROM employees;

Aldrin wants to know the highest salary in every department. which of the following sql will display the
required output?

Answer: SELECT department_id,MAX(SALARY) FROM employees GROUP BY department_id

The general manager request to the database administrator to generate the total salary per month of
every department in the company.

Answer: 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.

Answer: SELECT AVG(salary) FROM employees WHERE job_id ='IT_PROG';


Display the warehouse number, class, highest price & lowest price, total on hand balance whose
class is AP.

Answer: SELECT warehouse, class, MAX(price), MIN(PRICE), sum(onhand)


FROM parts
WHERE class = 'AP'
GROUP BY warehouse, class
ORDER BY warehouse
The General Manager request to the database administrator to general total number of parts and total
outstanding balance on hand of every class

Answer: SELECT warehouse,class,count(partnum),sum(onhand) GROUP BY warehouse,class HAVING


warehouse = 1 or warehouse = 2 FROM parts;

Aldrin wants to know the outstanding total balance on hand on every class per warehouse

answer: SELECT warehouse,class,sum(onhand) FROM parts GROUP BY warehouse,class

Which of the following SQL command will display all records with part number contains the number 9?

Answer: SELECT * from parts WHERE partnum LIKe '%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

Answer: SELECT warehouse, class, sum(onhand) FROM parts GROUP BY warehouse,class


HAVING SUM(ONHAND) > 50

There was 10% price increase in the all the parts in warehouse number 3.

Answer: SELECT PARTNUM,price,price * 1.1 FROM parts where warehouse = 3

SELECT * FROM parts WHERE (warehouse = 1 or warehouse = 2) AND class in ('HW','AP')AND(PRICE>200


AND price < 500);

Answer: 2 rows returned

What will be the output of the SQL command?

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.

answer: SELECT COUNT(*) FROM parts WHERE warehouse = 3;

Which of the following will erase all records in the departments table

Answer: TRUNCATE TABLE departments


INSERT, DELETE, UPDATE are ________________ commands

answer: DML

Which of the following DOES NOT describes the state of the data after the commit command

ANswer: NONE OF THE CHOICES

SELECT * FROM employees WHERE department = 60 FOR UPDATE


ANswer: Locks the rows in the employees table with department id is 60

A cartesian product is formed when

Answer: ALL OF THE CHOICES

Select employee_id, hire_date, department_name FROM employees departments

ANswer: The SQL command will prduce a correct output

Nathaniel had accidentally deleted all the records in the newly updated oracle database using the
DELETE SQL command.

Answer: RUN THE ROLLBACK COMMAND


A join between two tables that returns the results of the INNER join as well as the_______________
rows from the left (or right) table is called a left (or right) OUTER join.

Answer: Unmatched

SQL command to create a marker in the current transaction

Answer: SAVEPOINT

The insert statement can add multiple rows.

ANswer: FALSE

INSERT INTO table_name (column1,column2,colum3,....)

VALUES (value1,value2,value3,....)

WHERE Condition.

Answer: This will produce an error.

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: FULL OUTER JOIN


A Database Administrator can create and remove users and tables.

Answer: the statement is correct

Multiple fields in not Allowed in a foreign key.

Answer: FALSE
A_______________ consists of a collection of DML statements that form a logical unit of work.

ANswer: Transaction
INDEX is an example of _____________________ privilege.

Answer: Object
A FOREIGN KEY IS A FIELD IN ONE TABLE THAT REFERS TO THE PRIMARY KEY IN ANOTHER TABLE.

ANSWER: TRUE

GRANT select

ON user1

TO departments;

ANswer: THE SQL COMMAND IS INCORRECT


GRANT is a _____________________ command.

ANSWER: DCL

Which of the following command will delete all records in the table employees.

ANswer: DELETE FROM employees

employee id :250

name : aldrin rich

ANSWER: INSERT INTO EMPLOYEES(employee_id,first_name,last_name,hire_date,job_id,salary


manager_id,department_id) VALUES(250,'aldrin','rich',TO_DATE('Jul 1,2017','MON
DD,YYYY'),'ACCOUNTANT',10000,103,60)

Display all the employee id names of employees, job id, hiring_date

ANswer: SELECT A,first_name,A.last_name,A.job_id,B,department_name,A.Salary,A.hire_date FROM


employees a JOIN departments B ON ( A.department_id = B.department_id) WHERE
B.department_name = 'IT'

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 salary = salary + 1200 where TO_CHAR(sysdate,'YYYY') -


TO_CHAR(hire_date,'YYYY') >= 10

Diana lorentz was transferred to administration department

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?
-CREATE matt ACCESS 1234
What are the 2 types of security being applied to a database
GRANT & REVOKE
Employee id : 200
Name : Mr. Gary Park
Date hired : July 1, 2017
Position :IT Programmer
Salary : 10000
Department of assignment : 60
Reporting to manager : 103
-INSERT INTO employees
(employee_id,first_name,last_name,hire_date,job_id,salary,manager_id,department_id)
VALUES (200,'Gary','Park',TO_DATE('Jul 1, 2017', 'MON DD, YYYY'), 'IT_PROG', 10000, 103,
60)
Which of the following is NOT a Data Manipulation Language?
-SELECT

SQL stands for Structured Query Language


Which of the 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
Question 1
Answer saved
Marked out of 1.00

Flag question

Question text
Which of the following is the correct report that will display the CLASS from table PARTS.
Select one:
a. SELECT * CLASS FROM PARTS;
b. SELECT 'CLASS' FROM PARTS;
c. SELECT CLASS FROM PARTS;
d. SELECT CLASS AS CLASS FROM PARTS;

Question 2
Answer saved
Marked out of 1.00

Flag question

Question text
Which of the following SELECT statement is the correct PL/SQL that will display all rows and
columns?
Select one:
a. SELECT TABLE PARTS;
b. SELECT * FROM PARTS;
c. SELECT FROM TABLE PARTS;
d. SELECT ALL FROM PARTS;

Question 3
Answer saved
Marked out of 1.00

Flag question
Question text
Which of the following SELECT statement is the correct PL/SQL that will display eliminate the
duplicate rows for column class and warehouse.
Select one:
a. SELECT DISTINCT CLASS AND WAREHOUSE FROM PARTS;
b. SELECT DISTINCT CLASS AND DISTINCT WAREHOUSE FROM PARTS;
c. SELECT DISTINCT CLASS, WAREHOUSE FROM PARTS;
d. SELECT DISTINCT CLASS, DISTINCT WAREHOUSE FROM PARTS;

Question 4
Answer saved
Marked out of 1.00

Flag question

Question text
Which of the following SELECT statement is the correct PL/SQL that willcreate a report specifying
only the column PRICE, ONHAND and DESCRIPTION?
Select one:
a. SELECTONHAND,PRICE ,DESCRIPTION FROM PARTS;
b. SELECTONHAND,PRICE DESCRIPTION FROM PARTS ORDER BY ONHAND;
c. SELECT (ONHAND||PRICE ||DESCRIPTION FROM PARTS;
d. SELECT PRICE, ONHAND, DESCRIPTION FROM PARTS;

Question 5
Answer saved
Marked out of 1.00

Flag question

Question text
Which of the following SELECT statement is the correct PL/SQL that willcreate a report that will add
10% increase in PRICE? List only the column DESCRIPTION, CLASS and PRICE.
Select one:
a. SELECT PRICE*0.10, DESCRIPTION, CLASS FROM PARTS;
b. SELECT PRICE*10, DESCRIPTION, CLASS FROM PARTS;
c. SELECT PRICE*0.10 FROM PARTS;
d. SELECT PRICE*10+PRICE, DESCRIPTION, CLASS FROM PARTS;

Question 6
Answer saved
Marked out of 1.00

Flag question

Question text
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.
Select one:
a. SELECT ONHAND-5 + 5 * WAREHOUSE, DESCRIPTION FROM PARTS;
b. SELECT (ONHAND-5) + 5(* WAREHOUSE), DESCRIPTION FROM PARTS;
c. SELECT (ONHAND-5) + 5 * WAREHOUSE, DESCRIPTION FROM PARTS;
d. SELECT ONHAND-5 + 5 (* WAREHOUSE), DESCRIPTION FROM PARTS;

Question 7
Answer saved
Marked out of 1.00

Flag question

Question text
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?
Select one:
a. SELECT DESCRIPTION RENAME AS TITLE, PARTNUM RENAME AS ID, ONHAND RENAME
AS STOCK FROM PARTS;
b. SELECT DESCRIPTION NEW AS TITLE, PARTNUM NEW AS ID, ONHAND NEW AS STOCK
FROM PARTS;
c. SELECT DESCRIPTION AS 'TITLE', PARTNUM AS 'ID', ONHAND AS 'STOCK' FROM PARTS;
d. SELECT DESCRIPTION AS TITLE, PARTNUM AS ID, ONHAND AS STOCK FROM PART;
Question 8
Answer saved
Marked out of 1.00

Flag question

Question text
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 one:
a. SELECT DISTINCT COLUMN WAREHOUSE AS "No. of available warehouse" FROM PARTS;
b. SELECT DISTINCT 'WAREHOUSE AS' "No. of available warehouse" FROM PARTS;
c. SELECT DISTINCT WAREHOUSE AS No. of available warehouse FROM PARTS;
d. SELECT DISTINCT WAREHOUSE AS "No. of available warehouse" FROM PARTS;

Question 9
Answer saved
Marked out of 1.00

Flag question

Question text
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". Note put space before and after the character literal
string to avoid no spaces in the report.
Select one:
a. SELECT (PARTNUM||' THAT BELONGS TO '||DESCRIPTION) AS "NUMBER TITLE" FROM
PARTS;
b. SELECT (;PARTNUM'||' THAT BELONGS TO '||'DESCRIPTION;) AS "NUMBER TITLE" FROM
PARTS;
c. SELECT (PARTNUM|| THAT BELONGS TO ||DESCRIPTION) AS "NUMBER TITLE" FROM
PARTS;
d. SELECT (PARTNUM||' THAT BELONGS TO '||DESCRIPTION) AS NUMBER TITLE FROM
PARTS;

Question 10
Answer saved
Marked out of 1.00
Flag question

Question text
Which of the following SELECT statement is the correctreport the will merge the column CLASS and
PRICE rename the COLUMN as "CLASS PRICE".
Select one:
a. SELECT ('CLASS'||'PRICE') AS "CLASS PRICE" FROM PARTS;
b. SELECT (CLASS||PRICE) AS "CLASS PRICE" FROM PARTS;
c. SELECT (CLASS||PRICE) AS CLASS PRICE FROM PARTS;
d. SELECT (CLASS||PRICE) CLASS PRICE FROM PARTS;

Question 11
Answer saved
Marked out of 1.00

Flag question

Question text
Aldrin wants to know the outstanding total balance on hand on every class per warehouse.
Select one:
a. SELECT warehouse, class, sum(onhand) FROM parts GROUP BY warehouse, class
b. SELECT warehouse, class, onhand FROM parts GROUP BYsum(warehouse), sum(class);
c. SELECT warehouse, class, onhand FROM parts GROUP BY warehouse, class
d. SELECT TOTAL(warehouse), TOTAL(class), TOTAL(onhand) FROM parts GROUP BY
warehouse, class

Question 12
Answer saved
Marked out of 1.00

Flag question

Question text
Display a summary table of the total quantity on hand above 50 very class per warehouse
Select one:
a. SELECT warehouse, class, sum(onhand) FROM parts GROUP BY warehouseWHERE
SUM(ONHAND) > 50
b. SELECT warehouse, class, sum(onhand) FROM parts WHERE SUM(ONHAND) > 50
c. SELECT warehouse, class, sum(onhand) FROM parts GROUP BY warehouse,class HAVING
SUM(ONHAND) > 50
d. SELECT warehouse, class, sum(onhand) FROM parts GROUP BY warehouse HAVING
SUM(ONHAND) > 50

Question 13
Answer saved
Marked out of 1.00

Flag question

Question text
Display the warehouse number, class, highest price & lowest price, total on hand balance whose
class is AP.
Sort the output by warehouse number.
Select one:
a. SELECT warehouse, class, MAX(price), MIN(PRICE), sum(onhand)
FROM parts
WHERE class = 'AP'
GROUP BY warehouse, class
ORDER BY warehouse;
b. SELECT warehouse, class, MAX(price), MIN(PRICE), sum(onhand)
FROM parts
WHERE class = 'AP'
GROUP BY warehouse, class, price
ORDER BY warehouse, class
c. SELECT warehouse, class, MAX(price), MIN(PRICE), SUM(onhand)
FROM parts
GROUP BY warehouse, class
ORDER BY warehouse;
WHERE class = 'AP'
d. SELECT warehouse, class, HIGH(price), LOW(PRICE), SUM(onhand)
FROM parts
GROUP BY warehouse
WHERE class = 'AP'
ORDER BY warehouse, class;

Question 14
Answer saved
Marked out of 1.00
Flag question

Question text
John want to know how many part items are there in warehouse number 3.
What SQL command he need to run?
Select one:
a. SELECT COUNT(*) FROM parts WHERE warehouse = 3;
b. SELECT ALL FROM COUNT(parts) WHERE warehouse = 3;
c. SELECT * FROM COUNT(parts) WHERE warehouse = 3;
d. SELECT partnum FROM COUNT(parts)WHERE warehouse = 3;

Question 15
Answer saved
Marked out of 1.00

Flag question

Question text
The General Manager request to the Database Administrator to generate the total number of parts
and total outstanding balance on hand of every class in warehouse number 1&2.
Which of the following SQL command will generate the required output.
Select one:
a. SELECT warehouse, class, SUM(partnum), SUM(onhand) FROM parts GROUP BY
warehouse,class HAVING warehouse = 1 AND warehouse = 2;
b. SELECT warehouse, class, count(partnum), sum(onhand) GROUP BY warehouse,class HAVING
warehouse = 1 or warehouse = 2 FROM parts;
c. SELECT warehouse, class, count(partnum), sum(onhand) GROUP BY warehouse,class WHERE
warehouse = 1 or warehouse = 2 FROM parts;
d. SELECT warehouse, class, COUNT(partnum), SUM(onhand) FROM parts GROUP BY
warehouse,class HAVING warehouse = 1 OR warehouse = 2;

Question 16
Answer saved
Marked out of 1.00
Flag question

Question text
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 one:
a. SELECT partnum, price, price * 10% FROM parts WHERE warehouse = 3
b. SELECT partnum, price, price * 0.1 FROM parts WHERE warehouse = 3
c. SELECT partnum, price, price * 1.1 FROM parts WHERE warehouse = 3
d. SELECT partnum, price, price * 1.10% FROM parts WHERE warehouse = 3

Question 17
Answer saved
Marked out of 1.00

Flag question

Question text
What will be the output of the following SQL?
SELECT * FROM parts WHERE (warehouse = 1 or warehouse = 2) AND class IN ('HW', 'AP') AND
(price > 200 AND price < 500);
Select one:
a. 7 rows returned
b. 2 rows returned
c. 0 rows returned
d. Error
e. Invalid SQL command

Question 18
Answer saved
Marked out of 1.00
Flag question

Question text
What will be the output of the SQL command?
SELECT SUM(onhand) FROM PARTS where class = 'HW' OR class = 'AP' AND warehouse = 1;
Select one:
a. 85
b. 178
c. 137
d. 44

Question 19
Answer saved
Marked out of 1.00

Flag question

Question text
Which of the following SQL command will display all records with part number contains the number
9?
Select one:
a. SELECT * from parts WHERE partnum LIKE '%9%'
b. SELECT partnum FROM parts WHERE partnum BETWEEN = ‘%9%’
c. SELECT * FROM parts WHERE partnum IN ('%9%')
d. SELECT partnum FROM parts WHERE partnum = ‘%9%’

Question 20
Answer saved
Marked out of 1.00

Flag question

Question text
Which of the following SQL command will display the summary table showing the total quantity on
hand per class.
Select one:
a. SELECT class, onhand AS "QTY ON HAND" FROM parts GROUP BY sum(onhand)
b. SELECT class, TOTAL(onhand) AS "QTY ON HAND" FROM parts GROUP BY class, onhand
c. SELECT class, sum(onhand) AS "QTY ON HAND" FROM parts GROUP BY class
d. SELECT class, sum(onhand) AS "QTY ON HAND" FROM parts GROUP BY onhand

Finish attempt ...


Skip Quiz navigation
QUIZ NAVIGATION

NIVEA PAMELA TIDOY


Question1This pageQuestion2This pageQuestion3This pageQuestion4This pageQuestion5This
pageQuestion6This pageQuestion7This pageQuestion8This pageQuestion9This
pageQuestion10This pageQuestion11This pageQuestion12This pageQuestion13This
pageQuestion14This pageQuestion15This pageQuestion16This pageQuestion17This
pageQuestion18This pageQuestion19This pageQuestion20This page
Finish attempt ...
Answer saved
Marked out of 1.00

PROG-113A-LAB-1812S / (47/50)► Week


10: Quarterly Examination / ► First Quarter
Exam
Question 1 Flag question
Answer saved
Marked out of 1.00 Question text
INSERT, DELETE, UPDATE are ________________
commands
Select one:

Remove flag a. DCL

Question text b. DML

You can relate data to multiple tables using a foreign c. DDL


key. d. All of the choices
Select one:
Question 4
True Answer saved
Marked out of 1.00
False

Question 2
Answer saved
Marked out of 1.00

Flag question

Question text
What will be the SQL command if every employee will
Remove flag be given a productivity bonus which is equivalent to
3% of the monthly salary?
Question text Display the employee id, salary and the productivity
bonus.
Which of the following SELECT statement is the
correct report that will deduct 5 from ONHAND, Select one:
multiply 5 in WAREHOUSE, after getting the value on
both ONHAND and WAREHOUSE add their data: as a. SELECT employee_id, salary, salary * .03
shown below: ONHAND - 5 + 5 * WAREHOUSE FROM employees
Note that you have to force the Oracle to prioritize first b. SELECT employee_id, salary, salary * .30
the Subtraction over Multiplication. List only the FROM employees
column DESCRIPTION, ONHAND and
WAREHOUSE. c. SELECT employee_id, salary, salary * 1.03
FROM employees
Select one:
d. SELECT employee_id, salary, salary + (salary
a. SELECT (ONHAND-5) + 5(* WAREHOUSE), .03) FROM employees
DESCRIPTION FROM PARTS;
e. SELECT employee_id, salary FROM
b. SELECT ONHAND-5 + 5 * WAREHOUSE, employees WHERE salary)
DESCRIPTION FROM PARTS;
Question 5
c. SELECT (ONHAND-5) + 5 * WAREHOUSE, Answer saved
DESCRIPTION FROM PARTS; Marked out of 1.00
d. SELECT ONHAND-5 + 5 (* WAREHOUSE),
DESCRIPTION FROM PARTS;

Question 3
Marked out of 1.00

Flag question
Remove flag
Question text
Question text
You want to display the employee’s last name
Evaluate the following SQL command
whose salary is below 10,000 and whose lastname SELECT employee_id, salary, department_id FROM
starts with letter K. employees WHERE department_id IN (60,70)
Which SQL statement give the required output
Select one:
format of the salary?
a. The SQL command will display employees with
Select one: department id 60 or 70.
a. SELECT last_name, TO_CHAR(salary, b. The SQL command will give an incorrect
'$999,999.99') AS "MONTHLY SALARY" FROM output.
employees WHERE salary < 10000WHERE
last_name LIKE ‘K%’ c. The SQL command will produce an error.
b. SELECT last_name, TO_NUMBER(salary, d. The SQL command will display employees with
'$999,999.99') AS "MONTHLY SALARY" FROM department id 60 and 70.
employees WHERE salary < 10,000WHERE
last_name = ‘K%’ Question 8
Answer saved
c. SELECT last_name, TO_INTEGER(salary, Marked out of 1.00
$999,999.99) AS "MONTHLY SALARY" FROM
employees WHERE salary < 10000 WHERE
last_name IN 'K%'
d. SELECT last_name, TO_INT(salary,
'$999,999.99') AS "MONTHLY SALARY" FROM Remove flag
employees WHERE salary < 10,000 WHERE
last_name STARTS 'K%' Question text

Question 6 You what to generate the average salary of all


Answer saved employees whose job function is FI_ACCOUNT.
Marked out of 1.00 Which of the following SQL command will produce the
output.
Select one:
a. SELECT AVG(salary) FROM employees
WHERE job_id = 'FI_ACCOUNT';
Remove flag
b. SELECT AVE(salary) FROM employees
Question text WHERE job_id = 'FI_ACCOUNT';
Which of the following is the correct report that will c. SELECT AVERAGE(salary) FROM employees
display the CLASS from table PARTS. WHERE job_id = 'FI_ACCOUNT';
Select one: d. SELECT COUNT AVG(salary) FROM
a. SELECT * CLASS FROM PARTS; employees WHERE job_id = 'FI_ACCOUNT';

b. SELECT CLASS AS CLASS FROM PARTS; Question 9


Answer saved
c. SELECT 'CLASS' FROM PARTS; Marked out of 1.00

d. SELECT CLASS FROM PARTS;

Question 7
Answer saved
employees WHERE salary < 10,000 WHERE
last_name = ‘D%’

Question 11
Answer saved
Marked out of 1.00
Remove flag

Question text
Evaluate the following SQL command
SELECT employee_id, min_salary, max_salary
FROM employees, departments WHERE Flag question
salary>= 10000 && salary <= 20000
Question text
Select one:
Which of the following will is the correct command to
a. The SQL will produce Cartesian Product create a role.
b. The SQL will display the employee id, Select one:
department id and the minimum and maximum salary
whose salary is between 10000 and 20000. a. CREATE ROLE gen_manager
c. The SQL command will give an incorrect b. None of the choices
output.
c. GRANT ROLE gen_manager
d. The SQL command will produce an error.
d. CREATE gen_manager ROLE
Question 10
Question 12
Answer saved
Marked out of 1.00 Answer saved
Marked out of 1.00

Flag question
Flag question
Question text
Question text
You want to display the employee's last name whose
What is the SQL command to display the date of the
salary is below 10,000 and whose lastname starts
first employee that was hired?
with letter D.
Which SQL statement give the required output format Select one:
of the salary?
a. SELECT FIRST(hire_date) FROM employees;
Select one:
b. SELECT hire_date FROM employees WHERE
a. SELECT last_name, TO_INTEGER(salary, TO_CHAR(hire_date) = ‘FIRST’;
$999,999.99) AS "MONTHLY SALARY" FROM
employees WHERE salary < 10000 WHERE c. SELECT MIN(hire_date) FROM employees;
last_name IN 'D%' d. SELECT hire_date FROM employees WHERE
b. SELECT last_name, TO_INT(salary, FIRST(hire_date );
'$999,999.99') AS "MONTHLY SALARY" FROM
Question 13
employees WHERE salary < 10,000 WHERE
Answer saved
last_name STARTS 'D%' Marked out of 1.00
c. SELECT last_name, TO_CHAR(salary,
'$999,999.99') AS "MONTHLY SALARY" FROM
employees WHERE salary < 10000 WHERE
last_name LIKE 'D%'
d. SELECT last_name, TO_NUMBER(salary, Flag question
'$999,999.99') AS "MONTHLY SALARY" FROM
Question text
You want to display the employee id and the year
when an employee was hired. a. SELECT * FROM parts WHERE onhand< 20
Which SQL statement give the required output? OR warehouse = 3;

Select one: b. SELECT * FROM parts WHERE onhand> 20


OR warehouse = 3;
a. SELECT employee_id,
YEAR(hire_date,'YYYY') FROM employees; c. SELECT * FROM parts WHERE onhand< 20
AND warehouse = 3;
b. SELECT employee_id, YEAR(hire_date')
FROM employees; d. SELECT * FROM parts WHERE onhand<= 20
AND warehouse = 3;
c. SELECT employee_id,
TO_YEAR(hire_date,'YYYY') FROM employees; e. SELECT ALL FROM parts WHERE onhand<
20 AND warehouse = 3;
d. SELECT employee_id,
TO_CHAR(hire_date,'YYYY') FROM employees; f. SELECT ALL FROM parts WHERE onhand<=
20 AND warehouse = 3;
Question 14
Answer saved Question 16
Marked out of 1.00 Answer saved
Marked out of 1.00

Remove flag
Flag question
Question text
Question text
Evaluate the following SQL command
SELECT employee_id, hire_date, department_name TRUE OR FALSE.
A FOREIGN KEY is a field in one table that refers to
FROM employees, departments
WHERE departments.department_id = the PRIMARY KEY in another table.
employees.department_id Select one:
Select one: True
a. The SQL command will produce an error. False
b. The SQL command will give an incorrect
Question 17
output. Answer saved
Marked out of 1.00
c. The SQL command should have ALIAS for the
table to produce a correct output.
d. The SQL command will produce a correct
output.

Question 15 Flag question


Answer saved
Marked out of 1.00 Question text
INDEX is an example of _____________________
privilege.
Select one:

Remove flag a. System

Question text b. None of the choices

Display all the records whose stock is below 20 and in c. Object


warehouse number 3. d. Data
Select one:
Question 18
Answer saved Which of the following SELECT statement is the
Marked out of 1.00 correct PL/SQL that will display all rows and
columns?
Select one:
a. SELECT TABLE PARTS;
Flag question b. SELECT FROM TABLE PARTS;
Question text c. SELECT * FROM PARTS;
Ms. Ella what to generate the average salary of all d. SELECT ALL FROM PARTS;
employees whose job function is IT_PROG.
Which of the following SQL command will produce the Question 21
output. Answer saved
Marked out of 1.00
Select one:
a. SELECT AVERAGE(salary) FROM employees
WHERE job_id = 'IT_PROG';
b. SELECT AVE(salary) FROM employees
WHERE job_id = 'IT_PROG'; Remove flag

c. SELECT AVG(salary) FROM employees Question text


WHERE job_id = 'IT_PROG';
Display all the records in the employee table. Arrange
d. SELECT COUNT AVG(salary) FROM the output in by lastname from A-Z order.
employees WHERE job_id = 'IT_PROG';
Select one:
Question 19 a. SELECT * FROM employees SORT BY
Answer saved
Marked out of 1.00
lastname
b. SELECT * FROM employees ORDER BY
lastname AZ
c. SELECT * FROM employees ORDER BY
lastname
Flag question d. SELECT * FROM employees SORT BY
Question text lastname ascending

A _______________ consists of a collection of DML Question 22


statements that form a logical unit of work. Answer saved
Marked out of 1.00
Select one:
a. All of the choices
b. Transaction
c. SQL command Flag question
d. Database Question text
Question 20 Austin David was transferred to Purchasing
Answer saved Department. You are assigned to update the
Marked out of 1.00 database.
Which of the following SQL command will satisfy the
requirements?
Select one:
a. UPDATE first_name = ‘David’ AND last_name
Remove flag
= ‘Austin’ FROM employees SET department_id = 30
Question text
John want to know how many employees receiving
b. UPDATE employees SET department_id = 30 salary below 10,000.
WHERE first_name = ‘David’ AND last_name = What SQL command he need to run?
‘Austin’
Select one:
c. UPDATE department_id = 30 WHERE
first_name = ‘David’ AND last_name = ‘Austin’ a. SELECT COUNT(salary) FROM employees
WHERE salary < 10,000;
d. UPDATE employees WHERE department_id =
30 SET first_name = ‘David’ AND last_name = b. SELECT COUNT(*) FROM employees
‘Austin’ WHERE salary < 10000;

Question 23 c. SELECT salary FROM


Answer saved COUNT(employees)WHERE salary < 10000;
Marked out of 1.00
d. SELECT COUNT(emp_id) FROM employees
WHERE salary <= 10000;

Question 25
Answer saved
Marked out of 1.00
Flag question

Question text
The General Manager request to the Database
Administrator to generate the total number of parts
and total outstanding balance on hand of every class Flag question
in warehouse number 1&2.
Which of the following SQL command will generate Question text
the required output. What privileges that manipulates the content of the
Select one: database objects.

a. SELECT warehouse, class, count(partnum), Select one:


sum(onhand) GROUP BY warehouse,class HAVING a. Object Privileges
warehouse = 1 or warehouse = 2 FROM parts;
b. Connection Privileges
b. SELECT warehouse, class, count(partnum),
sum(onhand) GROUP BY warehouse,class WHERE c. Network Privileges
warehouse = 1 or warehouse = 2 FROM parts;
d. System Privileges
c. SELECT warehouse, class, SUM(partnum),
SUM(onhand) FROM parts GROUP BY Question 26
Answer saved
warehouse,class HAVING warehouse = 1 AND
Marked out of 1.00
warehouse = 2;
d. SELECT warehouse, class, COUNT(partnum),
SUM(onhand) FROM parts GROUP BY
warehouse,class HAVING warehouse = 1 OR
warehouse = 2;
Remove flag
Question 24
Answer saved Question text
Marked out of 1.00
Each row of data in a table can be uniquely identified
by a
Select one:
a. foreign key
Flag question
b. primary key
Question text c. local key
d. relational key
e. index key

Question 27
Answer saved
Marked out of 1.00
Flag question

Question text
You want to display the employee's last name and
date hired in year 2002 whose salary is above 5000.
Flag question Which SQL statement give the required output?
Question text Select one:
You want to display all the job position titles whose a. SELECT last_name, hire_date FROM
salary is salary from 5,000 to 12,000 arrange from employees WHERE hire_date >= TO_DATE('01-Jan-
highest to lowest 2000', 'DD-Mon-YYYYY') AND hire_date <=
TO_DATE('31-Dec-2002', 'DD-Mon-YYYY')AND
Select one:
salary ABOVE 5000;
a. SELECT job_title FROM employees WHERE
b. SELECT last_name, hire_date FROM
salary >= 5000 AND salary <= 10000
employees WHERE hire_date >= TO_DATE('01-Jan-
b. SELECT employees_id, job_title FROM 2002', 'DD-Mon-RR') AND hire_date <=
employees WHERE salary >= 5000 AND salary <= TO_DATE('31-Dec-2002', 'DD-Mon-RR') AND salary
10000 > 5000;

c. SELECT job_title FROM jobs WHERE salary c. SELECT last_name, hire_date FROM
>= 5000 AND salary <= 10000 employees WHERE hire_date >= TO_DATE('2000',
'YYYY') AND hire_date <= TO_DATE('2002', 'YYYY')
d. SELECT job_title FROM jobs WHERE OR salary > 5000;
min_salary >= 5000 AND max_salary<= 10000
d. SELECT last_name, hire_date FROM
Question 28 employees WHERE hire_date >= TO_DATE('Jan-
Answer saved 2000', 'Month-YYYY') AND hire_date <=
Marked out of 1.00 TO_DATE('Dec-2002', 'Month-‘YYYY') AND salary >
5,000;

Question 30
Answer saved
Marked out of 1.00
Remove flag

Question text
Display all location id between 1000 to 2000.
Select one: Flag question

a. DISPLAY location_id FROM departments Question text


WHERE location_id LING 1000 UP TO 2000
There was 10% price increase in the all the parts in
b. SELECT location_id FROM departments warehouse number 3. The Store Manager asked the
WHERE location_id IN 1000 AND 2000 Database Administrator to generate a report showing
the part number, the old and new price.
c. DISPLAY location_id FROM departments Which of the following SQL statement would satisfy
WHERE location_id BETWEEN 1000 TO 2000 the requirement of the Store Manager.
d. SELECT location_id FROM departments Select one:
WHERE location_id BETWEEN 1000 AND 2000
a. SELECT partnum, price, price * 0.1 FROM
Question 29 parts WHERE warehouse = 3
Answer saved
Marked out of 1.00 b. SELECT partnum, price, price * 10% FROM
parts WHERE warehouse = 3
c. SELECT partnum, price, price * 1.1 FROM a. SELECT * FROM parts WHERE BETWEEN
parts WHERE warehouse = 3 onhand = 10 AND onhand = 30;
d. SELECT partnum, price, price * 1.10% FROM b. SELECT * FROM parts WHERE onhand
parts WHERE warehouse = 3 BETWEEN 10 to 30;

Question 31 c. SELECT * FROM onhand WHERE parts


Answer saved BETWEEN onhand = 10 AND onhand = 30;
Marked out of 1.00
d. SELECT * FROM parts WHERE onhand
BETWEEN 10 AND 30;
e. SELECT * FROM parts WHERE BETWEEN
onhand>=10 to onhand<=30;

Remove flag Question 33


Answer saved
Question text Marked out of 1.00

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 one:
Flag question
a. SELECT last_name, hire_date FROM
employees WHERE hire_date>= Question text
TO_DATE('01-Jan-2000', 'DD-Mon-YYYYY') AND
hire_date<= TO_DATE('31-Dec-2006', 'DD-Mon- ANSI SQL commands cannot be abbreviated.
YYYY') AND salary ABOVE 5000; Select one:
b. SELECT last_name, hire_date FROM True
employees WHERE hire_date>=
TO_DATE('01-Jan-2006', 'DD-Mon-RR') AND False
hire_date<= TO_DATE('31-Dec-2006', 'DD-Mon-RR')
AND salary > 5000; Question 34
Answer saved
c. SELECT last_name, hire_date FROM Marked out of 1.00
employees WHERE hire_date>=
TO_DATE('Jan-2000', 'Month-YYYY') AND
hire_date<= TO_DATE('Dec-2006', 'Month-‘YYYY')
AND salary > 5,000;
d. SELECT last_name, hire_date FROM Remove flag
employees WHERE hire_date>=
TO_DATE('2000', 'YYYY') AND hire_date<= Question text
TO_DATE('2006', 'YYYY') OR salary > 5000;
Display the lastname of every employee in the
Question 32 company. Display the output in a single column and
Answer saved label it as Fullname
Marked out of 1.00 Format: JuanReyes
Select one:
a. SELECT CONCATENATE(first_name,
last_name) AS Fullname FROM employees

Remove flag b. None of the choices

Question text c. SELECT CONCAT(first_name, last_name)


FROM employees
Which of the following SQL commands will display all
the stocks on hand from 10 to 30? d. SELECT CONCAT(first_name, last_name) AS
Fullname FROM employees
Select one:
Question 35
Answer saved
Marked out of 1.00

Remove flag

Question text
Remove flag
You want to display all the employee id and the month
Question text an employee was hired.
Which SQL statement give the required output?
Evaluate the following SQL command
SELECT * FROM jobs WHERE job_title LIKE Select one:
'Manager%' a. SELECT employee_id, hire_date,
Select one: TO_MONTH(hire_date,'Month') AS "Hired Month",
job_id FROM employees
a. The SQL command will display all records in
the database b. SELECT employee_id, hire_date,
TO_DATE(hire_date,'Month') AS "Hired Month",
b. The SQL command will display all employees job_id FROM
with Manager position
c. SELECT employee_id, hire_date,
c. No records will be displayed MONTH(hire_date,'Month') AS "Hired Month", job_id
FROM employees
d. The SQL command will produce an error.
d. SELECT employee_id, hire_date,
Question 36 TO_CHAR(hire_date,'Month') AS "Hired Month",
Answer saved
Marked out of 1.00
job_id FROM employees

Question 38
Answer saved
Marked out of 1.00

Flag question

Question text
Aldrin wants to know the highest salary in every Flag question
department. Which of the following SQL command will
Question text
display the required output?
Which of the following describes the command
Select one:
below?
a. SELECT department_id, HIGH(salary) FROM SELECT * FROM employees WHERE department =
employees GROUP BY department_id AND salary; 60 FOR UPDATE
b. SELECT department_id, HIGHEST(salary) Select one:
FROM employees GROUP BY salary;
a. Locks the rows in the EMPLOYEES table with
c. SELECT department_id, MAX(salary) FROM department id is 60.
employees GROUP BY department_id
b. Unlock all records with department id = 60
d. SELECT department_id, MAXIMUM(salary)
c. All users accessing the department id 60 can
FROM employees GROUP BY department_id;
accept UPDATE command simultaneously.
Question 37 d. Creates a temporary table with department =
Answer saved
Marked out of 1.00
60

Question 39
Answer saved
Marked out of 1.00
Flag question Flag question

Question text Question text


Display the employee id, number of years and the Which of the following SQL command will display the
hiring date of every employee in the company. summary table showing the total quantity on hand per
class.
Select one:
Select one:
a. SELECT employee_id, hire_date,
ROUND((SYSDATE - hire_date),0 /365,0) FROM a. SELECT class, TOTAL(onhand) AS "QTY ON
employees; HAND" FROM parts GROUP BY class, onhand
b. SELECT employee_id, hire_date, b. SELECT class, onhand AS "QTY ON HAND"
ROUND((SYSDATE - hire_date) /365,0) FROM FROM parts GROUP BY sum(onhand)
employees;
c. SELECT class, sum(onhand) AS "QTY ON
c. SELECT employee_id, hire_date, hire_date HAND" FROM parts GROUP BY onhand
/365 FROM employees;
d. SELECT class, sum(onhand) AS "QTY ON
d. SELECT employee_id, hire_date, hire_date- HAND" FROM parts GROUP BY class
SYSDATE /365 FROM employees;
Question 42
Question 40 Answer saved
Answer saved Marked out of 1.00
Marked out of 1.00

Remove flag
Flag question
Question text
Question text
Display the first 5 letter in the surname of all the
The DBA will create a new user name sales. employees whose firstname starts with letter 'N'
Which of the following SQL command will perform the
creation? Select one:

Select one: a. SELECT SUBSTR(last_name,1,5), first_name


FROM employees WHERE SUBSTR(first_name,1,1)
a. CREATE USER FR0M DB_USER SET IN 'N'
user=’sales’ password=NULL
b. SELECT SUBSTR(last_name,1,5), first_name
b. None of the choices FROM employees WHERE SUBSTR(first_name,1,1)
= 'N'
c. CREATE USERNAME sales SET PASSWORD
default c. SELECT SUBSTR(surname,1,5), first_name
FROM employees WHERE first_name = 'N'
d. CREATE sales ACCESS 1234
d. SELECT SUBSTR(surname,1,5), first_name
e. CREATE USER sales IDENTIFIED BY 1234 FROM employees WHERE SUBSTR(first_name,1,1)
IN 'N'
Question 41
Answer saved e. SELECT SUBSTR(last_name,1,5), first_name
Marked out of 1.00
FROM employees WHERE first_name IN 'N'

Question 43
Answer saved
Marked out of 1.00
a. SELECT employee_id, hire_date,
MONTH(hire_date,'Month') AS "Hired Month",
job_id FROM employees WHERE job_id EXCLUDE
('AD_VP');
Flag question
b. SELECT employee_id, hire_date,
Question text TO_CHAR(hire_date,'Month') AS "Hired Month",
job_id FROM employees WHERE job_id NOT IN
Display the employee id, salary, number of years and
('AD_VP');
the hiring date of every employee in the company.
c. SELECT employee_id, hire_date,
Select one:
TO_MONTH(hire_date,'Month') AS "Hired Month",
a. SELECT employee_id,salary, hire_date, job_id FROM employees WHERE job_id NOT
hire_date- SYSDATE /365 FROM employees; ('AD_VP');
b. SELECT employee_id, salary, hire_date, d. SELECT employee_id, hire_date,
hire_date /365 FROM employees; TO_DATE(hire_date,'Month') AS "Hired Month",
job_id FROM employees WHERE job_id NOT =
c. SELECT employee_id, salary, hire_date, 'AD_VP';
ROUND((SYSDATE - hire_date) /365,0) FROM
employees; Question 46
Answer saved
Question 44 Marked out of 1.00
Answer saved
Marked out of 1.00

Remove flag

Flag question Question text


Question text Display employee's name and id whose firstname
starts with letter D and job id is IT_PROG.
True or False. The AND, OR, NOT are comparison Sort the output by department.
operators.
Select one:
Select one:
a. SELECT employees FROM employee_id,
True first_name, last_name WHERE first_name LIKE ‘D%’
False and job_id = ‘IT_PROG’ ORDER BY department_id
b. SELECT employee_id, first_name, last_name
Question 45
FROM employees WHERE job_id = 'IT_PROG' OR
Answer saved
Marked out of 1.00 first_name LIKE 'D%' and ORDER BY department_id
c. SELECT employee_id, first_name, last_name
FROM employees ORDER BY department_id
WHERE first_name LIKE 'D%' and job_id =
'IT_PROG'

Flag question d. SELECT employee_id, first_name, last_name


FROM employees WHERE first_name LIKE 'D%' and
Question text job_id = 'IT_PROG' ORDER BY department_id
You want to display all the employee id and the month
Question 47
an employee was hired excluding employees whose Answer saved
job id is AD_VP. Which SQL statement give the Marked out of 1.00
required output?
Select one:
a. SELECT * FROM parts WHERE IN (class =
‘HW’, class= ‘AP’);
b. SELECT ALL FROM class WHERE parts IN =
(‘HW’, ‘AP’);
Flag question
c. SELECT * FROM parts WHERE IN class
Question text ('HW', 'AP');
TRUE OR FALSE. d. SELECT ALL FROM parts WHERE IN class =
An owner has all the privileges on the object. (‘HW’, ‘AP’);
Select one: e. SELECT * FROM parts WHERE class IN
('HW', 'AP');
True
False Question 50
Answer saved
Marked out of 1.00
Question 48
Answer saved
Marked out of 1.00

Flag question

Question text
Flag question
What is the SQL command to count the number of
Question text records in the employees table?
You want to generate the total salary per month of Select one:
every department in the company.
a. SELECT ALL FROM employees
Select one:
b. SELECT * FROM employees;
a. SELECT department_id, SUM(salary) FROM
employees GROUP BY department_id c. SELECT COUNT(*) FROM employees
b. SELECT department_id, salary FROM d. SELECT SUM(*) FROM employees;
employees ORDER BY SUM(salary)
c. SELECT department_id, salary FROM
employees GROUP BY SUM(salary) ORDER BY
department_id
d. SELECT department_id, TOTAL(salary) FROM
employees GROUP BY department_id

Question 49
Answer saved
Marked out of 1.00

Flag question

Question text
Which of the following SQL commands will display all
stocks whose class is HW or AP.
Select one:
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 does NOT describes SELECT Statement in a PL/SQL.


Answer: Queries must return only one column.
You want to display all the records of employee the same with the salary employee number 103.
Answer: SELECT * FROM employees WHERE salary = (SELECT salary from employees where
employee_id= 103)
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;
Which of the folllowing is TRUE?
Answer: SQL code are embedded within PL/SQL statements
When an exception is user defined, the exception is raised ____________ .
Answer: Explicitly
Which of the folllowing is TRUE?
Answer: SQL code are embedded withing PL/SQL statements
Weak REF CURSOR is very flexible.
Answer: True
How do you test the output of a PL/SQL block?
Answer: Use a predefined Oracle package and its procedure
Restrictive, specifies a RETURN type, associates only with type-compatible queries are description
of a ________________.
Answer: Strong REF CURSOR
Which of the following DOES NOT describes an exception?
Answer: Exception is a PL/SQL error that is raised before program execution.
These are local variables declared in the parameter list of a subprogram specification.
Answer: Formal parameter
Which of the following rules is INCORRECT about cursor variables?
Answer: None of the choices.
When an exception is predefined by Oracle server, the exception is raised ____________ .
Answer: Explicitly
Which of the following DOES NOT describes an exception?
Answer: Exception is a PL/SQL error that is raised before program execution.
Evaluate the following PL/SQL.
CREATE OR REPLACE PROCEDURE query_employee
(p_id IN employees.employee_id%TYPE,
p_name OUT employees.last_name%TYPE,
p_salary OUT employees.salary%TYPE) IS
BEGIN SELECT last_name, salary INTO p_name, p_salary
FROM employeesWHERE employee_id = p_id;
END query_employee
Answer: No error
You want to know the total number of employees whose firstname starts with letter D.
Which of the folllowing PLS/SQL executes successfully?
Answer: DECLARE
v_first_name employees.first_name%TYPE := 'D%';
BEGIN
SELECT COUNT(*) INTO v_first_name FROM employees WHERE first_name LIKE v_first_name;
DBMS_OUTPUT.PUT_LINE(v_first_name);
END;
What is the error trapping function that returns the numeric value of the error code?
Answer: SQLCODE
You want to display the name, salary and tax of employee #150. Which of the PL/SQL will execute
successfully? Note tax is computed as 2% of the salary.
Answer: DECLARE
v_first_name VARCHAR2(50);
v_last_name VARCHAR2(50);
v_salary INTEGER(20);
v_tax INTEGER(10);
BEGIN
SELECT first_name, last_name, salary, salary * 0.02 INTO v_first_name, v_last_name, v_salary,
v_tax FROM employees WHERE employee_id = 150;
DBMS_OUTPUT.PUT_LINE('Firstname : '|| v_first_name);
DBMS_OUTPUT.PUT_LINE('Lastname : '|| v_last_name);
DBMS_OUTPUT.PUT_LINE('Salary : '|| v_salary);
DBMS_OUTPUT.PUT_LINE('Tax : '|| v_tax);
END;
Which of the following is the syntax to close a cursor?
Answer: CLOSE cursor_variable_name;
Which of the following rules is INCORRECT about cursor variables?
Answer: None of the choices.
What are the three PL/SQL block types?
Answer: Anonymous, Procedure, Function
You can trap any error by including a corresponding handler within the exception-handling section of
the PL/SQL block.
Answer: True
Which of the following describes weak REF CURSOR?
Answer: Associates with any query
Given the answer in item __________, which of the folllowing stored procedure will display the
employee id and salary of Steven King?
Answer: DECLARE
v_employee_id employees.employee_id%TYPE;
v_emp_sal employees.salary%TYPE;
BEGIN
query_emp('King', 'Steven', v_employee_id, v_emp_sal);
DBMS_OUTPUT.PUT_LINE('Employee ID ' || v_employee_id ||' earns '|| to_char(v_emp_sal,
'$999,999.00'));
END;
You have been tasked to update the database by creating a PL/SQL to increase the salary of all IT
Programmer employees by 50% 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 *0.50 WHERE job_id = v_job_id;
END;
Which of the folllowing is required in a subquery?
Answer: SELECT
What is the exception name when PL/SQL has an internal problem
Answer: PROGRAM_ERROR
In the DECLARE section of the PL/SQL block,
Answer: All of the choices
Actions are being performed when error occurs during PL/SQL execution in the
Answer: EXCEPTION
What is the exception name when PL/SQL has an internal problem
Answer: PROGRAM_ERROR
Which of the folllowing statement describes PL/SQL?
Answer: PL/SQL is an Oracle proprietary, procedural, 3GL programming language
Evaluate the following PL/SQL.
DECLARE
v_employee_id employees.employee_id%TYPE := 114;
BEGIN
DELETE employees WHERE employee_id = v_employee_id;
END;
Answer: The PL/SQL will delete employee number 114.
Which of the following command is used to create a stand-alone procedure that is stored in the
Oracle database?
Answer: CREATE PROCEDURE
Evaluate the following PL/SQL.
DECLARE
v_email VARCHAR(20);
BEGIN
SELECT email INTO v_email FROM EMPLOYEES WHERE email like 'D%';
DBMS_OUTPUT.PUT_LINE ('Employees whose email address starts with letter D :'
|| v_email);
EXCEPTION
WHEN TOO_MANY_ROWS THEN
DBMS_OUTPUT.PUT_LINE (' Your select statement retrieved multiple rows.');
END;
Answer: The PL/SQL block will run successfully.
Which of the following is the syntax to define a REF CURSOR type?
Answer: TYPE ref_type_name IS REF CURSOR
[RETURN return_type];
The PL/SQL code block helps modularize code by using:
Answer: All of the choices
Which of the following is the syntax to fetch from a cursor variable?
Answer: FETCH cursor_variable_name INTO variable_name1
[,variable_name2,. . .] | record_name;
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')
Procedure can be stored in the database as a schema object.
Answer: True
In PL/SQL Block Structure, which of the following are mandatory?
Answer: BEGIN and END
PL/SQL stands for
Answer: Procedural Language extension to SQL
Which of the following is CORRECT about sub-queries?
Answer: Subquery execute before the main query executes.
Which of the following does NOT describes SELECT Statement in a PL/SQL.
Answer: Queries must return only one column.
PL/SQL Provides a block structure for executable units of ________________.
Answer: Code
Evaluate the SQL command
SELECT employee_id, salary from employees where salary = ANY (SELECT salary FROM
employees WHERE job_id = 'IT_PROG') AND job_id = 'ST_CLERK'
Answer: This has no error.
Which of the following PL/SQL will execute successfully?
Answer: DECLARE
v_salary INTEGER(20);
BEGIN
SELECT salary INTO v_salary FROM employees WHERE employee_id = 150;
END;
In PL/SQL Block Structure, which of the following are OPTIONAL?
Answer: None of the choices
Evaluate the following PL/SQL. At what line number is the error of the PL/SQL?
DECLARE
v_deptno NUMBER := 800;
e_invalid EXCEPTION;
BEGIN
DELETE FROM departments
WHERE department_id = v_deptno;
IF SQL % NOT_FOUND THEN
RAISE e_invalid;
END IF;
COMMIT;
EXCEPTION
WHEN e_invalid THEN
DBMS_OUTPUT.PUT_LINE('No such department id.');
END;
Answer: 7
What is the error trapping function that returns the numeric value of the error code?
Answer: SQLCODE
Fetch into a record when fetching from a cursor.
Answer: True

You might also like