wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Coding and Logic

Total questions: 66

Worksheet time: 17hrs 30mins

Name
Class
Date
1.

Unix is used with what operating system?

a)

Linux

b)

Android

c)

Windows

d)

Apple

2.

What is Unix Bash shell?

a)

A scripting program language

b)

Interactive command language

c)

Is used to control the execution of the system

3.

What can administrative tasks can Unix bash shell be used for?

a)

Remote

b)

Local

4.

What is the 1s command used for?

a)

List contents of dictionary

b)

Show IP address

c)

Flush DNS

5.

What is the 1s -1 used for?

a)

To list roots within Bash shell

b)

To list options within Bash Shell

c)

To turn your show IP config

6.

What is the command cd used for?

a)

Navigate the directory structure

b)

To list other options

c)

Navigate to IP bus

7.

What does the command CP mean?

a)

Copy files to one location to another

b)

Deleted files

c)

Command point

d)

Control pictures within unix

8.

What does the command mv mean?

a)

Move file from one location to the other

b)

Multi factor authentication

c)

Man vs food

9.

What does the command grep mean?

a)

Used to search text files for the value supplied such as addresses

b)

Go reapers

c)

General radial configuration

10.

What does the command gzip mean?

a)

Compresses and de-compresses files

b)

Stores data to DNS

c)

Restores IP config

11.

What does the command chmod do?

a)

Sets permissions on files and folders. The 3 numbers represent permission levels for read, write and execute

b)

Opens cmd

c)

Converts cmd into files

12.

What does the command netstat do?

a)

Used to show open and active network connections. The option –ab shows the connections with the process that opened them

b)

Closes internet connection

c)

Opens up command prompt

d)

Turns off ethernet ports

13.

What are batch scripts used for?

a)

Batch scripts enable a sequence of windows commands

b)

Batch strips are useful for completing repetitive tasks

c)

To make you look intelligent

14.

What does dir command do?

a)

Show the contents of a directory

b)

Show directory of the business’ computers

c)

Show your ip config

15.

What does icacla command do?

a)

Used to change folder permissions

b)

Changes data

c)

Stores IP

16.

What does IP config do?

a)

Used to display networks or change networks

b)

Shows internet

c)

Shows users

17.

What is a linux bash script short for?

a)

.sh

b)

.bat

c)

.ps1

18.

What is a windows script short for?

a)

.sh

b)

.bat

c)

.ps1

19.

What is a power shell script short for?

a)

.bat

b)

.sh

c)

.ps1

20.

What are the first three stages of a life cycle?

a)

Gather Requirements

b)

Design

c)

Build Integrate, Test

d)

Optimise

e)

Operate

21.

What are the last three stages of a life cycle?

a)

Optimise

b)

Operate

c)

Implement deploy

d)

Gather Requirements

e)

Build Integrate, Test

22.

Which are these the correct stages of a life cycle?

a)

Optimise

b)

Customer experience

c)

Operate

d)

Build Integrate, Test

e)

Fault Finding

23.

Why do we use ALM?

a)

Standardisation

b)

Methodical Approach

c)

Analysis of each step

d)

Collation of Information

e)

To make it easier to figure software out

24.

Why do we use ALM?

a)

Ensuring Correct design

b)

Cost control

c)

Robust evaluation to aid future development

d)

To spend not as much money

e)

To develop the team

25.

What is in a command line?

a)

It is aptly called the command line interface (or CLI), the command line, or the command prompt. Like a graphical user interface, the command line is one way that the operating system represents the computer's files, directories, and programs (which are also files) to the user.

b)

Read the other one

26.

What is a shell?

a)

In computing, a shell is a computer program which exposes an operating system's services to a human user or other program. In general, operating system

b)

^

27.

What sorts of tasks would still be performed in a CLI?

a)

Examples of this include the Microsoft Windows, DOS Shell, and Mouse Systems PowerPanel.

b)

^

28.

What are ‘arguments’ when executing a command in a CLI?

a)

A command line argument is simply anything we enter after the executable name, which in the above example is notepad.exe. So for example, if we launched Notepad using the command C:\Windows\System32\notepad.exe /s, then /s would be the command line argument we used.

b)

^

29.

What does BASH stand for?

a)

Bourne-Again Shell

b)

BASH

30.

What Operating systems support BASH?

a)

Unix

b)

Linux

c)

Windows

31.

What is BASH?

a)

Bash is a Unix shell and command language

b)

Windows CMD

32.

How does BASH differ from the Windows CLIs?

a)

PowerShell relies on an object pipeline. By piping objects, PowerShell scripts share complex data, passing entire data structures between commands. Bash, on the other hand, passes output and input as plain text, which means it is easy for the user to move information to the next program

b)

^

33.

What sorts of tasks would you perform in BASH?

a)

Bash scripts can be used for various purposes, such as executing a shell command, running multiple

b)

^

34.

What is the special script file that is executed when you run BASH is launched?

a)

~/. Bashrc

b)

Ping

c)

CMD

35.

What are some of the common commands used in BASH?

a)

ls — List directory contents.

b)

echo — Prints text to the terminal window.

c)

