Skip to content

Commit

Permalink
formatting + correction
Browse files Browse the repository at this point in the history
  • Loading branch information
Ebazhanov committed Aug 7, 2021
1 parent 698c2f7 commit f9450c5
Show file tree
Hide file tree
Showing 44 changed files with 595 additions and 645 deletions.
6 changes: 3 additions & 3 deletions agile-methodologies/agile-methodologies-quiz.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ It is suggested that high business value, high-risk items are worked on first. W
- [ ] A Kanban does not use a Definition of Done.
- [ ] A Kanban shows the status of the work items.

[(Source)](https://www.lucidchart.com/blog/kanban-vs-scrum#:~:text=Both%20boards%20are%20used%20to,can%20be%20more%20easily%20adapted.)
[Source https://www.lucidchart.com/blog ....](https://www.lucidchart.com/blog/kanban-vs-scrum#:~:text=Both%20boards%20are%20used%20to,can%20be%20more%20easily%20adapted.)

#### Q20. The team complains that "things have been falling through the cracks lately." What should you do?

Expand Down Expand Up @@ -394,7 +394,7 @@ It is suggested that high business value, high-risk items are worked on first. W
- [x] the task board
- [ ] a highly visible display of key performance data

#### Q56. According to the Agile Manifesto, your highest priority is to `**\_\_**`.
#### Q56. According to the Agile Manifesto, your highest priority is to \_.

- [ ] minimize change requests
- [x] satisfy the customer
Expand Down Expand Up @@ -478,7 +478,7 @@ It is suggested that high business value, high-risk items are worked on first. W
- [ ] Next-Sprint Planning
- [ ] Velocity Confirmation

[(Source)](https://startinfinity.com/product-management-framework/scrum-sprint/sprint-review-vs-sprint-retrospective)
[Source https://startinfinity.com/product-management-framework/scrum-sprin ...](https://startinfinity.com/product-management-framework/scrum-sprint/sprint-review-vs-sprint-retrospective)

#### Q68. Which choice best describes an Agile Release Train (ART)?

Expand Down
4 changes: 2 additions & 2 deletions android/android-quiz.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@
- [ ] root.getById(R.id.text_home)
- [x] root.findViewById(R.id.text_home)

#### Q18. IF the main thread is blocked for too long, the system displays the\_\_\_dialog?
#### Q18. IF the main thread is blocked for too long, the system displays the \_ dialog?

- [ ] Thread Not Responding
- [ ] Application Paused
Expand Down Expand Up @@ -786,7 +786,7 @@ xml
- [ ] when the tests need to run on your local machine.
- [x] when the tests need to run on real or virtual devices.

[reference](https://developer.android.com/studio/test#test_types_and_location)
[Reference](https://developer.android.com/studio/test#test_types_and_location)

#### Q50. Given an APK named app-internal-debug.apk produced from the build process, which statement is likely to be true?

Expand Down
2 changes: 1 addition & 1 deletion angular/angular-quiz.md
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ forms markup for the username field?
</form>
```

- []
- [ ]

```javascript
<span *ngIf="username.minLength.invalid"
Expand Down
2 changes: 1 addition & 1 deletion bash/bash-quiz.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ awk -F: '/user1/{print $1 "-" $3 "-" $6}' /etc/passwd
- [ ] It will cause Bash to exit if local, declare, or typeset assignments return a nonzero status code.
- [x] It will cause Bash to exit if a command, list of commands, compound command, or potentially a pipeline returns a nonzero status code.

#### Q9. The `**\_\_**` keyword pauses the script to get input from standard input.
#### Q9. The **\_** keyword pauses the script to get input from standard input.

- [ ] get
- [ ] argument
Expand Down
8 changes: 4 additions & 4 deletions c++/c++quiz.md
Original file line number Diff line number Diff line change
Expand Up @@ -1087,10 +1087,10 @@ void std::mutex::lock(){

#### Q62. Which STL class is the best fit for implementing a phonebook? Suppose each entry contains a name and a phone number, with no duplicates, and you want to have lookup by name.

- [] std::priority_queue
- [x] std::map
- [] std::vector
- [] std::list
- [ ] `std::priority_queue`
- [x] `std::map`
- [ ] `std::vector`
- [ ] `std::list`

#### Q63. What is the main difference between these two Functions?

Expand Down
215 changes: 108 additions & 107 deletions c-(programming-language)/c-quiz.md
Original file line number Diff line number Diff line change
@@ -1,41 +1,44 @@
## C (Programming Language)

##### Q1. Which Code sample will eventually cause the computer to run out of memory ?

- [x] ``````c
while(1)
{
char *smallString = (char *) malloc(10);
}
````
`````
``````
- [ ] ``````c
long long number = 1;
while(1)
number *= 2;
````
`````
``````
- [ ] ``````c
while(1)
{
char hugeString[1000000L];
memset(hugeString, 0, 1000000L);
}
````
`````
``````
- [ ] ``````c
while(1)
{
long *bigArray = (long *) malloc(sizeof(long) * 1000);
memset(bigArray, 1000000, 1000);
free(bigArray);
}
````
`````
``````
##### Q1. Which Code sample will eventually cause the computer to run out of memory?

- [x]

```c
while(1)
{
char *smallString = (char *) malloc(10);
}
```

- [ ]

```c
long long number = 1;
while(1)
number *= 2;
```

- [ ]

```c
while(1)
{
char hugeString[1000000L];
memset(hugeString, 0, 1000000L);
}
```

- [ ]

```c
while(1)
{
long *bigArray = (long *) malloc(sizeof(long) * 1000);
memset(bigArray, 1000000, 1000);
free(bigArray);
}
```

#### Q2. What will this code print on the screen?

Expand Down Expand Up @@ -142,42 +145,41 @@ struct s {

#### Q8. Using a for loop, how could you write a C code to count down from 10 to 1 and display each number on its own line?

- [ ] ``````c
for (int i = 0; i>=0, i--){
printf("%d\n", i);
}//end of loop
```
````
`````
``````
- [ ] ``````c
int i;
for (i=1; i<=10; i++){
printf("%d", i);
}
```
````
`````
``````
- [ ] ``````c
int i = 10;
while (i>0){
printf("%d\n", i);
i--;
}
```
````
`````
``````
- [x] ``````c
int i;
for (i= 10; i>0; i--){
printf("%d\n", i);
}// end of loop
```
````
`````
``````
- [ ]

```c
for (int i = 0; i>=0, i--){
printf("%d\n", i);
}//end of loop
```

- [ ]

```c
int i;
for (i=1; i<=10; i++){
printf("%d", i);
}
```

- [ ]

```c
int i = 10;
while (i>0){
printf("%d\n", i);
i--;
}
```

- [x]

```c
int i;
for (i= 10; i>0; i--){
printf("%d\n", i);
}// end of loop
```

#### Q9. What is not one of the reserved words in standard C?

Expand Down Expand Up @@ -338,41 +340,40 @@ char *string[20] = { "one", "two", "three"};
#### Q26. Which program will compile and run without errors?
- [ ] ``````c
main() {
for(i=0; i<10; i++) ;
}
```
````
`````
``````
- [x] ``````c
main() {
int i=0;
for(; i<10; i++) ;
}
```
````
`````
``````
- [ ] ``````c
main() {
int i;
for(i=0; i<j; i++) ;
}
```
````
`````
``````
- [ ] ``````c
main() {
int i;
for (i= 10; i<10; i++)
}
```
````
`````
``````
- [ ]
```c
main() {
for(i=0; i<10; i++) ;
}
```

- [x]

```c
main() {
int i=0;
for(; i<10; i++) ;
}
```

- [ ]

```c
main() {
int i;
for(i=0; i<j; i++) ;
}
```

- [ ]

```c
main() {
int i;
for (i= 10; i<10; i++)
}
```

#### Q27. What does this function call return?

Expand Down
17 changes: 11 additions & 6 deletions css/css-quiz.md
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ a:active {
- [ ] the parent element
- [ ] the wrapper element

#### Q21. By default, a background image will repeat `\_\_\_`
#### Q21. By default, a background image will repeat \_

- [ ] only if the background-repeat property is set to repeat
- [x] indefinitely, vertically, and horizontally
Expand Down Expand Up @@ -1130,9 +1130,12 @@ D. border-top-radius: 10px;
- [ ] `input[type*="text"]:not([disabled="disabled"]) {...}`
- [ ] `input[type="text"]:not([type="disabled"]) {...}`

**Explanation:**`input[type="text"] selects all the input with type text, and :not([disabled]) selects all the elements not having the attribute "disabled". Combining both only selects all the input elements with type attribte as "text" and not having "disabled" attribute.`
[Reference link attribute-selector](https://www.w3schools.com/css/css_attribute_selectors.asp)
[Reference link-:not()](https://developer.mozilla.org/en-US/docs/Web/CSS/:not)
**Explanation:**

`input[type="text"] selects all the input with type text, and :not([disabled]) selects all the elements not having the attribute "disabled". Combining both only selects all the input elements with type attribte as "text" and not having "disabled" attribute.`

- [Reference link attribute-selector](https://www.w3schools.com/css/css_attribute_selectors.asp)
- [Reference link-:not()](https://developer.mozilla.org/en-US/docs/Web/CSS/:not)

#### Q90. How can you create a semi-transparent background color?

Expand All @@ -1141,8 +1144,10 @@ D. border-top-radius: 10px;
- [x] background-color: rgba(0, 0, 0, 0.5);
- [ ] background-color: rgba(0, 0, 0, 1);

**Explanation:**`rgba is a funtion in css. rgba stands for red, green, blue and alpha. The value of alpha can be between 0 and 1 both inclusive with 0 being fully transparent and 1 being fully opaque.`
[Reference link-rgba](https://www.w3schools.com/cssref/func_rgba.asp)
**Explanation:**
`rgba is a funtion in css. rgba stands for red, green, blue and alpha. The value of alpha can be between 0 and 1 both inclusive with 0 being fully transparent and 1 being fully opaque.`

- [Reference link-rgba](https://www.w3schools.com/cssref/func_rgba.asp)

#### Q91. Which property is used to create a drop shadow effect on an HTML element?

Expand Down
5 changes: 2 additions & 3 deletions dotnet-framework/dotnet-framework-quiz.md
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@
- [ ] CIL is used to convert a value type to an object type.
- [ ] CIL is a compiled code library that Microsoft developed as an open specification. Developers use it for security, versioning, and deployment purposes.

#### Q38. **\_\_\_** pattern works as a bridge between two incompatible interfaces? // wording in question is maybe changed?
#### Q38. **\_** pattern works as a bridge between two incompatible interfaces? // wording in question is maybe changed?

- [x] Adapter
- [ ] Bridge
Expand Down Expand Up @@ -291,8 +291,7 @@
- [ ] a series of related tasks or methods that together turn inputs into outputs
- [ ] a program that is running on your computer

[reference link]
https://docs.microsoft.com/en-us/dotnet/api/system.threading.tasks.task?view=net-5.0
[Reference link](https://docs.microsoft.com/en-us/dotnet/api/system.threading.tasks.task?view=net-5.0)

#### Q43. You want to add responsibilities to object dynamically. Which design pattern best fit this objective?

Expand Down
Loading

0 comments on commit f9450c5

Please sign in to comment.