Oracle V5 Questions
Oracle V5 Questions
ផ្ក៖
……………………………………………
មុខវិជ្ជា ៖……………………………………….. Font : Khmer OS Siemreap
ឆ្នាំ៖……………………………………………..
វេន៖……………………….…………………… ចំលើយដែរត្រឹមត្រូវសូមដាក់ពណ៌
ឈ្មោះសាស្តាចារ្យ៖
………………………………
Question type
View or print
12 What type of device is a digital camera? Input data Store data Scan data
data
View or print
23 CPU Stand for Input data Store data Scan data
data
24 CPU ភ្ជា ប់ទៅ motherboard តាមរយៈ Keyboard Optical Drive HDD Printer
Supercompu Personal
26 RAM ភ្ជា ប់ទៅកាន់ Motherboard តាមរយៈ PLC Automobile
ter Computer
View or print
34 You can change Font in Input data Store data Scan data
data
View or print
42 Ctrl + B Input data Store data Scan data
data
View or print
47 Ctrl + A Input data Store data Scan data
data
Supercompu Personal
55 Microsoft Office word is PLC Automobile
ter Computer
What is the smallest and largest font size
output/input digital signaled
56 available in Font Size tool on formatting output devices
devices devices devices
toolbar?
A character that is raised and smaller View or print
57 Input data Store data Scan data
above the baseline is known as data
MS-Word automatically moves the text to
58 the next line when it reaches the right Keyboard Optical Drive HDD Printer
edge of the screen and is called?
output/input digital signaled
59 In MS-Word, for what does ruler help? output devices
devices devices devices
requirements
Computers used primarily by large View or print
72 Input data Store data Scan data
organizations for critical applications data
A computer with a high level of
73 performance as compared to a general- Keyboard Optical Drive HDD Printer
purpose computer.
output/input digital signaled
74 ROM Stand for output devices
devices devices devices
Supercompu Personal
75 Operating System PLC Automobile
ter Computer
View or print
82 Header and Footer Input data Store data Scan data
data
Most computers use Windows to control
83 their basic functions and to run other Keyboard Optical Drive HDD Printer
programs. Windows is called a what?
Which would you choose to save a output/input digital signaled
84 output devices
document with a new name? devices devices devices
Which would you choose to move Supercompu Personal
85 PLC Automobile
selected text from one place to another? ter Computer
1
What is the full form of SQL?
2 Which is the subset of SQL commands used to manipulate Oracle Database structures,
including tables?
3 In SQL, which command is used to SELECT only one copy of each set of duplicable
rows
4
A command that lets you change one or more fields in a record is
5
SELECT SUBSTR(‘123456789’, INSTR(‘abcabcabc’, ‘b’), 4) FROM DUAL;
6
Find the temperature in increasing order of all cities
7
Which of the SQL statements is correct?
8
Which of the following is illegal?
9
Identify the two select statement that execute successfully
10
Identify the two select statements that execute successfully
11 Which 3 of the following are valid operator’s for the where clause?
12
which of the following statements are true about single-row functions?
14
Which Operator are not correct about Arithmetic Expressions?
15
What statement below is wrong for Data definition language (DDL)
16
COMMIT,ROLLBACK ,SAVEPOINT is what type of SQL Language?
17
Chose correct answer below
18
If you join a table to itself , what kind of join are you using?
19
what does Cross Join is equal to?
20 Table A has 10 Rows, Table B has 20 rows, so Table A cross join table B , How many
rows it show?
21
Cartesian product is formed when :
22
How many type of Outer join in oracle
23 When you join two table together , the error show that the join column is Ambiguous ,
what does it mean?
24
What is True About NULL in oracle ?
25 Chose the correct answer for shorting data in the order from Small to BIG (A-Z)
26
Chose the correct answer below
27
Chose True Answer about Column Alias
28
Concatenation Operator
29
How to join 3 columns together
31
Chose the correct statement below
34 Which one is the graphic tool use to connect to oracle database to performance any
code execution
Which data manipulation command is used to combines the records from one or more
36
tables?
37
Which of the following is not a valid SQL type?
39
How a SQL query eliminates duplicates rows ?
40 The SQL used by front-end application programs to request data from the DBMS is
called
41
The command used to delete a particular column in a relation is
42
The database language that allows us to access data in a database is called :
44
The COUNT function in SQL returns the number of
45
Which data type can store unstructured data in a column?
Which function is used to divides one numeric expression by another and get the
46
remainder ?
47
What is the full form of DDL ?
48
Which statement in SQL allows us to change the definition of a table is?
49
Between operator could be used with
50
Chose correct answer about IN operator
51
In LIKE Operator
52
Show employee that do not have manager_ID
53
Chose the correct statement below
54
Chose correct statement bellow
55
56
We have row data from 1 to 10, when you used Fetch first 5 rows only it return
57
Where can we use Substitution Variable in select statement
60
What is the result of Round (45.926,2)
61
What is the result of Trunc(45.926,2)
62
What is the result of MOD(1600,300)
63
Chose the correct definition of TRUNC
65
Chose the correct definition of MOD
What is the result of below statement
Select round(45.923,-1) from dual;
66
What is the result of below statement
Select TRUNC(45.923,-1) from dual;
67
70
What does Sysdate function used for?
71
what is the correct statement used to return current date time from your database
73
What is the correct syntax to add hour in your date
75
(Sysdate-hire_date)/7
76
What function return last day of the month
77
What function return months between two date
78
What function add month to date (No Correct Answer)
79
Assum Today is Date=05-Aug-2020, what is the result of : Round(Date,’MONTH’)
80
What does the abbreviation DBMS stand for?
The advantages of Standard Query Language (SQL) include which of the
81
following in relation to GIS databases?
82
Which of the following are characteristics of an RDBMS?
83
Select the essential characteristic of Oracle Cloud Services
84
You can add a row using SQL in a database with which of the following?
85
The command to remove rows from a table ‘CUSTOMER’ is:
86
The SQL WHERE clause:
87
Which of the following is the original purpose of SQL?
88
The wildcard in a WHERE clause is useful when?
89
A view is which of the following?
90
The command to eliminate a table from a database is:
91
The SQL keyword(s) ________ is used with wildcards.
92 Which of the following is the correct order of keywords for SQL SELECT
statements?
93
The result of a SQL SELECT statement is a(n) ________
94
The HAVING clause does which of the following?
95 To remove duplicate rows from the results of an SQL SELECT statement, the
________ qualifier specified must be included.
96
The benefits of a standard relational language include which of the following?
97
Which of the following do you need to consider when you make a table in SQL?
98
SQL query and modification commands make up a(n) ________ .
99
Which one of the following sorts rows in SQL?
100
To sort the results of a query use:
101
SQL can be used to:
102
The SQL statement that queries or reads data from a table is ________ .
104
Which function use to convert null value to actual value
105 Which function use to Compare two expressions and returns null if they are
equal
106
Which function use to first non-null expression
108
What is Rapid elasticity?
109
Which four of the following are not valid operator’s for the where clause?
110
why do we need to qualify the name of the column with the table name?
111
What is the result of this function Lower(‘SQL Course’)
112
What is the result of this function Upper (‘Hello Norton!’)
113
What is the result of this function InitCap (‘Hello all students’)
114
Which of below function is used to connect two string together
115
Which of below function is used to count number of character in string
116
What is the result of this function SUBSTR(‘HelloWorld’,2,6)?
117
Which Function is used to find the numberic position of a named character
118
What is the result of this function : Trim (‘H’ From ‘HelloWord’)
119
What is the result of this function Replace (‘Jack and Jue’,’J’,’Bl’)
120
What is the result of this function RPAD(‘Hello’, 10,’*’)
121
The SQL WHERE clause:
122
Which of the following are SQL Agregate functions?
123
Which of the following is the original purpose of SQL?
124
The wildcard in a WHERE clause is useful when?
125
A view is which of the following?
126
The SQL keyword(s) ________ is used with wildcards.
127 Which of the following is the correct order of keywords for SQL SELECT statements?
128
A subquery in an SQL SELECT statement is enclosed in:
129
Which of the following are the five built-in functions provided by SQL?
130 In an SQL SELECT statement querying a single table, according to the SQL-92
standard the asterisk (*) means that:
131
The HAVING clause does which of the following?
132
The SQL -92 wildcards are ____ and ____ .
To remove duplicate rows from the results of an SQL SELECT statement, the ________
133
qualifier specified must be included.
When three or more AND and OR conditions are combined, it is easier to use the SQL
134
keyword(s):
Find the SQL statement below that is equal to the following: SELECT NAME FROM
135
CUSTOMER WHERE STATE = 'VA';
136
Which one of the following sorts rows in SQL?
137
To define what columns should be displayed in an SQL SELECT statement:
138
SQL can be used to:
139 The SQL statement that queries or reads data from a table is ________ .
140
The SQL keyword BETWEEN is used:
141
-________ was adopted as a national standard by ANSI in 1992.
142
SQL is:
143
Chose the correct Nested Group Function below
144
Which Function is used for IF-Then-Else Logic?
145
what year oracle 12c release?
146
In which language Oracle has been developed?
147 What is the correct function use for finding the average value from a specific giving
column name
148
where You could place Group by Clause?
149
Full outer join is the combination of what type of join?
150
In what Year that Dr. E. F Code proposed the relational model for Database system
151
First Relation Database Model exist of the below points
152
What is the benefit of ER Model
153
Chose the correct Key component of ER Model
154 The following SQL is which type of join : Select A.CustomerID, B.CustomerID From
Customer A , OrderDetail B where A.customerID=B.CustomerID
155
How many time Subquery can be nested?
156
What type of join is needed when you wish to return rows that do have matching values
157
How do we represent comments in Oracle?
158
With SQL, how do you select all the columns from a table named “Persons” ?
159
Which SQL Statement is used to update data in a database?
160
Which SQL statement is used to extract data from a database?
161 With SQL, how do you select a column named “FirstName” from a table named
“Persons”
162
Which SQL Statement is used to insert new data in a database?
163 The OR Operator displays a record if ANY conditions listed are true. The AND operator
display a record if ALL of the conditions listed are true
Which of the following query would display names and percentage of marks of all
164
students sorted by honours subject, and then order by percentage of marks?
Which query will display the names and honours subjects of all students and if a
166
student has not yet been given a honours subject yet, then it should display ‘No
Honours Yet’.
167
Which of the following is not true about the database objects?
168
Which of the following is not true about the ON clause?
169
Which of the following is not a developer’s privilege?
170
Which of the following is true about Cartesian Products?
172
Consider the following schema −STUDENTS(student_code, first_name, last_name,
email,
phone_no, date_of_birth, honours_subject, percentage_of_marks);
Which of the following query will correctly display name of all the students who got more
marks than the student ‘0215/15’?
173
Which of the following is not true about the COALESCE function?
174
Which of the following is not a group function?
175
The AVG SQL Function returns the
Can the select clause list have a computed value like in the example below? Select
176
customerName, unitPrice * numberofUnits From Sales
177
Which of the following SQL Statement deletes all rows in table called SaleData?
178 Which of the following is True about CASE SQL Statement?
179
The table columns are also known as
181
Select the primary Tools in to select data from Oracle database
182
What is Oracle?
183
Chose the correct SQL Statement below
184
With Date and Time data Type Which two operator you could not use?
185
In Oracle 12*Salary+100
186
Null Value is
189
How to rename column heading which contain space or special character
190 What happen when you concatenate a null value with a character string?
192
Where can you use column alias ?
193
Chose the symbol that represent not equal in oracle
194
How many type of services Oracle Provide ?
195
what is the wildcard we use to denote one or more characters
196
To search for % and _ symbol what do we need to use?
197
Which statement below exclude value from the list
198
Which of the following is not a Oracle Database feature?
200
Chose the correct statement to declare variable in SQL statement
201
Where can a Substitution Variable can be used ?
202 Which function is best use to determine whether a value is odd or even
203
Which tables are exist in HR Schema?
204
which tool do you use to shutdown your DB?
205
Implicit data type conversion
Char to Number conversion success only if the character string represent a valid
206
number, Which one is the correct answer
207
Which below format define Minute formatting
208
What does SPTH mean?
209
Which Function below is complies with the ANSI SQL
210
Max and Min Group function can not used with which data type?
211
what dose Count(expr) return?
212
what condition does Natural Join joins two table base on ?
213
which group function that can accept string as its argument
214
What is SQL * Plus
215
what can you do with date in oracle
216
How can you add 5 hours to your current date
217
date-date
218
(sysdate-hire_date)/7
219
Which data Type that Round function can use with?
220
which one is the correct answer for add months to a date
221
Which one is the correct answer for subtract 3 months from currect date
222
Assume SysDate='27-Jun-2021' , Trunc(SysDate) Will return which date?
223
If you want to reuse the value from oracle variable , How do you declare it?
224
Which Character set support Khmer Unicode
225
What is the sample schema in oracle Database?
226
Last_date Function
227
which function that you could use to find Odd or Event Number
228
what is the result of this TO_Char(Sysdate,'Dy-DD-Mon-YYYY')
229
How to fomat Mili Second in Oracle
230
what is the result of this code To_Char(hire_date,'fmDD Month YYYY')
231
What is NVL2 Function?
232
NVL(Commission_pct,0)
233
which group function that can not accept string as its argument
234
How many column can we group by in select statement?
235
How many characters can you us as table aliases
236
what is true about sub query
237
where can use place subquery?
238
which operator that can not use with Single row subqueries
If you would like to find the department that do not have any employee what is
239
the best Operator you should use?
241
Data Manipulation
Data Definition Language(DDL) Language(DML) DDL and DML
SELECT SYSDATE –
SELECT SYSDATE – SYSDATE SELECT SYSDATE – (SYSDATE + 2) FROM
FROM DUAL; (SYSDATE – 2) FROM DUAL; DUAL;
Select first_name , job_id , salary
*12 as Yearly Sal from employees Select first_name , job_id , Select first_name , job_id ,
salary *12 “Yearly Sal” from salary *12 as “Yearly Sal”
employees from employees
Select * from employees where Select * from employees where Select * from employees
last_name=’whalen’ hire_date =17-Nov-2020 where last_name=whalen
>= != In Between
+ - >
10 200 20
1 2 3
A- || B- ||| C- &&
Col1 & Col2 & Col3 Col2 and Col2 and Col3 Col1 | Col2 | Col3
is a character, a number or date Date and character literal values Each character string is
that is included in the select must be enclosed within single output once for each row
statement quotation marks returned
Join Operator
Quote Operator Concate Operator
select the table in the
connections tree and use the
columns tab to view the table
display the structure of a table structure Show table comment
Salary between 100 and 200 Salary between 100 to 200 Salary between 100-200
BETWEEN ANY IN
By Using distinct
By using remove duplicate It can not remove duplicate row
Select * from employees where Select * from employees where Select * from employees
manager_id=null manager_id=Blank where manager_id=””
select ID,name, Salary from Tab1 select ID,name, Salary from select ID,name, Salary from
order by 2 Tab1 order by ID Tab1 order by ID,Salary,4
if you want to reuse the variable if you do not want to reuse the if you want to store value
value without prompting the user variable value with prompting
for permanace
each time the user each time
45.93 45 45.92
45.93 45 45.92
100 200 5
Error 40 50
DD-MM-YY
DD-Month-YYYY DD-MON-YY
Return current date and time from Return date time from your
server Return system number application
Select getdate() from dual Select Today() from dual -Select Now() from dual
you can multiple a number
you can not subtract a number
with a date
you can not add number to a date with date
limits the column data that are . limits the row data are
returned. returned. Both A and B are correct.
To specify the syntax and To specify the syntax and
semantics of SQL data definition semantics of SQL To define the data
language manipulation language structures
An exact match is not An exact match is
An exact match is necessary in a possible in a SELECT necessary in a CREATE
SELECT statement statement statement.
A virtual table that cannot be A base table that can be
A virtual table that can be accessed via SQL accessed via SQL
accessed via SQL commands commands commands
DELETE TABLE
REMOVE TABLE CUSTOMER DROP TABLE CUSTOMER CUSTOMER
create database structures only. query database data only. modify database data only.
"7-January-2020"
"07-Jan-2020" 7-Jan-20
A) >= B) != C) Is like
To avoid ambiguilty Increase speed of parsing Make your query run faster
A- concat B- Join C- ||
An exact match is necessary in a An exact match is not possible An exact match is necessary
SELECT statement. in a SELECT statement. in a CREATE statement.
A virtual table that can be accessed A virtual table that cannot be A base table that can be
via SQL commands accessed via SQL commands accessed via SQL commands
COUNT, SUM, AVG, MAX, MIN SUM, AVG, MIN, MAX, MULT SUM, AVG, MULT, DIV, MIN
all columns of the table are to be all records with even partial
returned. all records meeting the full criteria met are to be
criteria are to be returned. returned.
Acts like a WHERE clause but is Acts like a WHERE clause but
Acts like a WHERE clause but is used for rows rather than is used for columns rather
used for groups rather than rows. columns. than groups.
SELECT NAME IN
SELECT NAME IN CUSTOMER SELECT NAME IN CUSTOMER CUSTOMER WHERE STATE
WHERE STATE IN ('VA'); WHERE STATE = 'VA'; = 'V';
create database structures only. query database data only. modify database data only.
NULLIF
Decode IF Conditon
C#
C Language Java
After Order by
Before Where After Where
Inner join
Left outer join Right outer Join
1980 1990 1960
" "
/*—— */ Two dashes(–)
Extract FirstName from Persons Select FirstName From Persons Select Persons FirstName
1 FALSE
11 10 POINT
select first_name, last name, select first_name, last name, select first_name, last name,
nvl(honours_subject, ‘No Honours nvl2(honours_subject, ‘No honours_subject, from
Yet’) from students; Honours Yet’) from students; students;
Average in the values in group maximum value from a column the sum of values in a column
Command line
SQL Developer SQL Management Studio SSIS
Plus
Division Multiple
Null word
Zero Space
Implies sharing and a level of
Ability to quickly scale up or Access through a browser
abstraction between consumers
down as needed on any networked device
and service
in Having In where
In select
<> != ^=
2
3 4
% - *
A- “ “ A- ‘ ‘ A- ESCAPE Symbol
Not In
Is not null Not Exist
Var X &X $X
in order by
In select in where
Departments
Employees Locations
SQL Developer
Oracle Enterprise Manager SQL * Plus
!234
123 ABC
MI MM Minute
Varchar
LOB or LONG Data Type Date
is a command dos for execute sql is a graphic tools for execute sql is a web controller
statement statement
devided a number with a
Add number to a date Subtract number to a date
date
Finance SA HR
20 25 30
Sub query can be call inner sub query executes after sub query execute before
query main query the main query
= > IN
Not in In Exists
456789
Like null
can be nested
SELECT
TCL
Cartesian products
Inner Join
30
Order by Desc
D- &
Function Operator
show all data in table
DBCA
PRODUCT
CHARACTER
ALL
It is auto eliminate the duplicate
rows
SDL
DELETE COLUMN
None Of Above
Columns
VARCHAR
REMAINDER
SELECT
All Above
D- IN 1,2,3
Row 5-10
45
45
45.92
DD-MMM-YYYY
number of year
number of year
Months_between
Months_between
30-Aug-20
MAKE
IN and NOT IN
SELECT,WHERE,FROM
table
SINGLE
XML
GROUP BY
None of the above is correct.
7/7/2020
COALECE
COALECE
COALECE
d)Mod(100,10)-->1
D) <>
D- SQL COURSE
D- hello norton!
D- Connect
D- Length
D- orld
D- InStr
Wrong code
**Hello***
Join
IN and NOT IN
SELECT,WHERE,FROM
brackets -- [...].
SINGLE
Both IN and NOT IN.
GROUP BY
DBase
a DBMS.
None of above
IF_NULL
2020
VB
sum(salary)/count(Salary)
in Select
seft join
1970
All above
All Above
Table
Cartesian Join
All Above
%%
Save
Select
Add New
TUTORIALS
select first_name, last name,
nullif(honours_subject, ‘No Honours
Yet’) from students;
CREATE SEQUENCE
MIN
D-Measure
Java JDK
Minus
All above
Empty
it require ()
in Group by
All above
5
X
A-Like and %
Not Like
Both a & c
Variable X
all
ODD_EVEN
Manual Convert
123A
Minute
IF
Number
All
sysdate+5/24
Error
Date
Months_Add
Add_Months(-3,Sysdate)
2021
Decalre Var
AL32UTF8
Non of them
Trunc
Mon-12-Jul-2021
SSSSSS
09-July-2021
Error
SUM
35
in Having
<>
Not Exists