
Oracle/PLSQL

Quiz
•
Education
•
1st - 5th Grade
•
Hard

phe nguyen
FREE Resource
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is true about data types in PL/SQL?
A - Large Object or LOB data types are pointers to large objects that are stored separately from other data items, such as text, graphic images, video clips, and sound waveforms.
B - The composite data types have data items that have internal components that can be accessed individually. For example, collections and records.
C - References are pointers to other data items.
D - All of the above.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is wrong in the following code?
DECLARE c_id := 1; c_name customers.name%type; c_addr customers.address%type; BEGIN SELECT name, address INTO c_name, c_addr FROM customers WHERE id = c_id; END;
A - You cannot use the SELECT INTO statement of SQL to assign values to PL/SQL variables.
B - The SELECT INTO statement here is wrong. It should be: SELECT c_name, c_address INTO name, addr
C - The WHERE statement is wrong. It should be: WHERE id := c_id;
D - The variable c_id should be declared as a type-compatible variable as −
c_id customers.id%type := 1;
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is true about the following code snippet?
DECLARE a number(3) := 100;
BEGIN
IF (a = 50 ) THEN dbms_output.put_line('Value of a is 10' );
ELSEIF ( a = 75 ) THEN dbms_output.put_line('Value of a is 20' );
ELSE dbms_output.put_line('None of the values is matching');
END IF;
dbms_output.put_line('Exact value of a is: '|| a );
END;
A - It has syntax error.
B - It will print 'None of the values is matching'.
C - It will print
None of the values is matching
Exact value of a is: 100
D - None of the above.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is true about the parameter modes in PL/SQL Subprograms?
A - An IN parameter lets you pass a value to the subprogram. It is a read-only parameter.
B - An OUT parameter returns a value to the calling program.
C - An IN OUT parameter passes an initial value to a subprogram and returns an updated value to the caller.
D - All of the above.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct syntax for creating an explicit cursor?
A - CURSOR cursor_name IS select_statement;
B - CREATE CURSOR cursor_name IS select_statement;
C - CREATE CURSOR cursor_name AS select_statement;
D - CURSOR cursor_name AS select_statement;
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not true about PL/SQL package specifications?
A - The specification is the interface to the package.
B - It declares the types, variables, constants, exceptions, cursors, and subprograms that can be referenced from outside the package.
C - It contains all information about the content of the package and the code for the subprograms.
D - None of the above.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following code is the correct syntax for creating an index-by table named salary that will store integer values along with names and the name field will be the key?
A - TYPE salary IS TABLE OF NUMBER INDEX BY VARCHAR2(20);
B - CREATE TABLE salary OF NUMBER INDEX BY VARCHAR2(20);
C - TYPE salary IS INDEXED TABLE OF NUMBER INDEX BY VARCHAR2(20);
D - None of the above.
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is true about member methods?
A - Member methods are used for manipulating the attributes of the object.
B - Declaration of a member method is provided while declaring the object type.
C - The object body defines the code for the member methods.
D - All of the above.
9.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be printed by the following PL/SQL block?
A - 2
B - 5
C - 0
D - Won’t print anything
Similar Resources on Wayground
10 questions
juego de teclas en Word

Quiz
•
4th - 6th Grade
14 questions
STS PABP kelas 5 kurikulum merdeka

Quiz
•
5th Grade
13 questions
Word processing - selection

Quiz
•
4th - 12th Grade
10 questions
Teclado y ratón, 1ro Primaria

Quiz
•
1st Grade
10 questions
Kuis Simposium HDSS 2023

Quiz
•
1st Grade
10 questions
Kuiz ICT - Asas Komputer

Quiz
•
1st Grade - Professio...
10 questions
The schwa sound

Quiz
•
3rd Grade - University
11 questions
QUIZ PMM

Quiz
•
3rd Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Education
6 questions
Key Shifts and Strategies Poll

Quiz
•
1st - 5th Grade
10 questions
TCI Unit 1- Lesson 3

Quiz
•
5th Grade
20 questions
Fragments and Run-Ons

Quiz
•
4th Grade
10 questions
The Year We Learned to Fly

Quiz
•
1st - 5th Grade
16 questions
Gingerbread for Liberty

Quiz
•
2nd Grade
24 questions
Sadlier Unit 3 Vocabulary Orange

Quiz
•
4th Grade
21 questions
Author's Purpose

Quiz
•
5th Grade
15 questions
Reducing Fractions

Quiz
•
5th Grade