0% found this document useful (0 votes)
135 views

Data P Question2

The document outlines an academic week that includes topics on the relational model, file organization, the internet, and an examination. It provides a list of topics to be covered during weeks 1-3 including the relational model, midterm break, file organization, and the internet. It also includes a list of 53 multiple choice questions related to relational databases, the relational model, SQL, keys, and other database concepts.

Uploaded by

Samson
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
135 views

Data P Question2

The document outlines an academic week that includes topics on the relational model, file organization, the internet, and an examination. It provides a list of topics to be covered during weeks 1-3 including the relational model, midterm break, file organization, and the internet. It also includes a list of 53 multiple choice questions related to relational databases, the relational model, SQL, keys, and other database concepts.

Uploaded by

Samson
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 15

Second Term

1. Revision
2. Relational Model 1
3. Relational Model 2
4. Relational Model 3
5. File Organization 1
6. Mid Term Break
7. File Organization 2
8. Internet 1
9. Internet 2
10.Revision
11.Examination

ACADEMIC WEEK 1, 2 & 3


RELATIONAL MODEL
1. A………… is an ordered set of attribute values (a) Tuple (b) Attribute
values (c) Type name (d) All of the above
2. An attribute value is a specific valid value for the ……….. of the attribute
(a) Tuple (b) Attribute values (c) Type (d) All of the
above
3. A …………. consists of a heading and a body (a) Tuple (b) Attribute
values (c) Relation (d) All of the above
4. The heading of the relation is also the heading of each of its ………..
(a) Tuple (b) Attribute values (c) Type (d) All of the
above
5. An attribute is an ordered pair of attribute name and type name (a) True
(b) False (c) True or False (d) None of the above
6. The basic relational building block is the domain or data type, usually
abbreviated nowadays to type (a) True (b) False (c) True or False
(d) All of the above
7. An attribute value is a scalar value only (a) True (b) False (c) True or
False (d) None of the above
8. The body of a relation is sometimes called its exterior (a) True(b) False
(c) True or False (d) All of the above
9. A tuple is an ordered set of (a) Attribute name (b) Attribute
values (c) Type name (d) All of the above
10. A relation consists of (a) Heading (b) Body (c) Heading and Body
(d) All of the above
11. A table is an accepted visual representation of (a) Field (b) Record
(c) Relation (d) Type
12. An ………… can be created in a table to find data more quickly and
efficiently (a) Report (b) Index (c) None of the above (d) All of
the above
13. SQL uses ………… quotes around text values (a) True (b) False (c) Single
(d) All of the above
14. The ……… operator displays a record if both the first condition and the
second condition is true (a) AND (b) OR (c) True or False (d) All of the
above
15. The users cannot see the indexes; they are just used to speed up
searches/queries (a) True (b) False (c) True or False (d) All of
the above
16. SQL is case sensitive (a) True (b) False (c) True or False
(d) All of the above
17. The OR operator displays a record if either the first condition or the second
condition is true. (a) True (b) False (c) True or False (d) All of the above
(Questions 1 – 17 Data Processing for Ss2 by Adedapo Mitchellas Page
93 & 106)
18.What is a foreign key?
(a) A foreign key is a primary key of a relation which is an attribute in
another relation
(b) A foreign key is a super key of a relation which is an attribute in more
than one other relations
(c) A foreign key is an attribute of a relation that is a primary key of another
relation
(d) A foreign key is the primary key of a relation that does not occur
anywhere else in the schema
19.An attribute is a __________ in a relation. (a) Row (b) Column (c) Value
(d) Tuple
20. What is the method of specifying a primary key in a schema description?
(a) By writing it in bold letters (b) By underlining it using a dashed line
(c) By writing it in capital letters (d) By underlining it using a bold line
21. Statement 1: A tuple is a row in a relation
Statement 2: Existence of multiple foreign keys in a same relation is possible
(a) Both the statements are true
(b) Statement 1 is correct but Statement 2 is false
(c) Statement 1 is false but Statement 2 is correct
(d) Both the statements are false
22. State true or false: If a relation consists of a foreign key, then it is called a
referenced relation of the foreign key dependency. (a) True (b) False
(c) True or False (d) None of the above
23.Which of the following information does an SQL DDL not specify?
(a) The schema for each relation (b) The integrity constraints
(c) The operations on the tuples (d) The security and authorization
information for each relation
24. Which of the following data types does the SQL standard not support?
(a) char(n) (b) String(n) (c) varchar(n) (d) float(n)
25. Which command is used to create a new relation in SQL
(a) create table (, …) (b) create relation (, …) (c) new table (, …) (d)
new relation (, …)
26. If a1, a2, a3 are attributes in a relation and S is another relation, which of
the following is an incorrect specification of an integrity constraint?
(a) primary key(a1, a2, a3) (b) primary key(a1) (c) foreign key(a1, a2)
references S (d) foreign key(a1, a2)
27. What is the syntax to load data into the database? (Consider D as the
database and a, b, c as data)
(a) enter into D (a, b, c); (b) insert into D values (a, b, c);
(c) insert into D (a, b, c); (d) insert (a, b, c) values into D;
28.Which of the following commands do we use to delete a relation (R) from a
database? (a) drop table R (b) drop relation R (c) delete table R
(d) delete from R
29. Which of the following commands do we use to delete all the tuples from a
relation (R)? (a) delete table R (b) drop table R (c) delete from R
(d) drop from R
30. Choose the correct command; drop table R to delete an attribute A from a
relation R
(a) alter table R delete A (b) alter table R drop A (c) alter table drop A
from R (d) delete A from R
31. Insert the appropriate key word in the blank in the query (A is a relation)
delete ______ A
where P < 5;
(a) all (b) from (c) with (d) in
32. How many relations can a delete command operate on?
(a) 0 (b) 1 (c) 2 (d) Infinitely many
33. What is the result of the following query?
DELETE FROM student
WHERE marks &lt; (SELECT avg(marks)
FROM student);
(a) The query deletes all the tuples whose marks are greater than the average
marks
(b) The query deletes all the tuples whose marks are less than the average
marks
(c) The query deletes all the values under the marks attribute which are less
than the average
(d) The query is syntactically wrong and does not execute
34. What is the format of entering date into a database while inserting data into
it? (a) YYYY-MM-DD (b) “YYYY-MM-DD” (c) ‘YYYY-MM-
DD’ (d) “DD-MM-YYYY”
35.Choose the correct option regarding the following query
INSERT INTO course ('CS-67' , 'course name', 'any' , 5);
(a) Data is inserted into the course relation
(b) Data is not inserted into the course relation due to incorrect specification
(c) Data is inserted into the CS-67 relation
(d) Data is not inserted due to the incorrect use of syntax
36.To change a value in a tuple without changing all the values in the tuple, we
use the _____ statement (a) insert (b) insert some (c) update (d)
alter
37. What does the following query do?
UPDATE student
SET marks = marks*1.10;
(a) It increases the marks of all the students by 10%
(b) It decreases the marks of all the students by 90%
(c) It increases the marks of all the students by 110%
(d) It is syntactically wrong

