In the Linux directory structure, where are shared libraries typically stored?

  • /bin
  • /etc
  • /lib
  • /var
Shared libraries in Linux are typically stored in the /lib directory. These libraries contain code that various programs and applications use to perform common functions, such as input/output operations, memory management, and more.

Which command in Linux is used to format a new disk partition?

  • mkfs
  • fdisk
  • format
  • mkpart
The correct answer is "fdisk." The fdisk command is used to create and manage disk partitions on a Linux system. It does not format the partition directly but is used to create and manage the partition structure. Formatting is typically done using tools like mkfs.

Which command is commonly used for securely copying files between remote systems?

  • scp
  • ls
  • cat
  • mv
The scp (secure copy) command is commonly used for securely copying files between remote systems. It uses SSH to encrypt the data during the transfer, ensuring security.

When creating a case statement in Bash, each case is ended with the word ________.

  • esac
  • end
  • done
  • fi
When creating a case statement in Bash, each case is ended with the word esac. The esac keyword marks the end of the case statement, and it's used to close the case block.

The Linux tool __________ allows administrators to view and set system and kernel parameters at runtime.

  • sysctl
  • top
  • ls
  • nano
The Linux tool sysctl allows administrators to view and set system and kernel parameters at runtime. It's a powerful utility for fine-tuning and configuring various aspects of the Linux kernel to optimize performance and behavior.

In Docker, a _________ is a lightweight, stand-alone, executable software package that includes everything needed to run a piece of software.

  • Container
  • Image
  • Virtual Machine
  • Repository
In Docker, an "image" is a lightweight, stand-alone, executable software package that includes everything needed to run a piece of software. Docker containers are created from these images, allowing you to run applications in an isolated environment.

In the context of user authentication, what is a "salt" used for?

  • Adding randomness to a password before hashing
  • Encrypting user passwords
  • Verifying the user's identity
  • Generating secure tokens
In user authentication, a "salt" is used to add randomness to a password before hashing. This helps protect against common attacks like rainbow table attacks and ensures that even the same password will have different hash values due to the unique salt.

A colleague is trying to access a directory shared via NFS from a Linux machine but is facing permission issues. Which file on the server would you check to verify the permissions and access for the shared directory?

  • /etc/exports
  • /etc/fstab
  • /etc/nfsd.conf
  • /etc/permissions
To verify permissions and access for a directory shared via NFS, you would check the /etc/exports file on the NFS server. This file specifies the directories that are shared and the permissions granted to clients.

Which command in a shell script is used to break out of a loop prematurely?

  • break
  • continue
  • exit
  • return
The break command in a shell script is used to break out of a loop prematurely. When encountered, it immediately exits the loop and continues with the next statement after the loop. This is handy for situations where you want to exit a loop based on a specific condition.

Which directory in Linux contains system configuration files?

  • /etc
  • /home
  • /opt
  • /var
The /etc directory in Linux contains system configuration files. These files store configuration settings for various system components and applications.

What is a common application of GANs in the field of image processing?

  • Image classification.
  • Style transfer.
  • Sentiment analysis.
  • Speech recognition.
GANs are frequently used for style transfer, a technique that changes the artistic style of an image. It's commonly employed in fields like art and design for image manipulation and transformation.

You're working on a project where you need to predict the next word in a sentence based on the previous words. Which type of neural network architecture would be most appropriate for this task?

  • Recurrent Neural Network (RNN)
  • Convolutional Neural Network (CNN)
  • Long Short-Term Memory (LSTM)
  • Gated Recurrent Unit (GRU)
A Long Short-Term Memory (LSTM) is well-suited for this task because it can capture long-term dependencies in sequential data, making it effective for predicting the next word based on previous words in a sentence.