LinkedIn skill assessment answers and questions — MATLAB
यदि आप ढूंढ रहे हैं LinkedIn skill assessment answers तथा प्रशन - मतलब, Arduino के साथ हैंड्स-ऑन रोबोटिक्स. इस ब्लॉग पोस्ट में, I will share with you some of the most common and challenging questions that you may encounter in the MATLAB skill assessment test, along with the correct answers and explanations.
This will help you prepare for the test and boost your chances of getting a high score. Whether you are a beginner or an expert in मतलब, you will find this post useful and informative. Read on to learn more about the LinkedIn skill assessment answers तथा प्रशन - मतलब.
Q1. From what distribution does the rand()
function return value?
- normal
- poisson
- binomial
- वर्दी
Based on the code below, c is the _ of a.
Q2.a = rand(1, 11);
b = sort(a);
c = b(1, ceil(end/2));
- MEDIAN
- तरीका
- अर्थ
- margin
What does the Profiler track?
Q3.- execution time
- command history
- त्रुटियाँ
- the value of variables
Which code block contains the correct syntax for a while
कुंडली?
Q4. - ए
a = 0;
do
a = a + 1;
while a < 5
end
- बी
a = 0;
while(a < 5)
a = a + 1;
- सी
a = 0;
while a < 5:
a = a + 1;
- डी
a = 0;
while a < 5
a = a + 1;
end
What does b
contain?
Q5. a =
19 20 12 0 6
6 9 56 0 3
46 8 9 8 19
9 8 8 19 46
1 9 46 6 19
- ए
b =
56 0
9 8
- बी
b =
8 19
19 46
You have written a function myfun
and want to measure how long it takes to run. Which code segment will return in t
the time in seconds it takes myfun
to run?
Q6. - ए
t = cputime(myfun());
- ए
tic;
myfun();
toc;
- सी
timer.start;
myfun()
t = timer.stop;
- डी
t = timer(myfun());
%%
used for?
क्यू 7. क्या है - argument placeholder
- block quotes
- code sections
- conversion specifier
what is the .
character NOT used for?
क्यू 8. - structure field access
- a decimal point
- cell array access
- element-wise operations
Which function could you use for multiple linear regression?
प्रश्न 9.- polyval
- regress
- solve
- polyfit
For which of these arrays do mean
, median
, तथा mode
return the same value?
प्र10. - [0 1 1 1 2]
- [1 3 5 5 6]
- [0 1 1 1 1]
- [0 0 5 5 5]
You are in the middle of a long MATLAB session where you have performed many analyses and made many plots. You run the following commands, yet a figure window doesn’t pop up on the top of your screen with your plot. What might be the issue?
प्रश्न 11.x = [-1:0.1:1];
y = X.^2;
plot(x, y)
- Your plot doesn’t plot in a figure window because
figure
was not called immediately in advance. - तुम्हारी
plot
syntax is incorrect. - Your plot is in a figure window that was already open, hidden behind other windows on your screen.
- Your plot was saved to an image file but not displayed.
How do you access the value for the field name
in structure S?
प्र12. - एस[‘name’]
- S.name
- एस(‘name’)
- एस{‘name’}
What built-in definition does i have?
प्रश्न 13.- basic imaginary unit
- index function
- infinity
- index variable
Which statement is equivalent to this for loop?
प्र14.a = [1 2 3; 4 5 6];
b = zeros(size(a));
for i_row = 1:size(a, 1)
for i_col = 1:size(a, 2)
b(i_row, i_col) = a(i_row, i_col)^2;
end
end
- b = a*a;
- b = a.^2;
- b = a^2;
- b = pow2(ए);
You have plotted values of cosine from -10 प्रति 10 and want to change the x-axis tick marks to every pi, से -3pi to 3pi. Which statement will do that?
प्रश्न 15.- xticks(-3pi:3.14:3pi)
- xticks(-3pi:pi:3pi)
- xticks(linespace(-3pi(), 3pi(), pi()))
- xticks(linespace(-3pi, 3pi, pi)
What is the value of c
?
प्र16. a = ones(1,3);
b = 1:3;
c = conv(a,b)
- [-1 2 -1]
- [1 3 6 5 3]
- 6
- [1 -2 1]
Which function CANNOT be used to randomly sample data?
प्रश्न 17.- datasample
- randi
- resample
- randperm
Which choice is correct syntax for a switch
कथन?
प्रश्न 18. - ए
x = 7;
switch x
case 2
disp("two");
otherwise
disp("not two");
end
- बी
x = 7;
switch x :
case 2
disp("two");
otherwise
disp("not two");
end
- सी
x = 7;
switch x
case 2
disp("two");
else
disp("not two");
end
- डी
x = 7;
switch x
case 2
disp("two");
default
disp("not two");
end
What is the result of this code?
क्यू19.a = 1;
b = 2;
c = 3;
d = 4;
e = c / (~a - b == c - d);
- गलती
- बी
c =
NaN
- सी
c =
Inf
- डी
c =
-0.2500
What is true of a handle class object?
प्र20.- When you pass a handle object to a function, a new object is made that is independent of the original.
- All copies of handle objects refer to the same underlying object.
- Handle object cannot reference one another.
- Handle object do not have a default
eq
समारोह.
Which choice has a different final result in f10
than the other three?
प्र21. - ए
f10 = 1;
for i = 1:10
f10 = f10 * i;
end
- बी
f10 = factorial(10)
- सी
f10 = 1;
i = 1;
while i <= 10
i = i + 1;
f10 = i * f10;
end
- डी
f10 = prod(1:10)
Which choice will NOT give you a 5 एक्स 5 identity matrix?
प्र22.- ए
a = rand(5);
round(a * inv(a))
- बी
diag(ones(5, 1))
- सी
identity(5)
- डी
eye(5)
Which statement creates this structure?
प्र23.dog =
name: 'Bindy'
breed: 'border collie'
weight: 32
- ए
dog = struct('name', 'Bindy'; 'breed', 'border collie'; 'weight', 32);
- बी
dog.name = 'Bindy';
dog.breed = 'border collie';
dog.weight = 32;
- सी
dog = {
'name' : 'Bindy',
'breed' : 'border collie',
'weight': 32;
}
- डी
dog('name') = 'Bindy';
dog('breed') = 'border collie';
dog('weight') = 32;
my_func
is a function as follows. What is the value of a
at the end of the code beneath?
प्र24. function a = my_func(a)
a = a + 1;
end
------------------
a = 0;
for i = 1:3
my_func(a);
end
a = my_func(a);
- 4
- 3
- 0
- 1
Which statement could create this cell array?
प्रश्न25.c = {["hello world"]} {1×1 cell} {["goodbye"]} {1×3 double}
- c =
{"hello world" {"hello"} "goodbye" [1 2 ]};
- c =
{"hello world" {"hello"} "goodbye" {[1 2 3]}};
- c =
{"hello world" {"hello"} "goodbye" [1 2 3]};
- c =
{"hello world" {"hello" "hello"} "goodbye" {[1 2 3]}};
Which choice adds b
to each row of a
?
प्र26. a = ones(4, 4);
b= [1 2 3 4];
- a = a + reshape(बी, 4, 1);
- a = a + b’;
- a = a + repmat(बी, 4, 1);
- a = a + [b b b b];
Which choice replaces all a
s with o
एस?
प्र27. - ए
for i = 1:length(fruit)
fruit{i}(fruit{i} == a) == o;
end
- बी
for i = 1:length(fruit)
fruit(i)(fruit(i) == 'a') == 'o';
end
- सी
for i = 1:length(fruit)
fruit{i}(fruit{i} == 'a') == 'o';
end
- डी
for i = 1:length(fruit)
fruit{i}(fruit{i} == 'a') == 'o';
Which statement returns the roots for the polynomial x^2 + 2x - 4
?
प्रश्न 28. - poly([1 2 -4])
- solve(x^2 + 2एक्स – 4 == 0)
- polyfit(x^2 + 2एक्स – 4 == 0)
- जड़ों([1 2 -4])
Which choice is the proper syntax to append a new elements a
to the end of 1x 2 dimensional cell array C
?
प्र29. - C = {C a};
- C = cellcat(C a)
- C = cat(2, {ए}, सी)
- सी{end+1}=a
You have loaded a dataset of people’s heights into a 100 एक्स 1 array called height
. Which statement will return a 100 एक्स 1 array, sim_height
, with values from a normal distribution with the same mean and variance as your height data?
क्यू30. - sim_height = std(ऊंचाई) + अर्थ(ऊंचाई) * randn(100, 1);
- sim_height = mean(ऊंचाई) + std(ऊंचाई) * randn(100, 1);
- sim_height = randn(std(ऊंचाई), अर्थ(ऊंचाई), [100, 1]);
- sim_height = randn(अर्थ(ऊंचाई), std(ऊंचाई), [100, 1]);
Which statement returns a cell array of the strings containing ‘burger
‘ से menu
?
प्रश्न31. menu = {'hot dog' 'corn dog' 'regular burger' 'cheeseburger' 'veggie burger'}
- मेन्यू{strfind(मेन्यू, ‘burger’)}
- मेन्यू(strfind(मेन्यू, ‘burger’))
- मेन्यू{रोकना(मेन्यू, ‘burger’)}
- मेन्यू(रोकना(मेन्यू, ‘burger’))
What is the set of possible values that a
may contain?
प्र32. a = randi(10, [1, 10]);
a(3) = 11;
a(a>2) = 12;
- 3, 4, 5, 6, 7, 8, 9, 10, 11, 12
- 1, 2, 12
- 2, 11, 12
- 1, 12
Which statement is true about the sparse matrices?
प्रश्न 33.- आप उपयोग कर सकते हैं
sparse
function to remove empty cells from cell array variables. - Sparse matrices always use less memory than their associated full matrices.
- Mixtures of sparse and full matrices can be combined in all of MATLAB’s built-in arithmetic operations.
- NS
sparse
function requires its input to be a full matrix with at least 50% zero elements.
Which statement using logical indices will result in an error?
प्रश्न34.a = 1:10;
- b = a(a ~= 11)
- b = a(a == 1)
- b = a(ए>6 && ए<9)
- b = a(ए | 1)
Which statement turns menu
into the variable menu_string
नीचे?
क्यू35. menu = {'hot dog' 'corn dog' 'regular burger' 'cheeseburger' 'veggie burger'}
menu_string =
'hot dog
corn dog
regular burger
cheeseburger
veggie burger'
- menu_string = cell2mat(join(मेन्यू, newline))
- menu_string = cell2mat(join(मेन्यू, ‘\n’))
- menu_string = join(मेन्यू, newline)
- menu_string = cell2mat(pad(मेन्यू))
Which code snippet sets a new random seed based on the current time and saves the current settings of the random number generator?
प्र36.-
rng_settings_curr = rng('shuffle');
- बी
rng(time());
rng_settings_curr = rng();
- सी
rng_settings_curr = rand('shuffle');
- डी
rng('shuffle');
rng_settings_curr = rng();
You have a matrix data
in which each column is mono audio recording from a room in your house. You’ve noticed that each column has a very different mean and when you plot them all on the same graph, the spread across the y axis make it impossible to see anything. You want to subtract the mean from each column. Which code block will accomplish this?
प्रश्न37. -
data_nomean = data - repmat(median(data), size(data, 1), 1);
-
data_nomean = bsxfun(@minus, data, mean(data));
- .
data_nomean = zeros(size(data));
for i = 1:size(data, 1)
data_nomean(i, :) = data(i, :) - mean(data(i, :));
end
- .
data_nomean = zscore(data');
Which code block results in an array b
containing the mean values of each array within C
?
प्रश्न 38. - .
b = zeros(1, size(C, 2));
for i_C = 1:size(C, 2)
b(i_C) = mean(C(i_C));
end
- .
b = cellfun(@mean, C);
- .
b = zeros(1, size(C, 1));
for i_C = 1:size(C, 1)
b(i_C) = mean(C{i_C}(:));
end
- .
b = cellfun(@(m) mean(m(:)), C)
Which statement creates a logical array that is 1 if the element in passwords
contains a digit and 0 if it does not?
प्र39. passwords = {'abcd' '1234' 'qwerty' 'love1'};
- रोकना(पासवर्ड, ‘\d’)
- ~isempty(regexp(पासवर्डों, ‘\d’))
- cellfun(@(एक्स) ~isempty(regexp(एक्स, ‘\d’)), पासवर्डों)
- regexp(पासवर्डों, ‘\d’)
Which is NOT a function that adds text to a plot?
क्यू40.- शीर्षक
- मूलपाठ
- label
- legend
Which code block most likely produced this graph?
प्र41.-
figure
x = rand(10,10);
r = corrcoef(x);
surf(r)
colorbar
-
figure
x = rand(10,10);
r = corrcoef(x);
imagesc(r)
colorbar
What kind of files are stored with the .mat extension?
प्र42.- figure files
- script files
- function files
- stored variable files
You would like to randomly reorder every element in array a and put the result into another array b. Which code is NOT necessary to do that?
प्रश्न 43.a = 1:10;
- :
b = a(randi(10, 1, 10));
- :
m = perms(a);
i = randi(factorial(10), 1);
b = a(m(i, :))
- :
[s, j] = sort(rand(10, 1));
b = a(i);
- :
b = a(randperm(10));
Which statement returns 1 (सच)?
प्रश्न 44.a = 'stand'
b = "stand"
- a == b
- ischar(बी)
- लंबाई(ए) == length(बी)
- कक्षा(ए) == class(बी)
Which does E contain?
क्यू45.C = {'dog' 'cat' 'mouse'}
D = {'cow' 'piranha' 'mouse'}
E = setdiff(C,D)
- E = {‘cat’} {‘dog’}
- E = {‘mouse’}
- E = {‘cat’} {‘cow’} {‘dog’} {‘piranha’}
- E =
Where in the UI can you see what variables have been created, their values, and their class?
प्र46.- Editor
- command window
- विवरण
- workspace
Given the following x and y coordinates, which choice calculates a linear regression for the x and y coordinates, and which plots the points of the x,y data and the regression line on the same graph?
प्रश्न 47.x = 9.0646 6.4362 7.8266 8.3945 5.6135 4.8186 2.8862 10.9311 1.1908 3.2586
y = 15.4357 11.0923 14.1417 14.9506 8.7687 8.0416 5.1662 20.5005 1.0978
- :
coeff_line = polyfit(x,y,1)
x_line = floor(min(x)):0.1:ceil(max(x));
y_line = polyval(coeff_line,x_line)
figure; plot(x,y,'o')
hold on
plot(x_linemy_line)
- :
figure
plot(x,y,'o')
coeff_line = polyfit(x,y,1);
x_line = floor(min(x)):0.1:ceil(max(x));
y_line = polyval(coeff_line,x_line);
plot(x_line,y_line)
- :
figure
plot(x,y)
coeff_line = polyfit(x,y,1);
x_line = floor(min(x)):0.1:ceil(max(x));
y_line = polyval(coeff_line,x_line);
hold on; plot(x_line,y_line)
- :
coeff_line = polyfit(x,y,1);
x_line = floor(min(x)):0.1:ceil(max(x));
y_line = polyval(coeff_line,x_line);
figure; plot(x,y,'o')
hold on
plot(x_line,y_line)
If you run this piece of code, you will get an error. आप अभी भी आधे घर में नहीं हैं?
प्रश्न 48.a = [0 1 2 3; 4 5 6 7];
a = a^2;
- You are attempting to multiply a non-square matrix by itself, causing a dimension mismatch.
- MATLAB does not allow you to square all the elements in the matrix in a single operation.
- You must use the ** operator instead of the ^ operator.
- You cannot square matrices that have a 0 as the first element.
Which command will create a 10-element vector v with values from 1 प्रति 10?
प्र49.- v = {1:10}
- v = [1-10]
- v = 1:10
- v = (10)
array, the two subscript index (4,2) indexes the same location as linear index ___
.
क्यू50. एक के लिए 5 एक्स 5 - 7
- 8
- 17
- 9
What is a difference between global variable and persistent variables?
प्रश्न51.- Global variables have a higher performance overhead than persistent variables.
- Global variables remain in memory after clear all; persistent variables do not.
- Global variables can be used to cache data in memory; persistent variables cannot.
- Global variables are accessible outside the function scope; persistent variables are not.
How is the random seed for MATLAB’s random number generator first initializedin a MATLAB Session?
प्रश्न52.- Seed is undefined until it is initialized by the user.
- Seed is set to a value based on the current time when user first calls rand()
- Seed is set to a value based on the current time on startup.
- Seed is set to a static default value on startup.
At what will MATLAB look first for a called function?
प्रश्न53.- functions on the path
- built-in functions
- functions within the current file
- functions within the current directory
Which choice is the correct syntax for declaring a function that returns the input value as the output?
प्रश्न54.- :
function mystery_func(a) :
return a
- :
function b = mystery_func(a)
b = a;
end
- :
def b = mystery_func(a)
b = a;
end
- :
function mystery_func(a)
b = a;
return b;
end
What is the state of a at the end of this code?
प्रश्न55.a = [1 2; 3 4];
b = a(:,2);
c = b + 3;
a(1:2,1) = c;
- :
a =
6 3
7 4
- :
a =
5 2
7 4
- :
a =
5
7
- :
a =
6
7
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?
प्रश्न56.-
h_f = figure; set(h_f,'Color', [0 0 0]);
-
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]);
Which statement will return all the odd numbers from 1 प्रति 9?
प्रश्न57.-
2*[1:5]+1
-
1:2:9
-
isodd(1:9)
-
1:odd:9
In MATLAB, NS 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?
प्र 58. h = ones(5,5)/25;
imshow(imfilter(img,h));
-
h
is a Gaussian filter that adds to 1. Its intended effect is to highlight image edges. -
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). -
imfilter
is a function that always blurs the images.
What is the size of b
?
प्रश्न59. a = [1 2 3];
b = repmat(a,2,3);
- 1×3
- 3×2
- 2×3
- 2×9
Which statement reverses vector a
?
क्यू 60. a = [ 1 2 3 4];
- reverse(ए)
- ए(रट टू डेथ:- 1:1)
- rev(ए)
- ए(::-1)
Which command will create a column vector with the values 7, 8, तथा 9?
प्रश्न 61.-
c = [7,8,9]
-
c = [7: 8: 9]
-
c = [7; 8; 9]
-
c = [7 8 9]
What do you call in the आज्ञा window to see all the variables in the workspace and their classes?
प्रश्न 62.-
who
-
vars
-
whos
-
who all
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?
प्रश्न 63. - कौन
- कौन
- lookfor
- क्या
What is a reason to save a MAT-file using the -v7.3
flag?
प्रश्न 64. - to ensure backward compatibility
- to avoid HDF5 overhead in MAT-file
- to include a variable greater that 2GB
- to use compression by default
Which choice cannot add a directory to the search path?
प्रश्न 65.- NS पथ समारोह
- NS savepath समारोह
- का उपयोग करते हुए Set Path में पर्यावरण मेन्यू
- NS addpath समारोह
Which is not a function to plot three-dimensional data?
प्रश्न 66.- mesh
- surf
- contour
- ग्रिड
What is the reason to save a MAT-file using the v-7.3 flag?
प्रश्न 67.- to use compression by default
- to ensure backward compatibility
- to include a variable greater than 2GB
- to avoid HDF5 overhead in MAT-file
This graph could be the result of which block of code?
प्रश्न 68.-
a = randn(1,1000); histogram(a) ylabel('counts')
-
a = rand(1,1000); histogram(a) ylabel('counts')
-
a = randi(1,1000); histogram(a) ylabel('counts')
-
a = rng(1,1000); histogram(a) ylabel('counts')
What is a key difference between && तथा &?
प्रश्न 69.- && is a logical operator and & is not.
- && is always slower than &
- && employs short-circuiting behavior and & नहीं करता.
- && is a bitwise operator and & is not.
What is the result of this code?
क्यू 70.s="abcd"; s(3)='x'
- “abxd”
- abxd
- a 1x 3 string array
- a run-time error
In which case would you use varargin in a function you write?
प्र71.- You want to count the number of input arguments.
- You want to include optional input arguments.
- You want the workspace variable names of the input arguments.
- You want the data types of the input arguments.
What does e contain?
प्र72.c = [9 8 0];
d = [0 0 1];
e = union(c,d);
-
e = [0 0 1 9 8 0]
-
e = [9 8 0 0 0 1]
-
e = [0 1 8 9]
-
e = [1 8 9]
What does this function print?
प्रश्न 73.a = 1;
for i_loop = 1:6
disp(a);
end
- :
111111
- :
1 1 1 1 1 1
- :
1
1
1
1
1
1
- :
nothing will print
You are debugging a function and have set a breaipoint on the line before the error occurs. You look at the variable values and suspect the cause of the error is that a is 9 but should be 10. The next statement after the breakpoint will use a. Wigh action would help you test if a=10 solves the problem?
प्रश्न 74.- प्रकार “a=10;” into the function file, before the statement that’s throwing an error. Then click the Run button in the debugger window.
- प्रकार “a=10; जारी रखना;” into the command window
- प्रकार “a=10;” into the command window. Then click the Run button in the debugger window
- प्रकार “a=10;” into the function file, before the statement that’s throwing an error. Then type “वापस करना;” into the command window
Which statement returns the character array ‘alone’?
प्रश्न 75.b = ['stand' 'alone'];
- बी(7:11)
- बी(2)
- बी(6:रट टू डेथ)
- बी(1,2)
Which statement returns the character array ‘alone’?
प्रश्न 76.c = {rand(20,10) rand(23,2) rand(14,5)}
- :
b = cellfun(@(m) mean(m(:)), C
- :
b = zeros(1, size(C,1);
for i_C = 1:size(C,1)
b(1_C) = mean(C{i_C}(:));
end
- :
b = cellfun(@mean, C)
- :
b = zeros(1, size(C,2);
for i_C = 1:size(C,2)
b(1_C) = mean(C(i_C));
end
Which choice uses the proper syntax for an if else
कथन?
प्र77. - :
if (a > 1):
b = 2;
else:
b = 3;
- :
if (a > 1){
b = 2;
} else{
b = 3;
}
- :
if (a > 1)
b = 2;
else
b = 3;
end
- :
if (a > 1)
b = 2;
else
b = 3;
What does b contain?
प्रश्न 78.a = [9 8 8 19 6 1 9 6 6 19];
b = unique(a);
-
b = [1 6 8 9 19]
-
b = [1 6 8 9]
-
b = [1 6 6 6 8 8 9 9 19 19]
-
b = [1 6 6 8 8 9]
उत्तर छोड़ दें
आपको चाहिए लॉग इन करें या रजिस्टर करें एक नई टिप्पणी जोड़ने के लिए .