38.State true or false: We cannot write a where clause under an update


command
(a) True (b) False (c) True or False (d) None of the above
39. Scalar Subqueries can be used in the SQL update statement when they are
used under the ____ clause (a) where (b) with (c) set (d)
end
40. Which of the following cannot be used to modify the data in a database
(a) update (b) insert (c) delete (d) drop
(Questions from 18 – 40 https://www.sanfoundry.com/rdbms-questions-
answers-introduction-relational-model/)
41.A RDBMS consists a collection of ? A. Tables B. Fields C. Records D. Key
42. The term attribute refers to a ___________ of a table.
A. Record B. Tuple C. Column D. Key
43. In relational model, the row of table is known to be ?
A. Relation B. Entity field C. Tuple D. Attribute
44. Address field of a person should not be part of primary key, since it is likely
to?
A. Dependent B. Too long C. Changed D. Not changed
45. The relational model is concerned with ?
A. Data structure and Data integrity
B. Data Manipulation
C. Both A and B
D. None of these
46. Which is the false statement from the following ?
A. A veiw is a named derived table
B. A name relation is variable
C. A veiw is a named reation and is virtual
D. None of these
47. The union of primary keys of the related entity sets becomes a
-------------------------- of the relation ?
A. Super Key
B. Candidate key
C. Foreign key
D. Primary key
48. What is the full form of RDBMS ?
A. Right Database Management System
B. Relational Database Management system
C. Rapid Database Management System
D. Route Database Management System
49. In a relational Database a referential integrity constraint cab be specified with
the help of ;
A. Primary Key
B. Secondry key
C. Foreign key
D. None of these
50. Primary key should be chosen such that its attribute values are never
A. Updated B. Changed C. Dependent D. None of these
51. Query language is a language in which a user ?
A. Requests
B. Stores
C. Response
D. Represents
52. Minimal superkeys are called ?
A. Unique key
B. Superset key
C. Candidate key
D. Primary key
53. A table is a collection of relationships, there is a close correspondence between
concept of :
A. Tables and instances
B. Table and variables
C. Tables and relations
D. Tables and Entries
54. Contents of a relation instance may change with time as relation :
A. Domain
B. Retrieved
C. Updated
D. Time
55. Query languages used in practice includes
A. Elements
B. Instances
C. Tuples
D. Fields
56. Logical design of database, is known to be
A. Database relation B. Database instance C. Database entity
D. Database Schema
57. A domain is atomic if elements of the domain are considered to be
____________ units.
A. Different
B. Indivisbile
C. Constant
D. Divisible
58. Which one of the following is a procedural language ?
A. Domain relational calculus
B. Tuple relational calculus
C. Query language
D. Relational algebra
59. The _______operation performs a set union of two “similarly structured”
tables:
A. Intersect
B. Product
C. Union
D. Join
60. Which is the operator, takes the results of two queries and returns only rows
that appear in both result sets?
A. Union
B. Projection
C. Difference
D. Intersect
WEEK 4 & 5
FILE ORGANISATON
1. A unit of storage that can store one or more records in a hash file organization is
denoted as (a) Buckets (b) Disk pages (c) Blocks (d) Nodes
2. The file organization which allows us to read records that would satisfy the join
condition by using one block read is (a) Heap file organization (b) Sequential file
organization (c) Clustering file organization (d) Hash file organization
3. What are the correct features of a distributed database?
(a) Is always connected to the internet (b) Always requires more than three
machines (c) Users see the data in one global schema. (d) Have to specify the
physical location of the data when an update is done
4. Each tablespace in an Oracle database consists of one or more files called
(a) Files (b) name space (c) datafiles (d) PFILE
5. The management information system (MIS) structure with one main computer
system is called a (a) Hierarchical MIS structure (b) Distributed
MIS structure (c) Centralized MIS structure (d) Decentralized
MIS structure
6. A top-to-bottom relationship among the items in a database is established by a
(a) Hierarchical schema (b) Network schema (c) Relational
schema (d) All of the mentioned
7. Choose the RDBMS which supports full-fledged client server application
development (a) dBase V (b) Oracle 7.1 (c) FoxPro 2.1 (d) Ingress
8. One approach to standardization storing of data? (a) MIS (b) Structured
programming (c) CODASYL specification (d) None of the mentioned
9. The highest level in the hierarchy of data organization is called (a) Data bank
(b) Data base (c) Data file (d) Data record
10. Large collection of files are called ____________ (a) Fields (b) Records
(c) Database (d) Sectors
11. Which of the following hardware component is the most important to the
operation of a database management system? (a) High resolution video display
(b) Printer (c) High speed, large capacity disk (d) Mouse
12. Which of the following is not true of the traditional approach to information
processing (a) There is common sharing of data among the various applications
(b) It is file oriented (c) Programs are dependent on the file (d) It is inflexible
13. Which of these is not a feature of Hierarchical model? (a) Organizes the data in
tree-like structure (b) Parent node can have any number of child nodes (c) Root
node does not have any parent (d) Child node can have any number of parent
nodes
14. Which of these data models is an extension of the relational data model?
(a) Object-oriented data model (b) Object-relational data model (c) Semi
structured data model (d) None of the mentioned
15. A data dictionary is a special file that contains? (a) The names of all fields in
all files (b) The data types of all fields in all files (c) The widths of all fields in all
files
(d) All of the mentioned
16. The DBMS acts as an interface between what two components of an enterprise-
class database system? (a) Database application and the database (b) Data and the
database (c) The user and the database application (d) Database application and
SQL
17.  If a piece of data is stored in two places in the database, then (a) Storage space
is wasted (b) Changing the data in one spot will cause data inconsistency (c) In can
be more easily accessed (d) Storage space is wasted & changing the data in one
spot will cause data inconsistency
18. A technique for direct search is (a) Binary Search (b) Linear Search (c) Tree
Search (d) Hashing
19. The searching technique that takes O (1) time to find a data is
(a) Linear Search (b) Binary Search (c) Hashing (d) Tree Search
20. The goal of hashing is to produce a search that takes (a) O(1) time
(b) O(n2 )time (c) O(log n ) time (d) O(n log n ) time
(Questions from 1- 20 https://www.sanfoundry.com/database-mcqs-file-
organisation/)
21. A ………………. is the basic element of data where individual field contains a
single value, such as an employee’s last name, a data or the value of the sensor
reading.
A) field B) record C) file D) database
22. A ……………………. is collection of related fields that can be treated as a
unit by some application program. A) field B) record C) file D)
database
23. ……………………. communicate directly with peripheral devices or their
controllers or channels.
A) Device drivers B) Physical I/O C) Basic I/O supervisor D) Logical I/O
24. The ……………………. is responsible for all file I/O initiation and
termination.
A) Device drivers B) Physical I/O C) Basic I/O supervisor D) Logical I/O
25. ……………………….. provides a general purpose record I/O capability and
maintains basic data about files.
A) Device drivers B) Physical I/O C) Basic I/O supervisor D) Logical I/O
26. In the ……………………… file organization, data are collected in the order in
which they arrive where each record consists of one burst of data.
A) pile B) sequential C) indexed sequential D) indexed
27. In …………………….. file organization, a fixed format is used for records
where all records are of the same length, consisting of the same number of fixed
length fields in a particular order.
A) pile B) sequential C) indexed sequential D) indexed
28. The ……………………… maintains the key characteristic of the sequential
file: Records are organized in sequence based on a key field.
A) pile B) sequential file C) indexed sequential file D) indexed file
29. The ……………………… retains one limitation of the sequential file:
effective processing is limited to that which is based on a single field of the file.
A) pile B) sequential file C) indexed sequential file D) indexed file
30. …………………… are used mostly in applications where data are rarely
processed exhaustively. A) pile B) sequential file C) indexed sequential file
D) indexed file
31. Airline reservation systems and inventory control system are the examples of
…………………….. system. A) pile B) sequential file C) indexed sequential
file D) indexed file
32. The …………………. greatly reduced the time required to access a single
record, without sacrificing the sequential nature of the file.
A) pile B) sequential file C) indexed sequential file D) indexed file
33. In free space management, ………………….. method has negligible space
overhead because there is no need for a disk allocation table, merely for a pointer
to the beginning of the chain and the length of the first portion.
A) Bit tables B) Chained Free Portions C) Indexing D) Free Block List
34. In …………………….. method on free space management, each block is
assigned in a reserved portion of the disk.
A) Bit tables B) Chained Free Portions C) Indexing D) Free Block List
35. A ………………… on free space management has the advantages that it
relatively easy to find one or a contiguous group of free blocks.
A) Bit table B) Chained Free Portion C) Indexing D) Free Block List
36. In ………………………….. method, the file allocation table contains a
separate one level index for each file, the index has one entry for each portion
allocated to the file.
A) Chained allocation B) Indexed allocation C) Contiguous allocation
D) Variable allocation
37. ………………….. is a pre-allocation strategy, using variable size portions
where the file allocation table needs just a single entry for each file, showing the
starting block and the length of the file.
A) Chained allocation B) Indexed allocation C) Contiguous allocation
D) Variable allocation
38. Typically, ………………… is on an individual block basis where each block
contains a pointer to the next block in the chain.
A) Chained allocation B) Indexed allocation C) Contiguous allocation
D) Variable allocation
39. Which of the following is/are the types of operations that may be performed on
the directory.
i) Search ii) Create file iii) Create directory iv) List directory
A) i, ii and iii only B) ii, iii and iv only C) i, ii and iv only D) All i, ii, iii and
iv
40. …………………. are often used where very rapid access is required, where
fixed length records are used, and where records are always accessed one at a time.
A) Indexed files B) Direct files C) Sequential files D) Indexed Sequential
files

