Skip to content

Commit

Permalink
upd answer
Browse files Browse the repository at this point in the history
  • Loading branch information
Ebazhanov committed Sep 27, 2021
1 parent bf2b9d0 commit 2620316
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions javascript/javascript-quiz.md
Original file line number Diff line number Diff line change
Expand Up @@ -974,10 +974,10 @@ console.log(addFive(3));
#### Q87. Which tag pair is used in HTML to embed JavaScript?
- [ ] `<script></script>`
- [x] `<script></script>`
- [ ] `<js></js>`
- [ ] `<javascript></javascript>`
- [x] `<code></code>`
- [ ] `<code></code>`
#### Q88. What would be the result in the console of running this code?
Expand Down
12 changes: 8 additions & 4 deletions matlab/matlab-quiz.md
Original file line number Diff line number Diff line change
Expand Up @@ -910,12 +910,13 @@ a =
- [ ] `isodd(1:9)`
- [ ] `1:odd:9`

#### Q58. In MATLAB, the `imfilter` command performs a convolution operation between an image and a matrix. Suppose you have an image loaded in MATLAB into the variable `img` and you apply the following code. The original image appears slightly blurred because the convolution smoothed out the image (removed noise). Why do you think this happened?
#### Q58. In MATLAB, the `imfilter` command performs a convolution operation between an image and a matrix. Suppose you have an image loaded in MATLAB into the variable `img` and you apply the following code. The original image appears slightly blurred because the convolution smoothed out the image (removed noise). Why do you think this happened?

```
h = ones(5,5)/25;
imshow(imfilter(img,h));
imshow(imfilter(img,h));
```

- [ ] `h` is a Gaussian filter that adds to 1. Its intended effect is to highlight image edges.
- [x] `h` is an averaging filter uniformly distributed that adds to 1. Its intended effect is to smooth out images (remove noise).
- [ ] `h` is a Laplacian filter that adds up to 0. Its intended effect is to smooth out images (remove noise).
Expand Down Expand Up @@ -952,18 +953,21 @@ a = [ 1 2 3 4];
- [ ] `c = [7 8 9]`

#### Q62. What do you call in the **command** window to see all the variables in the workspace and their classes?

- [ ] `who`
- [ ] `vars`
- [x] `whos`
- [ ] `who all`

#### Q63. You wrote a new function named `snap` in an m-file and when you call it, you're not getting the output you expect. You previously wrote a different function named `snap`, which you think might also be on the search path. Which command can you use to see if the old `snap` function is being called?
#### Q63. You wrote a new function named `snap` in an m-file and when you call it, you're not getting the output you expect. You previously wrote a different function named `snap`, which you think might also be on the search path. Which command can you use to see if the old `snap` function is being called?

- [x] which
- [ ] who
- [ ] lookfor
- [ ] what
- [ ] what

#### Q64. What is a reason to save a MAT-file using the `-v7.3` flag?

- [ ] to ensure backward compatibility
- [ ] to avoid HDF5 overhead in MAT-file
- [x] to include a variable greater that 2GB
Expand Down

0 comments on commit 2620316

Please sign in to comment.