EXAM 2024 NEWEST EXAM COMPLETE 300 QUESTIONS
WITH DETAILED VERIFIED ANSWERS (100%
CORRECT) /ALREADY GRADED A+
What is the output of the following Python code fragment:
def compute(a): return a - 1 print(compute(7) * compute(6))
a. 20
b. 30
c. 24
d. 42 - ANSWER: b. 30
What command shall we use to install pycryptodome in our Python project
a. install pip pycryptodome
b. pip3 install pycryptodome
c. import pycryptodome
d. include pycryptodome - ANSWER: c. import pycryptodome
The three standard streams in Linux are?
a. 0: Standard Output/1: Standard Input/2: Standard Error
b. 2: Standard Output/1: Standard Input/0: Standard Error
c. 1: Standard Output/0: Standard Input/2: Standard Error
d. 0: Standard Output/2: Standard Input/1: Standard Error - ANSWER: c. 1: Standard
Output/0: Standard Input/2: Standard Error
What Python import module is needed for base64 encoding & decoding - ANSWER:
base64
What Bash tool or command is used to create schedules? - ANSWER: cron daemon
(crond)
What extension is used at the end of a PowerShell file to distinguish it from a Bash
and Python file? - ANSWER: .ps1
What Python module allows us to interact with the underlying Operating System? -
ANSWER: os
What PowerShell cmdlet creates a record of all or part of a PowerShell session to a
text file? - ANSWER: Start-Transcript
What is the Linux command to show all the commands that have been recently
used? - ANSWER: history
What command can be used to find out how long a system is running in bash? -
ANSWER: uptime
, Does PowerShell pipeline operator pass plaintext or objects? - ANSWER: objects
What is the output of the following code fragment?
required_course = "Script Programming", "Computer Security", "Applied
Cybersecurity" a,b,c = required_course print(c)
a. "Computer Security", "Applied Cybersecurity"
b. Applied Cybersecurity
c. Script Programming
d. "Script Programming", "Computer Security", "Applied Cybersecurity" - ANSWER: b.
Applied Cybersecurity
The keyword "include" is used to import module in the current project/file for
Python
a. True
b. False - ANSWER: false, keyword is "import"
Which of the following item is not included in PowerShell function?
a. A Function keyword
b. Any number of named parameters (optional)
c. One or more PowerShell commands enclosed in braces {}
d. One or more PowerShell commands enclosed in : - ANSWER: d. One or more
PowerShell commands enclosed in :
(this is used in python)
What PowerShell script is used to display the content of topsecret.txt file
a. Get-Content topsecret.txt
b. Copy-Content topsecret.txt
c. Display-Content topsecret.txt
d. Set-Content topsecret.txt - ANSWER: a. Get-Content topsecret.txt
What Linux command is used to remove script.sh
a. remove script.sh
b. rmv script.sh
c. rm script.sh
d. rmdir script.sh - ANSWER: c. rm script.sh
Which of the is not the design goal of Bash Shell
a. Serve as an interface between the user and operating system
b. Portable
c. Interactive and scripting environments
d. Graphics User Interface (GUI) Shell - ANSWER: d. Graphics User Interface (GUI)
Shell
Which of the following is an example of Python function prototype that takes
variable number of arguments