Sunteți pe pagina 1din 12

1. Which command is used to remove all rows from a table?

A Delete
B Remove
C Truncate
D Both [A] and [B]
Answer: Option [C]
2. What is the language used by most of the DBMS for helping their users to access data?
A High level language
B Query language
C SQL
D 4GL
Answer: Option [B]
3. The modify operation is likely to be done after:
A Delete
B Look-up
C Insert
D None of the above
Answer: Option [B]
4. The language used in application program to request data from the DBMS is referred to as the:
A DML
B DDL
C Query language
D All of the above
Answer: Option [A]
5. A command that lets you change one or more fields in a record is:
A Insert
B Modify
C Look-up
D All of the above
Answer: Option [B]
6 This is an authorization command of SQL:
A Access
B Grant
C Allow
D None of these
Answer: Option [B]
7 Which of the following is an aggregate function in SQL?
A Union
B Like
C Group By
D Max
Answer: Option [D]
8 The command used to create a database user:
A Make user B Create user C ADD user to database D All of these
Answer: Option [C]
9 An operation that will increase the length of a list is:
A Insert B Look-up C Modify D All of the above
Answer: Option [A]
10 Grant is a command from SQL type:
A DDL B DCL C DML D All of the above
Answer: Option [B]
11 Which command is used to add a column to an existing table?
A Create
B Update
C Alter
D None of these
Answer: Option [C]
12 Which one is not an aggregate function in SQL?
A Count
B Mean
C Min
D All are aggregate function
Answer: Option [B]
13 Which one of the following is a valid join type?
A natural
B full outer join
C on
D using
Answer: Option [B]
14 One of the following steps is not involved in processing a query:
A parsing and translation
B optimization
C evaluation
D distribution
Answer: Option [D]
15 Which of the following statement on the view concept in SQL is invalid?
A all views are not updatable
B the views may be referenced in an SQL statement whenever tables are referenced
C the views are instantiated at the time they are referenced and not when they are defined
D the definition of a view should not have GROUP BY clause in it
Answer: Option [D]
16 Which of the following statement is not true about embedded SQL?
A Embedded SQL expressions for database modification always returns a result.
B An embedded SQL program must be processed by a special processor prior to compilation.
C The exact syntax for embedded SQL request depends on the language in which SQL is
embedded.
D In embedded SQL, all query processing is performed by the database system.
Answer: Option [A]
17 Which of the following is an aggregate function is SQL?
A Union
B Like
C Group
D Min
Answer: Option [D]
18 Which one of these is an aggregate function in SQL?
A AVG
B SELECT
C ORDER BY
D None of these
Answer: Option [A]
19 Language used by programmers to communicate with database is:
A DML
B DDL
C QL
D None of these
Answer: Option [C]
20 Which of the following is an authorization command of SQL?
A Access
B Secondary key
C Foreign key
D None of these
Answer: Option [D]
MMIT TRANSACTION
B by ROLL BACK TRANSACTION
C either by COMMIT TRANSACTION or by ROLL BACK TRANSACTION
D none of these
Answer: Option [C]
22 Statement that uses a condition to control iterative execution of a statement block :
A IF statement
B WHILE statement
C BREAK statement
D None of the above
Answer: Option [B]
23 Complex calculations can be performed using the following operation :
A Union
B Aggregation
C Nested IF
D None of these
Answer: Option [B]
24 An alias is:
A An alternate name given to a relation.
B An alternate name given to an inner query.
C An alternate name given to a user.
D None of the above.
Answer: Option [B]
25 One of the main heuristic rule for query optimization:
A Applying a join first.
B Applying any binary operation first.
C Applying a select and a Project first.
D None of these
Answer: Option [C]
26 Which of the following is not an SQL command?
A CREATE
B DROP
C ALTER
D All are SQL commands
Answer: Option [D]
27 Which of the following is correct?
A A SQL query automatically eliminates duplicates.
B SQL permits attribute names to be repeated in the same relation
C A SQL query will not work if there are no indexes on the relations.
D None of these
Answer: Option [D]
28 The DMLs which require user to specify what data is needed and how to get it, is called :
A DDL DMLs
B Procedural DMLs
C Non-procedural DMLs
D None of the above
Answer: Option [B]
29 Which of the following clauses is used in the CREATE TRIGGER command to create a row
level trigger?
A FOR ROW
B ROW LEVEL
C ROW LEVEL TRIGGER
D None of the above.
Answer: Option [D]
30 Which of the following is used to evaluate a query execution strategy?
A Query tree
B Access plan
C Database catalog
D None of the above
Answer: Option [A]
31 Which of the following is a data query statement in QUEL?
A RETRIEVE
B SELECT
C GET
D None of the above
Answer: Option [B]
32 Which type of join returns all rows that satisfy the join condition?
A Inner join
B Outer join
C Semi Join
D Anti join
Answer: Option [B]
33 Which one of the following aggregate SQL function returns number of rows?
A avg
B min
C count
D sum
Answer: Option [C]
34 Which of the following is not transaction characteristic in SQL?
A access mode
B diagnnostics size
C isolation level
D commit
Answer: Option [D]
35 Under which condition, the value R ⟨ S/S equal to R (here ⟨ stands natural join and/ denotes
division).
A When R and S are having at least one attribute common
B The degree of S is less than the degree of R
C The degree of R is less than the degree of S
D When R and S are having no attribute in common
Answer: Option [A]
1. What does the abbreviation DBMS stand for?
A. Digital Base Mapping System.
B. Data Borrowing and Movement Software.
C. Database Management System.
D. Database Manipulation Software.
Ans: C
2. The advantages of Standard Query Language (SQL) include which of the following in relation
to GIS databases?
A. It is good at handling geographical concepts.
B. It is widely used.
C. It is simple and easy to understand.
D. It uses a pseudo-English style of questioning.
Ans: A
3. Which of the following are characteristics of an RDBMS?
A. Keys may be unique or have multiple occurrences in the database.
B. It cannot use SQL.
C. Queries are possible on individual or groups of tables.
D. Tables are linked by common data known as keys.
E. Data are organized in a series of two-dimensional tables each of which contains records for
one entity.
Ans: D
4. What is a ‘tuple’?
A. A row or record in a database table.
B. Another name for the key linking different tables in a database.
C. An attribute attached to a record.
D. Another name for a table in an RDBMS.
Ans: A
5. Which of the following are issues to be considered by users of large corporate GIS databases?
A. The need for multiple copies of the same data and subsequent merging after separate updates.
B. The need to manage long transactions.
C. The need for manual transfer of records to paper.
D. The need for multiple views or different windows into the same databases.
E. The need for concurrent access and multi-user update.
Ans: D
6. Which of the following are features of the object-oriented approach to databases?
A. The need to split objects into their component parts.
B. The ability to represent the world in a non-geometric way.
C. The ability to develop more realistic models of the real world.
D. The ability to develop databases using natural language approaches.
E. The ability to develop database models based on location rather than state and behaviour.
Ans: C
7. Redundancy is minimised with a computer based database approach.
A. True
B. False
Ans: A
8. The relational database model is based on concepts proposed in the 1960s and 1970s.
A. True
B. False
Ans: A
9. A row in a database can also be called a domain.
A. True
B. False
Ans: B
10. A first step in database creation should be needs analysis.
A. True
B. False
Ans: A
11. In entity attribute modelling a many to many relationship is represented by M:M.
A. True
B. False
Ans: B
12.In a networked web based GIS all communications must go through an internet map server.
A. True
B. False
Ans: B
13.In an OO database approach ‘object = attributes + behaviour’.
A. True
B. False
Ans: B
14. In an OO database objects may inherit some or all of the characteristics of other objects.
A. True
B. False
Ans: A
15. You can add a row using SQL in a database with which of the following?
A. ADD
B. CREATE
C. INSERT
D. MAKE
Ans: c
16. The command to remove rows from a table ‘CUSTOMER’ is:
A. REMOVE FROM CUSTOMER …
B. DROP FROM CUSTOMER …
C. DELETE FROM CUSTOMER WHERE …
D. UPDATE FROM CUSTOMER …
Ans: c
17. The SQL WHERE clause:
A. limits the column data that are returned.
B. limits the row data are returned.
C. Both A and B are correct.
D. Neither A nor B are correct.
Ans: B
18. Which of the following is the original purpose of SQL?
A. To specify the syntax and semantics of SQL data definition language
B. To specify the syntax and semantics of SQL manipulation language
C. To define the data structures
D. All of the above.
Ans: D
19. The wildcard in a WHERE clause is useful when?
A. An exact match is necessary in a SELECT statement.
B. An exact match is not possible in a SELECT statement.
C. An exact match is necessary in a CREATE statement.
D. An exact match is not possible in a CREATE statement.
Ans: B
20. A view is which of the following?
A. A virtual table that can be accessed via SQL commands
B. A virtual table that cannot be accessed via SQL commands
C. A base table that can be accessed via SQL commands
D. A base table that cannot be accessed via SQL commands
Ans: A
21. The command to eliminate a table from a database is:
A. REMOVE TABLE CUSTOMER;
B. DROP TABLE CUSTOMER;
C. DELETE TABLE CUSTOMER;
D. UPDATE TABLE CUSTOMER;
Ans: B
22. SQL data definition commands make up a(n) ________ .
A. DDL
B. DML
C. HTML
D. XML
Ans: A
23. Which of the following is valid SQL for an Index?
A. CREATE INDEX ID;
B. CHANGE INDEX ID;
C. ADD INDEX ID;
D. REMOVE INDEX ID;
Ans: A
24. The SQL keyword(s) ________ is used with wildcards.
A. LIKE only
B. IN only
C. NOT IN only
D. IN and NOT IN
Ans: A
25. Which of the following is the correct order of keywords for SQL SELECT statements?
A. SELECT, FROM, WHERE
B. FROM, WHERE, SELECT
C. WHERE, FROM,SELECT
D. SELECT,WHERE,FROM
Ans: A
26. The result of a SQL SELECT statement is a(n) ________ .
A. report
B. form
C. file
D. table
Ans: D
27. The HAVING clause does which of the following?
A. Acts like a WHERE clause but is used for groups rather than rows.
B. Acts like a WHERE clause but is used for rows rather than columns.
C. Acts like a WHERE clause but is used for columns rather than groups.
D. Acts EXACTLY like a WHERE clause.
Ans: A
28. To remove duplicate rows from the results of an SQL SELECT statement, the ________
qualifier specified must be included.
A. ONLY
B. UNIQUE
C. DISTINCT
D. SINGLE
Ans: c
29. The benefits of a standard relational language include which of the following?
A. Reduced training costs
B. Increased dependence on a single vendor
C. Applications are not needed.
D. All of the above.
Ans: A
30. Which of the following do you need to consider when you make a table in SQL?
A. Data types
B. Primary keys
C. Default values
D. All of the above.
Ans: D
31. SQL query and modification commands make up a(n) ________ .
A. DDL
B. DML
C. HTML
D. XML
Ans: B
32. Which one of the following sorts rows in SQL?
A. SORT BY
B. ALIGN BY
C. ORDER BY
D. GROUP BY
Ans: c
33. To sort the results of a query use:
A. SORT BY.
B. GROUP BY.
C. ORDER BY.
D. None of the above is correct.
Ans: c
34. SQL can be used to:
A. create database structures only.
B. query database data only.
C. modify database data only.
D. All of the above can be done by SQL.
Ans: D
35. The SQL statement that queries or reads data from a table is ________ .
A. SELECT
B. READ
C. QUERY
D. None of the above is correct.
Ans: A
36. You can add a row using SQL in a database with which of the following?
A. ADD
B. CREATE
C. INSERT
D. MAKE
Answer: Option C
37. The command to remove rows from a table 'CUSTOMER' is:
A. REMOVE FROM CUSTOMER ...
B. DROP FROM CUSTOMER ...
C. DELETE FROM CUSTOMER WHERE ...
D. UPDATE FROM CUSTOMER ...
Answer: Option C
38. The SQL WHERE clause:
A. limits the column data that are returned.
B. limits the row data are returned.
C. Both A and B are correct.
D. Neither A nor B are correct.
Answer: Option B
39. Which of the following is the original purpose of SQL?
A. To specify the syntax and semantics of SQL data definition language
B. To specify the syntax and semantics of SQL manipulation language
C. To define the data structures
D. All of the above.
Answer: Option D
40. The wildcard in a WHERE clause is useful when?
A. An exact match is necessary in a SELECT statement.
B. An exact match is not possible in a SELECT statement.
C. An exact match is necessary in a CREATE statement.
D. An exact match is not possible in a CREATE statement.
Answer: Option B

S-ar putea să vă placă și