Skip to content

Commit

Permalink
- prettier formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Ebazhanov committed Sep 23, 2021
1 parent 1c5564b commit 2dde094
Show file tree
Hide file tree
Showing 15 changed files with 103 additions and 102 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
## Linkedin Quiz Answers, Skill Assessments Test

<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->

[![All Contributors](https://img.shields.io/badge/all_contributors-550-orange.svg?style=flat-square)](#contributors-)

<!-- ALL-CONTRIBUTORS-BADGE:END -->

> 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!
Expand Down
84 changes: 41 additions & 43 deletions accounting/accounting-quiz.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 1 addition & 2 deletions aws/aws-quiz.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
10 changes: 4 additions & 6 deletions c#/c-sharp-quiz.md
Original file line number Diff line number Diff line change
Expand Up @@ -630,17 +630,17 @@ 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.
- [ ] The is operator checks primitive data types, while the as operator checks the object type.
- [ ] 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.
Expand All @@ -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)


38 changes: 21 additions & 17 deletions c++/c++quiz.md
Original file line number Diff line number Diff line change
Expand Up @@ -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();
```
7 changes: 3 additions & 4 deletions dotnet-framework/dotnet-framework-quiz.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)

Expand All @@ -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](<https://docs.microsoft.com/en-us/previous-versions/iis/6.0-sdk/ms524310(v=vs.90)>)

#### Q58 Which choice best describes the difference between globalization and localization?

Expand All @@ -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)

1 change: 1 addition & 0 deletions git/git-quiz.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 7 additions & 5 deletions html/html-quiz.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@
![Sample text](images/ss-2.png?raw=true)

- [ ] A

```html
<details>
<summary>Parmesan Deviled Eggs</summary>
Expand All @@ -110,6 +111,7 @@
```

- [x] C

```html
<details open>
<summary>Parmesan Deviled Eggs</summary>
Expand Down Expand Up @@ -1368,12 +1370,12 @@ As Steve Krug once said, happy talk must die.
- [ ] `<svg>` produces raster graphics, while `<canvas>` produces vector graphics.
- [ ] `<svg>` cannot be used as a background image, while `<canvas>` can be used as a background

#### Q86. What is the difference between the *readonly* and *disabled* attributes for the ```<textarea>``` element?
#### Q86. What is the difference between the _readonly_ and _disabled_ attributes for the `<textarea>` element?

- [ ] *readonly* allows clicking in the ```<textarea>``` element. *disabled* prevents all interaction with the control.
- [ ] *readonly* is invalid attribute for ```<textarea>```, while *disabled* is a valid attribute.
- [ ] *disabled* allows clicking in the ```<textarea>``` element. *readonly* prevents all interaction with the control.
- [ ] *disabled* is invalid attribute for ```<textarea>```, while *readonly* is a valid attribute.
- [ ] _readonly_ allows clicking in the `<textarea>` element. _disabled_ prevents all interaction with the control.
- [ ] _readonly_ is invalid attribute for `<textarea>`, while _disabled_ is a valid attribute.
- [ ] _disabled_ allows clicking in the `<textarea>` element. _readonly_ prevents all interaction with the control.
- [ ] _disabled_ is invalid attribute for `<textarea>`, while _readonly_ is a valid attribute.

#### Q87. In this code, what is _target_?

Expand Down
18 changes: 8 additions & 10 deletions javascript/javascript-quiz.md
Original file line number Diff line number Diff line change
Expand Up @@ -954,37 +954,35 @@ const foo = {
```js
function makeAdder(x) {
return function (y) {
return x + y;
}
return function (y) {
return x + y;
};
}

var addFive = makeAdder(5);
console.log(addFive(3));
```
- [ ] overloading
- [ ] closure
- [x] currying
- [ ] overriding
#### Q88. Which tag pair is used in HTML to embed JavaScript?
- [ ] ```<script></script>```
- [ ] ```<js></js>```
- [ ] ```<javascript></javascript>```
- [x] ```<code></code>```
- [ ] `<script></script>`
- [ ] `<js></js>`
- [ ] `<javascript></javascript>`
- [x] `<code></code>`
#### 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
Expand Down
1 change: 1 addition & 0 deletions kotlin/kotlin-quiz.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 ?..
Expand Down
8 changes: 4 additions & 4 deletions matlab/matlab-quiz.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]);`
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down
1 change: 0 additions & 1 deletion python/python-quiz.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion rest-api/rest-api-quiz.md
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down
Loading

0 comments on commit 2dde094

Please sign in to comment.