Sec. 8: Scripting Basics

Sec. 8: Scripting Basics

University

10 Qs

quiz-placeholder

Similar activities

C++ Knowledge Based Quiz I = IA

C++ Knowledge Based Quiz I = IA

University

15 Qs

Preguntas de JavaScript

Preguntas de JavaScript

University

15 Qs

8 ICT diagnostic test

8 ICT diagnostic test

8th Grade - University

10 Qs

Quiz 10 Perancangan dan Pemrograman Web

Quiz 10 Perancangan dan Pemrograman Web

University

10 Qs

Hari ke 3 Kuis coding dan pengenalan Al

Hari ke 3 Kuis coding dan pengenalan Al

University

10 Qs

Python

Python

University

15 Qs

QUiz 11 Perancangan dan Pemrograman Web-2021-1

QUiz 11 Perancangan dan Pemrograman Web-2021-1

University

10 Qs

Robotics/Coding Pop Quiz

Robotics/Coding Pop Quiz

4th Grade - Professional Development

10 Qs

Sec. 8: Scripting Basics

Sec. 8: Scripting Basics

Assessment

Quiz

Instructional Technology

University

Medium

Created by

Renato Biz Martins

Used 6+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A ________ lets you edit documents that are stored in plain-text format.

File editor

Text Editor

File viewer

Answer explanation

A text editor allows a user to edit documents in plain text. In the course, you learned how to use vi and nano.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Text files can include graphics, use multiple fonts, emphasize words by italicization,and other special forms of representation.

True

False

Answer explanation

Text files can only contain plain text represented by ASCII characters. A more complicated file type can contain fonts, bold, and italics.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A ______ is a program written in an interpreted language, typically associated with a shell or a compiled program.

Command

Textfile

Script

Answer explanation

A script is a simple text file that is executable. It contains a list of various commands that can be run within the shell.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

One of the most basic features of shell scripts is

the ability to compile programs

the ability to run commands

to ask for user input

Answer explanation

The most basic script is a file containing one or more commands.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

_________ is a placeholder for a value that will be determined when the script runs.

Variable

Script

Pipeline command

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

In this script, the display should be:

"Pinging ipaddress..."

"Checking to see if ipaddress is up.."

"Checking ipaddress..."

Answer explanation

The command echo will display the text to the screen. Since “Checking to see if $ip is up…” is used, the ip variable will be calculated in the second line of the script, and then displayed in the echo command.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

By convention, environment variable names are all uppercase.

True

False

Answer explanation

Environment variables should be written in all uppercase, like $CURRENT_PWD.

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?