Linux-and-Bash-for-Data-Engineering Quizzes & Answers – Coursera
Diving into the world of data engineering requires a solid understanding of the foundational tools that drive analysis and insight. Linux and Bash scripting stand out as pivotal skills for managing data workflows and automating tasks.
Our latest blog post offers an in-depth look at Coursera’s quizzes and answers for the ‘Linux-and-Bash-for-Data–Engineering‘ course, providing readers with a practical guide to mastering these essential tools. Stay tuned as we unravel the quizzes and their solutions to bolster your data engineering expertise.
- A type of hardware.
- A kernel.
- A free and open source operating system inspired by UNIX.
- A cloud-based shell is similar or identical to the deployment environment in that cloud.
- They always run a proprietary UNIX which is helpful for building cloud solutions.
- The cloud-shell runs on your laptop and can take advantage of power of your local machine.
- It maintains the software development with the latest tools for you.
- It is always faster.
- It is free.
- To perform complex operations on data.
- Writing a web service.
- Writing a mobile application.
- A file.
- A shell pipeline cannot output.
- The windows operating system.
- The > operator directs the output of a command to a file. The | operator directs the output of a command to another command.
- The | operator directs the output of a command to a file. The > operator directs the output of a command to another command.
- Both operators do the same thing, which is direct output to a file.
- The Git server must have a copy of ~/.ssh/id_rsa from the client checking out the repository.
- You do not need to copy files to a server to use SSH-based checkout.
- The Git server must have a copy of ~/.ssh/id_pub from the client checking out the repository.
- Developing locally from a server running remotely.
- Doing unencrypted communication on a local network.
- Creating a public chat server that doesn’t require authentication.
- rsync
- mv
- rmdir
- By use of the ~/.ssh/config file.
- By use of the ~/.zshrc file.
- By use of the ~/.bashrc file.
- It is a Bash login shell that only runs at the start of a new login shell.
- It is a Bash logout shell that only runs when a shell exits.
- It is a Bash shell script that runs whenever Bash is started interactively.
- It is a ZSH login shell that only runs at the start of a new login shell.
- It is a ZSH logout shell that only runs when a shell exits.
- It is a ZSH shell script that runs whenever Bash is started interactively.
- FRUIT=”cherry”
- echo $FRUIT
- export FRUIT=”cherry”
- Cherries are tasty
- echo Cherries are tasty
- $FRUIT are tasty
- It will display the help menu for a command.
- You will see output like the following:
- alias egrep=’egrep –color=auto’
- alias fgrep=’fgrep –color=auto’
- alias grep=’grep –color=auto’
- alias l.=’ls -d .* –color=auto’
- alias ll=’ls -l –color=auto’
- alias ls=’ls –color=auto’
- alias which=’alias | /usr/bin/which –tty-only –read-alias –show-dot –show-tilde’
– [ ] It will print the name of the shell currently in use.
- It is always blank.
- Errors from the improper execution of a shell command.
- The content of a file.
- It will create the file since it doesn’t exist.
- It will display the following error. ls: cannot access fakefile: No such file or directory
- There is no output.
- It deletes the output of stderr
- Write stderr to error.txt
- Write stdout to error.txt
- It appends 10 random numbers to a file.
- It overwrites a file with a new random number 10 times.
- It throws away the output of standard out.
- The sort command is appending to the /etc/password file.
- The /etc/password file is reverse sorted.
- The /etc/password file is overwritten with a sorted version
- A for loop.
- Making a script.
- Creating a variable.
- An error prints to stdout.
- Nothing prints out.
- The word “hi” prints to stdout.
- An error prints to stdout.
- The word “hi” prints to stdout.
- Nothing prints out.
Q4. Why would a data scientist need to truncate a large file before bringing it into a popular data scientist library like Pandas?
- To remove null values.
- It improves the accuracy of a prediction.
- To convert the data to a small data problem.
-
Nothing.
-
hello
-
hello
world
- They are both the same command.
- The locate command uses metadata to search the filesystem.
- The find command uses metadata to search the filesystem.
- Find all directories in the search path
- Find all executable non-invisible files.
- Find all files with the word x in them.
-
apple
peach
-
pear
-
apple
pear
peach
- They want to truncate a file and grab the first 10000 rows.
- They want to randomly sample 10000 rows of a file.
- They want to truncate a file and grab the last10000 rows.
- It sleeps for 2 seconds then quits with no output.
- It prints out “bob is your uncle” every 2 seconds.
- It prints out “bob is your uncle” twice then stops.
- Find only occurrences of .ZSHRC
- Find only occurrences of .zshrc
- Find occurrences of both .ZSHRC and .zshrc
- They are both the same speed to execute.
- The first command.
- The second time command using locate.
- mv
- cp
- touch
Q4. The following output describes how a UNIX file permission gets set. How would you apply this to a file called foo.txt?
- chmod 754 foo.txt
- touchchown root:root
- touchchmod -R 777 *
- Nothing
- It creates a zip archive of the foo directory in the location archives/foo.zip
- It unzips archives/foo.zip
- It creates an uncompressed archive.
- It creates an archive of the foo directory.
- Nothing.
- less -r foo.txt
- sort -r < foo.txt
- rev < foo.txt
- sort fruit.txt
- uniq -c fruit.txt
- sort fruit.txt | uniq -c
- 415-444-5599
- 41-444-5599
- Nothing.
- POSITIVE
- NEGATIVE
- MIXED
Leave a reply
You must login or register to add a new comment .