Search Header Logo

Ethical Hacking Kali Linux Part 3

Authored by KALAIARASAN SGM

Information Technology (IT)

Professional Development

Ethical Hacking Kali Linux Part 3
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct shebang line to start a Bash script?

#!/usr/bin/python

#!/bin/bash

#!/bin/sh

#!/bash

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to define a variable in Bash?

name = "Alex"

name: Alex

name="Alex"

$name = Alex

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the following script output?

x=5

echo $x

$x

x

5

x=5

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which conditional statement is used for multiple conditions?

elseif

elif

else if

ifelse

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the if block below check?

if [ $num -eq 10 ]; then

echo "Ten"

fi

If num is less than 10

If num is equal to 10

If num is a string

If num is undefined

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which loop executes a set of commands for a given range?

until loop

while loop

for loop

case loop

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the script?

for i in {1..3}; do

echo $i

done

123

1 2 3

1 2 3 on one line

1 (newline) 2 (newline) 3 (newline)

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?