Search Header Logo

IS 1401-Quiz 2

Authored by Noornajwa Amin

Computers

University

Used 4+ times

IS 1401-Quiz 2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following SQL clauses is used to DELETE tuples from a database table?

DELETE

REMOVE

DROP

CLEAR

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a DDL command?

UPDATE

TRUNCATE

ALTER

None of the mentioned

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does DML stand for?

Different Mode Level

Data Model Language

Data Mode Lane

Data Manipulation language

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

With SQL, how do you select all the records from a table named “Persons” where the value of the column “FirstName” ends with an “a”?

SELECT * FROM Persons WHERE FirstName=’a

SELECT * FROM Persons WHERE FirstName LIKE ‘a%’

SELECT * FROM Persons WHERE FirstName LIKE ‘%a’

SELECT * FROM Persons WHERE FirstName=’%a%’

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

With SQL, how can you return all the records from a table named “Persons” sorted descending by “FirstName”?

SELECT * FROM Persons SORT BY ‘FirstName’ DESC

SELECT * FROM Persons ORDER FirstName DESC

SELECT * FROM Persons SORT ‘FirstName’ DESC

SELECT * FROM Persons ORDER BY FirstName DESC

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The UPDATE SQL clause can _____________

update only one row at a time

update more than one row at a time

delete more than one row at a time

delete only one row at a time

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you change “Hansen” into “Nilsen” in the “LastName” column in the Persons table?

UPDATE Persons SET LastName=’Hansen’ INTO LastName=’Nilsen’

MODIFY Persons SET LastName=’Nilsen’ WHERE LastName=’Hansen’

MODIFY Persons SET LastName=’Hansen’ INTO LastName=’Nilsen’

UPDATE Persons SET LastName=’Nilsen’ WHERE LastName=’Hansen’

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?