Answer:
Assuming this is in python:
def check_password(password):
correct_password = "qbasic"
if password == correct_password:
return True
else:
return False
def main():
user_input = input("Type in your password: ")
if check_password(user_input):
print("Correct!")
else:
print("Wrong, try again")
main()
Explanation:
Hope this helped :) If it wasn't suppose to be in python, tell me so I can make it in the correct programming language.
Have a good day :)
Giga usually means 10^9
We're trying to work giba, which is 2^30 into the vocabulary to differentiate them because of the confusion and difference that they create.
Answer:
B. root
Explanation:
Every user in Linux is assigned a folder from which they can store their files. The interpreter allows you to abbreviate your route with the “~” symbol. The ls command without any additional data shows the files in the current directory, but if after the name of the command a path is written, it shows the files in that path. Therefore, the ls ~ command shows the files in the user's folder.
In addition to the folders and files created by the user or programs, every Linux folder has two subfolders defined by default:
“..”: It is the top level folder in the file hierarchy that contains it. This subfolder is also present in the root of the filesystem (the folder with absolute path “/”), but points to itself.
“.”: It is the folder itself that appears as if it were also a subfolder. It can be considered as a "self-reference" or pointer to itself.
These folders are normal folders in the system for all purposes; that is, they can be used on routes. For example, the path /dirA/dirB/dirC/../fichero2.txt refers to the file that is stored in the dirB folder, since from dirC, the folder .. points to its predecessor, dirB. The following figure shows the interpretation of this route as well as the equivalent of the “..” and “.” Folders.
Answer:
a. You are eligible to vote.
Explanation:
If Age >= 18 Then
Write "You are eligible to vote."
Else
Set - Age
Write "You can vote in " + Years + " years."
End If
The above code block is an example of if-else code block. The if-else code block follow a pattern of:
If (expression) then
else
(expression)
end if
Based on the if Age>= 18 condition, the output will be "You are eligible to vote."