A question bank for every class and subject
Practice questions, with answers and explanations included
794 questions available
Refine
All questions
794 resultsDefine the term: Input Device
Show answer
Placing a semicolon at the end of a for statement, e.g., for(int count=1; count<=5; count++);, causes:
Show answer
Which statement is used to select a database and make it the current database?
Show answer
Define the term: Output Device
Show answer
The switch statement in Java can evaluate an expression of type float.
Show answer
List the four DML commands mentioned in the chapter.
Show answer
Define the term: Processor
Show answer
A do-while loop always runs at least once, even if the test condition is initially false.
Show answer
Write the SQL statement to create a table named 'Shoes' with columns Code (CHAR(4), Primary Key), Name (VARCHAR(20)), type (VARCHAR(10)), size (INT(2), NOT NULL), cost (DECIMAL(6,2)), margin (DECIMAL(4,2)), and Qty (INT(4)).
Show answer
Differentiate between Bus Topology and Star Topology.
Show answer
In a for loop, you can use the comma operator to include multiple initialization/update expressions, e.g., for(x=0,y=10; x<10; x++,y--).
Show answer
Which keyword is used with SELECT to eliminate repeated (duplicate) values from the result?
Show answer
Differentiate between Star Topology and Tree Topology.
Show answer
Differentiate between a while loop and a do-while loop (name at least two differences).
Show answer
Which clause is used to filter rows based on a specified condition?
Show answer
Differentiate between Star Topology and Mesh Topology.
Show answer
Write the Java syntax for the if-else, switch, while, do-while, and for statements.
Show answer
Which SQL statement is used to modify existing data (records) within a table?
Show answer
Differentiate between Ring Topology and Bus Topology.
Show answer
An array in Java is used to: