i) The semicolon (;) suppresses output when used with MATLAB commands. A) True (B) False ii) A variable name must begin with a number. A) True (B) False create a matrix with m rows and n columns in which all elements iii) The zeros(m,n)command are the numbers 1. A) True (B) False

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
i) The semicolon (;) suppresses output when used with MATLAB commands.
A) True
(B) False
ii) A variable name must begin with a number.
A) True
(B) False
iii) The zeros(m,n)command
create a matrix with m rows and n columns in which all elements
are the numbers 1.
A) True
(B) False
iv) Which of the following is used to see if two elements are equal in MATLAB?
A) !=
B)=
C) isequal
D)=
v) To add a comment to the mfile, the MATLAB command is
A)%
B);
C) comment('')
D) &
vi) To display 'Question 2' in the command window, the correct command is
A) disp(Question 2)
B) display('Question 2')
C) disp('Question 2¹)
D) Question 2
vii) A correct name for a variable is
A) larearee
B) area rec
C )area_rec
D )cos
viii) A matrix is considered to be square if the
A) matrix contains all zero elements
B) number of rows and columns are the same
Transcribed Image Text:i) The semicolon (;) suppresses output when used with MATLAB commands. A) True (B) False ii) A variable name must begin with a number. A) True (B) False iii) The zeros(m,n)command create a matrix with m rows and n columns in which all elements are the numbers 1. A) True (B) False iv) Which of the following is used to see if two elements are equal in MATLAB? A) != B)= C) isequal D)= v) To add a comment to the mfile, the MATLAB command is A)% B); C) comment('') D) & vi) To display 'Question 2' in the command window, the correct command is A) disp(Question 2) B) display('Question 2') C) disp('Question 2¹) D) Question 2 vii) A correct name for a variable is A) larearee B) area rec C )area_rec D )cos viii) A matrix is considered to be square if the A) matrix contains all zero elements B) number of rows and columns are the same
Binding
thread........
C) number of rows is greater than the number of columns
D) number of columns is greater than the number of rows
ix) The polyval command
A) outputs the coefficients of the polynominal interpolation model
B) evaluates the interpolant at a given value of x
C) conducts cubic-spline interpolation
D) conducts linear-spline interpolation
x) This Matlab command clears all data and variables stored in:
memory:
A) cle
B) clear
C) delete
D) deallocate
xi) The command to add text to the x axis of a plot is
A) xtitle
B) label,x
C ) xlabel
D) xtext
xii)
A-rand(2,5);b-size(A); then b equals to
B)5,2
A)2,5
C) 5
D) 10
xiii) Examine the following MATLAB code. What is the value of B at the end of the
program:
A=2;
for ii 0:2:4
A=[A, A*ii];
end
B=A
A) B-2,0,0,0
B) B-2202002000
D) B-2248
C) B 204080160
xiv) Matlab Script files are often called,
A) mat files
B) jpg files
C) Doc files
D) M files
xv) Which of the following is printed to standard output when the following expression
is executed?
fprintf('max temp is %.2f degree', 100.2345)
A) 'max temp is %.2f degree', 100.2345
C) max temp is 100.23 degree
B) max temp is %.2f degree 100.2345 D) max temp is 100.2345 degree
S
***********
Transcribed Image Text:Binding thread........ C) number of rows is greater than the number of columns D) number of columns is greater than the number of rows ix) The polyval command A) outputs the coefficients of the polynominal interpolation model B) evaluates the interpolant at a given value of x C) conducts cubic-spline interpolation D) conducts linear-spline interpolation x) This Matlab command clears all data and variables stored in: memory: A) cle B) clear C) delete D) deallocate xi) The command to add text to the x axis of a plot is A) xtitle B) label,x C ) xlabel D) xtext xii) A-rand(2,5);b-size(A); then b equals to B)5,2 A)2,5 C) 5 D) 10 xiii) Examine the following MATLAB code. What is the value of B at the end of the program: A=2; for ii 0:2:4 A=[A, A*ii]; end B=A A) B-2,0,0,0 B) B-2202002000 D) B-2248 C) B 204080160 xiv) Matlab Script files are often called, A) mat files B) jpg files C) Doc files D) M files xv) Which of the following is printed to standard output when the following expression is executed? fprintf('max temp is %.2f degree', 100.2345) A) 'max temp is %.2f degree', 100.2345 C) max temp is 100.23 degree B) max temp is %.2f degree 100.2345 D) max temp is 100.2345 degree S ***********
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY