Search Header Logo

BENGKEL SQL : SLOT 2

Authored by NUR AZMAN

Mathematics

University

Used 3+ times

BENGKEL SQL : SLOT 2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

1. What is a data type in SQL?

a. A method for storing data in a table

b. A method for sorting data in a table

c. A type of database schema

d. A method for securing data in a table

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

2. What is a string in SQL?

a. A sequence of floating-point numbers

b. A sequence of characters

c. A sequence of Booleans

d. A sequence of integers

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

3. Which integer data type can store numbers ranging from less than negative two billion to more than positive two billion?

SMALLINT

BIGINT

INT

TINYINT

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

4. What is a schema in SQL?

a. A method for storing data

b. A type of data

c. A blueprint of a database

d. A type of database

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

5. Which of the following is a reason for using data types in SQL?

a. To make the data more difficult to understand

b. To make the data more difficult to access

c. To make the data harder to manipulate

d. To make the data take up less storage space

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

6. What is the correct syntax for creating a table named "employees" with columns "employee_id" (integer), "name" (string), "age" (integer), and "salary" (float)?

a. CREATE TABLE employees (employee_id INT, name VARCHAR(255), age INT, salary NUMERIC(10,2));

b. CREATE TABLE employees (employee_id INT, name VARCHAR, age INT, salary FLOAT);

c. CREATE TABLE employees (employee_id INTEGER, name STRING, age INTEGER, salary FLOAT);

d. CREATE TABLE employees (employee_id INT, name TEXT, age INT, salary REAL);

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

7. Which SQL keyword is used to retrieve unique values from a table?

a. SELECT UNIQUE VALUES

b. SELECT UNIQUE ROWS

c. SELECT UNIQUE

d. SELECT DISTINCT

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?