Class 12
Information Technology (802)
351 questions available
Refine
All questions
351 resultsGiven int a=50, b=7; what is the value of a/b using integer division?
Show answer
Write the SQL command to add a new column 'Age' of type INTEGER to the table 'Teacher'.
Show answer
Evaluate the Java relational expression: 15 > 9
Show answer
Write the SQL command to drop the column 'Age' from the table 'Teacher'.
Show answer
Evaluate the Java relational expression: 22 == 22
Show answer
Write the SQL command to drop the named foreign key constraint 'TEACHER_FK' from the table 'Teacher'.
Show answer
Evaluate the Java relational expression: 7 != 7
Show answer
Write the CREATE TABLE command for a Teacher table with columns: Teacher_ID (INTEGER, Primary Key), First_Name (VARCHAR(20), NOT NULL), Last_Name (VARCHAR(20)), Gender (CHAR(1)), Salary (DECIMAL(10,2), default 40000), Date_of_Birth (DATE), and Dept_No (INTEGER, Foreign Key referencing Dept_ID of Department).
Show answer
Evaluate the Java relational expression: 4 >= 12
Show answer
Explain, with the CREATE TABLE syntax, the difference between ON DELETE SET NULL, ON DELETE CASCADE, and ON DELETE RESTRICT for a foreign key.
Show answer
Evaluate the Java relational expression: 6 <= 6