CodingNest Database Quiz 1

CodingNest Database Quiz 1

Professional Development

25 Qs

quiz-placeholder

Similar activities

Database Foundations

Database Foundations

Professional Development

20 Qs

PHP & MySQL - parte 1

PHP & MySQL - parte 1

9th Grade - Professional Development

20 Qs

MongoDB คืออะไร

MongoDB คืออะไร

10th Grade - Professional Development

20 Qs

ITF Databases

ITF Databases

9th Grade - Professional Development

20 Qs

MYSQL Basics Quiz - 2

MYSQL Basics Quiz - 2

Professional Development

30 Qs

Banco de dados aurora

Banco de dados aurora

Professional Development

23 Qs

SQL

SQL

Professional Development

30 Qs

ExertnalLabExam_Web_Programming_CSE-1

ExertnalLabExam_Web_Programming_CSE-1

Professional Development

20 Qs

CodingNest Database Quiz 1

CodingNest Database Quiz 1

Assessment

Quiz

Computers

Professional Development

Medium

Created by

Coding Nest

Used 4+ times

FREE Resource

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.

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?