Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Tests  >  Test: Tuple Calculus - Computer Science Engineering (CSE) MCQ

Test: Tuple Calculus - Computer Science Engineering (CSE) MCQ


Test Description

5 Questions MCQ Test - Test: Tuple Calculus

Test: Tuple Calculus for Computer Science Engineering (CSE) 2024 is part of Computer Science Engineering (CSE) preparation. The Test: Tuple Calculus questions and answers have been prepared according to the Computer Science Engineering (CSE) exam syllabus.The Test: Tuple Calculus MCQs are made for Computer Science Engineering (CSE) 2024 Exam. Find important definitions, questions, notes, meanings, examples, exercises, MCQs and online tests for Test: Tuple Calculus below.
Solutions of Test: Tuple Calculus questions in English are available as part of our course for Computer Science Engineering (CSE) & Test: Tuple Calculus 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: Tuple Calculus | 5 questions in 15 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: Tuple Calculus - Question 1

A Tuple Relational Calculus query is expressed as ________.

Detailed Solution for Test: Tuple Calculus - Question 1

Concept:
Relational calculus is a non -procedural query language. It is of two types: tuple and domain relational calculus.
Tuple relational calculus is to select the tuples. It is represented by:
{T | P(T)}
P(T) is condition to fetch the tuple T.
Example:
{T.name| Author(T) AND T.book = ‘Operating system’}
It selects the tuple having author of book Operating system.

*Answer can only contain numeric values
Test: Tuple Calculus - Question 2

Consider a database that has the relation schema Random(A, B, C). An instance of the schema Random is as given below.

Tuple calculus expression for the above instance is given as  {t.B | t ∈ r ∧ (t[A] = 10  ∧ t[C] = 7)}
What is the sum of the elements in the output row of the given expression?


Detailed Solution for Test: Tuple Calculus - Question 2

A = 10 and C = 7

Output:

Therefore, sum = 10 + 7 + 13 + 2 = 32

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

Consider the expression t ∈ instructor ∧ ∃ s ∈ department (t [dept_name] = s [dept_name]) the variables t and s are _____ respectively. 

Detailed Solution for Test: Tuple Calculus - Question 3

Concept:
In tuple relational calculus, there exists two quantifiers, namely universal quantifier and existential quantifier. For these, there are two types of variables: free variable and bound variable.

  • A tuple variable t is bound if it is quantified, meaning that it appears in existential or universal quantifier clause, otherwise it is free. Formally, tuple variable is free or bound as :
  • An occurrence of a tuple variable in a formula F that is an atom is free in F.
  • An occurrence of a tuple variable t is free or bound in a formula made up of logical connectives – (F1 AND F2), (F1 OR F2), NOT(F1) and NOT(F2)- depending on whether it is free or bound in F1 or F2. In a formula of the form F = (F1 AND F2) or F = (F1 OR F2), a tuple variable may be free in F1 and bound in F2 or vice versa.
  • All free occurrences of a tuple variable t in F are bound in F’ of form F’ = (∃ t) F or F’ = (for all t)F

Here, given expression is :
t ϵ instructor ∧ ∃ s ∈ department (t [dept_name] = s [dept_name])
According to above rules:
t is the free variable and s is the bound variable.

Test: Tuple Calculus - Question 4

A row in a relational database table is also called.

Detailed Solution for Test: Tuple Calculus - Question 4

Tuple − A single row of a table, which contains a single record for that relation is called a tuple.

Test: Tuple Calculus - Question 5

Find the customers having account all branches located in Hyderabad. Use the above relations and find which of the following query is not giving the same.

Detailed Solution for Test: Tuple Calculus - Question 5

Query 1:
It is a Tuple relational calculus query first comparing all tuples with the city is equal to Hyd in deposit table and fetch the customer name when  city="Hyd".

Query 2:
It is a Domain relational calculus query first comparing city domain with city equal to Hyd in deposit table and fetch the customer name when city="Hyd".

Query 3:
It is a relational algebra query, In the first step fetch all names whose city hyd in the branch table. And the second step joining the deposit and branch and comparing the city equal to 'Hyd' with fetching city_name and branch_name. Finally, division step 2 with step1 will results in customers having account all branches located in Hyderabad.

Hence the correct answer is all the above are giving the same result.

Information about Test: Tuple Calculus Page
In this test you can find the Exam questions for Test: Tuple Calculus solved & explained in the simplest way possible. Besides giving Questions and answers for Test: Tuple Calculus, 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)