
CSE 15L Lab 8
Authored by Genevieve Dietz
Computers
University
Used 56+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 2 pts
How do you run a bash script named script.sh?
java script.sh
cd script.sh
bash script.sh
ba script.sh
2.
MULTIPLE CHOICE QUESTION
45 sec • 2 pts
What does set -e do?
all executed commands are printed to the terminal
exit if any command has a non-zero exit status
causes the program to immediately exit
the script can still run even if a command returns a non-zero exit status
3.
MULTIPLE SELECT QUESTION
45 sec • 2 pts
What is the right syntax for an if statement that checks if the path for val exists?
[[ -e <val> ]]
[ -e <val> ]
[[-e <val>]]
[-e <val>]
4.
MULTIPLE CHOICE QUESTION
45 sec • 2 pts
Which symbol reads the repository link you passed when executing grade.sh (first command line argument)?
$?
$$
$0
$1
5.
MULTIPLE CHOICE QUESTION
45 sec • 2 pts
What does $? do?
represents the list of arguments passed to the current process
prints to standard out
represents the exit status of the previous command
prints to standard error
6.
MULTIPLE CHOICE QUESTION
45 sec • 2 pts
Where might it be useful to use or check an exit code?
in scripts that run known code or use known data
in scripts that run unknown code or use unknown data
it's never useful in bash scripts
after a print statement
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What does cp -r source dest do?
copy directories recursively
removes files located in the dest directory
removes each existing destination file before attempting to open it
replaces dest with source
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
10 questions
Bài tập biểu mẫu
Quiz
•
University
12 questions
Porcentajes
Quiz
•
University
10 questions
ÔN TẬP BÀI 16 - K10
Quiz
•
10th Grade - University
10 questions
Quiz ECIH Week 4
Quiz
•
University
10 questions
Web-II-Loop and Function
Quiz
•
University
10 questions
GUI Quiz
Quiz
•
University
12 questions
O que vamos aprender?
Quiz
•
1st Grade - University
10 questions
Algorithm analysis: divide & conquer theory
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
7 questions
Fragments, Run-ons, and Complete Sentences
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
10 questions
DNA Structure and Replication: Crash Course Biology
Interactive video
•
11th Grade - University
5 questions
Inherited and Acquired Traits of Animals
Interactive video
•
4th Grade - University
5 questions
Examining Theme
Interactive video
•
4th Grade - University
20 questions
Implicit vs. Explicit
Quiz
•
6th Grade - University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University