wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

BTEC Coding & Logic

Total questions: 24

Worksheet time: 24mins

Name
Class
Date
1.

What is another name for a stack

a)

LILO

b)

LIFO

c)

FIFO

d)

FILO

2.

Which of the following are not one of the phases in the ALM

a)

Implementation

b)

Design

c)

Testing

d)

Deployment

3.

Which of these will run atleast once no matter the conditions

a)

While

b)

Do While

c)

For

d)

If

4.

Which are all common uses of algorithms

a)

Sorting, Searching, Pattern Matching, Hashing

b)

Sorting, Searching, Hashing, Pattern Making

c)

Searching, Sorting, Pattern Matching, Etching

d)

Pattern Matching, Saving, Searching, Caching

5.

Which data type would be best to hold "Hello World"

a)

Integer

b)

Float

c)

String

d)

Character

6.

What command is used by HTTP when “user login form data” is sent back to a web server?

a)

PUSH

b)

GET

c)

SEND

d)

POST

7.

If you heard someone talking abput popping when it came to structures in programming what would they be talking about

a)

Adding to the Stack

b)

Removing from the Stack

c)

Adding intergers together

d)

Concatenating two strings together

8.

If LIFO is "STACK" then FIFO is

a)

queue

b)

line

c)

pile

d)

array

9.

Which of the following bases describes Hexadecimal?

a)

Base 8

b)

Base 32

c)

Base 10

d)

Base 16

10.

Which of the following is NOT a common compression format used in modern computer operating systems?

a)

ZIP

b)

RAR

c)

BitLocker

d)

TAR

11.

Which one of the following is the most common vulnerability specific to web applications?

a)

SQL Injection

b)

Distrbuted Denial of Service

c)

HeartBlead

d)

Spear Phishing

12.

Which of the following would you classify as reserved words in programming or scripting?

a)

Terms used as variable identifiers

b)

Terms used as comments

c)

Terms used as operators

d)

Terms used as commands

13.

Which command would you use to see your IP address in a Windows commands prompt

a)

Get-IPAddress

b)

IPCONFIC /all

c)

IPCONFIG

d)

IFCONFIG

14.

What would the following command do


mkdir C:\temp\backup\college

a)

Make a folder called college inside the backup folder inside the temp folder on the C drive

b)

Make a folder called college on the C Drive

c)

Make a file called college inside the backup folder inside the temp folder on the C drive

d)

mark a directory called college ready for the del command

15.

what is the order for the phases of the ALM

a)

Requirements specification, Deployment, Testing, Development & Maintenence

b)

Requirements specification, Development, Deployment, Testing & Maintenence

c)

Development, Testing, Requirements Specification, Deployment & Maintenence

d)

Requirements specification, Development, Testing, Deployment & Maintenence

16.

Which of the following commands can be used on both LINUX and Windows

a)

Mkdir

b)

Echo

c)

Cp

d)

xcopy

17.

Which of the following are NOT normally asscoicated with website devleopment

a)

CSS

b)

Java

c)

HTML

d)

PHP

18.

Which of the following would evaluate to true


A = 3, B = 2, C = 8, D = 9

a)

A < C && B > D

b)

A < C && B > D || D > C

c)

C > A && (B < C && C > D) || (B > A || D > C) && D < (B+8)

d)

D-2 < C || B <= A-1

19.

Which of the following are VALID command line extensions for Windows based scripts?


a) .cmd

b) .vbs

c) .ps1

d) .bat

a)

a, b and d only.

b)

a, b and c only.

c)

b, c and d only.

d)

All of them.

20.

What does the acronym OWASP stand for?

a)

Open Web Association Security Projects.

b)

Open Web Application Security Project.

c)

Open Web Application Security Protocols.

d)

Open Web Application Syntax Protocol.

21.

What is the outcome of the following section of a script?


if %a% LEQ %b% goto :end

echo SUCCESS!

:end

a)

The word 'SUCCESS!' is output to the screen if the variable 'a' is greater than or equal to the variable 'b'.

b)

The word 'SUCCESS!' is output to the screen if the variable 'b' is greater than or equal to the variable 'a'.

c)

The word 'SUCCESS!' is output to the screen if the variable 'a' is greater than the variable 'b'.

d)

The word 'SUCCESS!' is output to the screen if the variable 'b' is greater than the variable 'a'.

22.

If I say the word "Algorithm" I am talking about what?

a)

When we all go to a store called Rithim.

b)

Algae that can DANCE!!!

c)

A new dance move.

d)

A list of steps you follow to finish a task.

23.
A name location in the computer's memory that can store a value is referred to as a
a)
variable
b)
string
c)
operator
d)
method
24.

Which command shows if /usr/bin is in the current shell search path?

a)

cat PATH

b)

echo $PATH

c)

echo %PATH

d)

cat $PATH

e)

echo %PATH%