Last active
January 12, 2023 09:16
-
-
Save tobidosumu/f838e245680b1f805c2910301da322ac to your computer and use it in GitHub Desktop.
This is part of a series of backend assignments at Upperlink where I intern.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1.a. By the end of next year, state 5 programming languages/frameworks you will be writing | |
| I. Laravel | |
| II. Angular | |
| III. React | |
| IV. Vue | |
| V. React Native | |
| b. What is your most preferred programming stack | |
| MERN: | |
| M - Mongo DB | |
| E - Express JS | |
| R - React | |
| N - Node JS | |
| c. Write the top 5 buttons you click the most | |
| I. Spacebar | |
| II. Enter | |
| III. Tab | |
| IV. Ctrl | |
| V. Backspace | |
| d. State what top 5 software you will be using by the end of next year | |
| I. IntelliJ IDEA | |
| II. Android Studio | |
| III. Bitbucket | |
| IV. Netlify | |
| V. Jest | |
| 2. a. State 10 differences between a try/catch block and a callback error handler | |
| I. Syntax: A try/catch block uses the keywords "try" and "catch" to enclose code that may throw an exception, | |
| whereas a callback error handler typically uses a function passed as an argument to handle errors. | |
| II. Flow control: A try/catch block stops the execution of the current code block and transfers control to the | |
| catch block when an exception is thrown, whereas a callback error handler typically allows the code to continue | |
| executing and calls the error-handling function asynchronously. | |
| III. Scope: The scope of a try/catch block is the block of code enclosed by the try and catch keywords, | |
| whereas the scope of a callback error handler is determined by the function it is passed to. | |
| IV. Error handling: A try/catch block allows you to handle specific exceptions and their associated error | |
| messages in one place, whereas a callback error handler may require separate error-handling functions | |
| for different types of errors. | |
| V. Synchronous vs asynchronous: A try/catch block is used for synchronous code, whereas a callback error | |
| handler is typically used for asynchronous code. | |
| VI. Nesting: Try/catch blocks can be nested, whereas callback error handlers typically cannot. | |
| VII. Re-throwing: An exception can be re-thrown in a catch block, but cannot be re-thrown in a callback error handler. | |
| VIII. Context: Try/catch blocks provide context of the error and where it occurred, whereas callback error handlers | |
| typically, only provide the error message or object. | |
| IX. Order of execution: Try/catch blocks are executed in the order in which they appear, whereas callback error | |
| handlers may be executed out of order. | |
| X. Return value: A try/catch block does not return a value, whereas a callback error handler may return a value or a promise. | |
| b. Give 2 qualifiable reasons of when to use async/await | |
| 3. Give 10 differences and 10 similarities between Mongoose upsert, mongoose insert and mongoose set |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment