Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Tests  >  Test: Integrity Constraints - Computer Science Engineering (CSE) MCQ

Test: Integrity Constraints - Computer Science Engineering (CSE) MCQ


Test Description

10 Questions MCQ Test - Test: Integrity Constraints

Test: Integrity Constraints for Computer Science Engineering (CSE) 2024 is part of Computer Science Engineering (CSE) preparation. The Test: Integrity Constraints questions and answers have been prepared according to the Computer Science Engineering (CSE) exam syllabus.The Test: Integrity Constraints MCQs are made for Computer Science Engineering (CSE) 2024 Exam. Find important definitions, questions, notes, meanings, examples, exercises, MCQs and online tests for Test: Integrity Constraints below.
Solutions of Test: Integrity Constraints questions in English are available as part of our course for Computer Science Engineering (CSE) & Test: Integrity Constraints solutions in Hindi for Computer Science Engineering (CSE) course. Download more important topics, notes, lectures and mock test series for Computer Science Engineering (CSE) Exam by signing up for free. Attempt Test: Integrity Constraints | 10 questions in 30 minutes | Mock test for Computer Science Engineering (CSE) preparation | Free important questions MCQ to study for Computer Science Engineering (CSE) Exam | Download free PDF with solutions
Test: Integrity Constraints - Question 1

Which of the following can be addressed by enforcing a referential integrity constraint?

Detailed Solution for Test: Integrity Constraints - Question 1

The information can be referred to and obtained.

Test: Integrity Constraints - Question 2

Which of the following is the right syntax for the assertion?

1 Crore+ students have signed up on EduRev. Have you? Download the App
Test: Integrity Constraints - Question 3

Which of the following is used to delete the entries in the referenced table when the tuple is deleted in course table?

CREATE TABLE course
( . . .
FOREIGN KEY (dept name) REFERENCES department
. . . );

Detailed Solution for Test: Integrity Constraints - Question 3

The delete “cascades” to the course relation, deletes the tuple that refers to the department that was deleted.

Test: Integrity Constraints - Question 4

Inorder to ensure that the value of budget is non-negative which of the following should be used?

CREATE TABLE Manager(ID NUMERIC,Name VARCHAR(20),budget NUMERIC,Details VARCHAR(30));

Detailed Solution for Test: Integrity Constraints - Question 4

A common use of the check clause is to ensure that attribute values satisfy specified conditions, in effect creating a powerful type system.

Test: Integrity Constraints - Question 5

Which of the following is not an integrity constraint?

Detailed Solution for Test: Integrity Constraints - Question 5

Positive is a value and not a constraint.

Test: Integrity Constraints - Question 6

Data integrity constraints are used to:

Test: Integrity Constraints - Question 7

Domain constraints, functional dependency and referential integrity are special forms of _________

Detailed Solution for Test: Integrity Constraints - Question 7

An assertion is a predicate expressing a condition we wish the database to always satisfy.

Test: Integrity Constraints - Question 8

Foreign key is the one in which the ________ of one relation is referenced in another relation.

Detailed Solution for Test: Integrity Constraints - Question 8

The foreign-key declaration specifies that for each course tuple, the department name specified in the tuple must exist in the department relation.

Test: Integrity Constraints - Question 9

What will be the result of the query?

CREATE TABLE Employee(Emp_id NUMERIC NOT NULL, Name VARCHAR(20) , dept_name VARCHAR(20), Salary NUMERIC UNIQUE(Emp_id,Name));
INSERT INTO Employee VALUES(1002, Ross, CSE, 10000)
INSERT INTO Employee VALUES(1006,Ted,Finance, );
INSERT INTO Employee VALUES(1002,Rita,Sales,20000);

Detailed Solution for Test: Integrity Constraints - Question 9

The not null specification prohibits the insertion of a null value for the attribute.
The unique specification says that no two tuples in the relation can be equal on all the listed attributes.

Test: Integrity Constraints - Question 10

To include integrity constraint in an existing relation use :

Detailed Solution for Test: Integrity Constraints - Question 10

SYNTAX – alter table table-name add constraint, where constraint can be any constraint on the relation.

Information about Test: Integrity Constraints Page
In this test you can find the Exam questions for Test: Integrity Constraints solved & explained in the simplest way possible. Besides giving Questions and answers for Test: Integrity Constraints, EduRev gives you an ample number of Online tests for practice

Top Courses for Computer Science Engineering (CSE)

Download as PDF

Top Courses for Computer Science Engineering (CSE)