RPSC Programmer MCQ 2
RPSC Programmer MCQ 2
Quality Content & DAILY PYQs MCQs QUIZ के लिए Join करे
Telegram Channel
https://t.me/ComputerMap29
https://t.me/ComputerMap29
(A) a foreign key in a record always refers to another record which contains nulls
(B) a foreign key in a record always refers to another record which does not contain nulls
(D) a record can never contain a null value for a foreign key.
(2) Table and view names are unique in the database. To make this easier,
(A) Table names are only viewable by the person who created them.
(C) The DBA can make creating tables with certain strings in the name password protected.
(D) Table names have their creator’s user name prepended to the table name.✅
(E) A table created with the same name as another table is automatically renamed to make it unique.
(A) Transactions which are in the log but not yet committed are restarted where they left off.
(C) Committed transactions are reapplied in the same order as they appear in the log.
(D) Transactions which are reapplied are reapplied to the image as it was since the last checkpoint.
(E) Only once the rollforward has been completed can new transactions be performed.
(4) Which of the following is not used to support recovery and consistency in a database system?
(B) A dump
(D) Checkpointing
(E) A journal
(5) A database can be left in an inconsistent state due to
(A) Deadlock
Database.
(7) Relation C is a projection of relation A. Which of the following statements must be true in all
cases where relation C is different from relation A?
(8) Relation C is the join of relation A and relation B on condition p. Which of the following
statements must be true in all cases?
(C) Occurs in systems which use the “waterfall” transaction management system
(11) Which of the following best describes the relation between ISO SQL and ORACLE’s SQL*PLUS?
(B) all changes it has made are immediately available to other transactions
(C) the modifications of all transactions currently running are also aborted
(13) Which one of the following requires some hardware assistance to be implemented in an efficient
manner?
(B) Shadow-paging
(14) Which one of the following algorithms is best suited for long-lived transactions with relatively
few roll-backs?
(B) Shadow-paging
(B) First-fit
(16) Which one of the following problems can occur due to introducing locks in a concurrent
transaction scenario?
(C) Deadlock
(17) Which one of the following is not a method of implementing transactions at the physical level?
(B) Shadow-paging
(18) A timetable database is required for a University Department. Each taught event is part of a
module, each event will have exactly one member of staff associated and several individual
students. Each event takes place in a single weekly time slot. Each time slot has a day of the week
and a time of day associated.
Which of the following is the best approach to implementing the attends relation using a relational
database system?
(D) A table attends contains an event/student pair for every instance of a student attending an
event
Each of the weekly time slots is exactly one hour long, however we wish to represent the fact that
some events take more than one hour. Which of the following does not represent a possible solution.
(C) Each event has an attribute “start” which refers to Time-Slots and “duration” which gives the
length of the event in minutes
(D) Each event has an attribute “start” which refers to Time-Slots and “duration” which gives the
number of slots spanned
(E) Each event has two attributes “first” and “last” each of which refer to Time-Slots
(20) Most of the following are API calls defined in a particular database curson system. Select the
least plausible call.
(B) SQLConnect: Connects to a specific driver by data source name, User ID, and password
(E) SQLRowCount: Returns the number of rows affected by the insert update or delete request.
(21) Which of the following best describes the relationship between C and SQL?
(D) There exist mechanisms by which C statements can be embedded in SQL program
(22) Which of the following best describes the costs of the operations insert, delete and seek on a
table where records are stored in primary key order? Deleted records may be “flagged”.
(A) The internal level is concerned with the data as seen by individuals internal to the enterprise.
(B) The internal level is concerned with the how stored fields are represented and which indices
exist.
(C) The internal level is concerned with the layout of records and their locations within disk blocks.
(D) The internal level is concerned with the users’ view of the data .
(E) The internal level provides a conceptual view of the data structure.
(24) Which of the following is the most important advantage of an “enterprise-wide” relational
database management system compared against an ad-hoc arrangement?
(25) Which of the following is not usually part of the responsibilities of a database administrator?
(B) 02
(C) 03
(D) 04
(A) specialises in
(B) makes
(C) is about
(D) to
EX: From the specification, [Editors] take sole responsibilty for for editing one or more
publications..... Thus an editor can edit more than one publication (one to many), but each
publication has only a single 1 editor. Thus the relationship for ‘edits’ should be one to many, not
many to many.
(31) A publishing company produces academic books on various subjects. Books are written by
authors who specialise in one or more particular subject. The company employs a number of editors
who do not have particular specialisations but who take sole responsibilty for for editing one or more
publications. A publication covers a single subject area but may be written by one or more author –
the contribution of each author is recorded as a percentage for the purposes of calculating royalties.
The specification is to be changed so that an author can develop a publication covering more than
one subject area and that the schema must be able to store the percentage of the compents
concerned with each of the subjects. Select an appropriate change to the ER diagram:
EX: What we really want is a parameterised many-to-many relationship between subject and
publication. To draw this in the ER Diagram, we would have to create a new entity type between
subject and publication (lets call it “share”). There would be a one-to-many relationship between
publication and share, and a many-to-one between share and subject
Answer [E]
EX : To draw a presedence graph, you first draw three circles, one for each G transaction. Next, you go
through the schedule, drawing a line from Transaction A to Transaction B whenever,
Well done
Answer [B]
https://t.me/ComputerMap29
https://t.me/ComputerMap29
https://t.me/ComputerMap29