Skip to content

Commit

Permalink
prettier auto formatting + upd dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Ebazhanov committed Jun 4, 2022
1 parent 8dd2169 commit abb8aa9
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 12 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
[![Hits](https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2FEbazhanov%2Flinkedin-skill-assessments-quizzes&count_bg=%2379C83D&title_bg=%23555555&icon=&icon_color=%23E7E7E7&title=hits&edge_flat=false)](https://hits.seeyoufarm.com)

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

[![All Contributors](https://img.shields.io/badge/all_contributors-925-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
2 changes: 1 addition & 1 deletion cybersecurity/cybersecurity-quiz.md
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@ What is the next step you should take to best fulfill your responsibilities and
- [x] Take a snapshot of the compromised virtual server for your investigation.
- [ ] Restart the server. Remediate the issue after business hours.

#### Q101. Site-to-site VPN provides access from one network address space (192.168.0.0/24) to another network address space __ site-to-site VPN provides access from one network address space (192.168.0.0/24) to another network address space __.
#### Q101. Site-to-site VPN provides access from one network address space (192.168.0.0/24) to another network address space _ site-to-site VPN provides access from one network address space (192.168.0.0/24) to another network address space _.

- [x] 192.168.0.1/24192.168.0.1/24
- [ ] 192.168.0.3/24192.168.0.3/24
Expand Down
2 changes: 2 additions & 0 deletions git/git-quiz.md
Original file line number Diff line number Diff line change
Expand Up @@ -967,7 +967,9 @@ hint: Updates were rejected because the remote contains work that you do not hin
- [ ] - git commit --with "MaxConnections"

#### Q119. Your company has moved its remote repository to GitHub at this location: https://github.com/yourcompany/core-api.git. What command updates the

remote repository, named origin, to point to the new remote repository at this location?

- [ ] - git remote create-update origin https://github.com/yourcompany/core-api.git
- [ ] - git remote update origin https://github.com/yourcompany/core-api.git
- [x] - git remote set-url origin https://github.com/yourcompany/core-api.git
Expand Down
11 changes: 6 additions & 5 deletions java/java-quiz.md
Original file line number Diff line number Diff line change
Expand Up @@ -1874,9 +1874,10 @@ numbers // Input `List<Integer>` > [1, 2, 3, 4] <br>
.mapToInt(x -> x * x) // Square the number, converts `Integer` to an `int`, and returns `IntStream` > [4, 16] <br>
.sum() // Returns the sum as `int` > 20
```

#### Q126. Which is not one of the standard input/output streams provided by java.lang.System?
- [x] print
- [ ] out
- [ ] err
- [ ] in

- [x] print
- [ ] out
- [ ] err
- [ ] in
2 changes: 1 addition & 1 deletion machine-learning/machine-learning-quiz.md
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ Note: there are centres of clusters (C0, C1, C2).
- [x] a type of reinforcement learning that focuses on rewards

**Explanation**:Q-learning is a model-free reinforcement learning algorithm.Q-learning is a values-based learning algorithm. Value based algorithms updates the value function based on an equation(particularly Bellman equation).
[Reference](https://towardsdatascience.com/a-beginners-guide-to-q-learning-c3e2a30a653c#:~:text=Q%2Dlearning%20is%20a%20model,equation(particularly%20Bellman%20equation).&text=Means%20it%20learns%20the%20value,independently%20of%20the%20agent's%20actions.)
[Reference](<https://towardsdatascience.com/a-beginners-guide-to-q-learning-c3e2a30a653c#:~:text=Q%2Dlearning%20is%20a%20model,equation(particularly%20Bellman%20equation).&text=Means%20it%20learns%20the%20value,independently%20of%20the%20agent's%20actions.>)

#### Q81. The data in your model has low bias and low variance. How would you expect the data points to be grouped together on the diagram?

Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
"version": "2.0.0",
"main": "index.js",
"repository": "https://github.com/Ebazhanov/linkedin-quiz-skill-assessments.git",
"author": "Evgeny Bazhanov <13170022+Ebazhanov@users.noreply.github.com>",
"author": "Evgeny Bazhanov",
"license": "MIT",
"scripts": {
"format": "prettier --write ."
},
"devDependencies": {
"husky": "7.0.4",
"prettier": "2.6.1",
"pretty-quick": "3.1.3"
"husky": "^8.0.1",
"prettier": "^2.6.2",
"pretty-quick": "^3.1.3"
}
}
10 changes: 9 additions & 1 deletion spring-framework/spring-framework-quiz.md
Original file line number Diff line number Diff line change
Expand Up @@ -732,47 +732,54 @@ public Pojo getPojo(@PathVariable("id") String id) {
- [ ] profiles

#### Q71. Which statement is true regarding loading and instantiation of Spring factories?

- [ ] During startup, the SpringFactoryInitializr collects all files in the CONFIG-INF directory from each dependency and downloads binaries to run each file.
- [ ] During startup, the SpringFactoriesLoader gets a list of config and collects all the files in META-INF directory from dependencies. Then it builds a composite list for application context configurations.
- [ ] During shutdown, the SpringFactoryDestructor collects all the files in META-INF directory from each dependency and begins shutting down each thread and process.
- [ ] During startup and shutdown, the SpringFactoryInitializr downloads project configs for all configured dependencies.

#### Q72. What methods does this Pointcut expression reference?

```java
execution(* com.linkedin.TestService.*(..))
```

- [ ] all methods of classes in the com.linkedin.TestService package
- [ ] all methods of classes in the com.linkedin.TestService package annotated whith @Service
- [ ] This Pointcut is not valid.
- [ ] all methods defined by the TestService interface

#### Q73. When configuring an application, which configuration is given precedence by Spring?

- [ ] profile specific application-{profile}.properties files
- [ ] Java System Properties
- [ ] application properties located in an application.properties file inside the application.jar
- [ ] profile specific application-{profile}.properties files located outside the application.jar

#### Q74. What interface is used to represent a permission in Spring Security?

- [ ] GrantedAuthority
- [ ] SecurityChain
- [ ] PermissionMatrix
- [x] AccessRule

#### Q75. What is the difference between constructor injection and setter injection?

- [ ] Constructor injection overrides setter injection.
- [ ] Setter injection creates a new instance if any modification occurs.
- [ ] You can't use constructor injection for partial injection.
- [ ] Constructor injection is more flexible than setter injection.

#### Q76. Which println would you remove to stop this code from throwing a null pointer exception?

```java
@Component
public class Test implements InitializingBean {
@Autowired
ApplicationContext context;
@Autowired
static SimpleDateFormat formatter;

@Override
public void afterPropertiesSet() throws Exception {
System.out.println(context.containsBean("formatter") + " ");
Expand All @@ -789,6 +796,7 @@ class TestConfig {
}
}
```

- [ ] formatter.getClass()
- [ ] context.containsBean("formatter")
- [ ] context.getBean("formatter").getClass()
Expand Down

0 comments on commit abb8aa9

Please sign in to comment.