From 2dde0943dc56b1f06e242c45be33755c5c4317d8 Mon Sep 17 00:00:00 2001 From: ebazhanov Date: Thu, 23 Sep 2021 08:14:29 +0200 Subject: [PATCH] - prettier formatting --- README.md | 2 + accounting/accounting-quiz.md | 84 +++++++++++------------ aws/aws-quiz.md | 3 +- c#/c-sharp-quiz.md | 10 ++- c++/c++quiz.md | 38 +++++----- dotnet-framework/dotnet-framework-quiz.md | 7 +- git/git-quiz.md | 1 + html/html-quiz.md | 12 ++-- javascript/javascript-quiz.md | 18 +++-- kotlin/kotlin-quiz.md | 1 + matlab/matlab-quiz.md | 8 +-- package.json | 2 +- python/python-quiz.md | 1 - rest-api/rest-api-quiz.md | 2 +- spring-framework/spring-framework-quiz.md | 16 ++--- 15 files changed, 103 insertions(+), 102 deletions(-) diff --git a/README.md b/README.md index 83a7a01c6d..025c8d4e1b 100755 --- a/README.md +++ b/README.md @@ -1,7 +1,9 @@ ## Linkedin Quiz Answers, Skill Assessments Test + [![All Contributors](https://img.shields.io/badge/all_contributors-550-orange.svg?style=flat-square)](#contributors-) + > This repository is for those looking for answers to the LinkedIn assessment quiz questions or willing to help others by contributing to the tests. Or possibly you would like to create your first pull request and be added as a contributor. Whatever is your goal - you are always welcome here! Feel free to use [online grammar checker](https://www.grammarly.com/) when you contribute! diff --git a/accounting/accounting-quiz.md b/accounting/accounting-quiz.md index 731b469dee..5aed6b6fd9 100644 --- a/accounting/accounting-quiz.md +++ b/accounting/accounting-quiz.md @@ -107,72 +107,70 @@ #### Q16. A firm has $1,000 in debt and $3,000 in assets. What is the firm's debt-to-equity ratio? -- [ ] 3 -- [ ] 2 -- [ ] 0.5 -- [x] 0.33 +- [ ] 3 +- [ ] 2 +- [ ] 0.5 +- [x] 0.33 #### Q17. An external auditor is required to be independent when performing -- [ ] all attestation services -- [ ] all professional services -- [ ] all tax services -- [ ] all consulting engagements +- [ ] all attestation services +- [ ] all professional services +- [ ] all tax services +- [ ] all consulting engagements -#### Q18. Proper segregation of functional responsibilities calls for separation of +#### Q18. Proper segregation of functional responsibilities calls for separation of -- [ ] custody, payment, and recording -- [ ] authorization, custody, and execution -- [ ] authorization, custody, and recording -- [ ] custody, execution, and payment +- [ ] custody, payment, and recording +- [ ] authorization, custody, and execution +- [ ] authorization, custody, and recording +- [ ] custody, execution, and payment #### Q19. What does the degree of operating leverage represent? -- [ ] how much the value of capital assets will change in response to a change in sales -- [ ] how much the operating income of a company will change in response to a change in sales -- [ ] the valuation of assets to determine how much additional debt the company can borrow -- [ ] how much the sales of a company will change in response to a change in operating income +- [ ] how much the value of capital assets will change in response to a change in sales +- [ ] how much the operating income of a company will change in response to a change in sales +- [ ] the valuation of assets to determine how much additional debt the company can borrow +- [ ] how much the sales of a company will change in response to a change in operating income #### Q20. Which characteristic would concern an auditor about the risk of material misstatements arising from fraudulent financial reporting? -- [ ] limited employee turnover within the accounting and finance department -- [ ] management's disregard of regulations and regulatory authorities +- [ ] limited employee turnover within the accounting and finance department +- [ ] management's disregard of regulations and regulatory authorities - [ ] regularly reported bank reconciliations, including deposits in transit -- [ ] capital assets sold at a loss before being depreciated fully +- [ ] capital assets sold at a loss before being depreciated fully -#### Q21. An employee who makes a sale, ships the goods, and bills the customer violates which control activity? +#### Q21. An employee who makes a sale, ships the goods, and bills the customer violates which control activity? - [ ] assignment of responsibility -- [ ] audit verification +- [ ] audit verification - [ ] segregation of duties -- [ ] review and reconciliation +- [ ] review and reconciliation -#### Q22. What trait distinguishes auditors from accountants? +#### Q22. What trait distinguishes auditors from accountants? -- [ ] The auditor can interpret accounting principles applicable to the country in which the client operates. +- [ ] The auditor can interpret accounting principles applicable to the country in which the client operates. - [ ] The auditor has extensive education beyond what is required for an accountant -- [ ] The auditor can adapt to a rapidly changing profession. -- [ ] The auditor has expertise in the gathering and interpretation of audit evidence. +- [ ] The auditor can adapt to a rapidly changing profession. +- [ ] The auditor has expertise in the gathering and interpretation of audit evidence. -#### Q23. What is the purpose of an operational audit? +#### Q23. What is the purpose of an operational audit? -- [ ] assessing the company's compliance with environmental laws and regulations -- [ ] evaluating whether the organization is meeting the metrics set by management in order to achieve the goals and objectives set forth by the board of directors -- [ ] assessing the organization's control mechanisms for overall efficiency and reliability -- [ ] evaluating compliance with applicable laws, regulations, policies, and procedures +- [ ] assessing the company's compliance with environmental laws and regulations +- [ ] evaluating whether the organization is meeting the metrics set by management in order to achieve the goals and objectives set forth by the board of directors +- [ ] assessing the organization's control mechanisms for overall efficiency and reliability +- [ ] evaluating compliance with applicable laws, regulations, policies, and procedures -#### Q24. Which statement is false? +#### Q24. Which statement is false? - [ ] The balanced scorecard aligns an organization's operational activities with its mission. -- [ ] The balanced scorecard focuses on these four primary areas: financial, customer, internal process, and learning and growth. -- [ ] The balanced scorecard measures, tracks, and reports on a balance of qualitative and financial data and metrics. -- [ ] The balanced scorecard ensures the organization's profitability aligns with director compensation and dividend expectations. - -#### Q25. Which choice is not a component of internal control? - -- [ ] information and communication -- [ ] risk mitigation -- [ ] monitoring -- [ ] control environment +- [ ] The balanced scorecard focuses on these four primary areas: financial, customer, internal process, and learning and growth. +- [ ] The balanced scorecard measures, tracks, and reports on a balance of qualitative and financial data and metrics. +- [ ] The balanced scorecard ensures the organization's profitability aligns with director compensation and dividend expectations. +#### Q25. Which choice is not a component of internal control? +- [ ] information and communication +- [ ] risk mitigation +- [ ] monitoring +- [ ] control environment diff --git a/aws/aws-quiz.md b/aws/aws-quiz.md index 6d7c789990..67f4e8d1ca 100755 --- a/aws/aws-quiz.md +++ b/aws/aws-quiz.md @@ -693,14 +693,13 @@ aws ecs create-service \ - [ ] Application Load Balencer has to be configured to retain the source IP address of the traffic it is forwarding. Create a policy that enables ProxyProtocol support and attach it to the ALB using the AWS CLI. - [ ] Configure the web server EC2 instances to only have private IP addresses. The public IP addresses of the instances are being recorded into the web server logs, bug only ALB should have a public interface and it will route traffic to instances via the private interface. -#### Q76. What is *not* a default user of a common Linux instance launched from an AMI? +#### Q76. What is `not` a default user of a common Linux instance launched from an AMI? - [ ] ubuntu - [ ] system-user - [ ] ec2-user - [ ] admin - #### Q77. You have replicated the infrastructure that serves the backend API for your web application across regions to better serve your customers in the US and the EU. What is the best way to direct your web application at the nearest data center? - [ ] Use Route 53 with geolocation lookups to direct traffic between the two regions. diff --git a/c#/c-sharp-quiz.md b/c#/c-sharp-quiz.md index 0a08e21c3d..5680094047 100755 --- a/c#/c-sharp-quiz.md +++ b/c#/c-sharp-quiz.md @@ -630,8 +630,8 @@ public int Password - [x] try, catch, finally, throw - [ ] finally, throw, valid, invalid -**Reference:** [Tutorial Point](https://www.tutorialspoint.com/csharp/csharp_exception_handling.htm#:~:text=Exceptions%20provide%20a%20way%20to,catch%2C%20finally%2C%20and%20throw.) - +**Reference:** [Tutorial Point](https://www.tutorialspoint.com/csharp/csharp_exception_handling.htm#:~:text=Exceptions%20provide%20a%20way%20to,catch%2C%20finally%2C%20and%20throw.) + #### Q57. What is the main difference between the is and as operators? - [ ] The is operator checks instance types, while the as operator checks the inherited type. @@ -639,8 +639,8 @@ public int Password - [ ] The as operator checks object type, while the is operator attempts to cast an object to a specific type. - [x] The is operator checks object type, while the as operator attempts to cast an object to a specific type. -**Reference:** [Pluralsight guide](https://www.pluralsight.com/guides/csharp-is-as-operators-is-expressions) - +**Reference:** [Pluralsight guide](https://www.pluralsight.com/guides/csharp-is-as-operators-is-expressions) + #### Q58. What is the difference between finally and finalize blocks? - [ ] The finally block is called during the execution of a try and catch block, while the finalize method is called after garbage collection. @@ -649,5 +649,3 @@ public int Password - [ ] The finalize block is called during the execution of a try and catch block, while the finally method is called after garbage collection. **Reference:** [C-sharpcorner](https://www.c-sharpcorner.com/forums/final-finally-and-finalize) - - diff --git a/c++/c++quiz.md b/c++/c++quiz.md index 220344c8dd..c39e758c50 100755 --- a/c++/c++quiz.md +++ b/c++/c++quiz.md @@ -1119,24 +1119,28 @@ int median(const my_array& a) Note: This one is similar to Q6, but focuses on the `const` keyword. -#### Q65. What is an include guard? +#### Q65. What is an include guard? -- [ ] a preprocessor directive that prevents inconsistent behaviors in lines that contain the #ifdef, #ifndef, or #elif directives -- [ ] a compiler option that prevents the user code from including additional libraries -- [ ] a preprocessor statement that prevents a source file from being included more than once in a project -- [ ] a library that adds safety features such as mutexes, watchdog timers, and assertions to the project +- [ ] a preprocessor directive that prevents inconsistent behaviors in lines that contain the #ifdef, #ifndef, or #elif directives +- [ ] a compiler option that prevents the user code from including additional libraries +- [ ] a preprocessor statement that prevents a source file from being included more than once in a project +- [ ] a library that adds safety features such as mutexes, watchdog timers, and assertions to the project #### Q66. What would be the correct declaration of a default constructor for a class named Sprite? -- [ ] ```public: - Sprite(); - ``` -- [ ] ```private: - void Sprite(); - ``` -- [ ] ```public: - void Sprite(); - ``` -- [ ] ```private: - Sprite(); - ``` +- [ ] +```public: + Sprite(); +``` +- [ ] +```private: + void Sprite(); +``` +- [ ] +``public: + void Sprite(); +``` +- [ ] +```private: + Sprite(); +``` diff --git a/dotnet-framework/dotnet-framework-quiz.md b/dotnet-framework/dotnet-framework-quiz.md index f875d29196..0af277c646 100755 --- a/dotnet-framework/dotnet-framework-quiz.md +++ b/dotnet-framework/dotnet-framework-quiz.md @@ -390,7 +390,7 @@ **Explanation**: [What is .NET?](https://dotnet.microsoft.com/learn/dotnet/what-is-dotnet) -#### Q54. The ASP.NET Core Module is a native IIS module that plugs into the IIS pipeline to either ______. +#### Q54. The ASP.NET Core Module is a native IIS module that plugs into the IIS pipeline to either **\_**. - [ ] host an ASP.NET Code app inside of the IIS worker process, called the out-of-process hosting model, or forward web requests to a backend ASP.NET Core app running the Kesrel server, called the in-process hosting model - [ ] create IIS code the server needs in a file with the extension required, or run the IIS server in a mode compatible for ASP.NET Core @@ -418,7 +418,7 @@ - [ ] Many client-specific interfaces are better than one general-purpose interface. - [x] Objects in a program should be replaceable with instances of their subtypes without altering the correctness of that program. - [ ] A class should have only a single responsibility — that is, only changes to one part of the software's specification should be able to affect the specification of the class. -- [ ] Software entities should be open for extension, but closed for modification. +- [ ] Software entities should be open for extension, but closed for modification. **Explanation**: [Liskov substitution principle](https://en.wikipedia.org/wiki/Liskov_substitution_principle) @@ -429,7 +429,7 @@ - [ ] Session.KillAll() - [ ] Session.Remove() -**Explanation**: [Session.Abandon Method](https://docs.microsoft.com/en-us/previous-versions/iis/6.0-sdk/ms524310(v=vs.90)) +**Explanation**: [Session.Abandon Method]() #### Q58 Which choice best describes the difference between globalization and localization? @@ -439,4 +439,3 @@ - [x] Globalization involves designing and developing a world-ready app that supports localized interfaces and regional data for users in multiple cultures. Localization is the process of translating an application's resources into versions for each culture that the application will support. **Explanation**: [Globalize and localize .NET applications](https://docs.microsoft.com/en-us/dotnet/core/extensions/globalization-and-localization) - diff --git a/git/git-quiz.md b/git/git-quiz.md index a5b10bebb9..8a85fa44d9 100755 --- a/git/git-quiz.md +++ b/git/git-quiz.md @@ -60,6 +60,7 @@ git merge --squash HEAD@{1} - [ ] The last 5 git versions you've installed #### Q7. Looking at the following commands, describe what is happening. + #### Q7. Describe what is happening given these commands: ```bash diff --git a/html/html-quiz.md b/html/html-quiz.md index a119f7ae77..cb874e971e 100755 --- a/html/html-quiz.md +++ b/html/html-quiz.md @@ -91,6 +91,7 @@ ![Sample text](images/ss-2.png?raw=true) - [ ] A + ```html
Parmesan Deviled Eggs @@ -110,6 +111,7 @@ ``` - [x] C + ```html
Parmesan Deviled Eggs @@ -1368,12 +1370,12 @@ As Steve Krug once said, happy talk must die. - [ ] `` produces raster graphics, while `` produces vector graphics. - [ ] `` cannot be used as a background image, while `` can be used as a background -#### Q86. What is the difference between the *readonly* and *disabled* attributes for the `````` +- [ ] `` +- [ ] `` +- [ ] `` +- [x] `` #### Q87. What would be the result in the console of running this code? ```js for (var i = 0; i < 5; i++) { - console.log(i); + console.log(i); } ``` - - [x] 0 1 2 3 4 - [ ] 0 1 2 3 4 5 - [ ] 1 2 3 4 diff --git a/kotlin/kotlin-quiz.md b/kotlin/kotlin-quiz.md index e1132eb76f..5a3f86f74b 100644 --- a/kotlin/kotlin-quiz.md +++ b/kotlin/kotlin-quiz.md @@ -757,6 +757,7 @@ val b = arrayOf(100, 200, 3000) #### Q64. This code is occasionally throwing a null pointer exception (NPE). How can you change the code so it never throws as NPE? ```println("length of First Name = ${firstName!!.length}") + ``` - [ ] Replace !!. with ?.. diff --git a/matlab/matlab-quiz.md b/matlab/matlab-quiz.md index 686e4005cb..33a3a76b3f 100755 --- a/matlab/matlab-quiz.md +++ b/matlab/matlab-quiz.md @@ -898,7 +898,7 @@ a = #### Q56. You've just plotted some data and want to change the color behind the lines you've plotted to black. Which code block will accomplish this? -- [ ] `h_f = figure; set(h_f,'Color', [0 0 0]);` -- [x] `h_a = gca; set(h_a,'Color', [0 0 0]);` -- [ ] `h_a = axes; set(h_a,'Color', [0 0 0]);` -- [ ] `h_f = gcf; set(h_a,'Color', [0 0 0]);` +- [ ] `h_f = figure; set(h_f,'Color', [0 0 0]);` +- [x] `h_a = gca; set(h_a,'Color', [0 0 0]);` +- [ ] `h_a = axes; set(h_a,'Color', [0 0 0]);` +- [ ] `h_f = gcf; set(h_a,'Color', [0 0 0]);` diff --git a/package.json b/package.json index bedd4f6fea..22258cb928 100755 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "format": "prettier --write ." }, "devDependencies": { - "husky": "^4.3.0", + "husky": "^7.0.2", "prettier": "^2.1.2", "pretty-quick": "^3.1.0" } diff --git a/python/python-quiz.md b/python/python-quiz.md index f495e8d938..d46108abe8 100755 --- a/python/python-quiz.md +++ b/python/python-quiz.md @@ -1063,7 +1063,6 @@ def __init__(attr1, attr2): **Explanation**: When instantiating a new object from a given class, the `__init__()` method will take both `attr1` and `attr2`, and set its values to their corresponding object attribute, that's why the need of using `self.attr1 = attr1` instead of `attr1 = attr1`. - #### Q86. What would this recursive function print if it is called with no parameters? ```python diff --git a/rest-api/rest-api-quiz.md b/rest-api/rest-api-quiz.md index 4a4002d4a4..d0ea62bb11 100755 --- a/rest-api/rest-api-quiz.md +++ b/rest-api/rest-api-quiz.md @@ -181,7 +181,7 @@ - [ ] `client-only` - [ ] `restricted` - [x] `private` - + [reference](https://www.digitalocean.com/community/tutorials/web-caching-basics-terminology-http-headers-and-caching-strategies) #### Q25. Which OAuth grant type can support a refresh token? diff --git a/spring-framework/spring-framework-quiz.md b/spring-framework/spring-framework-quiz.md index 12ebb6f51e..760e903688 100644 --- a/spring-framework/spring-framework-quiz.md +++ b/spring-framework/spring-framework-quiz.md @@ -410,14 +410,14 @@ private String val; - [ ] Spring Boot can create a self-executable WAR file that runs without needing a servlet container. A JAR file has to be deployed to an existing web container such as Tomcat with seperate files for dependencies. - [ ] Spring Boot can create a JAR file that contains bytecode that interacts directly with the OS without needing a servlet container. A WAR file has to be deployed to an existing web container such as Tomcat with seperate files for dependencies. - [ ] The Spring Boot JAR file will be deployed to a Servlet container such as Tomcat on an existing running web server locally. The WAR file will be deployed to a cloud-based servlet container. -- [X] Spring Boot can create a self-executable JAR file that contains all the dependencies and an embedded Servlet container. A WAR file has to be deployed to an existing web container such as Tomcat. +- [x] Spring Boot can create a self-executable JAR file that contains all the dependencies and an embedded Servlet container. A WAR file has to be deployed to an existing web container such as Tomcat. #### Q48. How does the transaction propagation setting impact the behavior of transactions? - [ ] It ensures that transactions that are commited to the database are propagated to all the shards of a clustered database system. - [ ] None of these answers is correct. - [ ] It guarantees that transactions that are submitted to the database cluster are propagated to all the nodes of a clustered database cloud. -- [X] It enforces that a logical transaction scope is created for each method that determines rollback-only status, with an outer transaction scope being logically independent from the inner transaction scope. +- [x] It enforces that a logical transaction scope is created for each method that determines rollback-only status, with an outer transaction scope being logically independent from the inner transaction scope. #### Q49. What is printed when this code is run as a @SpringBootApplication? @@ -442,7 +442,7 @@ public class Test implements InitializingBean { class TestService {} ``` -- [X] a null pointer stacktrace +- [x] a null pointer stacktrace - [ ] true null - [ ] true package.TestService - [ ] false package.TestService @@ -452,7 +452,7 @@ class TestService {} - [ ] @RequestMapping; WebRequest - [ ] @Controller; URLFilter - [ ] @WebFilter; ServletContextInitializer -- [X] @Component; FilterRegistrationBean +- [x] @Component; FilterRegistrationBean #### Q51. What is the correct term for each definition bellow? @@ -472,7 +472,7 @@ class TestService {}   2: Pointcut
  3: Join point