touch — Creates a file.

d)

mkdir — Create a directory.

e)

grep — search.

36.

What is the Syntax for Powershell script commands?

a)

PowerShell has something called a cmdlet (command-let), which for the most part is the same idea as functions you're used to from other languages

b)

^

37.

What is the default state of the ‘execution policy’ for PowerShell?

a)

By default, PowerShell's execution policy is set to Restricted; this means that scripts will not run

b)

^

38.

why is that the default execution policy in powershell?

a)

Downloaded scripts must be signed by a trusted publisher before they can be run. Unrestricted

b)

^

39.

What are some of the common commands used in PowerShell?

a)

Get-CimInstance

b)

Get-WinEvent

c)

Enter-PSSession

d)

Get-ADUser

e)

Export-CSV

40.

What is the ‘ls’ command and which CLI(s) support it?

a)

Unix

b)

^

41.

What is the ‘cd’ command and which CLI(s) support it?

a)

command-line shell command used to change the current working directory in various operating systems

b)

^

42.

What is the ‘echo’ command and which CLI(s) support it?

a)

In computing, echo is a command that outputs the strings it is being passed as arguments used in unix and windows

b)

^

43.

What is the ‘Copy-Item’ command and which CLI(s) support it?

a)

Powershell

b)

Windows

44.

What is the difference between a ‘command’ and a ‘commandlet’ in Windows?

a)

The cmdlet (pronounced "command-let") is a lightweight Windows PowerShell script that performs a function. A command, in this context, is the specific order from the user to the computer operating system or an application to perform a service, such as displaying all files or running programs.

b)

^

45.

What format are Scripts saved in?

a)

Batch file

b)

Script

c)

CMD

d)

Java

46.

What are the 3 main approaches to High level languages?

a)

Python.

b)

Java.

c)

C++

d)

C#

e)

Visual Basic.

47.

What are the main differences between high and low-level languages?

a)

High level languages are easier to use than low level.

b)

^

48.

Which is the main difference to high level language?

a)

It requires a compiler/interpreter to be translated into machine code.

It can be ported from one location to another.

b)

It is easy to understand.

49.

What is the main distance for low level language?

a)

It requires an assembler that would translate instructions.

b)

It is not portable.

c)

It is difficult to understand.

50.

Are high level languages transferable to different processor architectures?

a)

Using high level languages, allows programmers to write applications that are portable (i.e. transferrable) across devices and different platforms.

b)

^

51.

How are high level languages easier to use?

a)

High-level languages are easier to read, write and maintain than low-level languages. This is because high-level languages use terms that are similar to English. An example is the print command that is used in various high-level languages.

b)

^

52.

What is procedural language?

a)

Procedural programming is a programming paradigm, derived from imperative programming, based on the concept of the procedure call.

b)

^

53.

What are some examples of procedural execution?

a)

Examples of Procedural languages: FORTRAN, COBOL, ALGOL, BASIC, C and Pascal. Non-Procedural Language: In the non-procedural languages, the user has to specify only “what to do” and not “how to do”

b)

^

54.

What is event-driven language?

a)

In computer programming, event-driven programming is a programming paradigm in which the flow of the program is determined by events such as user actions, sensor outputs, or message passing from other programs or threads.

b)

^

55.

Why is event-driven useful?

a)

Event-driven architectures are ideal for improving agility and moving quickly. They're commonly found in modern applications that use microservices, or any application that has decoupled components.

b)

^

56.

What is Object Oriented (OO) language

a)

Object-oriented programming is a programming paradigm based on the concept of "objects", which can contain data and code: data in the form of fields, and code, in the form of procedures.

b)

^

57.

What are the 3 main principles of Object Orientated?

a)

Encapsulation, inheritance, and polymorphism

b)

^

58.

What is Encapsulation in OO?

a)

to the bundling of data, along with the methods that operate on that data, into a single unit

b)

^

59.

What is Inheritance in OO?

a)

is the procedure in which one class inherits the attributes and methods of another class

b)

^

60.

What is polymorphism?

a)

In programming languages and type theory, polymorphism is the provision of a single interface to entities of different types or the use of a single symbol to represent multiple different types

b)

^

61.

What is an algorithm?

a)

computer-implementable instructions

b)

^

62.

Why should algorithms be defined before starting coding?

a)

Algorithms are more precise than informal instructions and do not require any insight to follow

b)

^

63.

What is a variable?

a)

In computer programming, a variable or scalar is a storage location paired with an associated symbolic name,

b)

^

64.

What are the 5 main data types?

a)

Character (or char). Used for single letters.

b)

Integer (or int). Used for whole numbers.

c)

Float (or Real).

d)

Boolean (or bool).

65.

What type of data can each type hold?

a)

Integer Numbers. An integer number can hold a whole number, but no fraction. Real Numbers. A real number (also known as a float) can hold a whole number or a fractional number that uses a decimal point.

b)

^

66.

What are the 3 main concepts of computer programmes?

a)

Sequence of commands (The right commands in the right order.)

b)

Conditional structures (Do certain things based on a true or false, yes or no decision

c)

Looping structures (A list of instructions to do more than once.)

d)

^