Search Header Logo

1800 Practice Testing 2

Authored by James Tafoya

Computers

University

Used 3+ times

1800 Practice Testing 2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

40 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Kate wants to compare two text files to identify what might have been changed from one version to another. Which of the following commands can she use to do this?

match document1.txt document2.txt

version --compare document1.txt document2.txt

compare document1.txt document2.txt

diff document1.txt document2.txt

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Mike has changed his current directory several times and has lost track of his location in the directory tree. Which of the following commands can he use to tell him the full path to the current directory he is in?

cd -

pwd

cwd

ls -dir

3.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Which of the following commands will not interpret regular expressions, which translates into faster results being returned? (Choose all that apply.)

grep

grep -F

egrep

fgrep

4.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Joe has received a text file that contains multiple instances of his name spelled correctly as well as multiple instances spelled as Joe. Which of the following commands would search a text file for any occurrences of either spelling and display them out to the terminal? (Choose three.)

grep "Joe?" document1.txt

grep -E "Joe?" document1.txt

grep "Joe*" document1.txt

grep -E "Joe*" document1.txt

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Garrett wants to search through a csv file to find all rows that have either the name John or Bob in them and display them out to the terminal. Which of the following commands could Garrett use to perform this search?

grep -E "(John|Bob)" salesemployees.csv

grep (John|Bob) salesemployees.csv

grep -E (John|Bob) salesemployees.csv

grep (John|Bob) salesemployees.csv

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Chase is trying to extract records for employees 423 through 428 out of a comma separated values file that starts with the employee number. Which of the following commands would accomplish this? (Choose all that apply.)

grep 423,424,425,426,427,428 employees.csv

grep "42[3-8]" employees.csv

grep "423-428" employees.csv

grep "[423-428]" employees.csv

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When using the vi text editor, which of the following keys, when in command mode, will change to insert mode and place the cursor at the end of the current line?

a

b

c

d

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?