Font size
WorksheetsCoding and Logic
Total questions: 66
Worksheet time: 17hrs 30mins
Unix is used with what operating system?
Linux
Android
Windows
Apple
What is Unix Bash shell?
A scripting program language
Interactive command language
Is used to control the execution of the system
What can administrative tasks can Unix bash shell be used for?
Remote
Local
What is the 1s command used for?
List contents of dictionary
Show IP address
Flush DNS
What is the 1s -1 used for?
To list roots within Bash shell
To list options within Bash Shell
To turn your show IP config
What is the command cd used for?
Navigate the directory structure
To list other options
Navigate to IP bus
What does the command CP mean?
Copy files to one location to another
Deleted files
Command point
Control pictures within unix
What does the command mv mean?
Move file from one location to the other
Multi factor authentication
Man vs food
What does the command grep mean?
Used to search text files for the value supplied such as addresses
Go reapers
General radial configuration
What does the command gzip mean?
Compresses and de-compresses files
Stores data to DNS
Restores IP config
What does the command chmod do?
Sets permissions on files and folders. The 3 numbers represent permission levels for read, write and execute
Opens cmd
Converts cmd into files
What does the command netstat do?
Used to show open and active network connections. The option –ab shows the connections with the process that opened them
Closes internet connection
Opens up command prompt
Turns off ethernet ports
What are batch scripts used for?
Batch scripts enable a sequence of windows commands
Batch strips are useful for completing repetitive tasks
To make you look intelligent
What does dir command do?
Show the contents of a directory
Show directory of the business’ computers
Show your ip config
What does icacla command do?
Used to change folder permissions
Changes data
Stores IP
What does IP config do?
Used to display networks or change networks
Shows internet
Shows users
What is a linux bash script short for?
.sh
.bat
.ps1
What is a windows script short for?
.sh
.bat
.ps1
What is a power shell script short for?
.bat
.sh
.ps1
What are the first three stages of a life cycle?
Gather Requirements
Design
Build Integrate, Test
Optimise
Operate
What are the last three stages of a life cycle?
Optimise
Operate
Implement deploy
Gather Requirements
Build Integrate, Test
Which are these the correct stages of a life cycle?
Optimise
Customer experience
Operate
Build Integrate, Test
Fault Finding
Why do we use ALM?
Standardisation
Methodical Approach
Analysis of each step
Collation of Information
To make it easier to figure software out
Why do we use ALM?
Ensuring Correct design
Cost control
Robust evaluation to aid future development
To spend not as much money
To develop the team
What is in a command line?
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.
Read the other one
What is a shell?
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
^
What sorts of tasks would still be performed in a CLI?
Examples of this include the Microsoft Windows, DOS Shell, and Mouse Systems PowerPanel.
^
What are ‘arguments’ when executing a command in a CLI?
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.
^
What does BASH stand for?
Bourne-Again Shell
BASH
What Operating systems support BASH?
Unix
Linux
Windows
What is BASH?
Bash is a Unix shell and command language
Windows CMD
How does BASH differ from the Windows CLIs?
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
^
What sorts of tasks would you perform in BASH?
Bash scripts can be used for various purposes, such as executing a shell command, running multiple
^
What is the special script file that is executed when you run BASH is launched?
~/. Bashrc
Ping
CMD
What are some of the common commands used in BASH?
ls — List directory contents.
echo — Prints text to the terminal window.
touch — Creates a file.
mkdir — Create a directory.
grep — search.
What is the Syntax for Powershell script commands?
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
^
What is the default state of the ‘execution policy’ for PowerShell?
By default, PowerShell's execution policy is set to Restricted; this means that scripts will not run
^
why is that the default execution policy in powershell?
Downloaded scripts must be signed by a trusted publisher before they can be run. Unrestricted
^
What are some of the common commands used in PowerShell?
Get-CimInstance
Get-WinEvent
Enter-PSSession
Get-ADUser
Export-CSV
What is the ‘ls’ command and which CLI(s) support it?
Unix
^
What is the ‘cd’ command and which CLI(s) support it?
command-line shell command used to change the current working directory in various operating systems
^
What is the ‘echo’ command and which CLI(s) support it?
In computing, echo is a command that outputs the strings it is being passed as arguments used in unix and windows
^
What is the ‘Copy-Item’ command and which CLI(s) support it?
Powershell
Windows
What is the difference between a ‘command’ and a ‘commandlet’ in Windows?
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.
^
What format are Scripts saved in?
Batch file
Script
CMD
Java
What are the 3 main approaches to High level languages?
Python.
Java.
C++
C#
Visual Basic.
What are the main differences between high and low-level languages?
High level languages are easier to use than low level.
^
Which is the main difference to high level language?
It requires a compiler/interpreter to be translated into machine code.
It can be ported from one location to another.
It is easy to understand.
What is the main distance for low level language?
It requires an assembler that would translate instructions.
It is not portable.
It is difficult to understand.
Are high level languages transferable to different processor architectures?
Using high level languages, allows programmers to write applications that are portable (i.e. transferrable) across devices and different platforms.
^
How are high level languages easier to use?
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.
^
What is procedural language?
Procedural programming is a programming paradigm, derived from imperative programming, based on the concept of the procedure call.
^
What are some examples of procedural execution?
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”
^
What is event-driven language?
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.
^
Why is event-driven useful?
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.
^
What is Object Oriented (OO) language
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.
^
What are the 3 main principles of Object Orientated?
Encapsulation, inheritance, and polymorphism
^
What is Encapsulation in OO?
to the bundling of data, along with the methods that operate on that data, into a single unit
^
What is Inheritance in OO?
is the procedure in which one class inherits the attributes and methods of another class
^
What is polymorphism?
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
^
What is an algorithm?
computer-implementable instructions
^
Why should algorithms be defined before starting coding?
Algorithms are more precise than informal instructions and do not require any insight to follow
^
What is a variable?
In computer programming, a variable or scalar is a storage location paired with an associated symbolic name,
^
What are the 5 main data types?
Character (or char). Used for single letters.
Integer (or int). Used for whole numbers.
Float (or Real).
Boolean (or bool).
What type of data can each type hold?
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.
^
What are the 3 main concepts of computer programmes?
Sequence of commands (The right commands in the right order.)
Conditional structures (Do certain things based on a true or false, yes or no decision
Looping structures (A list of instructions to do more than once.)
^
