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

GATE 2013

80 questions

MCQ 801-mark 38 · 2-mark 42

Questions 46–50 of 80

Q46Memory Management2 marksMCQ−0.67 if wrong
A computer uses 46-bit virtual address, 32-bit physical address, and a three-level paged page table organization. The page table base register stores the base address of the first-level table (T1) ,which occupies exactly one page. Each entry of T1 stores the base address of a page of the second-level table (T2 ) Each entry of T2 stores the base address of a page of the third-level table (T3 ) Each entry of T3 stores a page table entry (PTE). The PTE is 32 bits in size. The processor used in the computer has a 1 MB 16 way set associative virtually indexed physically tagged cache. The cache block size is 64 bytes.

What is the minimum number of page colours needed to guarantee that no two synonyms map to different sets in the processor cache of this computer?

Q47Memory Management2 marksMCQ−0.67 if wrong
A computer uses 46-bit virtual address, 32-bit physical address, and a three-level paged page table organization. The page table base register stores the base address of the first-level table (T1) ,which occupies exactly one page. Each entry of T1 stores the base address of a page of the second-level table (T2 ) Each entry of T2 stores the base address of a page of the third-level table (T3 ) Each entry of T3 stores a page table entry (PTE). The PTE is 32 bits in size. The processor used in the computer has a 1 MB 16 way set associative virtually indexed physically tagged cache. The cache block size is 64 bytes.

What is the size of a page in KB in this computer?

Q48SQL2 marksMCQ−0.67 if wrong
Consider the following relational schema.
Students(rollno: integer, sname: string)
Courses(courseno: integer, cname: string)
Registration(rollno: integer, courseno: integer, percent: real)
Which of the following queries are equivalent to this query in English?
“Find the distinct names of all students who score more than 90% in the course numbered 107”
(I)
SELECT DISTINCT S.sname
FROM Students as S, Registration as R
WHERE R.rollno=S.rollno AND R.courseno=107 AND R.percent >90
(II) Πsname(σcourseno=107 ∧ percent>90(Registration⋈Students))\Pi_{\text{sname}}\left(\sigma_{\text{courseno}=107\,\wedge\,\text{percent}>90}\left(\text{Registration}\bowtie\text{Students}\right)\right)
(III) {T∣∃S∈Students,∃R∈Registration (S.rollno=R.rollno∧\{T\mid \exists S\in \text{Students}, \exists R\in \text{Registration}\ (S.\text{rollno}=R.\text{rollno}\wedge
R.courseno=107∧R.percent>90∧T.sname=S.sname)}R.\text{courseno}=107\wedge R.\text{percent}>90\wedge T.\text{sname}=S.\text{sname})\}
(IV) {<SN>∣∃SR∃RP(<SR,SN>∈Students∧<SR,107,RP>∈Registration∧RP>90)}\{\lt S_N\gt \mid \exists S_R\exists R_P\left(\lt S_R,S_N\gt\in \text{Students}\wedge \lt S_R,107,R_P\gt\in \text{Registration}\wedge R_P>90\right)\}

Q49Normal Form2 marksMCQ−0.67 if wrong
Relation R has eight attributes ABCDEFGH. Fields of R contain only atomic values.
F={CH→G,A→BC,B→CFH,E→A,F→EG}F=\{CH\rightarrow G, A\rightarrow BC,B\rightarrow CFH,E\rightarrow A,F\rightarrow EG\} is a set of functional dependencies (FDs) so that F+F^{+} is exactly the set of FDs that hold for R.
The relation R is

Q50Normal Form2 marksMCQ−0.67 if wrong
Relation R has eight attributes ABCDEFGH. Fields of R contain only atomic values.
F={CH→G,A→BC,B→CFH,E→A,F→EG}F=\{CH\rightarrow G, A\rightarrow BC,B\rightarrow CFH,E\rightarrow A,F\rightarrow EG\} is a set of functional dependencies (FDs) so that F+F^{+} is exactly the set of FDs that hold for R.
How many candidate keys does the relation R have?