This is an intermediate-level software development course so it is expected for you to have some prerequisite knowledge on the topics covered, as outlined at the beginning of the lesson. Here is a little quiz that you can do to test your prior knowledge to determine where you fit on the skills spectrum and if this course is for you.
Git
-
Which command should you use to initialise a new Git repository?
a. git bash b. git install c. git init d. git start
Solution
-
After you initialise a new Git repository and create a file named
LICENCE.md
in the root of the repository, which of the following commands will not work?a. git add LICENCE.md b. git status c. git add . d. git commit -m "Licence file added"
Solution
-
git clone
command downloads and creates a local repository from a remote repository. Which command can then be used to upload your local changes back to the remote repository?a. git push b. git add c. git upload d. git commit
Solution
Shell
-
In the command line shell, which command can you use to see the directory you are currently in?
a. whereami b. locate c. map d. pwd
Solution
-
Which command do you use to go to the parent directory of the directory you are currently in?
a. cd - b. cd ~ c. cd /up d. cd ..
Solution
-
How can you append the output of a command to a file?
a. command > file b. command >> file c. command file d. command < file
Solution
Python
-
Which of these collections defines a list in Python?
a. {"apple", "banana", "cherry"} b. {"name": "apple", "type": "fruit"} c. ["apple", "banana", "cherry"] d. ("apple", "banana", "cherry")
Solution
-
What is the correct syntax for if statement in Python?
a. if (x > 3): b. if (x > 3) then: c. if (x > 3) d. if (x > 3);
Solution
-
Look at the following 3 assignment statements in Python.
n = 300 m = n n = -100
What is the result at the end of the above assignments?
a. n = 300 and m = 300 b. n = -100 and m = 300 c. n = -100 and m = -100 d. n = 300 and m = -100
Solution