-- [X] 1: Pointcut
+- [x] 1: Pointcut
  2: Join point
  3: Advice
@@ -481,7 +481,7 @@ class TestService {} - [ ] Passwords should be hashed using an adaptive one-way function such as bcrypt. - [ ] Passwords can be stored in a BASE64 encoded format if they are stored in a private database. - [ ] Passwords should be salted and hashed using the MD5 algorithm. -- [X] Passwords should be hashed using the SHA-1 algorithm, then salted to provide defence against rainbow table attacks. +- [x] Passwords should be hashed using the SHA-1 algorithm, then salted to provide defence against rainbow table attacks. #### Q53. What methods does this Pointcut expression reference? @@ -523,11 +523,11 @@ class TestConfig2 { - [ ] true
  SimpleDateFormat
- [ ] a NullPointerException stacktrace -- [X] a BeanDefinitionParsingException stacktrace +- [x] a BeanDefinitionParsingException stacktrace #### Q55. What is the purpose of a web application context? - [ ] Configures a web application that is able to be deleted and re-created during runtime through hot swap. It adds a **recreateContext()** method and defines a root WebDaemon that must be bound to in the bootstrap process. - [ ] It configures a Spring application that is able to be modified on the fly during runtime through bytecode re-encoding. Also it adds an **updateContext()** method and defines a root WebServlet that must be bound to in the bootstrap process. -- [X] It provides configuration for a web application that is read-only while running. Also, it adds a **getServletContext()** method and defines an attribute name to which the root context must be bound in the bootstrap process. +- [x] It provides configuration for a web application that is read-only while running. Also, it adds a **getServletContext()** method and defines an attribute name to which the root context must be bound in the bootstrap process. - [ ] It provides configuration for a Spring application that is updatable on the fly during runtime through bytecode weaving. Also it adds an **updateServletContext()** method and defines a root servlet that must be bound to in the bootstrap process.