41. An alternative is to organize the sequential file physically is a ……………..


A) List
B) Linked List
C) Queue
D) Stack
42. …………………… are typically used in batch applications and are generally
optimum for such applications if they involve the processing of all the records.
A) Indexed files
B) Direct files
C) Sequential files
D) Indexed Sequential files
43. Directories, pricing tables, schedules and name lists are the examples of
……………….
A) Indexed files
B) Direct files
C) Sequential files
D) Indexed Sequential files
44. An interactive user or a process has associated with pathname is a current
directory which is often referred to as the …………………….
A) update directory
B) list directory
C) working directory
D) create directory
45. ……………………….. are small fixed portions which provide greater
flexibility which may require large tables or complex structures for their allocation.
A) Blocks
B) Columns
C) Segments
D) Partitions
https://www.siteforinfotech.com/2017/01/top-25-mcq-question-file-management-
os.html
THEORY

WEEK 6 & 7
INTERNET

1. Web is (a) Part of internet (b) Different from internet (c) Same as internet
(d) None of the above
2. Rules that dictate how to get information from internet is known as
(a) Hypermedia (b) Hypertext (c) Protocol (d) WWW
3. First page of a web site is known as (a) Web page (b) Home page
(c) New site (d) First page
4. Status bar displays the (a) Progress of web page (b) No of elements to be
displayed in web page (c) Page address (d) All of the above
5. Title bar in IE displays the title of (a) Open web site (b)Open web page
(c) Home page (d) None of the above
6. Protocol is a set of commands for the internet (a) True (b) False (c) True or
False (d) None of the above
7. ISP gives the access to the internet with modem (a) True (b) False (c) True or
False (d) None of the above
8. For connecting to internet, it is necessary to have a password (a) True (b) False
(c) True or False(d) None of the above
9. Windows help system is a type of hypertext document (a) True (b) False
(c) True or False(d) None of the above
10. External modems are expensive and faster than internal modems (a) True
(b) False (c) True or False (d) None of the above
(Questions 1 – 10 Data Processing for Ss2 by Adedapo Mitchellas Page 127)
11. The process of transferring files from a computer on the Internet to your
computer is called (a) Uploading (b) Forwarding `(c) FTP (d) Downloading
12. In internet terminology IP means (a) Internet Provider (b) Internet
Protocol (c) Internet Procedure (d) Internet Processor
13. A Web site's front page /main page is called (a) Browser Page (b) Search
Page (c) Home Page (d) Bookmark
14. Which one of the following is not a search engine? (a) Bing (b) Google
(c) Yahoo (d) Windows
15. Verification of a login name and password is known as: (a) configuration
(b) accessibility (c) authentication (d) logging in
16. Internet explorer falls under : (a) Operating System (b)
Compiler (c) Browser (d) IP address
17. What is the full form of WWW in web address? (a) World Wide
Web (b) World Wide Word (c) World Wide Wood (d) None of these
18. Full form of HTML is: (a) Hyper Text Markup Language (b) Hyper
Text Manipulation Language (c) Hyper Text Managing Links (d) Hyper Text
Manipulating Links
19. Moving from one website to another is called : (a)Downloading
(b) Browsing (c) Uploading (d) Attachment
20. A computer on internet are identified by : (a) e-mail address (b) street
address (c) IP address (d) None of the above
(All Questions from 11 - 20 https://www.examtiger.com/mcq/internet-email-
web-general-knowledge/page/1/)
21. The equipment needed to allow home computers to connect to the Internet is
called a (a) Modem (b) Gateway (c) Monitor (d) Peripheral
22. The process of keeping addresses in memory for future use is called
(a) Routing (b) Resolving (c) Caching (d) None of the above
23. The server on the Internet is also known as a (a) Hub
(b) Host (c) Gateway (d) Repeater
24.  A user can get files from another computer on the Internet by using
(a) HTTP (b) TELNET (c) UTP (d) FTP
25. The communication protocol used by Internet is: (a) HTTP
(b) WWW (c) TCP/IP (d) FTP
26. The first network that planted the seeds of Internet was: (a) ARPANET
(b) NSFnet (c) Vnet (d) Both (A) and (B)
27. TCP is a commonly used protocol at (a) Application layer
(b) Transport layer (c) Network layer (d) Data Link layer
28.  The first page that you normally view at a Website is its: (a) Home page
(b) Master page (c) First page (d) None of the above
29. Voice mail, E-mail, Online service, the Internet and the WWW are all example
of (a) Computer categories (b) Connectivity (c) Telecommuting
(d) None of the above
30. Which of the following protocols is used for WWW? (a) ftp (b) http (c) w3
(d) all of the above
31.  In reality, Internet Protocol recognizes only (a) An IP address (b) A
location of the host(c)  A postal mail address(d) None of the above
(All Questions from 21 – 31 https://www.gkseries.com/data-communication-
and-computer-networks/internet/multiple-choice-questions-and-answers-on-
internet)
32. What is internet?
a) a single network b) a vast collection of different networks
c) interconnection of local area networks d) interconnection of wide area
networks
33. To join the internet, the computer has to be connected to a _________
a) internet architecture board b) internet society c) internet service provider
d) different computer
34. Internet access by transmitting digital data over the wires of a local telephone
network is provided by _______
a) leased line b) digital subscriber line c) digital signal line d) digital leased
line
35. ISP exchanges internet traffic between their networks by __________
a) internet exchange point b) subscriber end point
c) isp end point d) internet end point
36. Which of the following protocols is used in the internet?
a) HTTP b) DHCP c) DNS d) DNS, HTTP and DNS
37. Internet works on _______
a) packet switching b) circuit switching c) both packet switching and
circuit switching d) data switching
38. Which one of the following is not an application layer protocol used in
internet?
a) remote procedure call b) internet relay chat c) resource reservation protocol
d) local procedure call
39. Which protocol assigns IP address to the client connected in the internet?
a) DHCP b) IP c) RPC d) RSVP
40. Which one of the following is not used in media access control?
a) ethernet b) digital subscriber line c) fiber distributed data interface
d) packet switching
(Question 32 – 40, https://www.sanfoundry.com/computer-networks-
questions-answers-internet/)
THEORY
1. List 5 10 examples each of internet web browsers and web search engines
(10 Marks)
2. Explain the following terms
i. Offline
ii. Internet
iii. World Wide Web
iv. Online
v. Chatting (10 Marks)
3. State 5 advantages and disadvantages of internet (10 Marks)
4. What is the full meaning of ARPANET and which year did it start? (4
Marks)
b. State 2 ways to know that you have a secure server connection (4
Marks)
c. Supposing you are given a company’s name that is well known but you do
not know the website address of the company, how do you find it without
asking anybody? (2 Marks)
5. Enumerate the reasons why internet is needed in the life of every human
being (10 Marks)
(NERDC Computer/ICT for SS2 by Oliver E. Osuagwu et al, Page 175)

You might also like