Simple Shell Programming – Passage-Based Quiz

Simple Shell Programming – Passage-Based Quiz

8 Qs

quiz-placeholder

Similar activities

RRR-Q4

RRR-Q4

KG - University

11 Qs

Moses #1

Moses #1

1st Grade

10 Qs

ODF-JULY6TH

ODF-JULY6TH

KG - University

12 Qs

ChiaGeiLow

ChiaGeiLow

Professional Development

11 Qs

quizIZZ 4-2

quizIZZ 4-2

KG - University

10 Qs

3/10 Graphs Quiz

3/10 Graphs Quiz

3rd Grade

10 Qs

Working with Multipication, Division, And Vizualising (check over) our answers. (some Adding and subtraction for help)

Working with Multipication, Division, And Vizualising (check over) our answers. (some Adding and subtraction for help)

KG - University

11 Qs

Simple Shell Programming – Passage-Based Quiz

Simple Shell Programming – Passage-Based Quiz

Assessment

Quiz

others

Practice Problem

Easy

Created by

sathi v

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • Ungraded

1. Which command did Divya use to get user input in her first script?

input
read
scan
gets

2.

MULTIPLE CHOICE QUESTION

30 sec • Ungraded

2. Which command is used to print text in a shell script?

say
print
display
echo

3.

MULTIPLE CHOICE QUESTION

30 sec • Ungraded

3. To calculate the sum of first `N` numbers, which loop structure did Divya use?

while
for
repeat
until

4.

MULTIPLE CHOICE QUESTION

30 sec • Ungraded

4. What operator did Divya use to check whether a number is even or odd?

/
*
%
==

5.

MULTIPLE CHOICE QUESTION

30 sec • Ungraded

5. Which of the following refers to the first command-line argument in a shell script?

$0
$1
$@
arg1

6.

MULTIPLE CHOICE QUESTION

30 sec • Ungraded

6. What is the purpose of `chmod +x script.sh`?

Compile the script
Edit the script
Make the script executable
Rename the script

7.

MULTIPLE CHOICE QUESTION

30 sec • Ungraded

7. How did Divya run her script from the terminal after making it executable?

bash script.sh
./script.sh
run script.sh
execute script.sh

8.

MULTIPLE CHOICE QUESTION

30 sec • Ungraded

8. Which conditional structure did Divya use to check even/odd?

switch
case
if
do