
Scripting Unit 7 and 8 Practical Revision

Quiz
•
Computers
•
University
•
Medium
Emran Emran
Used 34+ times
FREE Resource
31 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
How do you print the variable value. (for example: num=5)
@num
$num
&num
num
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Rohan wants to accept an input data from user and print it on screen. How does he do it? Choose the correct option.
echo Enter data
read data
echo $data
echo Enter data
input data
echo $data
echo Enter data
Input data
echo @data
echo
read
echo $data
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Avery is learning how to write scripts for automating tasks on her computer. She comes across a line at the beginning of her script that seems important. Which one of the statements is true for the first line argument in her script?
First line starts with #! and this tells the compiler which interpreter to use to execute the script. and the line is #!/bin/bash
First line starts with #! and this tells the compiler which interpreter to use to execute the script. and the line is #!/bash/bash
First line starts with !# and this tells the compiler which interpreter to use to execute the script. and the line is #!/bin/bash
First line starts with #! and this tells the compiler which interpreter to use to execute the script. and the line is #!/bash/bin
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Grace is writing a script for her project. What should be the first line of her script?
#!/bin/bosh
#!/bin/bash
!#/bin/bash
$#/bin/bash
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
If you run the script as follows
./scriptName.sh Arjun Isla
What code will you be writing in your script to print these two arguments Arjun and Isla. Select correct code.
Using %1 %2
Using #1 #2
echo $1 $2
Using $0 $1
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
In a Unix systems class, Luna learned that you should have execute permission on a file to run the script.
True
False
I don't know
We never learned
If you select this option. I will conduct special classes for you.
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What permission should you configure after you created the script and before you run the script.
chmod u+x scriptName.sh
chmod +x
chmod +wr scriptName.sh
None of the above
Create a free account and access millions of resources
Similar Resources on Wayground
28 questions
TIK Kelas 7 semester 2 (KISI2)

Quiz
•
7th Grade - University
26 questions
Python программалау тілі бойынша тест тапсырмалары

Quiz
•
University
33 questions
Pemrograman Python Quiz ( Session IV - VI)

Quiz
•
University
30 questions
UH1 Pemrograman Perangkat Bergerak SMK RPL Kelas 11

Quiz
•
12th Grade - University
30 questions
Programming in Python - Unit III

Quiz
•
University
26 questions
HTML Forms - CIW SDA Lesson 6

Quiz
•
9th Grade - University
30 questions
Mastering Python Basics

Quiz
•
University
30 questions
Midterm Quiz | CSC 325 Operating System Quiz

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University