A question bank for every class and subject
Practice questions, with answers and explanations included
794 questions available
Refine
All questions
794 resultsWhat does the 'static' modifier allow, when applied to a method?
Show answer
By default, records displayed using the ORDER BY clause (without DESC) are sorted in:
Show answer
Given: int a=11, b=22, c=33, d=11; Which of these relational expressions are TRUE? i) a==b ii) b!=d iii) c<=b iv) a<c v) a==d vi) c>a vii) a>=c
Show answer
In a method call, the values supplied are copied into the method's:
Show answer
Which keyword provides a customized column heading in the output of a SELECT query without altering the table?
Show answer
Convert: 2 KB = ______ MB.
Show answer
Array indices in Java range from 0 to n, where n is the size of the array.
Show answer
Which query correctly displays first names of students whose marks are either 88, 92, or 95?
Show answer
Convert: 3 KB = ______ MB.
Show answer
A method's parameter list acts like regular local variables within the method body.
Show answer
Which command is used to insert a new row into a table?
Show answer
Convert: 4 KB = ______ MB.
Show answer
How do you declare and initialize an array of 5 doubles named 'marks' with size specified separately from declaration?
Show answer
The '*' symbol in a SELECT statement is used to display all columns of a table.
Show answer
Convert: 5 KB = ______ MB.
Show answer
Write the syntax structure of a user-defined method in Java.
Show answer
Using WHERE clause conditions in a SELECT statement permanently changes the values stored in the table.
Show answer
Convert: 2 MB = ______ GB.
Show answer
Write a static Java method 'rectangle_area' that takes length and breadth (both double) as parameters and returns the area of the rectangle. Also show how to call it from main and store the result.
Show answer
If no WHERE condition is specified with the DELETE statement, all records in the table are removed.