Intro to Scripting

Intro to Scripting

11th Grade

11 Qs

quiz-placeholder

Similar activities

S3 Web Design

S3 Web Design

9th - 12th Grade

10 Qs

Kompetensi Pengetahuan -AIJ11S1-003

Kompetensi Pengetahuan -AIJ11S1-003

11th Grade

15 Qs

Python Syntax

Python Syntax

6th - 12th Grade

14 Qs

COMPUTER SYSTEMS SERVICING

COMPUTER SYSTEMS SERVICING

11th Grade

10 Qs

IoT Chapter 2 Review

IoT Chapter 2 Review

9th - 12th Grade

14 Qs

Fundamentos de Shell Script

Fundamentos de Shell Script

11th Grade - University

12 Qs

SC Coding Fundamentals Second Attempt Quiz

SC Coding Fundamentals Second Attempt Quiz

7th - 12th Grade

10 Qs

GitHub Jan12

GitHub Jan12

11th Grade - University

10 Qs

Intro to Scripting

Intro to Scripting

Assessment

Quiz

Computers

11th Grade

Medium

Created by

j s

Used 9+ times

FREE Resource

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a shebang?

A line at the end of a bash file, signalling the end of a script

A line at the top of a script, signalling the interpreter the computer should use

It's another word for a command in the bash language.

It's the term for when you expand a bash variable with $variablename

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What do you call the line at the top of a script that tells the computer what interpreter to use?

"command line"

"shell"

"shebang"

"modeline"

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the first two characters in a shebang?

#!

??

!*

#*

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does cat do?

Prints one or more files to standard output

Makes a cat run across the screen

Runs binaries

Opens a file for editing

5.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

What command lists contents in a directory?

ls

list

dir

cat

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens if the shebang is omitted from a script?

The script will not run

The script will run with the default interpreter

The script will ask the user to specify an interpreter

The script will generate an error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is vi?

A text editor

A type of shell

A command to execute files

The command to change file permisisons

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?