he Norwegian government provides scholarships for students from developing countries in the South and countries of Central- and East-Europe and Central-Asia under the Quota Scheme. The goal of the Quota Scheme is to promote the internationalization of higher education and give developing country students relevant education that would also benefit their home countries when they return after graduation..
Showing posts with label Interview Tips. Show all posts
Showing posts with label Interview Tips. Show all posts
Tuesday, June 4, 2013
K. C. MAHINDRA EDUCATION TRUST MAHINDRA ALL INDIA TALENT SCHOLARSHIP.
Posted by
Education & Exam Point
Labels:
ALL INDIA SCHOLARSHIP,
Interview Tips,
JHARKHAND SCHOLARSHIP,
ON FORMS,
ONLINE FORMS,
SCHOLARSHIP FORM
at
8:29 AM
Wednesday, February 20, 2013
Photoshop Interview Questions
Posted by
Education & Exam Point
Labels:
Interview,
Interview Questions,
Interview Tips,
Photoshop
at
1:27 AM
Question 21 Would you lie for the company?
TRAPS: This another question that pits two values against one another, in this case
loyalty against integrity.
BEST ANSWER: Try to avoid choosing between two values, giving a positive statement
which covers all bases instead.
Example: “I would never do anything to hurt the company..”
If aggressively pressed to choose between two competing values, always choose
personal integrity. It is the most prized of all values.
Question 22 Looking back, what would you do differently in your
life?
TRAPS: This question is usually asked to uncover any life-influencing mistakes, regrets,
disappointments or problems that may continue to affect your personality and
performance.
You do not want to give the interviewer anything negative to remember you by, such as
some great personal or career disappointment, even long ago, that you wish could have
been avoided.
Nor do you wish to give any answer which may hint that your whole heart and soul will
not be in your work.
BEST ANSWER: Indicate that you are a happy, fulfilled, optimistic person and that, in
general, you wouldn’t change a thing.
Example: “It’s been a good life, rich in learning and experience, and the best it yet to
come. Every experience in life is a lesson it its own way. I wouldn’t change a thing.”
Question 23 Could you have done better in your last job?
TRAPS: This is no time for true confessions of major or even minor problems.
BEST ANSWER: Again never be negative.
Example: “I suppose with the benefit of hindsight you can always find things to do
better, of course, but off the top of my head, I can’t think of anything of major
consequence.”
(If more explanation seems necessary)
Describer a situation that didn’t suffer because of you but from external conditions
beyond your control.
For example, describe the disappointment you felt with a test campaign, new product
launch, merger, etc., which looked promising at first, but led to underwhelming results. “I
wish we could have known at the start what we later found out (about the economy
turning, the marketplace changing, etc.), but since we couldn’t, we just had to go for it.
And we did learn from it…”
Question 24 Can you work under pressure?
TRAPS: An easy question, but you want to make your answer believable.
BEST ANSWER: Absolutely…(then prove it with a vivid example or two of a goal or
project accomplished under severe pressure.)
Question 25 What makes you angry?
TRAPS: You don’t want to come across either as a hothead or a wimp.
BEST ANSWER: Give an answer that’s suited to both your personality and the
management style of the firm. Here, the homework you’ve done about the company and
its style can help in your choice of words.
Examples: If you are a reserved person and/or the corporate culture is coolly
professional:
“I’m an even-tempered and positive person by nature, and I believe this helps me a great
deal in keeping my department running smoothly, harmoniously and with a genuine
esprit de corps. I believe in communicating clearly what’s expected, getting people’s
commitment to those goals, and then following up continuously to check progress.”
“If anyone or anything is going off track, I want to know about it early. If, after that kind
of open communication and follow up, someone isn’t getting the job done, I’ll want to
know why. If there’s no good reason, then I’ll get impatient and angry…and take
appropriate steps from there. But if you hire good people, motivate them to strive for
excellence and then follow up constantly, it almost never gets to that state.”
If you are feisty by nature and/or the position calls for a tough straw boss.
“You know what makes me angry? People who (the fill in the blanks with the most
objectionable traits for this type of position)…people who don’t pull their own weight, who
are negative, people who lie…etc.”
Question 26 Why aren’t you earning more money at this stage of
your career?
TRAPS: You don’t want to give the impression that money is not important to you, yet
you want to explain why your salary may be a little below industry standards.
BEST ANSWER: You like to make money, but other factors are even more important.
Example: “Making money is very important to me, and one reason I’m here is because
I’m looking to make more. Throughout my career, what’s been even more important to
me is doing work I really like to do at the kind of company I like and respect.
(Then be prepared to be specific about what your ideal position and company would be
like, matching them as closely as possible to the opportunity at hand.
Question 27 Who has inspired you in your life and why?
TRAPS: The two traps here are unpreparedness and irrelevance. If you grope for an
answer, it seems you’ve never been inspired. If you ramble about your high school
basketball coach, you’ve wasted an opportunity to present qualities of great value to the
company.
BEST ANSWER: Have a few heroes in mind, from your mental “Board of Directors” –
Leaders in your industry, from history or anyone else who has been your mentor.
Be prepared to give examples of how their words, actions or teachings have helped
inspire your achievements. As always, prepare an answer which highlights qualities that
would be highly valuable in the position you are seeking.
Question 28 What was the toughest decision you ever had to
make?
TRAPS: Giving an unprepared or irrelevant answer.
BEST ANSWER: Be prepared with a good example, explaining why the decision was
difficult…the process you followed in reaching it…the courageous or effective way you
carried it out…and the beneficial results.
Question 29 Tell me about the most boring job you’ve ever had.
TRAPS: You give a very memorable description of a very boring job. Result? You
become associated with this boring job in the interviewer’s mind.
BEST ANSWER: You have never allowed yourself to grow bored with a job and you
can’t understand it when others let themselves fall into that rut.
Example: “Perhaps I’ve been fortunate, but that I’ve never found myself bored with any
job I have ever held. I’ve always enjoyed hard work. As with actors who feel there are
no small parts, I also believe that in every company or department there are exciting
challenges and intriguing problems crying out for energetic and enthusiastic solutions. If
you’re bored, it’s probably because you’re not challenging yourself to tackle those
problems right under your nose.”
Question 30 Have you been absent from work more than a few
days in any previous position?
TRAPS: If you’ve had a problem, you can’t lie. You could easily be found out. Yet
admitting an attendance problem could raise many flags.
BEST ANSWER: If you have had no problem, emphasize your excellent and consistent
attendance record throughout your career.
Also describe how important you believe such consistent attendance is for a key
executive…why it’s up to you to set an example of dedication…and why there’s just no
substitute for being there with your people to keep the operation running smoothly,
answer questions and handle problems and crises as they arise.
If you do have a past attendance problem, you want to minimize it, making it clear that it
was an exceptional circumstance and that it’s cause has been corrected.
To do this, give the same answer as above but preface it with something like, “Other that
being out last year (or whenever) because of (your reason, which is now in the past), I
have never had a problem and have enjoyed an excellent attendance record throughout
my career. Furthermore, I believe, consistent attendance is important because…” (Pick
up the rest of the answer as outlined above.).
Question 31 What changes would you make if you came on board?
TRAPS: Watch out! This question can derail your candidacy faster than a bomb on the
tracks – and just as you are about to be hired.
Reason: No matter how bright you are, you cannot know the right actions to take in a
position before you settle in and get to know the operation’s strengths, weaknesses key
people, financial condition, methods of operation, etc. If you lunge at this temptingly
baited question, you will probably be seen as someone who shoots from the hip.
Moreover, no matter how comfortable you may feel with your interviewer, you are still an
outsider. No one, including your interviewer, likes to think that a know-it-all outsider is
going to come in, turn the place upside down and with sweeping, grand gestures,
promptly demonstrate what jerks everybody’s been for years.
BEST ANSWER: You, of course, will want to take a good hard look at everything the
company is doing before making any recommendations.
Example: “Well, I wouldn’t be a very good doctor if I gave my diagnosis before the
examination. Should you hire me, as I hope you will, I’d want to take a good hard look at
everything you’re doing and understand why it’s being done that way. I’d like to have indepth meetings with you and the other key people to get a deeper grasp of what you feel
you’re doing right and what could be improved.
“From what you’ve told me so far, the areas of greatest concern to you are…” (name
them. Then do two things. First, ask if these are in fact his major concerns. If so then
reaffirm how your experience in meeting similar needs elsewhere might prove very
helpful).
Question 32 I’m concerned that you don’t have as much experience
as we’d like in…
TRAPS: This could be a make-or-break question. The interviewer mostly likes what he
sees, but has doubts over one key area. If you can assure him on this point, the job may
be yours.
BEST ANSWER: This question is related to “The Fatal Flaw” (Question 18), but here
the concern is not that you are totally missing some qualifications, such as CPA
certification, but rather that your experience is light in one area.
Before going into any interview, try to identify the weakest aspects of your candidacy
from this company’s point of view. Then prepare the best answer you possible can to
shore up your defenses.
To get past this question with flying colors, you are going to rely on your master strategy
of uncovering the employer’s greatest wants and needs and then matching them with
your strengths. Since you already know how to do this from Question 1, you are in a
much stronger position.
More specifically, when the interviewer poses as objection like this, you should…
1. Agree on the importance of this qualification.
2. Explain that your strength may be indeed be greater than your resume
indicates because…
3. When this strength is added to your other strengths, it’s really your
combination of qualifications that’s most important.
Then review the areas of your greatest strengths that match up most favorably with the
company’s most urgently-felt wants and needs.
This is powerful way to handle this question for two reasons. First, you’re giving your
interviewer more ammunition in the area of his concern. But more importantly, you’re
shifting his focus away from this one, isolated area and putting it on the unique
combination of strengths you offer, strengths which tie in perfectly with his greatest
wants.
Question 33 How do you feel about working nights and weekends?
TRAPS: Blurt out “no way, Jose” and you can kiss the job offer goodbye. But what if
you have a family and want to work a reasonably normal schedule? Is there a way to
get both the job and the schedule you want?
BEST ANSWER: First, if you’re a confirmed workaholic, this question is a softball lob.
Whack it out of the park on the first swing by saying this kind of schedule is just your
style. Add that your family understands it. Indeed, they’re happy for you, as they know
you get your greatest satisfaction from your work.
If however, you prefer a more balanced lifestyle, answer this question with another:
“What’s the norm for your best people here?”
If the hours still sound unrealistic for you, ask, “Do you have any top people who perform
exceptionally for you, but who also have families and like to get home in time to see
them at night?” Chances are this company does, and this associates you with this other
“top-performers-who-leave-not-later-than-six” group.
Depending on the answer, be honest about how you would fit into the picture. If all
those extra hours make you uncomfortable, say so, but phrase your response positively.
Example: “I love my work and do it exceptionally well. I think the results speak for
themselves, especially in …(mention your two or three qualifications of greater interest
to the employer. Remember, this is what he wants most, not a workaholic with weak
credentials). Not only would I bring these qualities, but I’ve built my whole career on
working not just hard, but smart. I think you’ll find me one of the most productive people
here.
I do have a family who likes to see me after work and on weekends. They add balance
and richness to my life, which in turn helps me be happy and productive at work. If I
could handle some of the extra work at home in the evenings or on weekends, that
64 Toughest Questions Page 22 would be ideal. You’d be getting a person of exceptional productivity who meets your
needs with strong credentials. And I’d be able to handle some of the heavy workload at
home where I can be under the same roof as my family. Everybody would win.”
Question 34 Are you willing to relocate or travel?
TRAPS: Answer with a flat “no” and you may slam the door shut on this opportunity.
But what if you’d really prefer not to relocate or travel, yet wouldn’t want to lose the job
offer over it?
BEST ANSWER: First find out where you may have to relocate and how much travel
may be involved. Then respond to the question.
If there’s no problem, say so enthusiastically.
If you do have a reservation, there are two schools of thought on how to handle it.
One advises you to keep your options open and your reservations to yourself in the early
going, by saying, “no problem”. You strategy here is to get the best offer you can, then
make a judgment whether it’s worth it to you to relocate or travel.
Also, by the time the offer comes through, you may have other offers and can make a
more informed decision. Why kill of this opportunity before it has chance to blossom into
something really special? And if you’re a little more desperate three months from now,
you might wish you hadn’t slammed the door on relocating or traveling.
The second way to handle this question is to voice a reservation, but assert that you’d
be open to relocating (or traveling) for the right opportunity.
The answering strategy you choose depends on how eager you are for the job. If you
want to take no chances, choose the first approach.
If you want to play a little harder-to-get in hopes of generating a more enticing offer,
choose the second.
Question 35 Do you have the stomach to fire people? Have you
had experience firing many people?
TRAPS: This “innocent” question could be a trap door which sends you down a chute
and lands you in a heap of dust outside the front door. Why? Because its real intent is
not just to see if you’ve got the stomach to fire, but also to uncover poor judgment in
hiring which has caused you to fire so many. Also, if you fire so often, you could be a
tyrant.
So don’t rise to the bait by boasting how many you’ve fired, unless you’ve prepared to
explain why it was beyond your control, and not the result of your poor hiring procedures
or foul temperament.
BEST ANSWER: Describe the rational and sensible management process you follow
in both hiring and firing.
Example: “My whole management approach is to hire the best people I can find, train
them thoroughly and well, get them excited and proud to be part of our team, and then
work with them to achieve our goals together. If you do all of that right, especially hiring
the right people, I’ve found you don’t have to fire very often.
“So with me, firing is a last resort. But when it’s got to be done, it’s got to be done, and
the faster and cleaner, the better. A poor employee can wreak terrible damage in
undermining the morale of an entire team of good people. When there’s no other way,
I’ve found it’s better for all concerned to act decisively in getting rid of offenders who
won’t change their ways.”
Question 36 Why have you had so many jobs?
TRAPS: Your interviewer fears you may leave this position quickly, as you have others.
He’s concerned you may be unstable, or a “problem person” who can’t get along with
others.
BEST ANSWER: First, before you even get to the interview stage, you should try to
minimize your image as job hopper. If there are several entries on your resume of less
than one year, consider eliminating the less important ones. Perhaps you can specify
the time you spent at previous positions in rounded years not in months and years.
Example: Instead of showing three positions this way:
6/1982 – 3/1983, Position A;
4/1983 – 12/1983, Position B;
1/1984 – 8/1987, Position C;
…it would be better to show simply:
1982 – 1983, Position A;
1984 – 1987 Position C.
In other words, you would drop Position B altogether. Notice what a difference this
makes in reducing your image as a job hopper.
Once in front of the interviewer and this question comes up, you must try to reassure
him. Describe each position as part of an overall pattern of growth and career
destination.
Be careful not to blame other people for your frequent changes. But you can and should
attribute certain changes to conditions beyond your control.
Example: Thanks to an upcoming merger, you wanted to avoid an ensuing bloodbath,
so you made a good, upward career move before your department came under the axe
of the new owners.
If possible, also show that your job changes were more frequent in your younger days,
while you were establishing yourself, rounding out your skills and looking for the right
career path. At this stage in your career, you’re certainly much more interested in the
best long-term opportunity.
You might also cite the job(s) where you stayed the longest and describe that this type of
situation is what you’re looking for now.
Question 37 What do you see as the proper role/mission of…
…a good (job title you’re seeking);
…a good manager;
…an executive in serving the community;
…a leading company in our industry; etc.
TRAPS: These and other “proper role” questions are designed to test your
understanding of your place in the bigger picture of your department, company,
community and profession….as well as the proper role each of these entities should play
in its bigger picture.
The question is most frequently asked by the most thoughtful individuals and
companies…or by those concerned that you’re coming from a place with a radically
different corporate culture (such as from a big government bureaucracy to an aggressive
small company).
The most frequent mistake executives make in answering is simply not being prepared
(seeming as if they’ve never giving any of this a though.)…or in phrasing an answer best
suited to their prior organization’s culture instead of the hiring company’s.
BEST ANSWER: Think of the most essential ingredients of success for each category
above – your job title, your role as manager, your firm’s role, etc.
Identify at least three but no more than six qualities you feel are most important to
success in each role. Then commit your response to memory.
Here, again, the more information you’ve already drawn out about the greatest wants
and needs of the interviewer, and the more homework you’ve done to identify the culture
of the firm, the more on-target your answer will be.
Question 38 What would you say to your boss if he’s crazy about an
idea, but you think it stinks?
TRAPS: This is another question that pits two values, in this case loyalty and honesty,
against one another.
BEST ANSWER: Remember the rule stated earlier: In any conflict between values,
always choose integrity.
Example: I believe that when evaluating anything, it’s important to emphasize the
positive. What do I like about this idea?”
“Then, if you have reservations, I certainly want to point them out, as specifically,
objectively and factually as I can.”
“After all, the most important thing I owe my boss is honesty. If he can’t count on me for
that, then everything else I may do or say could be questionable in his eyes.”
“But I also want to express my thoughts in a constructive way. So my goal in this case
would be to see if my boss and I could make his idea even stronger and more appealing,
so that it effectively overcomes any initial reservation I or others may have about it.”
“Of course, if he overrules me and says, ‘no, let’s do it my way,’ then I owe him my full
and enthusiastic support to make it work as best it can.”
Question 39 How could you have improved your career progress?
TRAPS: This is another variation on the question, “If you could, how would you live your
life over?” Remember, you’re not going to fall for any such invitations to rewrite person
history. You can’t win if you do.
BEST ANSWER: You’re generally quite happy with your career progress. Maybe, if
you had known something earlier in life (impossible to know at the time, such as the
booming growth in a branch in your industry…or the corporate downsizing that would
phase out your last job), you might have moved in a certain direction sooner.
But all things considered, you take responsibility for where you are, how you’ve gotten
there, where you are going…and you harbor no regrets.
Question 40 What would you do if a fellow executive on your own
corporate level wasn’t pulling his/her weight…and this
was hurting your department?
TRAPS: This question and other hypothetical ones test your sense of human relations
and how you might handle office politics.
BEST ANSWER: Try to gauge the political style of the firm and be guided accordingly.
In general, fall back on universal principles of effective human relations – which in the
end, embody the way you would like to be treated in a similar circumstance.
Example: “Good human relations would call for me to go directly to the person and
explain the situation, to try to enlist his help in a constructive, positive solution. If I
sensed resistance, I would be as persuasive as I know how to explain the benefits we
can all gain from working together, and the problems we, the company and our
customers will experience if we don’t.”
POSSIBLE FOLLOW-UP QUESTION: And what would you do if he still did not change
his ways?
ANSWER: “One thing I wouldn’t do is let the problem slide, because it would only get
worse and overlooking it would set a bad precedent. I would try again and again and
again, in whatever way I could, to solve the problem, involving wider and wider circles of
people, both above and below the offending executive and including my own boss if
necessary, so that everyone involved can see the rewards for teamwork and the
drawbacks of non-cooperation.”
“I might add that I’ve never yet come across a situation that couldn’t be resolved by
harnessing others in a determined, constructive effort.”
Tuesday, January 29, 2013
Kaun Banega Crorepati Registration - Individual
Posted by
Education & Exam Point
Labels:
General Knowledge,
Interview,
Interview Questions,
Interview Tips,
Online Exam,
Others
at
7:13 AM
Kaun Banega Crorepati Registration - Individual
Q. Who can register?
A. Anyone who is an Indian citizen, residing in India, of 18 years or above as on May 25, 2012 and the
citizen should be of sound health and mind can register for KBC. No person can participate on
behalf of another person..
Any Contestant who has made it once to the Fastest Finger First round of the current season of the
Competition or the last 2 seasons of the Competition that were broadcast on the channel Sony
Entertainment Television, will not be eligible to participate in the current season of the Competition.
Q. When will the lines be open for registration?
A. Registration lines (both IVRS – phone and SMS - messaging) are open from 20:30:00 hrs on
September 21, 2012, when the first question goes on air, for all viewers. The schedule of on-air
registration questions during this period will be as below:
Second
round
Question
Lines open Lines close
Date Time Date Time
General 18 21-Sep-12 20:30:00 22-Sep-12 20:29:59
General 19 22-Sep-12 20:30:00 23-Sep-12 20:29:59
General 20 23-Sep-12 20:30:00 24-Sep-12 20:29:59
General 21 28-Sep-12 20:30:00 29-Sep-12 20:29:59
In addition, for Idea subscribers, the registrations lines (both IVRS – phone and SMS - messaging)
are open exclusively from 20:30:00 Hrs on October 5, 2012. The schedule of on-air registration
questions during this period will be as below:
Second
round
Question
Lines open Lines close
Date Time Date Time
Idea 23 05-Oct-12 20:30:00 06-Oct-12 20:29:59
Idea 24 06-Oct-12 20:30:00 07-Oct-12 20:29:59Q. What are the different modes of registration?
A. You can register by answering the on-air question through an SMS or by calling on the IVR number.
The operator wise registration details of the numbers to be dialled for IVR and short code for
sending SMS with the answer options are listed below:
SMS IVR
Operator Number Number Answer option
Idea 554567 55456 01, 02, 03, 04
BSNL
Landline
NA 5052525 01, 02, 03, 04
Others 5252525 NA NA
*BSNL Rajasthan and Punjab landline subscribers can call 12555 01/02/03/04
Q. On what number and in which format do I have to send the SMS?
A. Subscribers of all operators can send in their SMSs to 5252525. If you are an Idea subscriber, you
can also send in your SMS to 554567.
All registration through SMSs need to be in the following format:
“KBC <space>< A/B/C/D> <space><Age in completed years> <space><Gender>”. e.g.: If the
correct answer to the question aired is “A” according to you, you are 21 years and 10 months old and
are a male; you are required to send “KBC A 21 M”.
During the telecom partner week, the subscribers of the telecom partner are required to send SMSs
in the following format:
“KBC <space>< Answer Option (A/B/C/D)>” e.g.: If the correct answer to the question aired is “A”
according to you, you are required to send “KBC A”.
Q. What number can I call to register my answer?
A. Idea subscribers can call on 55456 01- 04 (for the respective answer option). For e.g.
If your answer is Option A, call on 5545601
If your answer is Option B, call on 5545602
If your answer is Option C, call on 5545603
If your answer is Option D, call on 5545604
BSNL landline subscribers can call on 5052525 01 – 04 (for the respective answer option).
For e.g. :
If your answer is Option A, call on 505252501
If your answer is Option B, call on 505252502
If your answer is Option C, call on 505252503
If your answer is Option D, call on 505252504
BSNL landline subscribers in Rajasthan & Punjab can call on 12555 01 – 04 (for the respective answer option).
For e.g. :
If your answer is Option A, call on 1255501
If your answer is Option B, call on 1255502
If your answer is Option C, call on 1255503
If your answer is Option D, call on 1255504
Subscribers of all other operators will require to send in their registrations via SMS only.
Q. What will it cost me to call or send an SMS?
A. SMS : Every SMS sent to the registration numbers will be charged as below.
Upto Rs.4/- per SMS – 5252525*(Subscribers**)
Upto Rs.4/- per SMS – 554567* (IDEA Subscribers)
** Airtel/Aircel/BSNL/TataDocomo/TataIndicom/Idea/MTNL Mumbai /Reliance/Uninor/Vodafone,
Virgin Mobile
SMS’s sent in the wrong format or with the incorrect answer are also chargeable.
*Available only on select Operators/Circles. Terms & Conditions on www.kbcsony.com
* Roaming charges will be levied by your operator as applicable
IVR : All calls made to the registration numbers will be charged as below.
Upto Rs.4/- per minute – 55456 (IDEA Subscribers)
*Available only for IDEA mobile subscribers. T&Cs on www.kbcsony.com
Calls charged at 20 second pulse rate.Re.1*/pulse – 5052525* (BSNL Landline Subscribers)
*Available only for BSNL landline subscribers in select circles. T&Cs on www.kbcsony.com
Calls charged at 20 second pulse rate. Re.1*/pulse – 12555* (BSNL Landline in Rajasthan &
Punjab)
*Available only for BSNL landline subscribers in Rajasthan & Punjab. T&Cs on
www.kbcsony.com
Roaming charges will be levied by your operator as applicable.
Rates subject to change due to recent TRAI regulations.Please check the rates with your telecom
service provider.
Q. Can I send more than one SMS / make more than one call?
A. Yes, there is no restriction on the number of SMSs sent or calls made to register for the auditions.
However, there is no weightage given to number of calls made / SMSs sent at the time of shortlisting
for auditions. The final selection is made on a random basis from amongst all valid and correct
registrations received and if a person has been selected once, he is not eligible to be selected again
for this round of auditions.Q. When will I know the result of the registration?
A. If the answer provided by you was both valid and correct and you were selected in the random
shortlist you will receive a call from us in around five (5) working days from the date of close of
registration lines for that question..
Q. How will I know the result of the registration?
A. If the answer provided by you was both valid and correct and you were selected in the random
shortlist, we will get in touch with you on your registered number please answer the phone yourself.Registration – Jodi Special
Q. Who can register?
A. Anyone who is an Indian citizen, residing in India, of 18 years as on 25 May, 2012 and is
related as per the Jodi Relationships (defined below) can register for Kaun Banega Crorepati
Jodi Special. All Jodi relationships should be within the family. One person from a Jodi Pair is
required to register on behalf of the Jodi Pair, however, both persons are required to be 18
years or above.
Jodi Relationships are defined as below:
1. Siblings
2. Parent-Child
3. Grandparent-Grandchild
4. Cousins
5. Husband-Wife
6. In-laws (mother-in-law, father-in-law, sister-in-law, brother-in-law)
Uncle/Aunt-Nephew/NieceAny Contestant or his/her Jodi who has made it once to the Fastest
Finger First round of the current season of the Competition or the last 2 seasons of the
Competition that were broadcast on the channel Sony Entertainment Television, will not be
eligible to participate in the current season of the Competition.
Q. When will the lines be open for Jodi registration?
A. Registration lines (both IVRS – phone and SMS - messaging) are open from 20:30:00 hrs on
September 29, 2012, when the Jodi question goes on air, till 20:29:59 hrs on September 30,
2012 for all viewers. The schedule of on-air registration questions during this period will be as
below:
Second
round
Question
Lines open Lines close
Date Time Date Time
Generaljodi 22 29-Sep-12 20:30:00 30-Sep-12 20:29:59
In addition, for Idea subscribers, the registrations lines (both IVRS – phone and SMS -
messaging) are open exclusively from 20:30:00 Hrs on October 7, 2012 till 20:29:59 Hrs on
October 8, 2012. The schedule of on-air registration questions during this period will be as
below:
Second
round
Question
Lines open Lines close
Date Time Date Time
Idea-Jodi 25 07-Oct-12 20:30:00 08-Oct-12 20:29:59Q. What are the different modes of registration?
A. You can register by answering the on-air question through an SMS or by calling on the IVR
number. The operator wise registration details of the numbers to be dialled for IVR and short
code for sending SMS with the answer options are listed below:
SMS IVR
Operator Number Number Answer option
Idea 554567 55456 01, 02, 03, 04
BSNL
Landline
NA 5052525 01, 02, 03, 04
Others 5252525 NA NA
*BSNL Rajasthan and Punjab landline subscribers can call 12555 01/02/03/04
Q. On what number and in which format do I have to send the SMS?
A. Subscribers of all operators can send in their SMSs to 5252525. If you are an Idea subscriber,
you can also send in your SMS to 554567.
All registration through SMSs need to be in the following format:
“KBC <space>< A/B/C/D> <space><Age in completed years> <space><Gender>”. e.g.:
If the correct answer to the question aired is “A” according to you, you are 21 years and 10
months old and are a male; you are required to send “KBC A 21 M”. One person from a Jodi
Pair is required to register with the above mentioned information on behalf of the Jodi Pair.
During the telecom partner week, the subscribers of the telecom partner are required to send
SMSs in the following format:
“KBC <space>< Answer Option (A/B/C/D)>”e.g.: If the correct answer to the question aired
is “A” according to you, you are required to send “KBC A”.
Q. What number can I call to register my answer?
A. Idea subscribers can call on 55456 01- 04 (for the respective answer option). For e.g.
If your answer is Option A, call on 5545601
If your answer is Option B, call on 5545602
If your answer is Option C, call on 5545603
If your answer is Option D, call on 5545604
BSNL landline subscribers can call on 5052525 01 – 04 (for the respective answer option).
For e.g. :
If your answer is Option A, call on 505252501
If your answer is Option B, call on 505252502
If your answer is Option C, call on 505252503
If your answer is Option D, call on 505252504BSNL landline subscribers in Rajasthan & Punjab can call on 12555 01 – 04 (for the
respective answer option).
For e.g. :
If your answer is Option A, call on 1255501
If your answer is Option B, call on 1255502
If your answer is Option C, call on 1255503
If your answer is Option D, call on 1255504
Subscribers of all other operators will require to send in their registrations via SMS only.
Q. What will it cost me to call or send an SMS?
A. SMS : Every SMS sent to the registration numbers will be charged as below.
Upto Rs.4/- per SMS – 5252525*(All Subscribers)
Upto Rs.4/- per SMS – 554567* (IDEA Subscribers)
SMS’s sent in the wrong format or with the incorrect answer are also chargeable.
Airtel/Aircel/BSNL/TataDocomo/TataIndicom/Idea/MTNL
Mumbai/Reliance/Uninor/Vodafone, Virgin Mobile
*Available only on select Operators/Circles. Terms & Conditions on www.kbcsony.com
IVR : All calls made to the registration numbers will be charged as below.
Upto Rs.4/- per minute – 55456* (IDEA Subscribers)
*Available only for IDEA mobile subscribers. T&Cs on www.kbcsony.com
Calls charged at 20 second pulse rate. Re.1*/pulse – 5052525* (BSNL Landline
Subscribers)
*Available only for BSNL landline subscribers in select circles. T&Cs on
www.kbcsony.com
Calls charged at 20 second pulse rate. Re.1*/pulse – 12555* (BSNL Landline in
Rajasthan & Punjab)
*Available only for BSNL landline subscribers in Rajasthan & Punjab. T&Cs on
www.kbcsony.com
Roaming charges will be levied by your operator as applicable
Rates subject to change due to recent TRAI regulations. Please check the rates with your
telecom service provider.
Q. Can I send more than one SMS / make more than one call?
A. Yes, there is no restriction on the number of SMSs sent or calls made to register for the
auditions. However, there is no weightage given to number of calls made / SMSs sent at the time of shortlisting for auditions. The final selection is made on a random basis from amongst
all valid and correct registrations received and if a person has been selected once, he is not
eligible to be selected again in this round of auditions. .
Q. When will I know the result of the registration?
A. If the answer provided by you was both valid and correct and you were selected in the random
shortlist, you will receive a call from us in around five (5) working days from the date of close
of registration lines for that question.
Q. How will I know the result of the registration?
A. If the answer provided by you was both valid and correct and you were selected in the random
shortlist, we will get in touch with you on your registered number please answer the phone
yourself.
Registration – School Episode
Q. Who can register?
A. Anyone who is an Indian citizen, residing in India, and a Principal or student of a registered
school in India, can register on behalf of a student of his/her school who is between 14 to 16
years of age, as on May 25, 2012, can register for Kaun Banega Crorepati School Special. The
student will then be required to answer three skill-based questions to complete the
registration.
Q. When will the registration be open for the Schools episode?
A. Registration will be open from 20:30:00 hrs on September 16, 2012, till 20:29:59 hrs on
September 23, 2012 for all schools.
Second
round
Question
Lines open Lines close
Date Time Date Time
School 17 16-Sep-12 20:30:00 23-Sep-12 20:29:59
Q. What are the different modes of registration?
A. You can register on the website www.kbcsony.com for the Special Schools Episode.
Registrations are not permitted through IVR/SMS for this episode.
Q. What will it cost me to register on the website?
A. There are no charges for registering on the website.Q. What information will I need to provide for the registration?
For registering on the website , the Principal of the school will be required to provide the
following information:
1. School Name, Address, pin code and PAN
2. Name of the Principal, contact number and email ID
3. Name of the Teacher accompanying the student
4. Student Name, DOB, Class
5. Student’s parents’ names
Post providing the above information, the student will be required to answer three skill-based
questions to complete the registration.
Q. Can I register more than once?
A. No. Each school can register only once. Only one student may be nominated per school.
Q. When will I know the result of the registration?
A. If the answer provided by you was both valid and correct and you were selected in the random
shortlist, you will receive a call from us in around seven (7) working days from the date of
close of registration.
Q. How will I know the result of the registration?
A. If the answer provided by you was both valid and correct and you were selected in the random
shortlist, we will get in touch with you on your registered number.
Audition
Q. Where and when will the auditions be conducted?
A. The auditions will be held at the following 4 cities as per the defined schedule:
Sl.No Audition City Audition Date
1 Mumbai 30-Oct-12
2 Bhopal 2-Nov-12
3 Delhi 2-Nov-12
4 Lucknow 5-Nov-12
5 Kolkata 5-Nov-12
6 Chandigarh 8-Nov-127 Ahmedabad 8-Nov-12
K.B.C. Audition - 6 , Round 2
Sl.No City Date
Name of
Auditorium Address
1 Mumbai
30-Oct-
12
H.K.
College
HK Bldg., Adj MHADA Complex,
Oshiwara, Jogeshwari (W), Mumbai-102
2 Bhopal
2-Nov-
12
Greenwood
Country
Club
GreenWood Country Club, Club House,Van
Vihar Road, Prempura, Bhopal-462003
3 Delhi
2-Nov-
12
ICC
India Corporate Centre (ICC), J2B1 Extn,
Mohan Co-Operative, Mathura Road, New
Delhi -110 044.,Ph: 011-26972024; 011-
40538151
4 Lucknow
5-Nov-
12
Hotel
Diamond
Place
Hotel Diamond Palace, 19, Ismailganj, Near
Govt. Polytechnic Faizabad Road, Lucknow
- 226010
5 Kolkata
5-Nov-
12
CII
Confederation of Indian Industry, CII
SNCEL, Salt Lake, Kolkata - 700064, Tel:
+91-33-6614 0133(D)
6 Chandigarh
8-Nov-
12
Regenta
Central
Ashok
Chandigarh
REGENTA CENTRAL ASHOK
CHANDIGARH, NH - 21, Near Chandigarh
Airport, Zirakpur, Punjab, PIN- 140 601, Ph
:+91 1762 665000
7 Ahmedabad
8-Nov-
12
Avalon
Hotel
Avalon Hotel & Banquet, Opposite Mango
Garden Banglows , B/H Patel Avenue, Opp
SG Highway, Bodakdev, Ahmedabad –
380054
Please note that the dates are tentative and might change subsequently.Q. Can I choose my preferred city for audition?
A. No. You will not be able to choose location for auditions, a city chosen by Multi Screen Media
Pvt. Ltd. will be offered to all shortlisted Registrants. If the short-listed Registrant chooses to
decline the same, he renounces further participation in KBC.
Q. What if I am unable to make it for the auditions?
A. Inability to attend the auditions on the specified date, time and location will close and/or
terminate further participation in KBC.
Q. What will I be required to do at the auditions?
A. Each auditionee will be made to go through two pre- defined audition rounds.
The first round will involve answering skill-based questions, the second round will be a video
round where the auditionee will have to give a personal interview.
Q. Will I have to bear all expenses in order to be present for the audition round?
A. Yes, all expenses directly or indirectly connected with being present for the auditions (travel,
conveyance, lodging, stay, meals, etc.) will be borne by the auditionee.
Q. How will I know the result of the audition round?
A. The Auditionees who are shortlisted on the basis of the audition round will get a call from Multi
Screen Media through its producers informing them of selection in the Fastest Finger First
round of the show.
Q What documents will I require to carry for the auditions?
Proof of identity, age and address will be accepted in English or Hindi only.
Valid name proofs that will be admissible are:
1. Birth certificate, 2. Passport, 3. Voter ID, 4. Driver’s License, 5. PAN card, 6. UID /
Aadhar card.
Valid address proofs that will be admissible are:
1. Phone / Electricity Bill , 2. Passport, 3. Voter ID, 4. Driver’s License, 5. Ration card,
6. UID / Aadhar card.
Valid address proofs that will be admissible are:
1. Driver’s Licensel , 2. Passport, 3. Voter ID, 4. Birth certificate, 5. PAN card,
If the Audtionee does not have a copy of a valid proof. he will be permitted to participate on a
exception basis, only if he is willing to provide the proof at the final shoot, if shortlisted..
For Jodi Special, An affidavit stating names of the participants and their Jodi Relationship, for
the Jodi Special Auditionees.
For Jodi Special, valid Identity proof is required for both persons of the Jodi Pair. Valid address
proof is required only for the registrant in the Jodi Pair.
For School Special, the nominated student and teacher carry with them the following documents Entity Documents Required
School • Board Affiliation Certificate
• PAN Card
• School address proof (electricity bill / phone bill )
Principal • Letter of Appointment
• School ID Card/Passport/Ration Card/Driver’s License
Teacher • Letter on School Letterhead with the teacher’s identity attested
by Principal
• School ID Card and Passport/Ration Card/Driver’s License
Student • Bonafide certificate with the student’s identity attested by the
Principal
• School ID Card/Passport/Ration Card
• Consent letter from parent / guardian and School
General
Q. What are the selection criteria?
A. The main criteria for selection is your general knowledge and grasp over current affairs,
which is evaluated across various stages. In addition, there is also an interview round and
audition at the final stage where your personality and screen presence are also evaluated.
Q. I have a query. Whom can I ask?
A. Please send your queries to kbcresponse@setindia.com and we will try to revert as soon as
we can. Alternately, you can refer to our terms and conditions on www.kbcsony.com.
Q. Where can I read detailed terms and conditions governing Kaun Banega Crorepati?
A. The detailed terms and conditions governing the game show will be available on
www.kbcsony.com
Q. How many times can I participate?
A. Each registrant can be shortlisted only once for an audition in one schedule of registrations.
However, there is no restriction on the number of times a viewer can participate through
registration SMS/ call. For the School Episode however, a school can register only once on
the website.
Q. What is the Prize Money?
A. The person who gets on the hot seat and gets all the questions right will win Rs 5 crore. The
prize amount will be subject to tax as per government rules. For the School Episode, the Prize Money will be issued to the school. For the Schools Episode, the prize money shall be issued
to the school as per the name mentioned in the affiliation certificate and PAN card. Student
and the teacher will be representing the school. The Company has no role or liability with
respect to distribution of the prize money between the school, the student and the teacher. For
the Jodi Special, the prize money shall be issued to the Registrant. The Company has no role
or liability with respect to distribution of the prize money between the members of a Jodi..
Q. Some people claim that they can help get entry to KBC. Is it possible?
A. The only way to enter KBC is through participation in the registration process as described in
Rules and Regulations. There is no other way of entering KBC. This entire process is
transparent and monitored by an independent Firm. Any person claiming that he/she can help
get you on the show for a consideration is defrauding you. Please contact your local police
and report this person.
Q. I got a call after answering the question asked on TV, but no one has called me after that.
Have I been selected ?
A. The call you received was because you were among the short-listed registrants selected by the
computer. However, this does not mean that you have been selected. We will be contacting
the successful candidates who have made it to the next round.
Posted By : http://educationexampoint.blogspot.in
Monday, January 28, 2013
Oracle Interview Best and Easy Question
Posted by
Education & Exam Point
Labels:
Interview,
Interview Tips,
Oracle,
Question Paper
at
11:43 PM
Oracle Interview Best and Easy Question
1. What is the size of Varchar in Oracle 8.0 ?
a. 2000
b. 4000
c. 254
d. none of the above
2. What is the size of Varchar in Oracle 7.0 ?
a. 2000
b. 4000
c. 254
d. none of the above
3. The default value the lpad function takes is
a. a space (¡§ ¡§)
b. an asterisk
c. The default value is not optional
d. None of the above
4. The no. of columns that may be used as composite primary key in oracle
a. 8
b. 16
c. 32
d. none of the above
5. which of the following is true about add_months
a. we can pass a numerical value in first parameter
b. we can pass a negative value in second parameter
c. Both a & b
d. None of the above
6. The latest date that can be stored in oracle 8
a. 31st Dec 4012 A.D
b. 31st Dec 4011 A.D
c. Dec 31st ,9999
d. None of the above.
7. What happens when the first date is greater than the second date that
is passed to the months_between function in oracle 8.
a. It gives an error
b. It gives a negative value
c. None of the above
8. Regarding the Summary query which of the following is true
a. The order of the base column list in the select statement should be
same in the Group by clause.
b. The order of the base column list in the select statement need not be
same in the Group by clause.
c. None of the above
9. Regarding the Summary query which of the following is true
a. All the base table columns selected in the select list should be
specified in the Group by clause.
b. All the base table columns selected in the select list need not be
specified in the Group by clause.
c. None of the above.
10. How do u mask the user from entering irrelevant data ?
a. Synonym
b. View
c. Index
d. sequence
11. What does the length function returns when applied to column of char
datatype ?
12. Which of the following is true about the packages ?
a. Package specification should contain return type of a function
b. Package specification need not contain return type of a function
c. Both a & b
d. None of the above
13. If the first parameter is negative, then second parameter
a. need not be negative
b. there is no such restrictions
c. should be positive
d. None of the above.
14. Which of the following is true about procedures
a. The size of the parameter should be mentioned in a procedure.
b. The size of the parameter should not be mentioned in a procedure
c. Both a & b
d. None of the above.
15. ¡§REFERENCING¡¨ in oracle 8
a. used to mention referential integrity
b. used for creating views
c. there is no such word in oracle 8
d. none of the above
16. If you want to restrict the user, to enter the same values that has
been stored in other table then what constraint do u use?
a. Entity integrity
b. Referential Integrity
c. Both a & b
d. None of the above
17. Which of the following is true about NULL?
a. when an arithmetic operation is performed on NULL, u will get the
result as NULL
b. NULL is same as 0.
c. NULL is same as blank date.
d. None of the above
18. For a DDL statement, which of the following is true
a. A DDL statement is preceded and followed by commit.
b. All the DML statements gets committed even when u get an error after
writing DDL statement.
c. Both a & b
d. None of the above.
19. Which of the following is true for update clause?
a. We can update two base tables simultaneously
b. U can use a subquery in SET clause of the UPDATE statement.
c. Both a & b
d. None of the above
20. Which of the following is true for delete?
a. Delete statement can be given without writing where clause.
b. We can delete two tables simultaneously
c. Both a & b
d. None of the above
21. How do u rename a table ?
a. Using alter command
b. Using RENAME
c. Dropping the table and creating once again
d. None of the above.
22. In oracle 7 which of the following is true about manipulating the view
a. View based on two base tables can be manipulated
b. View having a column which contain operation can be manipulated
c. Both a & b
d. None of the above
23. In oracle 8 which of the following is true about manipulating the view
a. View based on two base tables can be manipulated
b. View having a column which contain operation can be manipulated
c. Both a & b
d. None of the above
24. Which of the following is true about packages
a. We can write a procedure in package body which has not been specified
in package specification.
b. We cannot write a procedure in package body which has not been
specified in package specification.
c. Both a & b
d. None of the above.
25. Which of the following is true about outer joins
a. The outer join symbol should be present on any one side of the join.
b. The outer join symbol may be present on both the sides of the join
c. The outer join return the rows from the two tables that donot have
matching records in other table.
d. None of the above
26. Which of the following is true about procedure and a function
a. Procedure should return a value and a function may not return a value
b. A function has to return a value and a procedure don¡¦t have to
c. Both a & b
d. None of the above.
27. What does OFA stands for ?
a. Oracle Flexible Architecture
b. Oracle Financials Applications
c. Optimal Flexible Architecture
d. None of the above
Important Questions in Oracle, Developer
Posted by
Education & Exam Point
Labels:
Computer,
Education,
Interview,
Interview Questions,
Interview Tips,
Online Exam,
Oracle,
Question Paper,
SQL
at
11:34 PM
Important Questions in Oracle, Developer /2000(Form 4.5 and Reports 2.5)
Oracle :
1) What are the Back ground processes in Oracle and what are they.
This is one of the most frequently asked question.There are basically 9
Processes but in a general system we need to mention the first five
background processes.They do the house keeping activities for the Oracle
and are common in any system.
The various background processes in oracle are
a) Data Base Writer(DBWR) : Data Base Writer Writes Modified blocks from
Database buffer cache to Data Files.This is required since the data is not
written whenever a transaction is commited.
b) LogWriter(LGWR) : LogWriter writes the redo log entries to disk. Redo
Log data is generated in redo log buffer of SGA. As transaction commits
and log buffer fills, LGWR writes log entries into a online redo log file.
c) System Monitor(SMON) : The System Monitor performs instance recovery at
instance startup.This is useful for recovery from system failure
d) Process Monitor(PMON) : The Process Monitor peforms process recovery
when user Process fails. Pmon Clears and Frees resources that process was
using.
e) CheckPoint(CKPT) : At Specified times, all modified database buffers in
SGA are written to data files by DBWR at Checkpoints and Updating all data
files and control files of database to indicate the most recent checkpoint
f) Archieves(ARCH) : The Archiver copies online redo log files to archival
storal when they are busy.
g) Recoveror(RECO) : The Recoveror is used to resolve the distributed
transaction in network
h) Dispatcher (Dnnn) : The Dispatcher is useful in Multi Threaded
Architecture
i) Lckn : We can have upto 10 lock processes for inter instance locking in
parallel sql.
2) How many types of Sql Statements are there in Oracle
There are basically 6 types of sql statments.They are
a) Data Defination Language(DDL) : The DDL statments define and maintain
objects and drop objects.
b) Data Manipulation Language(DML) : The DML statments manipulate database
data.
c) Transaction Control Statements : Manage change by DML
d) Session Control : Used to control the properties of current session
enabling and disabling roles and changing .e.g Alter Statements,Set Role
e) System Control Statements : Change Properties of Oracle Instance .e.g::
Alter System
f) Embedded Sql : Incorporate DDL,DML and T.C.S in Programming
Language.e.g:: Using the Sql Statements in languages such as 'C',
Open,Fetch, execute and close
3) What is a Transaction in Oracle
A transaction is a Logical unit of work that compromises one or more SQL
Statements executed by a single User. According to ANSI, a transaction
begins with first executable statment and ends when it is explicitly
commited or rolled back.
4) Key Words Used in Oracle
The Key words that are used in Oracle are
a) Commiting : A transaction is said to be commited when the transaction
makes
permanent changes resulting from the SQL statements.
b) Rollback : A transaction that retracts any of the changes resulting
from SQL
statements in Transaction.
c) SavePoint : For long transactions that contain many SQL statements,
intermediate
markers or savepoints are declared. Savepoints can be used to divide a
transactino into smaller points.
d) Rolling Forward : Process of applying redo log during recovery is
called rolling
forward.
e) Cursor : A cursor is a handle ( name or a pointer) for the memory
associated with a
specific stament. A cursor is basically an area allocated by Oracle for
executing the Sql Statement. Oracle uses an implicit cursor statement for
Single row query and Uses Explcit cursor for a multi row query.
f) System Global Area(SGA) : The SGA is a shared memory region allocated
by the
Oracle that contains Data and control information for one Oracle
Instance.It consists of Database Buffer Cache and Redo log Buffer.
g) Program Global Area (PGA) : The PGA is a memory buffer that contains
data and
control information for server process.
h) Database Buffer Cache : Databese Buffer of SGA stores the most recently
used
blocks of datatbase data.The set of database buffers in an instance is
called Database Buffer Cache.
i) Redo log Buffer : Redo log Buffer of SGA stores all the redo log
entries.
j) Redo Log Files : Redo log files are set of files that protect altered
database data in
memory that has not been written to Data Files. They are basically used
for backup when a database crashes.
k) Process : A Process is a 'thread of control' or mechansim in Operating
System that
executes series of steps.
5) What are Procedure,functions and Packages
Procedures and functions consist of set of PL/SQL statements that are
grouped together as a unit to solve a specific problem or perform set of
related tasks.
Procedures do not Return values while Functions return one One Value
Packages Provide a method of encapsulating and storing related procedures,
functions, variables and other Package Contents
6) What are Database Triggers and Stored Procedures
Database Triggers :: Database Triggers are Procedures that are
automatically executed as a result of insert in, update to, or delete from
table. Database triggers have the values old and new to denote the old
value in the table before it is deleted and the new indicated the new
value that will be used. DT are useful for implementing complex business
rules which cannot be enforced using the integrity rules.We can have the
trigger as Before trigger or After Trigger and at Statement or Row level.
eg. operations insert,update ,delete 3 before ,after 3*2 A total of 6
combinatons
At statment level(once for the trigger) or row level( for every execution
) 6 * 2 A total of 12. Thus a total of 12 combinations are there and the
restriction of usage of 12 triggers has been lifted from Oracle 7.3
Onwards.
Stored Procedures : Stored Procedures are Procedures that are stored in
Compiled form in the database.The advantage of using the stored procedures
is that many users can use the same procedure in compiled and ready to use
format.
7) How many Integrity Rules are there and what are they
There are Three Integrity Rules. They are as follows ::
a) Entity Integrity Rule : The Entity Integrity Rule enforces that the
Primary key cannot be Null
b) Foreign Key Integrity Rule : The FKIR denotes that the relationship
between the foreign key and the primary key has to be enforced.When there
is data in Child Tables the Master tables cannot be deleted.
c) Business Integrity Rules : The Third Intigrity rule is about the
complex business processes which cannot be implemented by the above 2
rules.
8) What are the Various Master and Detail Relation ships.
The various Master and Detail Relationship are
a) NonIsolated : The Master cannot be deleted when a child is exisiting
b) Isolated : The Master can be deleted when the child is exisiting
c) Cascading : The child gets deleted when the Master is deleted.
9) What are the Various Block Coordination Properties
The various Block Coordination Properties are
a) Immediate Default Setting. The Detail records are shown when the Master
Record are shown.
b) Deffered with Auto Query Oracle Forms defer fetching the detail records
until the operator navigates to the detail block.
c) Deffered with No Auto Query The operator must navigate to the detail
block and explicitly execute a query
10) What are the Different Optimisation Techniques
The Various Optimisation techniques are
a) Execute Plan : we can see the plan of the query and change it
accordingly based on the indexes
b)Optimizer_hint:
set_item_property('DeptBlock',OPTIMIZER_HINT,'FIRST_ROWS');
Select /*+ First_Rows */ Deptno,Dname,Loc,Rowid from dept where (Deptno >
25)
c) Optimize_Sql : By setting the Optimize_Sql = No, Oracle Forms assigns a
single cursor for all SQL statements.This slow downs the processing
because for evertime the SQL must be parsed whenver they are executed.
f45run module = my_firstform userid = scott/tiger optimize_sql = No
d) Optimize_Tp : By setting the Optimize_Tp= No, Oracle Forms assigns
seperate cursor only for each query SELECT statement. All other SQL
statements reuse the cursor.
f45run module = my_firstform userid = scott/tiger optimize_Tp = No
11) How do u implement the If statement in the Select Statement
We can implement the if statement in the select statement by using the
Decode statement.
e.g select DECODE (EMP_CAT,'1','First','2','Second'Null);
Here the Null is the else statement where null is done .
12) How many types of Exceptions are there
There are 2 types of exceptions. They are
a) System Exceptions
e.g. When no_data_found, When too_many_rows
b) User Defined Exceptions
e.g. My_exception exception
When My_exception then
13) What are the inline and the precompiler directives
The inline and precompiler directives detect the values directly
14) How do you use the same lov for 2 columns
We can use the same lov for 2 columns by passing the return values in
global values and using the global values in the code
15) How many minimum groups are required for a matrix report
The minimum number of groups in matrix report are 4
16) What is the difference between static and dynamic lov
The static lov contains the predetermined values while the dynamic lov
contains values that come at run time
17) What are snap shots and views
Snapshots are mirror or replicas of tables. Views are built using the
columns from one or more tables. The Single Table View can be updated but
the view with multi table cannot be updated
18) What are the OOPS concepts in Oracle.
Oracle does implement the OOPS concepts. The best example is the Property
Classes. We can categorise the properties by setting the visual attributes
and then attach the property classes for the objects. OOPS supports the
concepts of objects and classes and we can consider the property classes as classes and the items as objects
19) What is the difference between candidate key, unique key and primary
key
Candidate keys are the columns in the table that could be the primary keys
and the primary key is the key that has been selected to identify the
rows. Unique key is also useful for identifying the distinct rows in the
table.
20) What is concurrency
Cuncurrency is allowing simultaneous access of same data by different
users. Locks useful for accesing the database are
a) Exclusive
The exclusive lock is useful for locking the row when an insert,update or
delete is being done.This lock should not be applied when we do only
select from the row.
b) Share lock
We can do the table as Share_Lock as many share_locks can be put on the
same resource.
21) Previleges and Grants
Previleges are the right to execute a particulare type of SQL statements.
eg. Right to Connect, Right to create, Right to resource
Grants are given to the objects so that the object might be accessed accordingly. The grant has to be given by the owner of the object.
22) Table Space,Data Files,Parameter File, Control Files
Table Space : The table space is useful for storing the data in the
database.When a database is created two table spaces are created.
a) System Table space : This data file stores all the tables related to
the system and dba tables
b) User Table space : This data file stores all the user related tables
We should have seperate table spaces for storing the tables and indexes so
that the access is fast.
Data Files : Every Oracle Data Base has one or more physical data
files.They store the data for the database.Every datafile is associated
with only one database.Once the Data file is created the size cannot
change.To increase the size of the database to store more data we have to
add data file.
Parameter Files : Parameter file is needed to start an instance.A
parameter file contains the list of instance configuration parameters
e.g.::
db_block_buffers = 500
db_name = ORA7
db_domain = u.s.acme lang
Control Files : Control files record the physical structure of the data
files and redo log files. They contain the Db name, name and location of
dbs, data files ,redo log files and time stamp.
23) Physical Storage of the Data
The finest level of granularity of the data base are the data blocks.
Data Block : One Data Block correspond to specific number of physical
database space
Extent : Extent is the number of specific number of contigious data
blocks.
Segments : Set of Extents allocated for Extents. There are three types of
Segments
a) Data Segment : Non Clustered Table has data segment data of every table
is stored in
cluster data segment
b) Index Segment : Each Index has index segment that stores data
c) Roll Back Segment : Temporarily store 'undo' information
24) What are the Pct Free and Pct Used
Pct Free is used to denote the percentage of the free space that is to be
left when creating a table. Similarly Pct Used is used to denote the
percentage of the used space that is to be used when creating a table
eg. Pctfree 20, Pctused 40
25) What is Row Chaining
The data of a row in a table may not be able to fit the same data
block.Data for row is stored in a chain of data blocks .
26) What is a 2 Phase Commit
Two Phase commit is used in distributed data base systems. This is useful
to maintain the integrity of the database so that all the users see the
same values. It contains DML statements or Remote Procedural calls that
reference a remote object. There are basically 2 phases in a 2 phase
commit.
a) Prepare Phase : Global coordinator asks participants to prepare
b) Commit Phase : Commit all participants to coordinator to Prepared, Read only or abort Reply
27) What is the difference between deleting and truncating of tables
Deleting a table will not remove the rows from the table but entry is
there in the database dictionary and it can be retrieved But truncating a
table deletes it completely and it cannot be retrieved.
28) What are mutating tables
When a table is in state of transition it is said to be mutating. eg :: If
a row has been deleted then the table is said to be mutating and no
operations can be done on the table except select.
29) What are Codd Rules
Codd Rules describe the ideal nature of a RDBMS. No RDBMS satisfies all
the 12 codd rules and Oracle Satisfies 11 of the 12 rules and is the only
Rdbms to satisfy the maximum number of rules.
30) What is Normalisation
Normalisation is the process of organising the tables to remove the
redundancy.There are mainly 5 Normalisation rules.
a) 1 Normal Form : A table is said to be in 1st Normal Form when the
attributes are
atomic
b) 2 Normal Form : A table is said to be in 2nd Normal Form when all the
candidate
keys are dependant on the primary key
c) 3rd Normal Form : A table is said to be third Normal form when it is
not dependant
transitively
31) What is the Difference between a post query and a pre query
A post query will fire for every row that is fetched but the pre query
will fire only once.
32) Deleting the Duplicate rows in the table
We can delete the duplicate rows in the table by using the Rowid
33) Can U disable database trigger? How?
Yes. With respect to table
ALTER TABLE TABLE
[ DISABLE all_trigger ]
34) What is pseudo columns ? Name them?
A pseudocolumn behaves like a table column, but is not actually stored in
the table. You can select from pseudocolumns, but you cannot insert,
update, or delete their values. This section describes these
pseudocolumns:
* CURRVAL
* NEXTVAL
* LEVEL
* ROWID
* ROWNUM
35) How many columns can table have?
The number of columns in a table can range from 1 to 254.
36) Is space acquired in blocks or extents ?
In extents .
37) what is clustered index?
In an indexed cluster, rows are stored together based on their cluster key
values . Can not applied for HASH.
38) what are the datatypes supported By oracle (INTERNAL)?
Varchar2, Number,Char , MLSLABEL.
39 ) What are attributes of cursor?
%FOUND , %NOTFOUND , %ISOPEN,%ROWCOUNT
40) Can you use select in FROM clause of SQL select ?
Yes.
100 SQL Best Interviwe Question and Answer
Posted by
Education & Exam Point
Labels:
Interview,
Interview Questions,
Interview Tips,
Online Exam,
Oracle,
Question Paper,
SQL
at
10:52 PM
1. Examine the structure of the EMPLOYEES table:
EMPLOYEE_ID NUMBER Primary Key
FIRST_NAME VARCHAR2(25)
LAST_NAME VARCHAR2(25)
Which three statements insert a row into the table? (Choose three.)
A. INSERT INTO employees
VALUES (NULL.'John','Smith');
B. INSERT INTO employees (first_name, last_name)
VALUES ('John', 'Smith');
C. INSERT INTO employees
VALUES (1000, 'John', 'Smith');
E. INSERT INTO employees (employee_id)
VALUES (1000);
F. INSERT INTO emloyees (employee_id_first_name,last_name)
VALUES (1000,'John', 'Smith');
Answer: CE F
2. Click the Exhibit button and examine the data in the EMPLOYEES table
LAST_NAME DEPARTMENT_ID SALARY
Getz 10 3000
Davis 20 1500
King 20 2200
Davis 30 5000
...
Which three subqueries work? (Choose three)
A. SELECT *
FROM employees
where salary > (SELECT MIN(salary)
FROM employees.
GROUP BY department_id);
B. SELECT *
FROM employees
WHERE salary = (SELECT AVG (salary)
FROM employees
GROUP BY department_id);
C. SELECT distinct department_id
FROM employees
WHERE salary > ANY (SELECT AVG(salary)
FROM employees
GROUP BY department _id);
D. SELECT department_id
FROM employees
WHERE salary > ANY (SELECT MAX (salary)
FROM employees
GROUP BY department_id);
E. SELECT last_name
FROM employees
WHERE salary > ANY (SELECT MAX (salary)
FROM employees
GROUP BY department_id);
F. SELECT department_id
FROM employees
WHERE salary > ALL (SELECT AVG(salary).
FROM employees
GROUP BY AVG (SALARY);
Answer: CDE
3. Examine the description of the EMPLOYEES table:
EMP_ID NUMBER(4) NOT NULL
LAST_NAME VARCHAR2(30) NOT NULL
FIRST_NAME VARCHAR2(30)
DEPT_ID NUMBER(2)
JOB_CAT VARCHAR2(30)
SALARY NUMBER(8,2)
Which statement shows the maximum salary paid in each job category of each department?
A. SELECT dept_id, job_cat, MAX (salary)
FROM employees
WHERE salary > MAX (salary);
B. SELECT dept_id, job_cat, MAX (salary)
FROM employees
GROUP BY dept_id, job_cat
C. SELECT dept_id, job_cat, MAX(salary)
FROM employees;
D. SELECT dept_id, job_cat, MAX (salary)
FROM employees
GROUP BY dept_id;
E. SELECT dept_id, job_cat, MAX (salary)
FROM employees
GROUP BY dept_id, job_cat, salary;
Answer: B
4. Which SELECT statement will get the result 'elloworld' fromt the string 'HelloWorld'?
A. SELECT SUBSTR ('HelloWorld',1) FROM dual;
B. SELECT INITCAP(TRIM('HellowWorld', 1,1) FROM dual
C. SELECT LOWER (SUBSTR ('HellowWorld', 2,1) FROM dual
D. SELECT LOWER (SUBSTR('HellowWorld', 2,1) FROM dual
E. SELECT LOWER (TRIM ('H' FROM 'Hello World')) FROM dual
Answer: E
5. Management has asked you to calculate the value 12* salary* commission_pct for all the employees in the EMP table. The EMP table contains these columns:
LAST NAME VARCHAR2(35) NOT NULL
SALARY NUMBER(9,2) NOT NULL
COMMISSION_PCT NUMBER(4,2)
Which statement ensures that a value is displayed in the calculated column for all employees?
A. SELECT last_name, 12 * salary* commission_pct
FROM emp;
B. SELECT last_name, 12 * salary* (commission_pct,0)
FROM emp;
C. SELECT last_name, 12 * salary* (nvl(commission_pct,0)
FROM emp;
D. SELECT last_name, 12 * salary* (decode(commission_pct,0))
FROM emp;
Answer: C
6. Examine the description of the STUDENTS table:
STD_ID NUMBER(4)
COURSE_ID VARCHAR2(10)
START_DATE DATE
END_DATE DATE
Which two aggregate functions are valid on the START_DATE column? (Choose Two)
A. SUM(start_date)
B. AVG (start_date)
C. COUNT (start_date)
D. AVG(start_date, end_date)
E. MIN (start_date)
F. MAXIMUM (start_date)
Answer: CE
7. From SQL*Plus, you issue this SELECT statement:
SELECT *
FROM orders;
You use this statement to retrieve data from a database table for _______________. (Choose all that apply)
A. updating
B. viewing
C. deleting
D. inserting
E. truncating
Answer: BD
8. Click the Exhibit button examine the data from the EMP table.
EMP_ID DEPT_ID COMMISSION
1 10 500
2 20 1000
3 10
4 10 600
5 30 800
6 30 200
7 10
8 20 300
The COMMISSION column shows the monthly commission earned by the employee.
Which three tasks would require subqueries or joins in order to be performed in a single step? (Choose three)
A. deleting the records of employees who do notearn commission
B. increasing the commission of employee 3 by the average commission earned in department 20
C. finding the number ofemployees who do NOT earn commission and are working fordepartment 20
D. inserting into the table a new employee 10 who works for deartment 20 and earns a commission that is equal to the commission earned by employee 3
E. creating a table called COMMISSION that has the same structure and data as the columns EMP_ID and COMMISSION of the EMP table
F. decreasing the commission by 150 for the employees who are working in department 30 and earning a commission of more than 800.
Answer: BDE
9. Which four statements correctly describe functions that are available in SQL? (Choose four)
A. INSTR returns the numeric position of a named character
B. NVL 2 returns the first non-null expression in theexpression list.
C. TRUNCATE rounds the column, expression, or value to n decimal places
D. DECODE translates an expression after comparing it to each search value
E. TRIM trims the leading or trailing characters (or both) from a character string.
F. NVL compares two expressions and returns null if they are equal, or the first expression if they are not equal.
G. NULLIF compares two expressions and returns null if they are equal, or the first expression if they are not equal.
Answer : ADEG
10. The EMPLOYEES table has these columns:
LAST_NAME VARCHAR2(35)
SALARY NUMBER(8,2)
COMMISSION_PCT NUMBER (5,2)
You want todisplay the name and annual salary multiplied by the commission_pct for all employees. For records that have a NULL commission_pct, a zero must be displayed against the calculated column.
Which SQL statement displays the desired results?
A. SELECT last_name, (salary*12)* commission_Pct
FROM EMPLOYEES;
B. SELECT last_name, (salary*12)* IFNULL(commission_pct,0)
FROM EMPLOYEES;
C. SELECT last_name, (salary*12)* NVL2(commission_pct,0)
FROM EMPLOYEES;
D. SELECT last_name, (salary*12)* NVL(commission_pct,0)
FROM EMPLOYEES;
Answer: D
11. Which two statements are true regarding the ORDER BY clause? (Choose two)
A. The sort is in ascending order by default
B. The sort is in descending order by default
C. The ORDER BY clause must precede the WHERE clause.
D. The ORDER BY clause is executed on the client side
E. The ORDER BY clause comes last in the SELECT statement
F. The ORDER BY clause is executed first in the query execution.
Answer: AE
12. Click the Exhibit button and examine the data from the ORDERS and CUSTOMERS tables.
ORDERS
ORD_ID ORD_DATE CUST_ID ORD_TOTAL
100 12.JAN.2000 15 10000
101 09.MAR.2000 40 8000
102 09.MAR.2000 35 12500
103 15.MAR.2000 15 12000
104 25.JUN.2000 15 6000
105 18.JUL.2000 20 5000
106 18.JUL.2000 35 7000
107 21.JUL.2000 20 6500
108 04.AUG.2000 10 8000
CUSTOMERS
CUST_ID CUST_NAME CITY
10 Smith Los Angeles
15 Bob San Francisco
20 Martin Chicago
25 Mary New York
30 Rina Chicago
35 Smith New York
40 Linda New York
Which SQL statement retrieves the order ID, customer ID, and order total for the orders that are placed on the same day that Martin paced his orders?
A. SELECT ord_id, cust_id, ord_total
FROM orders, customers
WHERE cust_name='Martin'
AND ord_date IN ('18-JUL-2000'; 21-JUL-2000');
B. SELECT ord_id, cust_id, ord_total
FROM orders
WHERE ord_date IN (SELECT ord_date
FROM orders
WHERE cust_id=(SELECT cust_id
FROM customers
WHERE cust_name=
'Martin'));
C. SELECT ord_id, cust_id, ord_total
FROM orders
WHERE ord_date IN (SELECT ord_date
FROM orders, customers
WHERE cst_name='Martin');
D. SELECT ord_id, cust_id, ord_total
FROM orders
WHERE cust_id IN (SELECT cust_id
FROM customers
WHERE cust name = 'Martin')
Answer: B
13. Evaluate the SQL statement:
1 SELECT a.emp_name, a.sal, a.dept_id, b.maxsal
2 FROM employees a,
3 (SELECT dept_id, MAX(sal) maxsal
4 FROM employees
5 GROUP BY dept_id)b
6 WHERE a.dept_id = b.dept_id
7 AND a.sal<b.maxsal;
What is the result of the statement?
A. The statement produces an error at line1.
B. The statement produces an error at line3.
C. The statement produces an error at line6.
D. The statement returns the employee name, salary, department ID, and maximum salary earned in the department of the employee for all departments that pay less salary than the maximm salary aid in the company.
E. The statement returns the employee name, salary, department ID, and maximum salary earned in the department of the employee for all employees who earn less than the maximum salary in their department.
Answer: E
14. Which two tasks can you perform using only the TO_CHAR function? (Choose two).
A. convert 10 to 'TEN'
B. convert '10' to 10
C. convert '10' to '10'
D. convert'TEN' to 10
E. Convert a date to a character expression
F. convert a character expression to a date
Answer: BE
15. Click the Exhibit button and examine the data in the EMPLOYEES and DEPARTMENTS tables.
EMPLOYEES
EMP_ID EMP_NAME DEPT_ID MGR_ID JOB_ID SALARY
101 Smith 20 120 SA_REP 4000
102 Martin 10 105 CLERK 2500
103 Chris 20 120 IT ADMIN 4200
104 John 30 108 HR_CLERK 2500
105 Diana 30 108 IT_ADMIN 5000
106 Smith 40 110 AD_ASST 3000
108 Jennifer 30 110 HR_DIR 6500
110 Bob 40 EX_DIR 8000
120 Ravi 20 110 SI_DIR 6500
DEPARTMENTS
DEPARTMENT_ID DEPARTMENT NAME
10 Admin
20 Education
30 IT
40 Human Resources
Also examine the SQL statements that create the EMPLOYEES and DEPARTMENTS tables:
CREATE TABLE departments
(department_id NUMBER PRIMARY KEY,
department_name VARCHAR2(30));
CREATE TABLE employees
(EMPLOEE_ID NUMBER PRIMARY KEY,
EMP_NAME VARCHAR2(20),
DEPT_ID NUMBER REFERENCES
departments (department_id)
MGR_ID NUMBER REFERENCES
employees(employee id),
JOB_ID VARCHAR2(15).
SALARY NUMBER);
On the EMPLOYEES table, EMPLOYEE_ID is the primary key
MGR_ID is the ID of mangers and refers to the EMPLOYEE_ID
DEPT_ID is foreign key to DEPARTMENT_ID column of the DEPARTMENTS table
On the DEPARTMENTS table, DEPARTMENT_ID is the primary key.
Examine this DELETE statement:
DELETE
FROM departments
WHERE department id=40;
What happens when you execute the DELETE statement?
A. Only the row with department ID 40 is deleted in the DEPARTMENTS table.
B. The statement fails because there are child records in the EMPLOYEES table with department ID 40.
C. The row with department ID 40 is deleted in the DEPARTMENTS table. Also the rows with employee IDs 110 and 106 are deleted from the EMPLOYEES table.
D. The row with department ID 40 is deleted in the DEPARTMENTS table. Also the rows with employee IDs 106 and 110 and the employees working under employee 110 are deleted from the EMPLOYEES table.
E. The row with department ID 40 is deleted in the DEPARTMENTS table. Also all the rows in the EMPLOYEES table are deleted.
F. The statement fails because there are no columns specified in the DELETE clause of the DELETE statement.
Answer: B
16. Mary has a view called EMP_DEPT_LOC_VU that was created based on the EMPLOYEES, DEPARTMENTS, and LOCATIONS tables. She granted SELECT privilege to Scott on this view.
Which option enables Scott to eliminate the need to qualify the view with the name MARY.EMP_DEPT_LOC_VU each time the view is referenced?
A. Scott can create a synonym for the EMP_DEPT_LOC_VU by using the command
CREATE PRIVATE SYNONYM EDL_VU
FOR mary.EMP DEPT_LOC_VU;
then he can prefix the columns with this synonym
B. Scott can create a synonym for the EMP_DEPT_LOC_VU by using the command
CREATE SYNONYM EDL_VU
FOR mary.EMP DEPT_LOC_VU;
then he can prefix the columns with this synonym.
C. Scott can create a synoym for the EMP_DEPT_LOC_VU by using the command
CREATE LOCAL SYNONYM EDL_VU
FOR mary.emp dept_LOC_uv;
then he can prefix the columns with the synonym.
D. Scott can create a synomym for the EMP_DEPT_LOC_VU by using the command
CRETE LOCAL SYNONYM EDL_VU
ON mary(EMP_DEPT_LOC_VU);
then he can prefix the columns with this synonym
E. Scott cannot create a synonym because synonyms can be created only for tables.
F. Scott cannot create any synonym for Mary's view. Mary should create a private synonym for the view and grant SELECT privilege on that synonym to Scott.
Answer: B
17. Which SQL statement defines a FOREIGN KEY constraint on the DEPT NO column of the EMP table?
A. CREATE TABLE EMP
(empno NUMBER(4),
ename VARCHAR2(35),
deptno NUMBER(7,2) NOT NULL,
CONSTRAINT emp_deptno_fk FOREIGN KEY deptno
REFERENCES dept deptno);
B. CREATE TABLE EMP
(empno NUMBER(4),
ename VARCHAR2(35),
deptno NUMBER(7,2)
CONSTRAINT emp_deptno_fk REFERENCES dept (deptno));
C. CRETE TABLE EM
(empno NUMBER(4),
ename VARCHAR2(35)
deptno NUMBER (7,2) NOT NULL,
CONSTRAINT em_deptno_fk REFERENCES dept (deptno)
FOREIGN KEY (deptno));
D. CREATE TABLE EMP (empno NUMBER (4),
ename VARCHAR2(35),
deptno NUMBER(7,2) FOREIGN KEY
CONSTRAINT emp deptno fk REFERENCES dept (deptno));
Answer: B
18. Evaluate the set of SQL statements:’
CREATE TABLE dept
(deptbi NUMBER (2)
dname VARCHAR2(14),
Ioc VARCHAR2(13));
ROLLBACK;
DESCRIBE DEPT
What is true about the set?
A. The DESCRIBE DEPT statement displays the structure of the DEPT table
B. The ROLLBACK statement frees the storage space occupied by the DEPT table.
C. The DESCRIBE DEPT statement returns an error ORA-04043: object DEPT does not exist
D. The DESCRIBE DEPT statement displays the structure of the DEPT table only if there is a COMMIT statement introduced before the ROLLBACK statement.
Answer: A
19. Which are DML statements? (Choose all that apply)
A. COMMIT...
B. MERGE...
C. UPDATE...
D. DELETE...
E. CREATE...
F. DROP...
Answer: ABCD
20. Examine the structure of the EMPLOYEES and DEPARTMENTS tables:
EMPLOYEES
Column name Data Type Remarks
EMPLOYEE_ID NUMBER NOT NULL, PRIMARY KEY
EMP_NAME VARCHAR2(30)
JOB_ID VARCHAR2(20)
SALARY NUMBER
MGR_ID NUMBER References employee ID column
DEPARTMENT_ID NUMBER Foreign key to DEPARTMENT_ID column of the DEPARTMENT table
DEPARTMENTS
Column name Data Type Remarks
DEPARTMENT_ID NUMBER NOT NULL, Primary key
DEPARTMENT_NAME VARCHAR2(30)
MGR_ID NUMBER References MGR_ID column of the EMPLOYEES table
Evaluate this SQL statement;
SELECT employee_id, e.department_id, department_name,
salary
FROM employees e, departments d
WHERE e. department_ud=d.department_id;
Which SQL statement is equivalent to the above SQL statement?
A. SELECT employee_id, department_id, department_name,
salary
FROM employees
WHERE department_id IN (SELECT department_id FROM departments);
B. SELECT employee_id, department_id, department_name,
salary
FROM employees
NATURAL JOIN departments d
ON e.department_id=d.department_id;
C. SELECT employee_id, department_id, department_name,
salary
FROM employees e
JOIN departments d
ON e.department_id=d.department_id;
D. SELECT employee_id, department_id, department_name,
salary
FROM employees
JOIN departments
USING (e.department_id, d.department_id);
Answer: C
21. Which SQL statement generates the alias Annual Salary for the calculated column SALARY*12?
A. SELECT ename, salary*12'Annual Salary'
FROM employees;
B. SELECT ename, salary* 12 "Annual Salary"
FROM employees
C. SELECT ename, salary* 12 AS Annual Salary
FROM employees;
D. SELECT ename, salary* 12 AS INITCAP("ANNUAL SALARY")
FROM employees
Answer:B
22. In which scenario would an index be most useful?
A. The indexed column is declared as NOT NULL.
B. The indexed columns are used in the FROM clause
C. The indexed columns are part of an expression
D. The indexed columns contains a wide range of values.
Answer: D
23. Which two are attributes of /SQL* Plus? (Choose two).
A. /SQL * Plus commands cannot be abbreviated
B. /SQL* Plus commands are accessed from a browser.
C. /SQL*Plus commands are used to manipulate data in tables
D. /SQL* Plus command manipulate table definitions in the database
E. /SQL* Plus is the Oracle proprietary interface for executing SQL statements.
Answer: CE
24. Which three statements about subqueries are true? (Choose three).
A. A single row subquery can retrieve only one column and one row
B. A single row subquery can retrieve only one row but many columns
C. A multiple row subquery can retrieve multiple rows and multiple columns
D. A multiple row subquery can be compared using the ">" operator
E. A single row subquery can use the IN operator
F. A multiple row subquery can use the "=" operator
Answer: BCD
25. When should you create a role? (Choose two)
A. to simplify the process of creating new users using the CREATE USER xxx IDENTIFIED by yyy statement
B. to grant a group of related privileges to a user
C. When the number of people using the database is very high
D. to simplify the process of granting and revoking privileges
E. to simplify profile maintenance for a user who is constantly traveling.
Answer: BD
26. Which clause would you use in a SELECT statement to limit the display to those employees whose salary is greater than 5000?
A. ORDER BY SALARY > 5000
B. GROUP BY SALARY > 5000
C. HAVING SALARY > 5000
D. WHERE SALARY > 5000
Answer: D
27. Which four are correct guidelines for naming database tables? (Choose four)
A. Must begin with either a number or a letter
B. Must be 1-30 characters long
C. should not be an Oracle Server reserved word.
D. must contain only A-Z, a-z, 0-9, _,*, and #
E. must contain only A-Z, a-z, 0-9, _, $, and #
F. must begin with a letter
Answer: BCEF
28. Which two statements about sequences are true? (Choose two)
A. You use a NEXTVAL pseudo column to look at the next possible value that would be generated from a sequence, without actually retrieving the value.
B. You use a CURRVAL pseudo column to look at the current value just generated from a sequence, without affecting the further values to be generated from the sequence.
C. You use a NEXTVAL pseudo column to obtain the next possible value from a sequence by actually retrieving the value form the sequence
D. You use a CURRVAL pseudo column to generate a value from a sequence that would be used for a specified database column.
E. If a sequence starting from a value 100 and incremented by 1 is used by more than one application, then all of these applications could have a value of 105 assigned to their column whose value is being generated by the sequence.
F. You use a REUSE clause when creating a sequence to restart the sequence once it generates the maximum value defined for the sequence.
Answer: BC
29. The EMP table contains these columns:
LAST NAME VARCHAR2(25)
SALARY NUMBER (6,2)
DEPARTMENT_ID NUMBER(6)
What is true about this SQL statement?
A. The SQL statement displays the desired results
B. The column in the WHERE clause should be changed to display the desired results.
C. The operator in the WHERE clause should be changed to display the desired results
D. The WHERE clause should be changed to use an outer join to display the desired results.
Answer: C
30. Examine the description of the MARKS table:
STD_ID NUMBER(4)
STUDENT_NAME VARCHAR2(30)
SUBJ1 NUMBER(3)
SUBJ2 NUMBER(3)
SUBJ1 and SUBJ2 indicate the marks obtained by a student in two subjects
Examine this SELECT statement based on the MARKS table:
SELECT subj1+subj2 total_marks, std_id
FROM marks
WHERE subj1 > AVG (subj1) AND subj2 > AVG (subj2)
ORDER BY total_marks;
What us the result of the SELECT statement?
A. The statement executes successfully and returns the student ID and sum of all marks for each student who obtained more than the average mark in each subject.
B. The statement returns an error at the SELECT clause
C. The statement returns an error at the WHERE clause
D. The statement returns an error at the ORDER BY clause
Answer: C
31. You want to display the titles of books that meet these criteria:
1. Purchased before January 21, 2001
2. Price is less than $ 500 or greater than $ 900
You want to sort the result by their date of purchase, starting with the most recently bought book.
Which statement should you use?
A. SELECT book_title
FROM books
WHERE price between 500 and 900
AND purchase_date < '21 - Jan-2001'
ORDER BY purchase_date;
B. SELECT book_title
FROM boks
WHERE price IN (500, 900)
AND purchase_dae< '21-jan-2001'
ORDER BY purchase date ASC;
C. SELECT book_title
FROM books
WHERE price < 500 OR>900
AND purchase_date DESC;
D. SELECT BOOK_title
FROM books
WHERE price < 500 OR>900
AND purchase_date<'21-JAN-2001'
ORDER BY purchase date DESC;
E. SELECT book_title
FROM books
WHERE (price< 500 OR price> 900
AND purchase date> '21 - JAN-2001')
ORDER BY purchase date ASC;
Answer: D
32. Click the Exhibit button to examine the structure of the EMPOLOYEES, DEPARTMENTS and TAX tables.
EMPLOYEES
EMPLOYEE_ID NUMBER NOT NULL primary key
EMP_NAME VARCHAR2(30)
JOB_ID VARCHAR2(20)
SALARY NUMBER
MGR_ID NUMBER Reference EMPLOYEE_ID Column
DEPARTMENT_ID NUMBER Foreign key to DEPARTMENT_ID TO column of the DEPARTMENT table
DEPARTMENTS
DEPARTMENT_ID NUMBER NOT NULL primary key
DEPARTMENT_NAME VARCHAR2(30)
MGR_ID NUMBER Reference MGR_ID column of the EMPLOYEES table
TAX
MIN_SALARY NUMBER
MAX_SALARY NUMBER
TAX_PERCENT NUMBER
For which situation would you use a nonequijoin query?
A. to find the tax percentage for each of the employees
B. to list the name, job id, and manager name for all the employees
C. to find the name, salary and the department name of employees who are not working with Smith
D. to find the number of employees working for the Administrative department and earning less than 4000
E. to display name, salary, manager ID, and department name of all the employees, even if the employees do not have a department ID assigned
Answer: A
33. Which operator can be used with a multiple row subquery?
A **
B LIKE
C. BETWEEN
D. NOT IN
E. Is
F. <>
Answer: D
34. You need to perform certain data manipulation operations through a view called EMP_DEPT_VU, which you previously created. You want to look at the definition of the view (the SELECT statement on which the view was created)
How do you obtain the definition of the view?
A. Use the DESCRIBE command on the EMP_DEPT VU view
B. Use the DEFINE VIEW command on the EMP_DEPT VU view
C. Use the DESCRIBE VIEW command on the EMP_DEPT VU view
D. Query the USER_VIEWS data dictionary view to search for the EMP_DEPT_VU view
E. Query the USER_SOURCE data dictionary view to search for the EMP_DEPT_VU view
F. Query the USER_OBJECTS data dictionary view to search for the EMP_DEPT_VU view
Answer: D
35. Which statement explicitly names a constraint?
A. ALTER TABLE student_grades
ADD FOREIGN KEY (student_id) REFERENCES students (student_id);
B. ALTER TABLE student_grades
ADD CONSTRAINT NAME=student_id_fk
FOREIGN KEY (student_id) REFERENCES student(student_id);
C. ALTER TABLE student_grades
ADD CONSTRAINT student_id_fk
FOREIGN KEY (student_id) REFERENCES students (student_id);
D. ALTER TABLE student grades
ADD NAMED CONSTRAINT student_id_fk
FOREIGN KEY (student_id) REFERENCES students (student_id)
F. ALTER TABLE student grades
ADD NAME student_id_fk
FOREIGN KEY (student_id) REFERENCES students (student_id)
Answer: C
36. You need to display the last names of those employees who have the letter “A” as the second character in their names. Which SQL statement displays the required results?
A. SELECT last_name
FROM EMP
WHERE last_name LIKE’_A%;
B. SELECT last_name
FROM EMP
WHERE last name=’*A%
C. SELECT last_name
FROM EMP
WHERE last name =’* _A%;
D. SELECT last_name
FROM EMP
WHERE last name LIKE ‘* a%
Answer: A
37. In which case would you use a FULL OUTER JOIN?
A. Both tables have NULL values
B. You want all unmatched data from one table
C. You want all matched data from both tables
D. You want all unmatched data from both tables
E. One of the tables has more data than the other.
F. You want all matched and unmatched data from only one table.
Answer: D
38. Which two statements about creating constraints are true? (Choose two)
A. Constraint names must start with SYS_C.
B. All constraints must be defined at the column level
C. Constraints can be created after the table is created
D. Constraints can be created at the same time the table is created
E. Information about constraints is found in the VIEW_CONSTRAINTS dictionary view
Answer: CD
39. Examine the SQL statements that creates ORDERS table:
CREATE TABLE orders
(SER_NO NUMBER UNIQUE,
ORDER_ID NUMBER
ORDER_DATE DATE NOT NULL,
STATUS VARCHAR2(10) CHECK (status IN (‘CREDIT’, ‘CASH’)),
PROD_ID NUMBER REFERENCES PRODUCTS (PRODUCT_ID),
ORD_TOTAL NUMBER,
PRIMARY KEY (order id, order date));
For which columns would an index be automatically created when you execute the above SQL statement? (Choose two.)
A. SER_NO
B. ORDER_ID
C. STATUS
D. PROD_ID
E. PRD_TOTAL
F. Composite index on ORDER_ID and ORDER_DATE
Answer: AF
40. You are granted the CREATE VIEW privilege. What does this allow you to do?
A. create a table view
B. create a view in any scheme
C. create a view in your schema
D. create a sequence view in any schema
E. create a view that is accessible by everyone
F. create a view only if it is based on tables that you created
Answer: C
41. You created a view called EMP_DEPT_VU that contains three columns from the EMPLOYEES and DEPARTMENTS tables EMPLOYEE_ID, EMPLOYEE_NAME AND DEPARTMENT_NAME
The DEPARTMENT_ID column of the EMPLOYEES table is the foreign key to the primary key DEPARTMENT_ID column of the DEPARTMENTS table.
You want to modify the view by adding a fourth column, MANAGER_Id of NUMBER data type from the EMPLOYEES table.
How can you accomplish this task?
A. ALTER VIEW emp_dept_vu (ADD manager_id NUMBER),
B. MODIFY VIEW emp_dept_vu (ADD manager_id NUMBER);
C. ALTER VIEW emp_dept_vu AS
SELECT employee_id, employee_name
Department_name, manager_id
FROM employees e, departments d
WHERE department_id = d.department_id;
D. MODIFY VIEW emp_depat_vu AS
SELECT employee_id, employee_name,
Department_name, manager_id
FROM employees e, departments d
WHERE e.department_id = d.department_id;
E. CREATE OR REPLACE VIEW emp_dept_vu AS
SELECT emplouee_id, employee_ name,
Department_name, manager _id
FROM employees e, departments d
WHERE e.department_id=d.department_id;
F. You must remove the existing view first, and then run the CRATE VIEW command with a new column list to modify a view.
Answer: E
42. Which three SELECT statements display 2000 in the format “$2,000.00”? (Choose Three).
A. SELECT TO_CHAR (2000, ‘$#,###.##’)
FROM dual;
B. SELECT TO_CHAR (2000, ‘$0,000.00’)
FROM dual
C. SELECT TO_CHAR (2000, ‘$9,999.00’)
FROM dual;
D. SELECT TO_CHAR (2000, ‘$9,999.99’)
FROM dual;
E. SELECT TO_CHAR (2000, ‘$2,000.00’)
FROM dual;
F. SELECT TO_CHAR (2000, ’$N, NNN.NN’)
FROM dual
Answer: BCD
43. Evaluate the SQL statement
DROP TABLE DEPT;
Which four statements are true of the SQL statement? (Choose four)
A. You cannot roll back this statement
B. All pending transactions are committed
C. All views based on the DEPT table are deleted
D. All indexes based on the DEPT table are dropped
E. All data in the table is deleted, and the table structure is also deleted
F. All data in the table is deleted, but the structure of the table is retained
G. All synonyms based on the DEPT table are deleted
Answer: ABDE
44. Which statement describes the ROWID data type?
A. binary data up to 4 gigabytes
B. character data up to 4 gigabytes
C. raw binary data of variable length up to 2 gigabytes
D. binary data stored in an external file, up to 4 gigabytes
E. a hexadecimal string representing the unique address of a row in its table
Answer: E
45. Examine the structure of the EMPLOYEES and NEW_EMPLOYEES tables:
EMPLOYEES
EMPLOYEE_ID NUMBER Primary Key
FIRST_NAME VARCHAR2(25)
LAST_NAME VARCHAR2(25)
HIRE_DATE DATE
NEW EMPLOYEES
EMPLOYEE_ID NUMBER Primary Key
NAME VARCHAR2(60)
Which UPDATE statement is valid?
A. UPDATE new_employees SET name=(SELECT last_name||
First_name
FROM employees
WHERE employee_id = 180)
B. UPDATE new_employees SET name = (SELECT
Last_name || first_name
FROM employees)
WHERE employee_id = 180
C. UPDATE new_employees SET name = (SELECT last_name||
First_name
FROM employees
WHERE employee_id
= 180
WHERE employee_id = (SELECT employee_id
FROM new employees),
D. UPDATE new_employees SET name = (SELECT last name||
First_name
FROM employees
WHERE employee_id=
(SELECT employee_id
WHERE employee_id
FROM new_employees))
WHERE employee_id
= 180,
Answer: A
46. You need to produce a report for mailing labels for all customers. The mailing label must have only the customer name and address. The CUSTOMER table has these columns:
CUST_ID NUMBER(4) NOT NULL
CUST_NAME VARCHAR2(100) NOT NULL
CUST_ADDRESS VARCHAR2(150)
CUST_PHONE VARCHAR(20)
Which SELECT statement accomplishes this task?
A. SELECT *
FROM customers
B. SELECT name, address
FROM customers;
C. SELECT id, name, address, phone
FROM customers;
D. SELECT cust_name, cust_address
FROM customers;
E. SELECT cust_id, cust_name, cust_address, cust_phone
FROM customers;
Answer: D
47. Click the Exhibit button to examine the structure of the EMPLOYEES, DEPARTMENTS and LOCATIONS tables.
EMPLOYEES
EMPLOYEE_ID NUMBER NOT NULL, Primary Key
EMP NAME VARCHAR2(30)
JOB_ID VARCHAR2(20)
SALARY NUMBER
MGR_ID NUMBER References EMPLOYEE_ID column
DEPARTMENT_ID NUMBER Foreign key to DEPARTMNET_ID column of the DEPARTMENTS table
DEPARTMENTS
DEPARTMENT_ID NUMBER NOT NULL, Primary Key
DEPARTMENT_NAME VARCHAR2(30)
MGR_ID NUMBER References MGR_ID column of the EMPLOYEES table
LOCATION_ID NUMBER Foreign key to LOCATION_ID column of the LOCATIONS table
LOCATIONS
LOCATIONS_ID NUMBER NOT NULL, Primary Key
CITY VARCHAR2(30)
Which two SQL statements produce the ;name, department name, and the city of all the employees who earn more than 10000? (Choose Two).
A. SELECT emp_name, department_name, city
FROM employees e
JOIN departments d
USING (department_id)
JOIN locations 1
USING (location_id)
WHERE salary > 10000;
B. SELECT emp_name, department_name, city
FROM employees e, departments d, locations 1
JOIN ON (e. department_id = d. department id)
AND (d.location_id = 1.location_id)
AND salary > 10000;
C. SELECT emp_name, department_name, city
FROM employees e, departments d, locations 1
WHERE salary > 1000;
D. SELECT emp_name, department_name, city
FROM employees e, departments d, locations 1
WHERE e.department_id = d.department_id
AND d.location_id = 1.location_id
AND salary > 10000;
E. SELECT emp_name, department_name, city
FROM employees e
NATURAL JOIN departments, locations
WHERE salary > 10000;
Answer: BD
48. Which two statements complete a transaction? (Choose two)
A. DELETE employees;
B. DESCRIBE employees
C. ROLLBACK TO SAVEPOINT C;
D. GRANT TABLE employees
E. ALTER TABLE employees
SET UNUSED COLUMN sal;
F. SELECT MAX (sal)
FROM employees
WHERE department_id = 20;
Answer: CE
49. Examine the description of the EMPLOYEES table:
EMP_ID NUMBER(4) NOT NULL
LAST_NAME VARCHAR2(30) NOT NULL
FIRST_NAME VARCHAR2(30)
DEPT_ID NUMBER(2)
JOB_CAT VARCHAR(30)
SALARY NUMBER(8,2)
Which statement shows the department ID, minimum salary, and maximum salary paid in that department, only if the minimum salary is less than 5000 and maximum salary is more than 15000?
A. SELECT dept_id, MIN (salary), MAX (salary)
FROM employees
WHERE MIN(salary) < 5000 AND MAX (salary) > 15000;
B. SELECT dept_id, MIN (salary), MAX (salary)
FROM employees
WHERE MIN (salary) < 5000 AND MAX (salary) 15000
GROUP BY dept_id;
C. SELECT dept_id, MIN(salary), MAX(salary)
FROM employees
HAVING MIN (salary) < 5000 AND MAX (salary)
D. SELECT dept_id MIN (salary), MAX (salary)
FROM employees
GROUP BY dept_id
HAVING MIN(salary) < 5000 AND MAX (salary) < 15000
E. SELECT dept_id,MIN (salary), MAX (salary)
FROM employees
GROUP BY dept_id, salary
HAVING MIN (salary) < 5000 AND MAX (salary) > 15000;
Answer: D
50. The DBA issues this SQL command:
CREATE USER scott
INDENTIFIED by tiger;
What privileges does the user Scott have at this point?
A. no privileges
B. only the SELECT privilege
C. only the CONNECT privilege
D. all the privileges of a default user
Answer: A
51. The EMPLOYEES table has these columns
LAST_NAME VARCHAR2 (35)
SALARY NUMBER (8,2)
HIRE_DATE DATE
Management wants to add a default value to the SALARY column. You plan to alter the table by using this SQL statement:
ALTER TABLE EMPLOYEES
MODIFY (SALARY DEFAULT 5000);
Which is true about your ALTER statement?
A. Column definitions cannot be altered to add DEFAULT values
B. A change to the DEFAULT value affects only subsequent insertions to the table
C. Column definitions cannot be altered to add DEFAULT values for columns with a NUMBER data type.
D. All the rows that have a NULL value for the SALARY column will be updated with the value 5000.
Answer: B
52. Which substitution variable would you use if you want to reuse the variable value without prompting the user each time?
A. &
B. ACCEPT
C. PROMPT
D. &&
Answer: D
53. Examine the structure of the EMPLOYEES table:
Column name Data type Remarks
EMPOYEE_ID NUMBER NOT NULL, Primary Key
EMP_NAME VARCHAR2 (30)
JOB_ID VARCHAR2 (20) NOT NULL
SAL NUMBER
MGR_ID NUMBER References EMPLOYEE_ID column
DEPARTMENT_ID NUMBER Foreign key to DEPARTMENT_ID column
Of the DEPARTMENTS table
You need to create a view called EMP_VU that allows the users to insert rows through the view. Which SQL statement, when used to create the EMP_VU view, allows the users to insert rows?
A. CREATE VIEW emp_Vu AS
SELECT employee_id, emp_name,
Department_id
FROM employees
WHERE mgr_id IN (102,120);
B. CREATE VIEW emp_Vu AS
SELECT employee_id, emp_name, job_id,
Department_id
FROM employees
WHERE mgr_id IN (102, 120);
C. CREATE VIEW emp_Vu AS
SELECT department_id, SUM(sal) TOTAL SAL
FROM employees
WHERE mgr_id IN (102, 120)
GROUP BY department_id;
D. CREATE VIEW emp_Vu AS
SELECT employee_id, emp_name, job_id,
DISTINCT department_id
FROM employees
Answer: B
54. What is true about the WITH GRANT OPTION clause?
A. It allows a grantee DBA privileges
B. It is required syntax for object privileges
C. It allows privileges on specified columns of tables
D. It is used to grant an object privilege on a foreign key column
E. It allows the grantee to grant object privileges to other users and roles
Answer: E
55. The STUDENT_GRADES table has these columns
STUDENT_ID NUMBER(12)
SEMESTER_END DATE
GPA NUMBER (4,3)
The registrar has asked for a report on the average grade point average (GPA) for students enrolled during semesters that end in the year 2000. Which statement accomplishes this?
A. SELECT AVERAGE(gpa)
FROM student_grades
WHERE semester_end > ’01-JAN-2000’ and semester end < ’31-DEC-2000’
B. SELECT COUNT (gpa)
FROM student grades
WHERE semester_end > ’01-JAN-2000’ and semester end < ’31-DEC-2000’
C. SELECT MID (gpa)
FROM student_grades
WHERE semester_end > ’01-JAN-2000’ and semester end < ’31-DEC-2000’
D. SELECT AVG (gpa)
FROM student_grades
WHERE semester_end > ’01-JAN-2000’ and semester end < ’31-DEC-2000’
E. SELECT SUM (gpa)
FROM student_grades
WHERE semester_end > ’01-JAN-2000’ and semester end < ’31-DEC-2000’
F. SELECT MEDIAN (gpa)
FROM student_grades
WHERE semester_end > ’01-JAN-2000’ and semester end < ’31-DEC-2000’
Answer: D
56. Which constraint can be defined only at the column level?
A. UNIQUE
B. NOT NULL
C. CHECK
D. PRIMARY KEY
E. FOREIGN KEY
Answer: B
57. In which scenario would Top N analysis be the best solution?
A. You want to identify the most senior employee in the company
B. You want to find the manager supervising the largest number of employees
C. You want to identify the person who makes the highest salary of all employees
D. You want to rank the top three sales representatives who have sold the maximum number of products
Answer: D
58. Examine the structure of the EMPLOYEES and NEW EMPOYEES tables:
EMPLOYEE_ID NUMBER Primary Key
FIRST_NAME VARCHAR2(25)
LAST_NAME VARCHAR2(25)
HIRE_DATE DATE
NEW EMPLYEES
EMPLOYEE_ID NUMBER Primary Key
NAME VARCHAR2(60)
Which MERGE statement is valid?
A. MERGE INTO new_employees e
USING employees e
ON (e.employee_id = e.employee_id)
WHEN MATCHED THEN
UPDATE SET
e.name = e.first_name //’,’// e.last_name
WHEN NOT MATCHED THEN
INSERT VALUES (e.employee_id, e.first_name//’,
‘//e.last_name);
B. MERGE new_employee c
USING employees e
ON (c.employee_id = e.employee_id)
WHEN EXISTS THEN
UPDATE SET
c.name = e first_name//’,’// e.last_name
WHEN NOT MATCHED THEN
INSERT VALUES (e.employee_id, e.first_name//’.
‘//e.last_name);
C. MERGE INTO new employees c
USING employees e
ON (c.employee_id = e.employee_id)
WHEN EXISTS THEN
UPDATE SET
e.name = e.fist //’,’// e.last_name
WHEN NOT MATCHES THEN
INSERT VALUES (e.employee_id, e.first _name//’,
‘//e.last_name);
D. MERGE new_employees c
FROM employees c
ON (c.employee_id = e.employee_id)
WHEN MATCHED THEN
UPDATE SET
e.name = e.first_name //’,’// e.last_name
WHEN NOT MATCHED THEN
INSERT INTO new_employees VALUES (e.employee_id, e.first_name//”.
‘//e.last_name);
Answer: A
59. Which three are true regarding the use of outer joins? (Choose three.)
A. You cannot use IN operator in a condition that involves an outerjoin
B. You use (+) on both sides of the WHERE condition to perform an outerjoin
C. You use (*) on both sides of the WHERE condition to perform an outerjoin.
D. You use an outerjoin to see only the rows that do not meet the join condition
E. In the WHERE condition, you use (+) following the name of the column in the table without matching rows, to perform an outerjoin
F. You cannot link a condition that is involved in an outerjoin to another condition by using the OR operator
Answer: DEF
60. Click the Exhibit button to examine the data of the EMPLOYEES table.
EMPLOYEES (EMPLOYEE_ID is the primary key. MGR_ID is the ID of managers and refers to the EMPLOYEE_ID)
EMPLOYEE_ID EMP_NINE DEPT_ID MGR_ID JOB_ID SALARY
101 Smith 20 120 SA_REP 4000
102 Martin 10 105 CLERK 2500
103 Chris 20 120 IT_ADMIN 4200
104 John 30 108 HR_CLERK 2500
105 Diana 30 108 HR_MGR 5000
106 Bryan 40 110 AD_ASST 5000
108 Jennifer 30 110 HR_DIR 6500
110 Bob 40 EX_DIR 8000
120 Ravi 20 110 SA_DIR 6500
Which statement lists the ID, name, and salary of the employee, and the ID and name of the employee’s manager, for all the employees who have a manager and earn more than 4000?
A. SELECT employee_id ”Emp_id”, emp_name “Employee”.
Salary,
Employee_id “Mgr_id”, emp_name “Manager”
FROM employees
WHERE salary > 4000
B. SELECT e.employee_id “Emp_id”, e.emp_name “Employee”
e.salary
m employee_id “Mgr_id”, m.emp_name “Employee”.
FROM employees e.employees m
WHERE e.mgr_id = m.mgr_id
AND e.salary > 4000;
C. SELECT e. employee_id “Emp_id”. E.emp_name “Employee”
e.salary
m employee_id “Mgr_id” m.emp_name “Manager”
FROM employees e, employees m
WHERE e.mgr_id = m.employee_id
AND e.salary > 4000
D. SELECT e.employee_id”Emp_id” e.emp_name “Employee”
e.salary.
m.mgr_id “Mgr_id”, m.emp_name “Employee”,
FROM employees e, employees m
WHERE e.mgr_id = m.employee_id
AND e.salary > 4000;
Answer: C
61. Which statement creates a new user?
A. CREATE USER susan
B. CREATE OR REPLACE USER susan
C. CREATE NEW USER susan
DEFAULT,
D. CREATE USER susan
INDENTIFIED BY blue
E. CREATE NEW USER susan
IDENTIFIED BY blue
F. CREATE OR REPLACE USER susan
IDENTIFIED BY blue;
Answer: D
62. The STUDENT_GRADES table has these columns
STUDENT_ID NUMBER (12)
SEMESTER_END DATE
GPA NUMBER (4,3)
The registrar has requested a report listing the students’ grade point averages (GPA), stored from highest grade point average to lowest within each semester, starting from the earliest date. Which statement accomplishes this?
A. SELECT student)_id, semester_end, gpa
FROM student_grades
ORDER BY semester_end DESC, gpa DESC;
B. SELECT student_id, semester_end, gpa
FROM student_grades
ORDER BY semester_end ASC, gpa ASC;
C. SELECT student _id, semester_end, gpa
FROM student_grades
ORDER BY semester_end, gpa DESC;
D. SELECT student_id, semester_end, gpa
FROM student_grades
ORDER BY gpa DESC, semester_end DESC;
E. SELECT student-id, semester_end, gpa
FROM student_grades
ORDER BY gpa DESC, semester_end ASC,
Answer: C
63. You need to change the definition of an existing table. The COMMERCIALS table needs its DESCRIPTION column changed to hold varying length characters up to 2000 bytes. The column can currently hold 1000 bytes per value. The table contains 20000 rows.
Which statement is valid?
A. ALTER TABLE commercial
MODIFY (description CHAR2(2000))
B. ALTER TABLE commercials
CHANGE (description CHAR2(2000))
C. ALTER TABLE commercials
CHANGE (description varchar2(2000))
D. ALTER TABLE commercials
MODIFY (description VARCHAR2(2000))
E. You cannot increase the size of a column if the able has rows.
Answer: D
64. What does the TRUNCATE statement do?
A. removes the table
B. removes all rows from a table
C. shortens the tale to 10 rows
D. removes all columns from a table
E. removes foreign keys from a table
Answer; B
65. the ORDERS table has these columns
ORDER_ID NUMBER(4) NOT NULL
CUSTOMER_ID NUMBER(12) NOT NULL
ORDER_TOTAL NUMBER(10,2)
The ORDERS table tracks the Order number, the order total and the customer to whom the Order belongs. Which two statements retrieve orders with an inclusive total that ranges between 100.00 and 200.00 dollars? (Choose Two).
A SELECT customer_id, order_id, order_total
FROM orders
RANGE ON order_total (100 AND 2000) INCLUSIVE
B. SELECT customer_id, order_id, order_total
FROM orders
HAVING order total BETWEEN 100 and 2000
C. SELECT customer_id, order_id, order_total
FROM orders
WHERE order_total BETWEEN 100 and 2000
D. SELECT customer_id, orde_id, order_total
FROM orders
WHERE order_total >= 100 and <=2000
E. SELECT customer_id, order_id, order _total
FROM orders
WHERE order_total>= 100 and order_total <=2000.
Answer: CE
66. Which is an /SQL * Plus command?
A. INSERT
B. UPDATE
C. SELECT
D. DESCRIBE
E. DELETE
F. RENAME
Answer; D
67. Which SELECT statement should you use to extract the year form the system date and display it in the format “1998”?
A. SELECT TO_CHAR(SYSDATE, ‘yyyy’)
FROM dual
B. SELECT TO_DATE(SYSDATE,’yyyy’)
FROM dual
C. SELECT DECODE (SUBSTR (SYSDATE, 8), ‘YYYY’)
FROM dual
D. SELECT DECODE (SUBSTR (SYSATE, 8),’year’)
FROM dual
E. SELECT TO_CHAR (SUBSTR(SYSDATE, 8,2),’yyyy’)
FROM dual
Answer: A
68. The EMPLOYEES table contains these columns:
LAST_NAME VARCHAR2(25)
SALARY NUMBER(6,2)
COMMISSION_PCT NUMBER(6)
You need to write a query that will produce these results:
1. Display the salary multiplied by the commission_pct
2. Exclude employees with a zero commission_pct
3. Display a zero for employees with a null commission value
Evaluate the SQL statement:
SELECT LAST_NAME, SALARY * COMMISSION_PCT
FROM EMPLOYEES
WHERE COMMISSION_PCT IS NOT NULL;
What does the statement provide?
A. all of the desired results
B. two of the desired results
C. one of the desired results
D. an error statement
Answer: C
69. A subquery can be used to _________.
A. create groups of data
B. sort data in a specific order
C. convert data to a different format
D. retrieve data based on an unknown condition
Answer: D
70. Which clause should you use to exclude group results?
A. WHERE
B. HAVING
C. RESTRICT
D. GROUP BY
E. ORDER BY
Answer: B
71. Scott issues the SQL statements:
CREATE TABLE dept
(deptno number(2)
dname VARCHAR2(14)
loc VARCHAR2(13)
);
GRANT SELECT
ON DEPT
TO SUE;
If Sue needs to select from Scott’s DEPT table, which command should she use?
A. SELECT *
FROM DEPT
B. SELECT *
FROM SCOTT. DEPT.
C. SELECT *
FROM DBA.SCOTT.DEPT.
D. SELECT *
FROM ALL_USERS
WHERE USER_NAME = ‘SCOTT’
AND TABLE NAME= ‘DEPT’;
Answer: B
72. Click the Exhibit button and examine the data in the EMPLOYEES and EMP_HIST tables.
EMPLOYEES
EMPLOYEE_ID NAME DEPT_ID MGR_ID JOB_ID SALARY
101 Smith 20 120 SA_REP 4000
102 Martin 10 105 CLERK 2500
103 Chris 20 120 IT_ADMIN 4200
104 John 30 108 HR_CLERK 2500
105 Diana 30 108 IT_ADMIN 5000
106 Smith 40 110 AD_ASST 3000
108 Jennifer 30 110 HR_DIR 6500
110 Bob 40 EX_DIR 8000
120 Ravi 20 110 SA_DIR 6500
EMP_HIST
EMPLOYEE_ID NAME JOB_ID SALARY
101 Smith SA_CLERK 2000
103 Chris IT_CLERK 2200
104 John HR_CLERK 2000
105 Smith AD_ASST 3000
108 Jennifer HR_MGR 4500
The EMP_HIST table is updated at the end of every year. The employee ID, name, job ID, and salary of each existing employee are modified with the latest date. New employee details are added to the table.
Which statement accomplishes this task?
A. UPDATE emp_hist
SET employee_id, name, job_id, salary =
(SELECT employee id, name, job_id, salary
FROM employees)
WHERE employee_id IN
(SELECT employee_id
FROM employees),
B. MERGE INTO emp_hist eh
USING employees e
ON (eh. Employee_id = e.employee_id)
WHEN MATCHED THEN
UPDATE SET eh. Name= e.name,
Ch.job_id = e.job_id,
Eh. Salary = e.salary
WHEN NOT MATCHED THEN
INSERT (eh.employee_id,eh.name,eh.job_id,eh.salary) VALUES (e.employee_id, e.name, e.job_id, e.salary);
Answer: B
73. Click the Exhibit button to examine the data of the EMPLOYEES table
EMPLOYEES (EMPLOYEE ID is the primary key. MGR_ID is the ID of managers and refers to the EMPLOYEE_ID)
EMPLOYEE_ID EMP_NAME DEPT_ID MGR_ID JOB_ID SALARY
101 Smith 230 120 SA_REP 4000
102 Martin 10 105 CLERK 2500
103 Chris 20 120 IT_ADMIN 4200
104 John 30 108 HR_CLERK 2500
105 Diana 30 108 HR_MGR 5000
106 Bryan 40 110 AD_ASST 3000
108 Jennifer 30 110 HR_DIR 6500
110 Bob 40 EX_DIR 8000
120 Ravi 20 110 SA_DIR 6500
Evaluate this SQL statement:
SELECT e.employee_id “emp_id”, e.emp_name “Employee”, e.salary,
m.employee_id “Mgr_id”, m.emp_name “Manager”
FROM employees e,employees m
WHERE e.mgr_id = m.employee_id
AND e.salary > 4000
What is its output?
A.
Emp_id Employee Salary Mgr_id Manager
110 Bob 8000 Bob
120 Ravi 6500 110 Ravi
108 Jennifer 6500 110 Jennifer
103 Chris 4200 120 Chris
105 Diana 5000 108 Diana
B.
Emp_id Employee Salary Mgr_id Manager
120 Ravi 6500 110 Bob
108 Jennifer 6500 110 Bob
103 Chris 4200 120 Ravi
105 Diana 5000 108 Jennifer
C.
Emp_id Employee Salary Mgr_id Manager
110 Bob 8000
120 Ravi 6500 110 Bob
108 Jennifer 6500 110 Bob
103 Chris 4200 120 Ravi
105 Diana 5000 108 Jennifer
D.
Emp_id Employee Salary Mgr_id Manager
110 Bob 8000 110 Bob
120 Ravi 6500 120 Ravi
108 Jennifer 6500 108 Jennifer
109 Chris 4200 105 Chris
105 Diana 5000 105 Diana
E. The SQL statement produces an error.
Answer: B
74. What is true about joining tables through an equation?
A. you can join a maximum of two tables through an equation
B. you can join a maximum, of two columns through an equation
C. you specify an equijoin condition in the SELECT or FROM clauses of a SELECT statement.
D. To join two tables through an equijoin, the columns in the join condition must be primary key and foreign key columns.
E. You can join n tables (all having single column primary keys) in a SQL statement by specifying a minimum of n-1 join conditions.
Answer: E
75. You need to calculate the total of all salaries in the accounting department. Which group function should you use?
A. MAX
B. MIN
C. SUM
D. COUNT
E. TOTAL
F. LARGEST
Answer: C
76. Click the Exhibit button and examine the data in the EMPLOYEES table.
LAST_NAME DEPARTMENT_ID SALARY
Get 2 10 3000
Davis 20 1500
King 20 2200
Davis 30 5000
….
Which three subqueires work? (Choose three)
A. SELECT *
FROM employees
Where salary > (SELECT MIN(salary)
FROM employees
GROUP BY department_id)
B. SELECT *
FROM employees
WHERE salary = (SELECT AVG (salary)
FROM employees
GROUP BY department_id)
C. SELECT distinct department-id
FROM employees
WHERE salary> ANY (SELECT AVG (salary)
FROM employees
GROUP BY department_id)
D. SELECT department_id
FROM employees
WHERE salary > ALL (SELECT AVG (salary)
FROM employees
GROUP BY department_id)
E. SELECT last_name
FROM employees
WHERE salary> ANY (SELECT MAX (salary)
FROM employees
GROUP BY department_id)
F. SELECT department_id
FROM employees
WHERE salary > ALL (SELECT AVG (salary)
FROM employees
GROUP BY AVG (SALARY))
Answer: CDE
77. The EMP table has these columns:
ENAME VARCHAR2(35)
SALARY NUMBER (8,2)
HIRE_DATE DATE
Management wants a list of names of employees who have been with the company for more than five yeas. Which SQL statement displays the required results?
A. SELECT ENAME
FROM EMP
WHERE SYSDATE-HIRE_DATE>5
B. SELECT ENAME
FROM EMP
WHERE HIRE_DATE-SYSDATE > 5
C. SELECT ENAME
FROM EMP
WHERE (SYSDATE-_DATE)/365 > 5
D. SELECT ENAME
FROM EMP
WHERE (SYSDATE-HIRE_DATE)* 365 > 5
Answer: C
78. You would like to display the system date in the format *Monday, 01 June, 2001*
Which SELECT statement should you use?
A. SELECT TO_DATE (SYSDATE, ‘FMDAY, DD Month, YYYY’)
FROM dual
B. SELECT TO_CHAR(SYSDATE, ‘FMDD, DY Month ‘YYY’)
FROM dual
C. SELECT TO_CHAR(SYSDATE, ‘FMDay, DD Month YYYY’)
FROM dual
D. SELECT TO_CHAR(SYSDATE, ‘FMDAY, DDD Month, YYYY’)
FROM dual
E. SELECT TO_DATES(SYSDATE,’FMDY, DDD Month, YYYY’)
FROM dual
Answer: C
79. The CUSTOMERS table has these columns:
CUSTOMER_ID NUMBER (4) NOT NULL
CUSTOMER_NAME VARCHAR2(100)
STREET_ADDRESS VARCHAR2(150)
CITY_ADDRESS VARCHAR2(50)
STATE_ADDRESS VARCHAR2(50)
PROVINCE_ADDRESS VARCHAR2(50)
COUNTRY_ADDRESS VARCHAR2(50)
POSTAL_CODE VARCHAR2(12)
CUSTOEMR_PHONE VARCHAR2(20)
Which statement finds the rows in the CUSTOMERS table that do not have a postal code
A. SELECT customer_id, customer_name
FROM customers
WHERE postal_code CONTAINS NULL
B. SELECT customer_id, customer name
FROM customers
WHERE posta_code=’______________’
C. SELECT customer_id, customer_name
FROM customers
WHERE postal_code IS NULL
D. SELECT customer_id, customer_name
FROM customers
WHERE postal code IS NVL
E. SELECT customer_id, customer_name
FROM customers
WHERE postal_code=NULL
Answer: C
80. Evaluate this SQL statement
SELECT e.employee_id, (15*e.salary) + .(5* e.commission_pct)
+ (s.sales amount* (.35* e.bonus)) AS CALC_VALUE
FROM employees e,sales s
WHERE e.employee_id = s.emp_id
What will happen if you remove al the parentheses from the calculation?
A. The value displayed in the CALC_VALUE column will be lower
B. The value displayed in the CALC_VALUE column will be higher
C. There will be no difference in the value displayed in the CALC_VALUE column
D. An error will be reported.
Answer: C
81. You define a multiple-row subquery in the WHERE clause of an SQL query with a comparison operator”=” What happens when the main query is executed?
A. the main query executes with the first value returned by the subquery
B. the main query executes with the last value returned by the subquery
C. the main query executes with all the values returned by the subquery
D. the main query fails because the multiple-row subquery cannot be used with the comparison operator.
E. You cannot define multiple-row subquery in the WHERE clause of a SQL query
Answer: D
82. which three statements correctly describe the functions and use of constraints? (Choose three)
A. constraints provide data independence
B. constraint make complex queries easy
C. constraints enforce rules at the view level
D. constraints enforce rules at the table level
E. constraints prevent the deletion of a table if there are dependencies
F. constraints prevent the deletion of an index if there are dependencies
Answer: ACD
83. Which two are character manipulation functions? (Choose two)
A. TRIM
B. REPLACE
C. TRUNC
D. TO_DATE
E. MOD
F. CASE
Answer: AB
84. You need to create a view EMP_VU. The view should allow the users to manipulate the records of only the employees that are working for departments 10 or 20.Which SQL statement would you use to crete the view EMP_VU?
A. CREATE VIEW emp_vu AS
SELECT employees
WHERE department_id 1N (10,20)
B. CREATE VIEW emp_vu AS
` SELECT *
FROM employees
WHERE department_id IN (10,20)
WITH READ ONLY
C. CREATE VIEW emp_vu AS
SELECT *
FROM employees
WHERE department_id IN (10,20)
WITH CHECK OPTION
D. CREATE FORCE VIEW emp_vu AS
SELECT *
FROM employees
WHERE department_id IN (10, 20)
NO UPDATE
Answer: C
85. Evaluate these two SQL statemens
SELECT last_name, salary, hire_date
FROM EMPLOYEES
ORDER BY salary DESC
SELECT last_name, salary, hire_date
FROM EMPLOYEES
ORDER BY 2 DESC
What is true about them?
A. the two statements produce identical results
B. the second statement returns a syntax error
C. there is no need to specify DESC because the results are sorted in descending order by default
D. the two statements can be made to produce identical results by adding a column alias for the salary column in the second SQL statements
Answer: A
86. Click the Exhibit button and examine the data on the EMPLOYEES table
EMPLOYEES
EMPLOYEE_ID EMP_NAME DEPT_ID MGR_ID JOB_ID SALARY
101 Smith 20 120 SA_REP 4000
102 Martin 10 105 CLERK 2500
103 Chris 20 120 IT_ADMIN 4200
104 John 30 108 HR_CLERK 3500
105 Diana 30 108 IT_ADMIN 5000
106 Smith 40 110 AD_ASST 3000
108 Jennifer 30 110 HR_DIR 6500
110 Bob 40 EX_DIR 8000
120 Ravi 20 110 SA_DIR 6500
On the EMPLOYEES table, EMPLOYEE_ID is the primary key. MGR_ID is the ID of managers and refers to the EMPLOYEE_ID.
The JOB_ID column is a NOT NULL column
Evaluate This DELETE statement
DELETE employee_id, salary, job_id
FROM employees
WHERE dept_id = 90
Why does the DELETE statement fail when you execute it?
A. there is no row with dept_id 90 in the EMPLOYEES table
B. you cannot delete the JOB_ID column because it is a NOT NULL column
C. you cannot specify column names in the DELETE clause of the DELETE statement.
D. You cannot delete the EMPLOYEE_ID column because it is the primary key of the table
Answer: C
87. Which two statements accurately describe a role? (Choose two)
A. a role can be given to a maximum of 1000 users
B. a user can have access to a maximum of 10 roles
C. a role can have a maximum of 100 privileges contained in it.
D. Privileges are given to a role by using the CREATE ROLE statement.
E. A role is a named group of related privileges that can be granted to the user
F. A user can have access to several roles, and several users can be assigned the same role.
Answer: EF
89. You added a PHONE-NUMBER column of NUMBER data type to an existing EMPLOYEES table. The EMPLOYEES table already contains records of 100 employees. Now, you want to enter the phone numbers of each of the 100 employees into the table
Some of the employees may not have a phone number available.
Which data manipulation operation do you perform?
A. MERGE
B. INSERT
C. UPDATE
D. ADD
E. ENTER
F. You cannot enter the phone number for the existing employee records
Answer: C
90. Which two statements about subqueries are true? (Choose two)
A. A single row subquery can retrieve data from only one table.
B. A SQL query statement cannot display data from table B that is refered to in its subquery, unless table B is included in the main query’s FROM clause.
C. A SQL query statement cannot display data from table B that is refered to in its subquery, without including table B in its own FROM clause.
D. A single row subqery can retrieve data from more than one table
E. A single row subqery cannot be used in a condition where the LIKE operator is used for comparison.
F. A multiple-row subquery cannot be used in a condition where the LIKE operation is used for comparison.
Answer: BD
91. Examine the structure of the STUDENTS table
STUDENT_ID NUMBER NOT NULL., Primary Key
STUDENT_NAME VARCHAR2(30)
COURSE_ID VARCHAR2(10) NOT NULL
MARKS NUMBER
START_DATE DATE
FINISH_DATE DATE
You need to create a report of the 10 students who achieved the highest ranking in the course INT SQL and who completed the course in the year 1999.
Which SQL statement accomplishes this task?
A. SELECT student_id, marks, ROWNUM “Rank”
FROM student
WHERE ROWNUM <= 10
AND finish_data BETWEEN ’01-JAN-99’ AND ’31-DEC-99’
AND course_id=’INT_SQL’
ORDER BY marks DESC;
B. SELECT student_id, marks, ROWID “Rank”
FROM students
WHERE ROWID <= 10
AND finish_data BETWEEN ’01-JAN-99’ AND ’31-DEC-99’
AND course_id=’INT_SQL’
ORDER BY marks;
C. SELECT student_id, marks ROWNUM “Rank”
FROM (SELECT student_id, marks)
FROM students
WHERE ROWNUM <= 10
AND finish_date BETWEEN ’01-JAN99’ AND
’31-DEC-99’
AND COURSE_ID = ‘INT_SQL’
ORDER BY marks desc:
D. SELECT student_id, marks ROWNUM” Rank:
FROM (SELECT student_id.marks
FROM students
ORDER BY marks DESC )
WHERE ROWNUM <= 10
AND finish_date BETWEEN ’01-JAN99’ AND ’31-DEC-99’
AND course_id = ‘INT_SQL;’
Answer: D
92. The CUSTOMERS table has these columns:
CUSTOMER_ID NUMBER(4) NOT NULL
CUSTOMER_NAME VARCHAR2(100) NOT NULL
STREET_ADDRESS VARCHAR2(150)
CITY_ADDRESS VARCHAR2(50)
STATE_ADDRESS VARCHAR2(50)
PROVINCE_ADDRESS VARCHAR2(50)
COUNTRY_ADDRESS VARCHAR2(50)
POSTE_CODE VARCHAR2(12)
CUSTOMER_PHONE VARCHAR2(20)
THE CUSTOMER_ID column is the primary key for the table which two statements find the number of customer? (Choose two.)
A. SELECT TOTAL (*)
FROM customers;
B. SELECT COUNT (*)
FROM customers;
C. SELECT TOTAL (customer_id)
FROM customer;
D. SELECT COUNT(costomer_id)
FROM customer;
E. SELECT COUNT(customers)
FROM customers;
F. SELECT TOTAL (customer_name)
FROM customers;
Anser : BD
93. In a SELECT statement that includes a WHERE clause, where is the GROUP BY clause placed statement?
A. immediately after the SELECT clause
B. before the WHERE clause
C. before the FROM clause
D. after the ORDER BY clause
E. after the WHERE clause
Answer : E
94. Which two are true about aggregate functions? (Choose two)
A. You can use aggregate functions in any clause of a SELECT statement.
B. You can use aggregate functions only in the column list of the SELECT clause and in the WHERE clause of a SELECT statement.
C. You can mix single row columns with aggregate functions in the column list of a SELECT statement by grouping on the single row columns
D. You can pass column names, expressions, constants, or functions as parameters to an aggregate function.
E. You can use aggregate functions on a table, only by grouping the whole table as one single group.
F. You cannot group the rows of a table by more than one column while using aggregate functions.
Answer BD
95. For which two constrains does the Oracle Server implicitly create a unique index? (Choose two)
A. NOT NULL
B. PRIMARY KEY
C. FOREIGN KEY
D. CHECK
E. UNIQUE
Answer: BE
96. Check the Exhibit button to examine the structures of the Employees and TAX tables
Employees.
EMPLOYEE_ID NUMBER NOT NULL. PRIMARY KEY
EMP_NAME VARCHAR(30)
JOB_ID VARCHAR2(20)
SALARY NUMBER
MGR_ID NUMBER References EMPLOYEE_TO column
DEPARTMENT_ID NUMBER Foreign Employee_ID column of the DEPARTMENT table
TAX
MIN_SALARY NUMBER
MAX_SALARY NUMBER
TAX_PERCENT NUMBER Percentage tax for given salary range
You need find the percentage tax applicable for each employee. Which SQL statement would you use?
A. SELECT employee_id salary, tax_present
FROM employee, tax t
WHERE e salary BETWEEN t.min_salary AND t.max_salary,
B. SELECT employee_id, salary, tax_percent
FROM employees e, tax t
WHERE e.salary> Lmin_salary,tax_percent
FROM employees e, tax t
WHERE MIN(e salary)= t.min_salary
WHERE MIN(e salary)= t.max_salary
D. You cannot find the information because there is no common column between the two tables.
Answer : A
97. Examine the structure of the EMPLOYEES table:
EMPLOYEE_ID NUMBER primary Key
FIRST_NAME VARCHAR2(25)
LAST_NAME VARCHAR2(25)
HIRE_DATE DATE
You issue these statements:
CREATE table new_emp (employee_id NUMBER, name VARCHAR2 (30));
INSERT INTO new_emp SELECT employee_id, last_name from employees;
Savepoint s2;
Delete from new_emp;
Rolback to s2;
Delete from new_emp where employee_id = 180;
UPDATE new_emp set name = ‘James’;
Rolback to s2;
UPDATE new_emp set name = ‘James’ WHERE employee_id = 180;
Rollback;
At the end of this transaction, what is true?
A. You have no rows in the table.
B. You have an employee with the name of James
C. You cannot roll back to the same savepoint more than once.
D. Your last update fails to update any rows because employee ID 180 was already deleted.
Answer : A
98. Which / SQL* Plus feature can be used to replace values in the where clause?
A. Substitution variables
B. replacement variables
C. prompt variables
D. instead-of variables
E. This feature cannot be implemented through / SQL*Plus
Answer : A
99.Evaluate the SQL statement:
SELECT ROUND(TRUNC(MOD(1600,10),-1),2)
FROM dual;
What will be displayed?
A. 0
B. 1
C. 0.00
D. an error statement
Answer : A
100. Examine the structure of the EMPLOYEES table:
EMPLOYEE_ID NUMBER Primary Key
FIRST_NAME VARCHAR2(25)
LAST_NAME VARCHAR2(25)
DEPARTMENT_ID NUMBER
SALARY NUMBER
101.What is the correct syntax for an inline view?
A SELECT a last_name, a salary, a department_id,
b.maxsal
FROM employees a,
(SELECT department_id, max(salary)maxsal
FROM employees
GROUP BY department_id)b
WHERE a department_id = department-id
AND a_salary<b.maxsal;
B. SELECT a. last name, a salary, a. department_id
FROM employees a
WHERE a. department_id IN
(SELECT department_id
FROM employees b
GROUP BY department_id having salary =
SELECT max(salary) from employees
C. SELECT a last_name, a salary, a.department_id
FROM employees a
WHERE a salary =
SELECT max(salary)
FROM employees b
WHERE a department_id = department_id);
D. SELECT a last_name, a salary, a.department_id
FROM employees a
WHERE (a department_id, a salary) IN
(SELECT department_id, a salary) IN
(SELECT department_id max(salary)
FROM employees b
GROUP BY department_id
ORDER BY department_id);
Answer : A
101. Examine the structure of the EMPLOYEES table:
EMPLOYEE_ID NUMBER NOT NULL
EMP_ID VARCHAR2(30)
JOB_ID VARCHAR2(20) DEFAULT ‘SA_REP’
SAL NUMBER
COMM_PCT NUMBER
MGR_ID NUMBER
DEPARTMENT_ID NUMBER
you need to update the records of emloyees 103 and 115. The UPDATE statement you specify should update the rows with the values specified below:
JOB_ID Default value specified for this column definition
SAL maximum salary earned for the_job ID SA_REP
COMM_PCT Default value is specified for the column, the value should be NULL
DEPARTMENT_ID: Supplied by the user during run time through substitution variable
which UPDATE statement meets the requirements?
A. UPDATE employees
SET job_id=DEFAULT
AND Sal=(SELECT MAX(sal)
FROM emoployees
WHERE job_id='SA_REP'
AND comm_pet=DEFALUT
AND department_id =&did
WHERE employee_id IN (103, 115),
B. UPDATE employees
SET job_id = DEFAULT
AND Sal = MAX(sal)
AND comm_pct = DEFAULT OR NULL
AND department _id = & did
WHERE employee_id IN (103,115)
AND ob_id = 'SA_REP'
C. UPDATE employees
SET job_id = DEFAULT
Sal = (SELECT MAX (sal)
FROM employees
WHERE job_id = 'SA_REP')
comm_pct = DEFAULT,
department _id = &did
WHERE employee_id IN (103,115)
D. UPDATE emplouees
SET job_id = DEFAULT
sal = MAX (sal)
comm_pct = DEFAULT
department_id = &did
WHERE employee_id IN (103,115)
AND job_id = 'SA_REP'
E. UPDATE employees
SET job_id = DEFAULT
Sal = (SELECT MAX(sal)
FROM employees
WHERE job_id = 'SA_REP')
comm_pct = DEFAULT OR NULL,
department_id = &did
WHEREemployee_id IN (103,115)
Answer: C
102. Which data dictionary table should you query to view the object privileges granted to the user on specific columns?
A. USER_TAB_PRIVS_MADE
B. USER_TAB_PRIVS_RECD
C. USER_COL_PRIVS_MADE
D. USER_COL_PRIVS_RECD
Answer: D
103. Which three are DATETIME data types that can be used when specifying column definitions? (Choose three)
A. TIMESTAMP
B. INTERVAL MONTH TO DAY
C. INTERVAL DAY TO SECOND
D. INTERVAL YEAR TO MONTH
E. TIMESTAMP WITH DATABASE TIMEZONE
Answer: ACD
104. Examine the structure of the EMPLOYEES table:
column name data type remarks
EMPLOYEE_ID NUMBER NOT NULL, primary key
LAST_NAME VARCHAR2(30)
FIRST_NAME VARCHAR2(30)
JOB_ID NUMBER
SAL NUMBER
MGR_ID NUMBER References EMPLOYEE_ID column
DEPARTMENT_ID NUMBER
You need to create an index called NAME IDX on the first name and last name fields of the EMPLOYEES table. Which SQL statement would you use to perform this task?
A. CREATE INDEX NAME_IDX (first_name, last_name)
B. CREATE INDEX NAME_IDX (first_name AND last_name)
C. CREATE INDEX NAME_IDX
ON (first_name, last_name)
D. CREATE INDEX NAME_IDX
ON employees (first_name AND last_name)
E. CREATE INDEX NAME_IDX
ON employees (first_name, last_name)
F. CREATE INDEX NAME_IDX
FOR employees (first_name, last_name)
Answer: E
105. Click the Exhibit button and examine the data from the ORDERS and CUSTOMERS tables.
ORDERS
ORD_ID ORD_DATE CUST_ID ORD_TOTAL
100 12.JAN-2000 15 10000
101 09-MAR-2000 40 8000
102 09-MAR-2000 35 12500
103 15-MAR-2000 15 12000
104 25-JUN-2000 15 6000
105 18-JUL-2000 20 5000
106 18-JUL-2000 35 7000
107 21-JUL-2000 20 6500
108 04-AUG-2000 10 8000
CUSTOMERS
CUST_ID CUST_NAME CITY
10 Smith Los Angeles
15 Bob San Francisco
20 Martin Chicago
25 Mary New York
30 Rina Chicago
35 Smith New York
40 Linda New York
Evaluate the SQL statement:
SELECT *
FROM orders
WHERE cust_id = (SELECT cust_id
FROM customers
WHERE cust_name = 'Smith')
What is the result when the query is executed?
A.
ORD_ID ORD_DATE CUST_ID ORD_TOTAL
102 09-MAR-2000 35 12500
106 18-JUL-2000 35 7000
108 04-AUG-2000 10 8000
B.
ORD_ID ORD_DATE CUST_ID ORD_TOTAL
102 09-MAR-2000 35 12500
106 18-JUL-2000 35 7000
C.
ORD_ID ORD_DATE CUST_ID ORD_TOTAL
108 04-AUG-2000 10 8000
D. The query fails because the subquery returns more than one row.
E. The query fails because the outer query and the inner query are using different tables.
Answer: D
106 Evaluate this SQL statement:
SELECT e.EMPLOYEE_ID,e.LAST_NAME, e.DEPARTMENT_ID, d.DEPARTMENT_NAME
FROM EMP e.DEPARTMENT d
WHERE e.DEPARTMENT_ID = d.DEPARTMENT_ID;
In the statement, which capabilities of a SELECT statement are performed?
A. selection, projection, join
B. difference, projection, join
C. intersection, projection, join
D. difference, projection, product
Answer: A
107. You need to modify the STUDENTS table to add a primary key on the STUDENT_ID column. The table is currently empty. Which statement accomplishes this task?
A. ALTER TABLE students
ADD PRIMARY KEY student_id;
B. ALTER TABLE students
ADD CONSTRAINT PRIMARY KEY (student_id);
C.ALTER TABLE students
ADD CONSTRAINT stud_id_pk PRIMARY KEY stuent_id;
D. ALTER TABLE students
ADD CONSTRAINT stud_id_pk PRIMARY KEY (student_id);
E. ALTER TABLE students
MODIFY CONSTRAINT stud_id_pk PRIMARY KEY (student_id)
Answer: D
108. Which syntax turns an existing constraint on?
A. ALTER TABLE table_name
ENABLE constrain_name
B. ALTER TABLE table_name
STATUS = ENABLE CONSTRAINT constrain_name
C. ALTER TABLE table_name
ENABLE CONSTRAINT constraint_name
D. ALTER TABLE table_name
STATUS ENABLE CONSTRAINT constraint_name
E. ALTER TABLE table_name
TURN ON CONSTRAINT costrant_name
F. ALTER TABLE table_name
TURN ON CONSTRAINT constraint_name
Answer: C
109. Which two statements about views are true? (Choose two)
A. A view can be created as read only
B. A view can be created as a join on two or more tables.
C. A view cannot have an ORDER BY clause in the SELECT statement.
D. A view cannot be created with a GROUP BY clause in the SELECT statement.
E. A view must have aliases defined for the column names in the SELECT statement.
Answer: AB
110. The database adminsrator of your company created a public synonym called HR for the HUMAN_RESOURCES table of the GENERAL schema, because many users frequentlyuse this table.
As a user of the database, you created a table called HR in your chema. What happens when you execute this query?
SELECT *
FROM HR;
A. you obtain the results retrieved from the public synonym HR created by the database administrator
B. you obtain the results retrieved form the HR table that belongs to your schema.
C. you get an error message because you cannot retrieve from a table that has te same ame as a public synonym
D. you obtain the results retrieved from both the public synonym HR and the HR table that belongs to your shema, as a Cartesian product.
E. You obtain the results retrieved form both the public synonym HR and the HR table that belongs to your shema, as a FULL JOIN.
Answer: B
111. You need to give the MANAGER role the ability to select from insert into and modify existing rows in the STUDENT_GRADES table. Anyone given this MANAGER role should be able to pass those privileges on to others. Which statement accomplishes this.
A. GRANT select, insert, update
ON student_grades
TO manager;
B. GRANT select, insert, update
ON student_grades
TO ROLE manager
C. GRANT select, insert, modify
ON student_grades
TO ROLE manager
C. GRANT select, insert, modity
ON student_grades
TO manager
WITH GRANT OPTION;
D. GRANT select, insert, update
ON student_grades
TO manager
WITH GRANT OPTION
E. GRANT select, insert, update
ON student_grades
TO ROLE manager
WITH GRANT OPTION;
F. GRANT select, insert, modify
ON student_grades
TO ROLE manager
WITH GRANT OPTION
Answer: D
112. Click the Exhibit button and examine the data in the EMPLOYEES and DEPARTMENTS tables.
EMPLOYEES
LAST_NAME DEPARTMENT_ID SALARY
Get z 10 3000
Davis 20 1500
King 20 2200
Davis 30 5000
Kochhar 5000
DEPARTMENTS
DEPARTMENT_ID DEPARTMENT_NAME
10 Sales
20 Marketing
30 Accounts
40 Administration
You want to retrieve all employees whether or not they have matching departments in the departments table. Which query would you use?
A. SELECT last_name, department_name
FROM employees, departments(+);
B. SELECT last_name, department_name
FROM employees JOIN departments(+);
C. SELECT last_name, department_name
FROM employees(+) e JOIN departments d
ON (e.department_id = d.departement_id);
D. SELECT last_name, department_name
FROM emplouees e
RIGHT OUTER JOIN departments d ON (e.department_id = d.department_id);
E. SELECT last_name, department_name
FROM employees (+), departments
ON (e.departments_id = department_id);
F. SELECT last_name, departement_name
FROM employees e LEFT OUTER
JOIN departments d ON (e.department_id = d. department_id);
Answer: F
Posted By: http://educationexampoint.blogspot.in
Subscribe to:
Posts (Atom)




