Programming - Functions and SQL

Programming - Functions and SQL

Assessment

Quiz

Created by

Sean Johnson

Computers

8th - 10th Grade

7 plays

Hard

Student preview

quiz-placeholder

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of  *?
Selects ALL fields from the table
Selects only the first field in the table
Selects the last field in the table
Shows only the first row in the table

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

With SQL, how do you select all the columns from a table named "Persons"?
 SELECT [all] FROM Persons
 SELECT *.Persons
 SELECT * FROM Persons
 SELECT Persons

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which query would return the fields Name and Form?

SELECT Name, Set FROM Pupils

SELECT Name, Group FROM Pupils

SELECT Name, Form FROM Pupils

SELECT Name, Gender FROM Pupils

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Return only the customers who have ER anywhere in their last name. 
last_name LIKE "%er%"
last_name = "%er"
last_name = "%er%"
last_name LIKE "%er"

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a function?

A section of code that will return a value

A section of code that will return nothing

A section of code that will return a command

None of the above

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a subroutine?

Function

Procedure

Parameter

Functions and Procedures

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image
What will print?
nothing
5
6
an error message

8.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a function?

A section of code that will return a value

A section of code that will return nothing

A section of code that will return a command

None of the above

9.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a Procedure?

A section of code that will return a value

A section of code that will return nothing

A section of code that will return a command

None of the above

10.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Subroutine

A named block of code designed to carry out a specific task.

A named block of code that returns a value.

Data being passed into a subroutine.

An item of data being passed to a subroutine.

Explore all questions with a free account

or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?