SQL MCQ

Quiz
•
Computers
•
University
•
Medium
Abdullah Muhammad 201-801-271
Used 9+ times
FREE Resource
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which command is used to retrieve data from an SQLite database?
INSERT
UPDATE
SELECT
DELETE
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax to create a new table in SQLite?
CREATE NEW TABLE table_name (column1 datatype, column2 datatype);
CREATE TABLE table_name (column1 datatype, column2 datatype);
CREATE TABLE table_name: (column1 datatype, column2 datatype);
NEW TABLE table_name (column1 datatype, column2 datatype);
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used to eliminate duplicate rows in the result set of a query?
UNIQUE
DISTINCT
DIFFERENT
EXCLUSIVE
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you retrieve all columns from a table named employees?
SELECT * FROM employees;
SELECT all FROM employees;
SELECT employees.* FROM employees;
SELECT columns FROM employees;
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the WHERE clause in SQLite?
To sort the result set
To filter records
To join tables
To group records
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you update the salary column to 5000 for all employees in the staff table?
MODIFY staff SET salary = 5000;
ALTER TABLE staff SET salary = 5000;
UPDATE staff SET salary = 5000;
SET staff.salary = 5000;
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which command is used to remove a table named customers from an SQLite database?
A) REMOVE TABLE customers;
B) DELETE TABLE customers;
C) DROP TABLE customers;
D) ERASE TABLE customers;
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the ORDER BY clause do in a query?
A) Filters records based on a condition
B) Orders the records in a specified sequence
C) Aggregates records into groups
D) Joins two or more tables
9.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which command is used to add a new row to a table in SQLite?
A) INSERT INTO table_name VALUES (...);
B) ADD ROW table_name VALUES (...);
C) APPEND TO table_name VALUES (...);
D) NEW ROW table_name VALUES (...);
Similar Resources on Wayground
5 questions
Almacenamiento App_Movil

Quiz
•
University
7 questions
Python Round 1

Quiz
•
University
10 questions
DATA STRUCTURES ACTIVITY OF THE WEEK

Quiz
•
University
10 questions
DBMS Basics

Quiz
•
University
9 questions
Database Management System

Quiz
•
University
10 questions
Taller SQL

Quiz
•
University
10 questions
Object Oriented Programming

Quiz
•
University
10 questions
C++ Identifiers and Constants Quiz

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University