Simple Shell Programming – Passage-Based Quiz

Simple Shell Programming – Passage-Based Quiz

8 Qs

quiz-placeholder

Similar activities

7th Grade Unit 4 Lesson 01 Quiz

7th Grade Unit 4 Lesson 01 Quiz

KG - University

10 Qs

Elements of Drama Matching

Elements of Drama Matching

KG - University

10 Qs

1st prep / 2nd Term . Lesson (4) . Week (4) HW

1st prep / 2nd Term . Lesson (4) . Week (4) HW

KG - University

13 Qs

Reading Quiz (Elements of Drama)

Reading Quiz (Elements of Drama)

KG - University

12 Qs

Web Designing Quiz

Web Designing Quiz

KG - University

10 Qs

แบบทดสอบหลังเรียน App for Presentation

แบบทดสอบหลังเรียน App for Presentation

University

10 Qs

Text 1: Hello World 2025

Text 1: Hello World 2025

KG - University

7 Qs

Simple Shell Programming – Passage-Based Quiz

Simple Shell Programming – Passage-Based Quiz

Assessment

Quiz

others

Easy

Created by

sathi v

Used 1+ times

FREE Resource

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