GATE 2003 Computer Science and Information Technology (CS) Questions with Solutions

GATE 2003

107 questions

MCQ 1071-mark 107

Questions 96–100 of 107

Q96Memory Management1 markMCQ−0.33 if wrong
A processor uses 2-level page tables for virtual to physical address translation. Page tables for both levels are stored in the main memory. Virtual and physical addresses are both 32 bits wide. The memory is byte addressable. For virtual to physical address translation, the 10 most significant bits of the virtual address are used as index into the first level page table while the next 10 bits are used as index into the second level page table. The 12 least significant bits of the virtual address are used as offset within the page. Assume that the page table entries in both levels of page tables are 4 bytes wide. Further, the processor has a translation look-aside buffer (TLB), with a hit rate of 96%. The TLB caches recently used virtual page numbers and the corresponding physical page numbers. The processor also has a physically addressed cache with a hit rate of 90%. Main memory access time is 10 ns, cache access time is 1 ns, and TLB access time is also 1 ns.

Assuming that no page faults occur, the average time taken to access a virtual address is approximately (to the nearest 0.5 ns)

Q97Memory Management1 markMCQ−0.33 if wrong
In a system with 32 bit virtual addresses and 1 KB page size, use of one-level page tables for virtual to physical address translation is not practical because of

Q98SQL1 markMCQ−0.33 if wrong
Consider the set of relations shown below and the SQL query that follow:

Students:(Roll_number,Name,Date_of_birth)
Courses:(Course_number,Course_name,Instructor)
Grades:(Roll_number,Course_number,Grade)
select distrinct Name
from Students, Courses, Grades
Where Students.Roll_number=Grades.Toll_number
and Courses.Instructor= 'Korth'
and Courses.Course_number=Grades.Course_number
and Grades.grade= 'A' 
Which of the following sets is computed by the above query?

Q99SQL1 markMCQ−0.33 if wrong
Consider the following SQL query
select distinct a1,a2,…,ana_1, a_2, \ldots, a_n
from r1,r2,…,rmr_1, r_2, \ldots, r_m
where P
For an arbitrary predicate P, this query is equivalent to which of the following relational algebra expressions?
A. Πa1,a2,…an σp (r1×r2×⋯×rm)\Pi_{a_1,a_2,\ldots a_n}\,\sigma_p\,(r_1 \times r_2 \times \cdots \times r_m)
B. Πa1,a2,…an σp (r1⋈r2⋈⋯⋈rm)\Pi_{a_1,a_2,\ldots a_n}\,\sigma_p\,(r_1 \bowtie r_2 \bowtie \cdots \bowtie r_m)
C. Πa1,a2,…an σp (r1∪r2∪⋯∪rm)\Pi_{a_1,a_2,\ldots a_n}\,\sigma_p\,(r_1 \cup r_2 \cup \cdots \cup r_m)
D. Πa1,a2,…an σp (r1∩r2∩⋯∩rm)\Pi_{a_1,a_2,\ldots a_n}\,\sigma_p\,(r_1 \cap r_2 \cap \cdots \cap r_m)

Q100Normal Form1 markMCQ−0.33 if wrong
Consider the following functional dependencies in a database:

Date_of_Birth →AgeAge →EligibilityName →Roll_numberRoll_number →NameCourse_number →Course_nameCourse_number →Instructor(Roll_number, Course_number) →Grade\begin{array}{|l|l|}\hline \text{Date\_of\_Birth } \to \text{Age} & \text{Age } \to \text{Eligibility} \\ \hline \text{Name } \to \text{Roll\_number} & \text{Roll\_number }\to \text{Name} \\ \hline \text{Course\_number }\to \text{Course\_name} & \text{Course\_number } \to\text{Instructor} \\ \hline \text{(Roll\_number, Course\_number) }\to\text{Grade} & \text{} \\ \hline \end{array}

The relation (Roll_number,Name,Date_of_Birth,Age) is