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

GATE 2005

203 questions

MCQ 2031-mark 203

Questions 156–160 of 203

Q156Memory Management1 markMCQ−0.33 if wrong
Increasing the RAM of a computer typically improves performance because:

Q157File Systems1 markMCQ−0.33 if wrong
A student wishes to create symbolic links in a computer system running Unix. Three text files named "file1", "file2" and "file3" exist in her current working directory, and the student has read and write permissions for all three files. Assume that file1 contains information about her hobbies, file2 contains information about her friends and file3 contains information about her courses. The student executes the following sequence of commands from her current working directory.
 ln -s file1 file2
ln -s file2 file3

Which of the following types of information would be lost from her file system?
I.Hobbies
II.Friends
III.Courses

Q158ER Model1 markMCQ−0.33 if wrong
Consider the entities 'hotel room', and 'person' with a many to many relationship 'lodging' as shown below:
Hotel Room Lodging Person
If we wish to store information about the rent payment to be made by person (s) occupying different hotel rooms, then this information should appear as an attribute of

Q159ER Model1 markMCQ−0.33 if wrong
Let E1 and E2 be two entities in an E/R diagram with simple single-valued attributes. R1 and R2 are two relationships between E1 and E2, where R1 is one-to-many and R2 is many-to-many. R1 and R2 do not have any attributes of their own. What is the minimum number of tables required to represent this situation in the relational model?

Q160Relational Schema1 markMCQ−0.33 if wrong
Consider a relation scheme R=(A,B,C,D,E,H) on which the following functional dependencies hold: {A→\rightarrowB, BC→\rightarrowD, E→\rightarrowC, D→\rightarrowA}. What are the candidate keys of R?