Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 2 out of 9 pages
Exam (elaborations)

MIT 412 QUIZ with correct answers

Document preview thumbnail
Preview 2 out of 9 pages

Match the following definition to the terms or concepts: A subprogram that returns a value. Answer 1 It is a subprogram that does not return a value to the caller. Answer 2 It is automatically fired in response to a specified event. Answer 3 Feedback Your answer is correct. Correct Marks for this submission: 3.00/3.00. Question 2 Correct Mark 1.00 out of 1.00 Flag question Question text CREATE OR REPLACE PROCEDURE dept_salary (v_bonus IN BOOLEAN, v_raise IN BOOLEAN, v_issue_check IN OUT BOOLEAN) IS BEGIN v_issue_check := v_bonus OR v_raise; END; If v_bonus = TRUE and v_raise = NULL, which is assigned to v_raise_check? Select one: A. NONE B. FALSE C. NULL D. TRUE

Content preview

Match the following definition to the terms or concepts:

Function
A subprogram that returns a value. Answer 1


Procedure
It is a subprogram that does not return a value to the caller. Answer 2

Trigger
It is automatically fired in response to a specified event. Answer 3


Feedback

Your answer is correct.
Correct
Marks for this submission: 3.00/3.00.
Question 2
Correct
Mark 1.00 out of 1.00




Flag question

Question text

CREATE OR REPLACE PROCEDURE dept_salary
(v_bonus IN BOOLEAN, v_raise IN BOOLEAN, v_issue_check IN OUT BOOLEAN) IS
BEGIN
v_issue_check := v_bonus OR v_raise;
END;
If v_bonus = TRUE and v_raise = NULL, which is assigned to v_raise_check?
Select one:
A. NONE
B. FALSE
C. NULL

D. TRUE


Feedback




This study source was downloaded by 100000899606070 from CourseHero.com on 02-23-2026 22:21:43 GMT -06:00


https://www.coursehero.com/file/87110538/QUIZdocx/

, Your answer is correct.
Correct
Marks for this submission: 1.00/1.00.
Question 3
Correct
Mark 0.67 out of 1.00




Flag question

Question text

If v_energy_line equals TRUE, and v_proper_ratio equals NULL, which value is assigned to ret_val?
CREATE OR REPLACE FUNCTION found_isotope (v_energy_line IN BOOLEAN, v_proper_ratio IN
BOOLEAN) RETURN NUMBER IS ret_val NUMBER;
BEGIN
IF(v_energy_line AND v_proper_ratio) THEN ret_val:=1;
ELSIF NOT (v_energy_line ANDv_proper_ratio) THEN ret_val:=2;
ELSIF (v_energy_line AND v_proper_ratio) IS NULL THENret_val:= -1;
END IF;
RETURN ret_val;
END;
Select one:
A. 2
B. 1
C. NULL

D. -1


Feedback

Your answer is correct.
Correct
Marks for this submission: 1.00/1.00. Accounting for previous tries, this gives 0.67/1.00.
Question 4
Correct
Mark 1.00 out of 1.00




This study source was downloaded by 100000899606070 from CourseHero.com on 02-23-2026 22:21:43 GMT -06:00


https://www.coursehero.com/file/87110538/QUIZdocx/

Document information

Uploaded on
February 24, 2026
Number of pages
9
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$8.49

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Abbyy01
3.5
(13)
Sold
98
Followers
33
Items
1337
Last sold
1 day ago


Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions