Search Header Logo

CodingNest Database Quiz 1

Authored by Coding Nest

Computers

Professional Development

Used 4+ times

CodingNest Database Quiz 1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does SQL stand for?

Structured Query Language
Simple Query Language
System Query Language
Sequential Query Language

Answer explanation

SQL stands for Structured Query Language, used for managing databases.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command is used to display all the databases in MySQL?

SHOW TABLES;
SHOW DATABASES;
LIST DATABASES;
DISPLAY DATABASES;

Answer explanation

SHOW DATABASES; is the correct command to list all databases.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which statement is used to switch to a specific database?

CHANGE DATABASE dbname;
SELECT DATABASE dbname;
USE dbname;
SET DATABASE dbname;

Answer explanation

USE dbname; is the correct command to switch databases.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the default port for MySQL?

3306
5432
1521
1433

Answer explanation

MySQL runs on port 3306 by default.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which SQL statement is used to insert new data into a table?

ADD INTO
INSERT INTO
APPEND TO
CREATE ROW

Answer explanation

INSERT INTO is the correct SQL statement for inserting data.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you retrieve all the records from a table named students?

SELECT * FROM students;
SHOW ALL FROM students;
GET ALL FROM students;
LIST * FROM students;

Answer explanation

SELECT * FROM students; fetches all records from a table.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which SQL statement is used to modify existing data in a table?

CHANGE
MODIFY
UPDATE
ALTER

Answer explanation

UPDATE is used to modify existing data.

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?