coding interview preparation coursera week 1 quiz answers
Knowledge check: The coding interview
1. What are softskills?
- They relate to the way you conduct yourself social.
- Coding skills that improve presentation of code.
- Skills that you would not feel very competent at.
2. When are you most likely to be asked about your Softskills?
- During a technical interview.
- During a quiz.
- During a screening call.
3. What is the purpose of the online coding assignment?
- To help you get into the mindset of working for this company before you start
- It is designed to give you an opportunity to show what you can produce in an unpressurized environment that mimics potential job activities you will be asked to undertake
- It is to get you to solve some company problem
5. When should you test your code?
- Continuously as the project progress.
- At the end.
- Whenever the application crashes to identify what the issue is.
Knowledge check: Time complexity
7. Given the following lines of code pseudocode;
N = 7
FOR i = 1 TO N:
output(i)
- O(N)
- O(1)
- O(n^2)
8. Given the following lines of code pseudocode;
N = 7
FOR i = 1 TO N:
FOR j = 1 TO N:
output(N)
- O(N)
- O(n^2)
- O(1)
Shuffle Q/A 1
9. Given the following lines of code pseudocode:
N = 37
FOR i = 1 TO N:
WHILE i < 10:
output(i*N)
- O(1)
- O(N)
- O(n^2)
10. Given the following lines of code pseudocode;
N = 37
FOR i = 1 TO N:
WHILE i < 10:
output(i*N)
- O(N)
- O(1)
- O(n^2)