
Scripting Unit 7 and 8 Practical Revision
Authored by Emran Emran
Computers
University
Used 43+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
27 questions
Компьютердик эргономика боюнча тест
Quiz
•
6th Grade - University
32 questions
KIỂM TRA 45P- MS WORD
Quiz
•
University
30 questions
Latihan Soal ALGORITMA DATA SCIENCE
Quiz
•
University
26 questions
ASM452
Quiz
•
University
29 questions
COMPTIA ITF
Quiz
•
1st Grade - Professio...
30 questions
Google Sheets Toolbar Quiz
Quiz
•
7th Grade - Professio...
26 questions
Asesmen Awal Informatika Kelas X
Quiz
•
10th Grade - University
26 questions
Latihan Infromatika Kelas 9
Quiz
•
9th Grade - University
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
5 questions
What is Presidents' Day?
Interactive video
•
10th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
20 questions
Mardi Gras History
Quiz
•
6th Grade - University
10 questions
The Roaring 20's Crash Course US History
Interactive video
•
11th Grade - University
17 questions
Review9_TEACHER
Quiz
•
University