wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

7.7 Software Security Review

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

Client-server applications

A. are any apps that run on personal devices and need access to resources from a server. (7.1)
B. are distributed resources across multiple apps or devices.
C. provide services such as data sharing and web pages.
D. include database, file, mail, print, web, and game servers
E. are also known as front-end and back-end applications.

a)


All options are correct.

b)


B and E

c)

All options except D

d)

A, C, and D

2.

The SQL query: SELECT name, id FROM Employee; will return

(7.3)

a)

the name and id columns, in that order.

b)

the Employee table.

c)

the id and name columns, in that order.

d)

nothing because the SQL syntax is incorrect.

3.

What happens during a SQLi attack? (7.5)

A. A malicious actor uses SQL to get the database to reveal its contents.
B. Nothing happens as this is an old form of attack and no longer relevant because of newer cybersecurity protocols.
C. Malicious SQL statements are placed somewhere within a web page or application’s input or URL.
D. Hackers can gain access to sensitive data, such as PII, credit card information, and login credentials.
E. This is considered a low-level attack and not destructive on a large scale so typically the most an attacker can do is render web pages differently to an end user.

a)

All options are correct

b)

B only

c)

D only

d)

A, C, and D

4.

Some of the best ways to prevent or at least mitigate a SQLi attack are to (7.6)

A. Keep data separate from commands and queries
B. Use a safe API
C. Reduce the amount of SQL used overall
D. Use server-side input validation
E. Use other SQL controls to prevent mass disclosure of records
F. Avoid leaving any raw SQL in the code
G. Have SQL reside behind multiple layers in the code base and not accessible by the site

a)

C, E, F, and G

b)

A, B, and D

c)


A, B, C, and D

d)

All options are correct.

5.

Using view page source allows you to quickly see the following:

A. The HTML that marks up the page
B. Images used and their location in a site folder
C. Fonts and icons
D. Stylesheets
E. Server-side scripts that bring in information from a database, such as search engines, forums, etc.
F. JavaScript within a <script> element
G. JavaScript outside of a <script> element

a)


All options are correct.

b)


A, B, C and D

c)


A, B, C, D, and F

d)

All except E

6.

Developer tools can help with

A. Testing and debugging a site or web app.
B. Diagnosing problems quickly on a site or web app.
C. Building and maintaining a more secure site or web app.
D. Modifying site or web app elements and sending the changes back to the server.
E. Changing code in real-time to see how it impacts the site or web app on the fly.

a)

All except D.

b)

A, B, and C

c)

D only

d)

All options are correct.

7.

A database is always comprised of

(7.2)

a)

personally identifying information.

b)

tables with rows and columns.

c)

lots of cryptographically stored symbols.

d)

lots of little databases.

8.

In a database, columns and rows correspond to

(7.2)

a)

attributes and records.

b)

1s and Os.

c)

tables and names.

d)

SQL and HTML.

9.

Which term is used to describe the logical structure of a database?

(7.2)

a)

Table

b)

Record

c)

Schema

d)

Attribute

10.

Which operator means "not equal to” in SQL?

a)

X=

b)

=!

c)

<>

d)

/=

11.

Which is not true according to the following query? SELECT name FROM Users WHERE id = 90;
(7.3)

a)

The name of the table is Users.

b)

There is a column for name in the table.

c)

There is a row for id in the table.

d)

The name column will be displayed as a result of this query for all records where the id = 90.

12.

Which of the statements is true based on the following query? SELECT name, occupation FROM Employee WHERE age < 45;

(7.3)

a)

The name of the database is 'occupation'.

b)

There is a column for Employee in the table.

c)

There is a column for age in the table.

d)

The name of the database is name.

13.

Which query will return the entire Gamers table?

(7.3)

a)

SELECT all FROM Gamers;

b)

SELECT * FROM Gamers;

c)

SELECT DATABASE FROM Gamers;

d)

SELECT ALL FROM Gamers;

14.

The following browser request displays the search results of all fiction books that are available to purchase from an online book store. https://insecure-website.com/products?category=Fiction Which of the following browser requests correctly attempts to use a SQL injection to extract additional data from the original request? (7.6)

d)

https://insecure-website.com/products?category-Fiction' display 1=1_'

15.

Which type of SQL injection attack occurs by adding a condition that is always true to a query to extract additional information from the database? (7.6)

a)

Union-based SQLi

b)

Conditional SQLi

c)

Error-based SQLi

d)

Blind SQLi