1. Which are not DCL operations?
Answers:
• Insert
• Grant
• Delete
• Update
• Revoke
• Commit
• Rollback
oDesk and Elance Exam Test Answers, elance and oDesk Job Application Cover Letter Samples.
1. Which are not DCL operations?
1. PERT stands for:
2. A Data Dictionary:
3. CASE stands for:
4. Cohesion refers to:
5. Which tool is an effective means of relating input data to files and output reports?
6. Which of the following symbols represents a process in a DFD?
7. Which tool shows the processes and the sequence in which they are performed?
8. Which phase of the Systems Development is concerned with determining the system feasibility?
9. To achieve a good response time from OLTP, critical requirements are:
10. Identify the correct sequence of the various types of testing:
11. The graphical tool for describing decision logic in a data dictionary is:
12. Which design principle relates to the strength of relations within a module?
13. A DFD is:
14. A top level DFD is generally referred to as a:
15. You want to describe the data flow in a system. Which tool would you use?
16. Data Dictionary keeps details of:
17. Which tool shows the relation between each of the documents making up a HIPO package?
18. Which tool shows the hierarchy of the various modules in a system?
19. HIPO:
20. Given the following scenario, what is the number of conditions that will be used to draw a decision table?
If the volume of sales is greater than 10,000 units and advance collected is 50% or more, then the commission is 16%. If the advance collected is less than 50%, then it is 14%. For sales of 10,000 units, irrespective of the advance collected, commission is 10%. For sales less than 10,000 units, the commission is 9% or 8% based on whether the advance collected is 50% or more, or less than 50% respectively.
21. The user manual is generated in which phase of the System Development cycle?
22. In which phase of the System Development cycle is the Project Request form generated?
23. The smallest unit of data in a Data Dictionary is referred to:
24. In a Data Dictionary, process logic is described using:
25. A tabular representation of the Decision Tree is known as a:
26. You want to plan your project. Which tool would you use?
27. Which of the following tools would you use for project planning?
28. Which of the following is not an important reason for creating a Data Dictionary?
29. The document of functional specifications will be used by:
30. You are designing a database. Which tool would be useful?
31. Which of the following regarding a DFD is incorrect?
32. Normalization of data is done to:
33. How are processes generally numbered in a DFD?
34. A person who is in charge of updating an account-holder's account would be depicted in a Data Flow Diagram by:
35. Which phase of the Systems Development is concerned with writing programs?
36. Which of the following statements is not true regarding Data Flow Diagrams?
37. A self-check digit is useful in detecting:
38. In which phase of the SDLC will the document of Functional Specifications be generated?
39. A structure chart is derived from a:
40. Which principle of design relates to the design of the system as a hierarchy of modules?
41. A Data Dictionary is created at which stage of the Systems Development cycle?
42. Which of the following is not a part of the DFD?
43. Repository of data about data is depicted by:
44. System quality relates to:
45. Using a Decision Table, what is the maximum number of combinations that may arise for three conditions?
46. In which phase is the processing logic developed ?
47. SDLC stands for:
48. The Conception phase is related to:
49. Which of the following statements, attributed to prototyping is not true?
50. Given the following phases of Systems Development, arrange them in the correct order:
1 Analysis
2 Conception
3 Design
4 Construction
5 Initiation
51. Which of the following should be avoided while drawing DFDs?
52. A Structure chart:
53. CAD stands for:
54. A process which has inputs but no outputs is known as a:
55. A process which generates outputs without any inputs is known as a:
56. VTOC stands for:
1. Which are not DCL operations?
2. Which of the following is not a DML command?
3. Which of the following is not a DDL command?
4. Which of the following statements are not true regarding the primary key?
5. Select all the appropriate options.
6. Point out the incorrect statement regarding group functions:
7. Which of the following statements are wrong about primary keys?
8. Which statements are true for views?
9. Examine the data in the EMPLOYEES table given below:
LAST_NAME DEPARTMENT_ID SALARY
ALLEN 10 3000
MILLER 20 1500
KING 20 2200
DAVIS 30 5000
Which of the following Subqueries work?
10. Data validation can be implemented at the data definition stage through:
11. Examine the description of the STUDENTS table:
STD_ID NUMBER (4)
COURSE_ID VARCHAR2 (10)
START_DATE DATE
END_DATE DATE
The aggregate functions valid on the START_DATE column are:
12. Which of the following field names are correct?
13. Which component of an RDBMS validates the syntax of the user's query?
14. What does the term DDL stand for?
15. Which of the following can be used to uniquely identify a row?
16. ________ is an operation that displays rows which meet a condition.
17. A table Students has a column called name which stores the names of the students. What will be the correct query to display the names of the students in reverse order?
18. What items, other than column names can be included in the select clause?
19. Which of the following statements is true?
(a)The Insert statement creates new rows
(b)The Update statement modifies the table structure
20. Which operator will be evaluated first in the following statement:
select (age + 3 * 4 / 2 - 8) from emp
21. What are the columns of a table called in a relational model?
22. The level of data abstraction which describes how the data is actually stored is?
23. Which of the following is not a set operator?
24. View the following Create statement:
1 Create table Pers
2 (EmpNo Number(4) not null,
3 EName Char not null,
4 Join_dt Date not null,
5 Pay Number)
Which line contains an error?
25. For which SQL operation is Alter Table used?
26. < and > are examples of _________ type of operators.
27. Examine the two SQL statements given below:
SELECT last_name, salary, hire_date FROM EMPLOYEES ORDER BY salary DESC
SELECT last_name, salary, hire_date FROM EMPLOYEES ORDER BY 2 DESC
What is true about them?
28. What does MOD() function do?
29. The names of those departments where there are more than 100 employees have to be displayed. Given two relations, employees and departments, what query should be used?
Employee
---------
Empno
Employeename
Salary
Deptno
Department
---------
Deptno
Departname
30. An association of several entities in a Entity-Relation model is called?
31. Which of the following statements regarding views are incorrect?
32. Consider the following tables:
Books
------
BookId
BookName
AuthorId
SubjectId
PopularityRating (the popularity of the book on a scale of 1 to 10)
Language (such as French, English, German etc)
Subjects
---------
SubjectId
Subject (such as History, Geography, Mathematics etc)
Authors
--------
AuthorId
AuthorName
Country
What is the query to determine the names of the Authors who have written more than 1 book?
33. When a table is dropped using a simple DROP statement, SQL performs some more operations simultaneously, select all the valid operations?
34. Which of the following statement is correct regarding table creation?
35. A production house has two sales outlets. Both outlets are maintaining their data separately in schemas A and B respectively. The Management wants to see the sale of both outlets in one report. Both outlets are using tables called Sales which have identical structure. Which method you will adopt to create the report?
36. What are the programs that execute automatically whenever DML operations are performed on tables called?
37. Which of the following is not a type of constraint?
38. Consider the query:
SELECT name
FROM Student
WHERE name LIKE '_a%';
Which names will be displayed?
39. A production house needs a report about the sale where total sale of the day is more than $20,000. Which query should be used?
40. Which character function should be used to return a specified portion of a character string?
41. What will happen if you query the emp table as shown below:
select empno, DISTINCT ename, Salary from emp;
42. What is a rollback of transactions normally used for?
43. The STUDENT_GRADES table has these columns:
STUDENT_ID NUMBER (12)
SEMESTER_END DATE
GPA NUMBER (4)
Which of the following statements finds the highest Grade Point Average (GPA) per semester?
44. Which of the following is not a single value function?
45. An RDBMS performs the following steps:
1)It calculates the results of the group functions of each group
2)It groups those rows together based on the group by clause
3)It orders the groups based on the results of the group functions in the order by clause
4)It chooses and eliminates groups based on the having clause
5)It chooses rows based on the where clause
Arrange the above steps in the correct order of execution:
46. What clause should be used to display the rows of a table in ascending order of a particular column?
47. What is the error in the following query if the Students table contains several records?
select name from students where name =
(select name from students order by name);
48. In which type of database is SQL used?
49. The concept of data independence is similar to the concept of ________
50. Evaluate the following SQL statement:
SELECT e.employee_id, (.15* e.salary) + (.5 * e.commission_pct) + (s.sales_amount * (.35 * e.bonus)) AS CALC_VALUE FROM employees e, sales s WHERE e.employee_id = s.emp_id;
What will happen if all the parentheses are removed from the calculation?
51. Examine the query:-
select (2/2/4) from tab1;
where tab1 is a table with one row. This would give a result of:
52. Where should sub queries be used?
53. In which sequence are queries and sub-queries executed by the SQL Engine?
54. Are both the statements correct?
(a)where deptno in(2,4,5)
(b)where deptno=2 or deptno=4 or deptno=5
55. What is the correct order of clauses in the select statement?
1 select
2 order by
3 where
4 having
5 group by
56. There are two tables A and B. You are retreiving data from both tables where all rows from B table and only matching rows from A table should be displayed. Which type of join you will apply between A and B tables?
57. How many foreign key constraints can a table have?
58. Which statement is correct for FIRST NORMAL FORM?
59. What is wrong with the following query:
select * from Orders where OrderID = (select OrderID from OrderItems where ItemQty > 50)
60. A company has the following departments:
Marketing , Designing , Production , Packing
What will be the result of the following query?
select * from table where department < 'Marketing';
61. Which of the following is not a numeric group function?
62. Consider the following tables:
Books
------
BookId
BookName
AuthorId
SubjectId
PopularityRating (the popularity of the book on a scale of 1 to 10)
Language (such as French, English, German etc)
Subjects
---------
SubjectId
Subject (such as History, Geography, Mathematics etc)
Authors
--------
AuthorId
AuthorName
Country
What is the query to determine which German books(if any) are more popular than all the French?
63. Consider the following tables:
Books
------
BookId
BookName
AuthorId
SubjectId
PopularityRating (the popularity of the book on a scale of 1 to 10)
Language (such as French, English, German etc)
Subjects
---------
SubjectId
Subject (such as History, Geography, Mathematics etc)
Authors
--------
AuthorId
AuthorName
Country
What is the query to determine which is the most popular book written in French?
64. Which of the following constraints cannot be applied at the table level?
65. A construction company is currently executing three projects- hotel construction, residential construction and business towers. The construction company employs both Civil Engineers and Structural Engineers. A Civil Engineer can work on only one project at a time, but each project can accomodate more than one Civil Engineer. On the other hand, a Structural Engineer can work on more than one project and a project could accomodate several Structural Engineers. Define the nature of relationship between (Civil Engineers and Projects) and (Structural Engineers and Projects)
66. If entity x is existence-dependent on entity y then what is x said to be?
67. Examine the code given below:
SELECT employee_id FROM employees WHERE commission_pct=.5 OR salary > 23000
Which of the following statements is correct with regard to this code?
68. Consider the following tables:
Books
BookId
BookName
AuthorId
SubjectId
PopularityRating (the popularity of the book on a scale of 1 to 10)
Language (such as French, English, German etc)
Subjects
SubjectId
Subject (such as History, Geography, Mathematics etc)
Authors
AuthorId
AuthorName
Country
What is the query to determine how many books have been written on each subject. Displaying Name of Subject and count of the Books?
69. Which of the following statements are true?
70. Which logical operator can reverse the result?
71. What is the collection of information stored in a database at a particular moment called?
72. What is the order of precedence among the following operators?
1 IN
2 NOT
3 AND
4 OR
73. Which of the following date function(s) are invalid in Oracle SQL?
74. Which of the following are aggregate functions in SQL?
75. Which of the following is not a relational operation?
76. The level of abstraction which describes only part of the entire database is called?
77. Consider the following tables:
Books
------
BookId
BookName
AuthorId
SubjectId
PopularityRating (the popularity of the book on a scale of 1 to 10)
Language (such as French, English, German etc)
Subjects
---------
SubjectId
Subject (such as History, Geography, Mathematics etc)
Authors
--------
AuthorId
AuthorName
Country
What is the query to determine how many books, with a popularity rating of more than 7, have been written on each subject?
78. The overall logical structure of a database can be expressed graphically by:
79. If E1 and E2 are relational algebra expressions, then which of the following is NOT a relational algebra expression?
80. Which one of the following correctly selects rows from the table myTable that have null in column column1?
81. A table has following values for its department field:
marketing, production, production, sales, NULL, NULL, Marketing, Null
What will the following query return:
Select distinct(department) from employees;
82. Which query will display data from the Pers table relating to Analysts, Clerks and Salesmen who joined between 1/1/2005 and 1/2/2005 ?
83. Consider the following tables:
Books
------
BookId
BookName
AuthorId
SubjectId
PopularityRating (the popularity of the book on a scale of 1 to 10)
Language (such as French, English, German etc)
Subjects
---------
SubjectId
Subject (such as History, Geography, Mathematics etc)
Authors
--------
AuthorId
AuthorName
Country
What is the query to determine which Authors have written at least 1 book with a popularity rating of less than 5?
84. Choose the appropriate query for the Products table where data should be displayed primarily in ascending order of the ProductGroup column. Secondary sorting should be in descending order of the CurrentStock column.
85. Which of the following statements are incorrect regarding definition of simple and complex views?
86. What is a cluster?
87. The purpose of the domain is to constrain the set of valid values. True or false?
88. Consider the following two tables:
1. customers( customer_id, customer_name)
2. branch ( branch_id, branch_name )
What will be the output if the following query is executed:
Select *, branch_name from customers, branch
89. With regard to statement (a) and statement (b), Which of the following option is correct.
(a)The FLOOR function returns the smallest integer greater or equal to the argument.
(b)The CEIL function gives the largest integer equal to or less that the argument.
90. The Employee table uses alphanumeric characters for their Employee ID field, which contains 7 digits prefixed with 3 characters. The alphanumeric characters refer to the department code. You want to generate a list of all the department codes displayed in capital letters. Which function(s) you will use for this query?
91. Which of the following is not a SQL operator?
92. Which of the following is not a feature of SQL?
93. How can data be accessed by users who do not have direct access to the tables?
94. The simplest query must include at least________ and _________.
95. Every Boyce-Codd Normal Form(BCNF)is in:
96. Identify the incorrect statement/s regarding constraints.
97. Which of the following is not the benefits of views?
98. _________ is the operation that displays certain columns from the table.