BENGKEL SQL : SLOT 2

BENGKEL SQL : SLOT 2

University

10 Qs

quiz-placeholder

Similar activities

AP Statistics Review

AP Statistics Review

10th Grade - University

14 Qs

Intro: Frequency Distribution Table

Intro: Frequency Distribution Table

University

14 Qs

Comparing Functions Algebra

Comparing Functions Algebra

9th Grade - University

10 Qs

Review of Inferential and Descriptive

Review of Inferential and Descriptive

9th Grade - University

10 Qs

Interpreting Slope and Y-Intercept

Interpreting Slope and Y-Intercept

9th Grade - University

15 Qs

UTS BASIS DATA

UTS BASIS DATA

University

15 Qs

Algebra STAAR

Algebra STAAR

9th Grade - University

15 Qs

Create Linear Equation from a Table

Create Linear Equation from a Table

9th Grade - University

15 Qs

BENGKEL SQL : SLOT 2

BENGKEL SQL : SLOT 2

Assessment

Quiz

Mathematics

University

Hard

Created by

NUR AZMAN

Used 3+ times

FREE Resource

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

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?