InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
A ___________________ is an explicit numeric, character, string or Boolean value not represented by an identifier.(a) Comments(b) Literals(c) Delimiters(d) IdentifiersI have been asked this question by my college professor while I was bunking the class.Query is from Advanced Query Optimization topic in section Query Processing Techniques of Database Management |
|
Answer» Correct answer is (b) Literals |
|
| 2. |
_______________ has made PL/SQL code run faster without requiring any additional work on the part of the programmer.(a) SQL Server(b) My SQL(c) Oracle(d) SQL LiteI got this question during an online exam.My doubt is from Advanced Query Optimization topic in chapter Query Processing Techniques of Database Management |
|
Answer» Right CHOICE is (C) Oracle |
|
| 3. |
Which of the following is TRUE?(a) Every relation in 2NF is also in BCNF(b) A relation R is in 3NF if every non-prime attribute of R is fully functionally dependent on every key of R(c) Every relation in BCNF is also in 3NF(d) No relation can be in both BCNF and 3NFThe question was posed to me in a national level competition.My doubt stems from Materialized Views topic in section Query Processing Techniques of Database Management |
|
Answer» Correct answer is (c) Every relation in BCNF is ALSO in 3NF |
|
| 4. |
___________ refers to the ability of the system to recover committed transaction updates if either the system or the storage media fails.(a) Isolation(b) Atomicity(c) Consistency(d) DurabilityI had been asked this question in an interview for job.I need to ask this question from Transformation of Relational Expressions topic in chapter Query Processing Techniques of Database Management |
|
Answer» RIGHT option is (d) Durability Easy explanation - In database systems, durability is the ACID PROPERTY which GUARANTEES that transactions that have COMMITTED will survive permanently. |
|
| 5. |
Tuples are generated ___________ in producer-driven pipelining, they are generated ________ on demand, in demand-driven pipelining.(a) Lazily, Eagerly(b) Eagerly, Lazily(c) Slowly, Eagerly(d) Eagerly, SlowlyThis question was addressed to me by my school principal while I was bunking the class.Enquiry is from Evaluation of Expressions topic in division Query Processing Techniques of Database Management |
|
Answer» CORRECT ANSWER is (B) Eagerly, Lazily The EXPLANATION is: Producer-driven pipelining is very USEFUL in parallel processing systems. |
|
| 6. |
Pipelines can be executed in(a) 4(b) 3(c) 2(d) 5This question was posed to me in class test.My doubt is from Evaluation of Expressions in chapter Query Processing Techniques of Database Management |
|
Answer» Correct option is (c) 2 |
|
| 7. |
Pictorial representation of an expression is called(a) Expression tree(b) Operator tree(c) Expression flow(d) Expression chartI got this question during a job interview.This intriguing question comes from Evaluation of Expressions in portion Query Processing Techniques of Database Management |
|
Answer» Right option is (b) Operator TREE |
|
| 8. |
_______________ is a procedural extension of Oracle – SQL that offers language constructs similar to those in imperative programming languages.(a) SQL(b) PL/SQL(c) Advanced SQL(d) PQLThe question was asked in semester exam.The above asked question is from Advanced Query Optimization topic in chapter Query Processing Techniques of Database Management |
|
Answer» Correct choice is (b) PL/SQL |
|
| 9. |
Stored procedures are safe from SQL injection attacks(a) True(b) False(c) Depends on the result(d) Always safeI had been asked this question during an online interview.This question is from Estimating Statistics of Expression Results topic in portion Query Processing Techniques of Database Management |
|
Answer» Correct ANSWER is (a) True |
|
| 10. |
Which statement is used to define a cursor?(a) OPEN(b) FETCH(c) DECLARE CURSOR(d) FETCH_STATUSI have been asked this question by my school principal while I was bunking the class.I need to ask this question from Estimating Statistics of Expression Results topic in portion Query Processing Techniques of Database Management |
|
Answer» The correct answer is (c) DECLARE CURSOR |
|
| 11. |
A_____ is a query that retrieves rows from more than one table or view:(a) Start(b) End(c) Join(d) All of the mentionedThe question was posed to me in an online interview.My enquiry is from Join Operations topic in chapter Query Processing Techniques of Database Management |
|
Answer» Correct answer is (c) Join |
|
| 12. |
If access paths are available on all the conditions of a disjunctive selection, each index is scanned for pointers to tuples that satisfy the individual condition. This is satisfied by(a) A10(b) A7(c) A9(d) A6I got this question in class test.Query is from Selection Operation in division Query Processing Techniques of Database Management |
|
Answer» Right answer is (a) A10 |
|
| 13. |
The strategy can retrieve a single record if the equality condition is on a key; multiple records may be retrieved if the indexing field is not a key is(a) A2(b) A4(c) A5(d) A6I had been asked this question in a national level competition.Question is from Selection Operation in section Query Processing Techniques of Database Management |
|
Answer» CORRECT answer is (B) A4 Explanation: A4 – Secondary INDEX, EQUALITY. |
|
| 14. |
Relation R with an associated set of functional dependencies, F, is decomposed into BCNF. The redundancy (arising out of functional dependencies) in the resulting set of relations is(a) Zero(b) More than zero but less than that of an equivalent 3NF decomposition(c) Proportional to the size of F+(d) IndeterminateThis question was addressed to me in an interview for internship.My question is based upon Materialized Views topic in portion Query Processing Techniques of Database Management |
|
Answer» The CORRECT option is (B) More than ZERO but less than that of an equivalent 3NF decomposition |
|
| 15. |
Which global variables can be used to determine if a transaction is still open?(a) NESTLEVEL(b) FETCH_STATUS(c) TRANCOUNT(d) CONNECTIONSThis question was addressed to me in an online quiz.The doubt is from Estimating Statistics of Expression Results topic in portion Query Processing Techniques of Database Management |
|
Answer» The correct choice is (C) @@TRANCOUNT |
|
| 16. |
Which of the following case does not exist in complexity theory(a) Best case(b) Worst case(c) Average case(d) Null caseThis question was posed to me in an international level competition.My question is based upon Sorting in division Query Processing Techniques of Database Management |
|
Answer» RIGHT ANSWER is (d) Null case The explanation is: Null case cannot be counted as the factor for COMPLEXITY. |
|
| 17. |
A line of PL/SQL text contains groups of characters known as(a) Lexical Units(b) Literals(c) Textual Units(d) IdentifiersThe question was asked in homework.I need to ask this question from Advanced Query Optimization in portion Query Processing Techniques of Database Management |
|
Answer» The correct ANSWER is (a) Lexical Units |
|
| 18. |
In a _________ the system makes repeated requests for tuples from the operation at the top of the pipeline.(a) Demand-driven pipeline(b) Producer-driven pipeline(c) Demand pipeline(d) All of the mentionedThe question was asked in exam.This is a very interesting question from Evaluation of Expressions topic in section Query Processing Techniques of Database Management |
|
Answer» RIGHT OPTION is (a) Demand-driven pipeline Explanation: Each time that an operation receives a REQUEST for tuples, it computes the next tuple (or tuples) to be RETURNED, and then returns that tuple. |
|
| 19. |
Index structures are referred to as __________ since they provide a path through which data can be located and accessed.(a) Index Search(b) Linear search(c) File scan(d) Access pathsThis question was posed to me in final exam.Asked question is from Selection Operation in division Query Processing Techniques of Database Management |
|
Answer» The correct OPTION is (d) Access paths |
|
| 20. |
Capabilities of RAISERROR(a) It can be logged in the error log(b) It can print a message to the application(c) It can assign an error number, state and severity(d) All of the mentionedI had been asked this question in an interview for job.I'm obligated to ask this question of Estimating Statistics of Expression Results in chapter Query Processing Techniques of Database Management |
|
Answer» Correct CHOICE is (d) All of the mentioned |
|
| 21. |
Which feature converts row data to a column for better analytical view?(a) Views(b) Join(c) Pivot(d) TriggerThe question was posed to me in a national level competition.This is a very interesting question from Estimating Statistics of Expression Results in chapter Query Processing Techniques of Database Management |
|
Answer» The correct choice is (c) Pivot |
|
| 22. |
Which operation are allowed in a join view:(a) UPDATE(b) INSERT(c) DELETE(d) All of the mentionedThe question was asked during an interview.My query is from Join Operations topic in division Query Processing Techniques of Database Management |
|
Answer» The correct choice is (d) All of the mentioned |
|
| 23. |
The complexity of the average case of an algorithm is(a) Much more complicated to analyze than that of worst case(b) Much more simpler to analyze than that of worst case(c) Sometimes more complicated and some other times simpler than that of worst case(d) None of the mentionedI have been asked this question in exam.This interesting question is from Sorting in chapter Query Processing Techniques of Database Management |
|
Answer» The correct answer is (a) MUCH more complicated to ANALYZE than that of worst case |
|
| 24. |
The relationship between DEPARTMENT and EMPLOYEE is a(a) One-to-one relationship(b) One-to-many relationship(c) Many-to-many relationship(d) Many-to-one relationshipThe question was posed to me in final exam.Question is taken from Query Processing topic in division Query Processing Techniques of Database Management |
|
Answer» The CORRECT answer is (B) One-to-many relationship |
|
| 25. |
_________________ is a sequence of zero or more characters enclosed by single quotes.(a) Integers literal(b) String literal(c) String units(d) String labelI had been asked this question in an online quiz.Question is taken from Advanced Query Optimization in portion Query Processing Techniques of Database Management |
|
Answer» Correct CHOICE is (b) String LITERAL |
|
| 26. |
Consider a schema R(A, B, C, D) and functional dependencies A -> B and C -> D. Then the decomposition of R into R1 (A, B) and R2(C, D) is(a) dependency preserving and lossless join(b) lossless join but not dependency preserving(c) dependency preserving but not lossless join(d) not dependency preserving and not lossless joinThe question was asked in semester exam.My query is from Materialized Views topic in portion Query Processing Techniques of Database Management |
|
Answer» Right answer is (d) not dependency PRESERVING and not lossless join |
|
| 27. |
______________ allows the algorithm to execute more quickly by performing CPU activity in parallel with I/O activity.(a) Buffering(b) Double buffering(c) Multiple buffering(d) Double readingThe question was asked by my school teacher while I was bunking the class.Query is from Evaluation of Expressions topic in division Query Processing Techniques of Database Management |
|
Answer» The correct choice is (a) BUFFERING |
|
| 28. |
The Average case occur in linear search algorithm(a) When Item is somewhere in the middle of the array(b) When Item is not in the array at all(c) When Item is the last element in the array(d) When Item is the last element in the array or is not there at allI have been asked this question in homework.I need to ask this question from Sorting in portion Query Processing Techniques of Database Management |
|
Answer» The correct option is (a) When Item is SOMEWHERE in the middle of the array |
|
| 29. |
The relation EMPDT1 is defined with attributes empcode(unique), name, street, city, state, and pincode. For any pincode, there is only one city and state. Also, for any given street, city and state, there is just one pincode. In normalization terms EMPDT1 is a relation in(a) 1NF only(b) 2NF and hence also in 1NF(c) 3NF and hence also in 2NF and 1NF(d) BCNF and hence also in 3NF, 2NF and 1NFThe question was asked during an interview for a job.My question is based upon Materialized Views topic in division Query Processing Techniques of Database Management |
|
Answer» Right choice is (b) 2NF and hence also in 1NF |
|
| 30. |
Which of the following is/are false for RAW mode of FOR XML?(a) XMLSCHEMA option does not returns an in-line XSD schema(b) BINARY BASE32 returns the binary data in base32-encoded format(c) Each row in the query result is transformed into an XML element(d) None of the mentionedI got this question at a job interview.This intriguing question originated from Transformation of Relational Expressions topic in portion Query Processing Techniques of Database Management |
|
Answer» Right ANSWER is (B) BINARY BASE32 RETURNS the binary data in base32-encoded format |
|
| 31. |
Which join refers to join records from the write table that have no matching key in the left table are include in the result set:(a) Left outer join(b) Right outer join(c) Full outer join(d) Half outer joinThis question was addressed to me in an online interview.The query is from Join Operations in chapter Query Processing Techniques of Database Management |
|
Answer» Right choice is (b) Right OUTER join |
|
| 32. |
A condition is referred to as __________(a) Join in SQL(b) Join condition(c) Join in SQL & Condition(d) None of the mentionedThe question was asked in exam.This is a very interesting question from Join Operations topic in portion Query Processing Techniques of Database Management |
|
Answer» Right CHOICE is (b) JOIN condition |
|
| 33. |
In query processing, the ___________ is the lowest-level operator to access data.(a) Index Search(b) Linear search(c) File scan(d) Access pathsI have been asked this question at a job interview.Question is from Selection Operation topic in division Query Processing Techniques of Database Management |
|
Answer» Right choice is (C) File scan |
|
| 34. |
If the state of the database no longer reflects a real state of the world that the database is supposed to capture, then such a state is called(a) Consistent state(b) Parallel state(c) Durable state(d) Inconsistent stateI got this question during an internship interview.I need to ask this question from Query Processing in portion Query Processing Techniques of Database Management |
|
Answer» Right choice is (d) INCONSISTENT state |
|
| 35. |
In _______________ the management of the password for the account can be handled outside of oracle such as operating system.(a) Database Authentication(b) Operating System Authentication(c) Internal Authentication(d) External AuthenticationI have been asked this question in homework.Enquiry is from Advanced Query Optimization topic in chapter Query Processing Techniques of Database Management |
|
Answer» The CORRECT ANSWER is (b) Operating System Authentication |
|
| 36. |
Which of the following connection type supports application role permissions and password encryption?(a) OLE DB(b) DBLib(c) ODBC(d) OLE DB and ODBCThe question was posed to me by my college professor while I was bunking the class.My question comes from Estimating Statistics of Expression Results topic in portion Query Processing Techniques of Database Management |
|
Answer» The correct option is (d) OLE DB and ODBC |
|
| 37. |
Problems occurs if we don’t implement a proper locking strategy(a) Dirty reads(b) Phantom reads(c) Lost updates(d) Unrepeatable readsThe question was asked during an interview.My enquiry is from Transformation of Relational Expressions topic in portion Query Processing Techniques of Database Management |
|
Answer» Right choice is (b) Phantom READS |
|
| 38. |
You have a column that will only contain values from 0 to 256. What is the most economical data type to use for the column?(a) TINYINT(b) SMALLINT(c) INT(d) DECIMAL(1)I had been asked this question in an interview for job.This interesting question is from Transformation of Relational Expressions topic in portion Query Processing Techniques of Database Management |
|
Answer» The CORRECT choice is (b) SMALLINT |
|
| 39. |
Which utilities can we use to export data from sql server to a text file?(a) DTS export wizard(b) BCP(c) ISQL(d) DTS export wizard and BCPI had been asked this question during an internship interview.This key question is from Transformation of Relational Expressions topic in chapter Query Processing Techniques of Database Management |
|
Answer» RIGHT choice is (d) DTS export wizard and BCP Easy explanation - The bcp utility BULK COPIES data between an instance of Microsoft SQL Server and a data file in a user-specified FORMAT. |
|
| 40. |
How many join types in join condition:(a) 2(b) 3(c) 4(d) 5The question was asked in semester exam.This interesting question is from Join Operations in division Query Processing Techniques of Database Management |
|
Answer» Right OPTION is (d) 5 |
|
| 41. |
The Worst case occur in linear search algorithm when(a) Item is somewhere in the middle of the array(b) Item is not in the array at all(c) Item is the last element in the array(d) Item is the last element in the array or is not there at allI have been asked this question in class test.My enquiry is from Sorting in chapter Query Processing Techniques of Database Management |
|
Answer» CORRECT ANSWER is (d) ITEM is the last element in the array or is not there at all Explanation: Algorithmic complexity is concerned about how fast or SLOW particular algorithm performs. |
|
| 42. |
Which of the following terms does refer to the correctness and completeness of the data in a database?(a) Data security(b) Data constraint(c) Data independence(d) Data integrityI got this question by my school principal while I was bunking the class.My question is taken from Query Processing topic in portion Query Processing Techniques of Database Management |
|
Answer» Correct choice is (d) DATA integrity |
|
| 43. |
Which one of the following statements about normal forms is FALSE?(a) BCNF is stricter than 3NF(b) Lossless, dependency-preserving decomposition into 3NF is always possible(c) Lossless, dependency-preserving decomposition into BCNF is always possible(d) Any relation with two attributes is in BCNFThe question was asked during a job interview.I want to ask this question from Materialized Views in chapter Query Processing Techniques of Database Management |
|
Answer» The CORRECT answer is (C) Lossless, dependency-preserving decomposition into BCNF is ALWAYS possible |
|
| 44. |
The complexity of Binary search algorithm is(a) O(n)(b) O(log )(c) O(n2)(d) O(n log n)The question was posed to me in exam.This interesting question is from Sorting in chapter Query Processing Techniques of Database Management |
|
Answer» CORRECT answer is (b) O(LOG ) EASIEST EXPLANATION - This shows that it has a standard complexity in addressing. |
|
| 45. |
In a _____________ operations do not wait for requests to produce tuples, but instead generate the tuples eagerly.(a) Demand-driven pipeline(b) Producer-driven pipeline(c) Demand pipeline(d) All of the mentionedThis question was addressed to me during an internship interview.This interesting question is from Evaluation of Expressions topic in portion Query Processing Techniques of Database Management |
|
Answer» Correct answer is (b) Producer-driven pipeline |
|
| 46. |
Two main measures for the efficiency of an algorithm are(a) Processor and memory(b) Complexity and capacity(c) Time and space(d) Data and spaceI got this question in an interview for internship.This is a very interesting question from Sorting topic in section Query Processing Techniques of Database Management |
|
Answer» RIGHT answer is (c) Time and SPACE Easy explanation - Depending on the time and space COMPLEXITY only the ALGORITHM for sorting will be CHOSEN. |
|
| 47. |
The algorithm that uses a secondary ordered index to guide retrieval for comparison conditions involving is(a) A2(b) A4(c) A5(d) A6The question was posed to me in my homework.I'd like to ask this question from Selection Operation in portion Query Processing Techniques of Database Management |
|
Answer» The correct answer is (d) A6 |
|
| 48. |
Which of the following is the oldest database model?(a) Relational(b) Deductive(c) Physical(d) NetworkI have been asked this question during a job interview.Origin of the question is Query Processing in division Query Processing Techniques of Database Management |
|
Answer» The correct ANSWER is (d) NETWORK |
|
| 49. |
By default sql server has ___________ isolation level(a) READ COMMITTED(b) READ UNCOMMITTED(c) SERIALIZABLE(d) REPEATABLE READI got this question by my college director while I was bunking the class.I want to ask this question from Transformation of Relational Expressions in section Query Processing Techniques of Database Management |
|
Answer» The CORRECT OPTION is (a) READ COMMITTED |
|
| 50. |
What is the default “SORT” order for a SQL?(a) Ascending(b) Descending(c) As specified by the user(d) None of the mentionedThe question was asked during an online exam.The question is from Estimating Statistics of Expression Results topic in portion Query Processing Techniques of Database Management |
|
Answer» The correct ANSWER is (a) ASCENDING |
|