Java Programming and SQL Basics
Test your knowledge of Java programming fundamentals (OOP concepts, syntax, applets) and SQL database queries (joins, group functions, clauses)
Questions
We can use Group functions in the WHERE clause
- True
- False
We can nest Group Functions
- True
- False
When is a Cartesian product formed?
- When a join condition is omitted.
- When a join condition is invalid.
- All rows in the first table are joined to all rows in the second table
- All of the above.
In a join condition it is mandatory to specify the table name along with the column name
- True
- False
Which of the following WHERE clauses represent equi-join?
- Table1.column1=Table2.column2
- Table1.column1=Table2.column1
- Table1.column2=Table2.column1
- None of the above
The minimum number of join statements required to join 10 tables together are:
- 9
- 11
- 5
- 12
- None of the above
A Non equi-join is a join condition that does not contain an equality operator.
- True
- False
An outer join is used to:
- Return records which have no direct match
- Return records which have direct match
- Return all the records
- None of the above
Outer join operator is indicated as
- (+)
- (-)
- (*)
- +
Self Join is used to join a table to itself.
- True
- False
We can use MIN and MAX for any
- Numeric data
- Data type
- Character data
- None of the above
Which is the clause used to restrict groups?
- Having
- Where
- restrict
- exclude
Which function forces group functions to include null values?
- Group By
- NVL
- Order By
- Include NULL
_____________ is the process by which one object acquires the properties of another object.
- Encapsulation
- Class
- Inheritance
- Polymorphism
The Separator, Comma is Used to separate package names from subpackages and classes
- True
- False
The print( ) method is just like println( ), except that it does not output a newline character after each call.
- True
- False
An _________ is a special kind of Java program that is designed to be transmitted over the Internet.
- Viewlet
- Applet
- Servlet
- Object
A constant value in Java is created by using a literal representation of it.
- True
- False
Java allows two or more statements to be grouped into blocks of code called Code Blocks.
- True
- False
_________ is a feature that allows one interface to be used for a general class of actions.
- Encapsulation
- Class
- Inheritance
- Polymorphism