Skip to content

Commit

Permalink
prettier auto formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Ebazhanov committed Jun 18, 2023
1 parent ad5440c commit 93b5965
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 46 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
[![Telegram](https://badgen.net/badge/icon/telegram?icon=telegram&label)](https://t.me/+lCPxL7Kd7gVjMGM6)

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

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

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

> :warning:DISCLAIMER: The owners of this repository are not liable for any illegal usage of the content provided in this repository. The content is provided for informational and educational purposes only, and any actions taken by users of this repository are the responsibility of the user. By accessing this repository, you agree to hold the owners harmless from any claims, damages, or expenses arising from the use of the information provided.
Expand Down
2 changes: 1 addition & 1 deletion agile-methodologies/agile-methodologies-quiz.md
Original file line number Diff line number Diff line change
Expand Up @@ -1018,8 +1018,8 @@ It's the same as Q81, just slightly differently phrased question.

[Source](https://www.atlassian.com/agile/scrum/roles) `"The scrum master is the role responsible for gluing everything together and ensuring that scrum is being done well. In practical terms, that means they help the product owner define value, `**`the development team deliver the value`**`, and the scrum team to get to get better."`


#### Q138. There are several configurations of the Scaled Agile Framework in Version 5.0. Which is not one oth the configurations?

- [ ] Full SAFe
- [ ] Large Solution SAFe
- [x] SAFe Popular
Expand Down
54 changes: 26 additions & 28 deletions angular/angular-quiz.md
Original file line number Diff line number Diff line change
Expand Up @@ -561,23 +561,21 @@ export class HighlightDirective {

```html
<form [formGroup]="form">
<input type="text" formControlName= "username">
<input type="text" formControlName="username" />
...
</form>
```

- [ ] A

```html
<span *ngIf="username.minLength.invalid">
Username length is not valid
</span>
<span *ngIf="username.minLength.invalid"> Username length is not valid </span>
```

- [ ] B

```html
<input type="text" formControlName="username" [showMinLength]="true">
<input type="text" formControlName="username" [showMinLength]="true" />
```

- [ ] C
Expand All @@ -591,7 +589,7 @@ export class HighlightDirective {
- [x] D

```html
<input type="text" formControlName="username" #userName="ngModer">
<input type="text" formControlName="username" #userName="ngModer" />
<span *ngIf="userName.errors.minlength">
Username must be at least {{ userName.errors.minlength.requiredLength }} characters.
</span>
Expand Down Expand Up @@ -659,9 +657,7 @@ export class BioComponent { }

```html
<h1>Data Card</h1>
<app-bio>
Been around for four years.
</app-bio>
<app-bio> Been around for four years. </app-bio>
```

- [ ] C
Expand Down Expand Up @@ -717,23 +713,24 @@ export class BioComponent { }

```html
<h1>User Data</h1>
<p>Jenny Smith<p>
<p>Jenny Smith</p>
<p></p>
```

- [ ] C

```html
<app-user-card>
<app-title-card></app-title-card>
<app-title-card></app-title-card>
</app-user-card>
```

- [ ] D

```html
<div app-user-card>
<h1 app-title-card>User Data</h1>
<p>Jenny Smith</p>
<h1 app-title-card>User Data</h1>
<p>Jenny Smith</p>
</div>
```

Expand Down Expand Up @@ -910,9 +907,7 @@ export class OrderHistoryComponent {
#### Q49. Finish this markup using the `ngIf` directive to implement an else case that will display the text "User is not active":

```html
<div *ngIf="userIsActive; else inactive">
Currently active!
</div>
<div *ngIf="userIsActive; else inactive">Currently active!</div>
```

- [ ] A
Expand All @@ -924,24 +919,22 @@ export class OrderHistoryComponent {
- [ ] B

```html
<div *ngIf="inactive">
User is not active.
</div>
<div *ngIf="inactive">User is not active.</div>
```

- [ ] C

```html
<ng-template #else="inactive">
<div>User is not active.</div>
<div>User is not active.</div>
</ng-template>
```

- [x] D

```html
<ng-template #inactive>
<div>User is not active.</div>
<div>User is not active.</div>
</ng-template>
```

Expand Down Expand Up @@ -1046,7 +1039,9 @@ export const APP_SETTINGS = new InjectionToken<AppSettings>('app.settings');
#### Q54. For the following template-driven forms example, what argument can be passed to the submit method in the click event to submit the data for the form?

```html
<form #form="ngForm"> <input type="text" ngModel="firstName"> <input type="text" ngModel="lastName"> <button (click)="submit()">Save</button>
<form #form="ngForm">
<input type="text" ngModel="firstName" /> <input type="text" ngModel="lastName" />
<button (click)="submit()">Save</button>
</form>
```

Expand Down Expand Up @@ -1162,7 +1157,9 @@ export class TruncatePipe implements PipeTransform {
#### Q62. How can you rewrite this markup so the div container is not needed in the final DOM render

```html
<div *ngIf="location"> <h1>{{ location.name }}</h1> <p>{{ location.description }}</p>
<div *ngIf="location">
<h1>{{ location.name }}</h1>
<p>{{ location.description }}</p>
</div>
```

Expand All @@ -1172,7 +1169,8 @@ export class TruncatePipe implements PipeTransform {
<div *ngIf="location">
<h1>{{ location.name }}</h1>
<p>{{ location.description }}</p>
{{ endNgIf }}
{{ endNgIf }}
</div>
```

- [ ] B
Expand Down Expand Up @@ -1251,9 +1249,7 @@ export interface AppSettings {
#### Q67. In this template syntax, every time the items property is changed (added to, removed from, etc.), the ngFor structural directive re-runs its logic for all DOM elements in the loop. What syntax can be used to make this more performant?

```html
<div *ngFor="let item of items">
{{ item.id }} - {{ item.name }}
</div>
<div *ngFor="let item of items">{{ item.id }} - {{ item.name }}</div>
```

- [ ] `*ngFor="let item of items; let uniqueItem"`
Expand Down Expand Up @@ -1389,7 +1385,9 @@ export class ProductNameComponent { @Input() productName: string
- [ ] A

```html
<span class="{{ isActive ? 'is-active' : '' }}" class="{{ canToggle ? 'can-toggle' : '' }}"> Employed </span>
<span class="{{ isActive ? 'is-active' : '' }}" class="{{ canToggle ? 'can-toggle' : '' }}">
Employed
</span>
```

- [x] B
Expand Down
2 changes: 1 addition & 1 deletion git/git-quiz.md
Original file line number Diff line number Diff line change
Expand Up @@ -1030,7 +1030,7 @@ Untracked files:
- [ ] `git clean`
- [ ] `git remove .`

Note: broccoli is an untracked file and will require git clean -f to be removed. On the other hand "git clean" by itself (without -f) may result in an error like this: *git clean fatal: clean.requireForce defaults to true and neither -i, -n, nor -f given; refusing to clean*
Note: broccoli is an untracked file and will require git clean -f to be removed. On the other hand "git clean" by itself (without -f) may result in an error like this: _git clean fatal: clean.requireForce defaults to true and neither -i, -n, nor -f given; refusing to clean_
[Reference](https://www.atlassian.com/git/tutorials/undoing-changes/git-clean#:~:text=%2Df%C2%A0or%C2%A0,a%20specific%20file.)

#### Q126. What command can you use to remove untracked files from the working directory?
Expand Down
28 changes: 14 additions & 14 deletions mongodb/mongodb-quiz.md
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@
- [ ] `db.drop.customers({_id: 1});`
- [x] `db.customers.remove({_id: 1});`

__Note:__ db.collection.remove() is deprecated in the new mongosh. Use db.collection.deleteOne() or db.collection.deleteMany().
**Note:** db.collection.remove() is deprecated in the new mongosh. Use db.collection.deleteOne() or db.collection.deleteMany().

[References](https://www.mongodb.com/docs/mongodb-shell/crud/delete/)(https://www.mongodb.com/docs/v6.0/reference/method/db.collection.remove/)

Expand All @@ -353,7 +353,7 @@ __Note:__ db.collection.remove() is deprecated in the new mongosh. Use db.collec
- [ ] `db.people.getIndexKeys();`
- [x] `db.people.getIndexes();`

__Note:__ An alternative method in the mongosh shell is listIndexes()
**Note:** An alternative method in the mongosh shell is listIndexes()

[Reference] (https://www.mongodb.com/docs/v6.0/reference/command/listIndexes/#mongodb-dbcommand-dbcmd.listIndexes)

Expand All @@ -364,7 +364,7 @@ __Note:__ An alternative method in the mongosh shell is listIndexes()
- [x] Use the updateMany() command instead
- [ ] Set the global multi option to True

__Note:__ An alternative method for db is .update()
**Note:** An alternative method for db is .update()

[Reference:] (https://www.mongodb.com/docs/v6.0/reference/command/update/#mongodb-dbcommand-dbcmd.update)

Expand All @@ -382,7 +382,7 @@ __Note:__ An alternative method for db is .update()
- [ ] `db.members.find([ {$match: {gender: "Female"}}, {$group: {_id: {city: "$city"}, number: {$sum: 1}}}, {$sort :{number: -1}}])`
- [ ] `db.members.aggregate([ {$match: {gender: "Female"}}, {$sort :{number: -1}}])`

__Note:__ If you want to analyze the performance of a query use .explain("executionStats")
**Note:** If you want to analyze the performance of a query use .explain("executionStats")

[Reference:] (https://www.mongodb.com/docs/v6.0/tutorial/analyze-query-plan/)

Expand Down Expand Up @@ -421,7 +421,7 @@ __Note:__ If you want to analyze the performance of a query use .explain("execut
- [ ] Ad hoc queries are allowed only through the ad hoc command.
- [x] MongoDB allows ad hoc queries.

__Note:__ You don't need an index to perform ad hoc queries. Only pick one choice
**Note:** You don't need an index to perform ad hoc queries. Only pick one choice
[Reference:] (https://www.mongodb.com/docs/v6.3/query-api/)

#### Q58. In MongoDB, what does a projection do?
Expand Down Expand Up @@ -461,17 +461,17 @@ __Note:__ You don't need an index to perform ad hoc queries. Only pick one choic
- [ ] `The MongoDB instance will fail`
- [ ] `The oplog will stop recording logging information`

__Argument:__
**Argument:**

_Why "The oplog will be saved on one of the secondary servers." is wrong:_

>MongoDB applies database operations on the primary and then records the operations on the primary's oplog. The secondary members then copy and apply these operations in an asynchronous process. All replica set members contain a copy of the oplog, in the local.oplog.rs collection, which allows them to maintain the current state of the database.
> MongoDB applies database operations on the primary and then records the operations on the primary's oplog. The secondary members then copy and apply these operations in an asynchronous process. All replica set members contain a copy of the oplog, in the local.oplog.rs collection, which allows them to maintain the current state of the database.
_Reasoning behind the right answer:_
_Reasoning behind the right answer:_

>The oplog (operations log) is a special capped collection that keeps a rolling record of all operations that modify the data stored in your databases.
> The oplog (operations log) is a special capped collection that keeps a rolling record of all operations that modify the data stored in your databases.
>Unlike other capped collections, the oplog can grow past its configured size limit to avoid deleting the majority commit point.
> Unlike other capped collections, the oplog can grow past its configured size limit to avoid deleting the majority commit point.
#### Q63. MongoDB ships with a variety of files. Which file runs the MongoDB shell?

Expand All @@ -480,7 +480,7 @@ _Reasoning behind the right answer:_
- [ ] shell
- [ ] mongo-shell

__Note:__ mongosh is the new mongo shell, mongo is deprecated.
**Note:** mongosh is the new mongo shell, mongo is deprecated.

Starting in MongoDB v5.0,
mongosh
Expand Down Expand Up @@ -532,8 +532,8 @@ replaces mongo as the preferred shell.

Argument: You need a text index in order to perform a $text query on a field. $text query uses the text index under the hood

References:
[$text query](https://www.mongodb.com/docs/v6.0/reference/operator/query/text/#examples)
References:
[$text query](https://www.mongodb.com/docs/v6.0/reference/operator/query/text/#examples)
[Text index](https://www.mongodb.com/docs/v6.0/core/index-text/)

#### Q70. Which field is always included in a projection unless specifically excluded?
Expand Down Expand Up @@ -660,7 +660,7 @@ createIndex(), see Index Builds on Populated Collections.

Argument: There is no -d option in the docs (https://www.mongodb.com/docs/database-tools/mongoimport/#options.)

__Note:__ Assuming you are asked to drop a collection instead while importing, the use the --drop option.
**Note:** Assuming you are asked to drop a collection instead while importing, the use the --drop option.

#### Q83. To import a CSV file into MongoDB, which command should you issue?

Expand Down
4 changes: 2 additions & 2 deletions quickbooks/quickbooks-quiz.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ https://www.chegg.com/homework-help/questions-and-answers/would-use-items-tab-en
- [ ] Right-click the basis shown on the right side of the report and change it to Accrual.
- [ ] Double-click the basis and change it to Accrual.
- [x] In the upper-left corner of the screen, select the Accrual button.
- [Reference]In the upper-left corner of the screen, locate and select the Accrual button. This button is typically found in the toolbar or menu options.

[Reference]In the upper-left corner of the screen, locate and select the Accrual button. This button is typically found in the toolbar or menu options.

#### Q12. Is it possible to merge two list entries?

Expand Down

0 comments on commit 93b5965

Please sign in to comment.