AUTOCAD AND MATLAB 160 Questions
AUTOCAD AND MATLAB 160 Questions
6. This is a command in AutoCAD used to move the view planar to the screen.
A. offset C. pan
B. fillet D. dist
13. When you type a second point by first moving the cursor to indicate direction and
then entering a distance, you are using the __________.
A. Direct Distance entry technique
B. Relative Polar Coordinates
C. Interactive
D. Absolute Coordinates
14. Which CAD command enlarges or reduces selected objects proportionally in the X, Y,
and Z directions from a base point?
A. Stretch C. Array
B. Divide D. Scale
15. Which CAD command creates multiple copies of objects in a circular or rectangular
pattern?
A. Array C. Chamfer
B. Extend D. Rotate
16. The __________ command provides the length of an object but does not place a
dimension line in the drawing.
A. Annotate C. Baseline
B. Leader D. Distance
AUTOCAD & MATLAB
17. CAD commands such as LINE, CIRCLE, and ARC and other basic CAD figures are
examples of __________.
A. Modify commands C. Draw commands
B. Edit commands D. None of the above
19. The __________ tool is used to fill in an object with color/pattern design.
A. Arc C. Line
B. Hatch D. Pattern
23. With the Multiline Text editor, you can do all of the following except
A. Create fields such as date, time and author
B. Insert numbered and bulleted lists
C. Insert pictures
D. Insert specific drafting and engineering symbols
24. How many points do you need to define for the rectangle command?
A. Two C. One
B. Four D. None
AUTOCAD & MATLAB
25. The origin of a drawing is ALWAYS at _________
A. 0, 0 C. A random point in space
B. The first point you select D. UCS ICON
29. This Matlab commands clears all data and variables stored in memory:
A. clc C. delete
B. clear D. deallocate
32. To better manage memory and prevent unnecessary memory allocations, Matlab
uses;
A. Vectors C. Delayed copy
B. Scalars D. Licenses
33. To print a newline in a fprint statement, you must use the following escape
character;
A. \t C. \nxt
B. \nl D. \n
AUTOCAD & MATLAB
34. In Matlab, this keyword immediately moves to the next iteration of the loop;
A. Update C. Continue
B. Goto D. Break
36. Which of the these is the way to access the first element in a vector named v
(assuming there is at least one element in the vector)?
A. v(0) C. v
B. v(1) D. v(: , 0)
37. Which of the following is used to see if two elements are equal in MATLAB?
A. != C. =
B. == D. Isequal
38. If vector = [1 2 3 4; 11 24 92 100; 345 65 90 1]. What will the value of a equal to if
this code is entered into MATLAB >> [a b] = size (vector)?
A. 1 2 3 4 D. 4
B. 12 E. 3
C. 1
39. What is the value of ans that is printed when the following code is run:
isnumeric(32)
A. 1 D. Yes
B. 0 E. True
C. 32
40. If I want to save a formatted string to memory, but don’t want to print it out, which
command should I use?
A. fprintf C. disp
B. sprintf D. echo
B. D.
>> save Lays (a b) >> save Lays a b
>> load myfile.mat >> load (‘myfile.mat’)
54. What are the difference between the ‘help’ and the ‘look for’ command?
A. No difference
B. Syntactical difference
C. Help returns the entire set while look for returns specific commands
D. Help returns all the toolbox while look for returns a single toolbox
AUTOCAD & MATLAB
55. What will the following set of commands do when they are present in a script file?
𝐬𝐭𝐞𝐦[𝐲𝟏, 𝐲𝟐];
𝐭𝐢𝐭𝐥𝐞(′𝐩′ );
𝐩𝐫𝐢𝐧𝐭 − 𝐝𝐞𝐩𝐬 𝐩
A. Plot the discrete graph of y1 and y2
B. There is no stem comman in MATLAB
C. Store the graph as a separate file
D. Cannot be determined
56. The function to close the windows containing graphs generated from MATLAB is
__________
A. close all C. delete graphs
B. close graphs D. end all
65. Which of the following statements shows the result of executing the following line in
the editor window?
𝐬𝐢𝐳𝐞 = [𝟏 𝟑]′ ; 𝐬𝐢𝐳𝐞(𝐬𝐢𝐳𝐞)
A. error C. 3 1
B. 1 3 D. 3 3
71. If one operand is a scalar and the other is not, then MATLAB applies the scalar to
every element of the other operand. This property is known as __________.
A. Operand divergence C. Vector expansion
B. Scalar expansion D. Dimension declaration
72. Matrix operations follows the rules of linear algebra and are not compatible with
multidimensional arrays.
A. True B. False
73. What is the difference between syms ‘x’ and sym ‘x’?
A. there is no difference, they are the same functions
B. they are equivalent
C. syms ‘x’ makes the declaration long lasting while sym ‘x’ makes the
declaration short lasting
D. syms ‘x’ makes the declaration short lasting while sym ‘x’ makes the
declaration long lasting
74. What is the nature of the arrangement of the coefficients to store the following
expression in MATLAB?
𝐲 = 𝟑𝐱𝟓 + 𝐱𝟐 + 𝟔
A. y = [3,0,0,1,0,6] C. y = [3; 0; 0; 1; 0; 6]
B. y = [3,1,6] D. y = [6,0,1,0,03]
78. How can the formulation of polynomial be done from its roots?
A. poly(r), r is a row vector, containing the roots of the polynomial
B. poly([roots as a coloumn vector])
C. poly([roots as a row vector])
D. poly([roots in descending order as a coloumn vector])
79. What will be the output when the following code is written in MATLAB?
𝐮 = 𝐬𝐢𝐧(𝟏𝟎) ; 𝐯 = 𝐩𝐢; 𝐰𝐡𝐨𝐬
A. u and v are double with 8 bytes
B. u and v are symbolic objects
C. error
D. u and v are double arrays
85. What is the size of double and symbolic variables holding integer constants?
A. 8 bytes and 16 bytes C. 32 bytes and 26 bytes
B. 16 bytes and 112 bytes D. 23 bytes and 112 bytes
93. What is the difference between the expressions (9*1-8) & (9-1*)?
A. Computational difference C. No difference
B. Final results are different D. Cannot be determined
97. What happens if dsolve does not return any numerical solution?
A. The equations have no solution
B. The equations have a trivial solution
C. The equations have infinite no. of solutions
D. The equations has to be solve separately
AUTOCAD & MATLAB
98. If solve solution does not return any solution, what does it imply?
A. The equations has no definite solution
B. The equation has a solution for a specific interval
C. The equation may be solvable but the function ‘solve’ cannot produce a
solution
D. There is no function ‘solve’
101. What is the of MATLAB over other computing software with matrix dimensions?
A. No advantage
B. Real time pre-defined memory allocation
C. Real time user-defined memory
D. Matrix operations are easily computed
102. Which operator set is used for left and right division respectively?
A. .\ and ./
B. ./ and .\
C. Left division and right division is not available in MATLAB
104. Predominantly, what are the two kinds of errors in MATLAB programs?
A. Syntax and runtime C. Logic and runtime
B. Syntax and logic D. Syntax and algorithmic
105. If the programs demand evaluation of multiple, only decimal, values of the same
function, what is the better way amongst the following?
A. Using anonymous functions or inline functions
B. Using str2func
C. Using private functions
D. Using any function
AUTOCAD & MATLAB
106. What are persistent variables?
A. Variables which retain values between calls to the function
B. Variables which help in a calling a function
C. Variables which deal with function
D. Variables global to the function
107. Variables need to have same name while being passed from the primary function to
the sub-function.
A. True B. False
108. Which command can be used for single step execution in debugging mode?
A. dbstep C. dbstatus
B. dbstepin D. dbcont
120. A function is not returning values according to desired input values. What should be
the correction?
A. Include clear all at the beginning of function file
B. Include close all at the beginning of function file
C. Include echo on in the function file
D. Cannot be solved
127. How do we break from an infinite loop without keeping a break statement within the
loop?
A. Press Ctrl+C C. Loop won’t be terminated
B. Press Ctrl+Z D. Press Ctrl+X
128. The transient response, yt(t), of a system becomes __________ a t tends to infinity.
A. 0 C. Infinity
B. 1 D. Undefined
129. The steady state value of a system is __________ it’s a transient response.
A. dependent on C. greater than
B. independent of D. not observable from
130. Delay time is the time required by a system to reach a quarter of its steady state value.
A. True B. False
131. For non-unity feedback system, the error is calculated with respect to the reference
signal.
A. True B. False
132. Which of the following command will reveal the damping ratio of the system?
A. damp() C. damping{}
B. damp[] D. dr()
134. The steady state error of the system with a forward path transfer function
G(s)=13(s-1)/(s-1) and with a parabolic input is __________.
A. Infinite C. -infinite
B. 0 D. Undefined
AUTOCAD & MATLAB
135. Which of the following command gives the step response characteristics of a control
system?
A. stepinf() C. stepinfo[]
B. stepinfo() D. step()
136. Which of the following command generates the impulse response of a system which
has more zeros than poles?
A. impulse() C. impulse{}
B. impulse[] D. no such command
137. Which of the following command generates the transfer function of a system?
A. tf() C. tf{}
B. tf[] D. no such command
140. If the natural frequency of a system increases, the rise time __________.
A. Increases C. Doubles
B. Decreases D. Halves
142. If the poles of a system transfer function are equal and imaginary, the system is
_________.
A. Undamped C. Overdamped
B. Critically damped D. Negatively damped
AUTOCAD & MATLAB
143. An undamped system is stable.
A. True B. False
147. The format for 5 digit representation along with exponent is __________.
A. short e
B. short g
C. short exp
D. 4 digit along with exponent value can be represented
149. The function to plot a graph with both axes on logarithmic scales is _____________.
A. loglog C. semilog
B. log D. not possible
155. What is the default variable used to represent the laplace transform in the output?
A. s C. S
B. z D. p
156. A causal system is stable if the pole lies on the right half of the s-[lane.
A. True B. False
159. The laplace transform method used to solve a differential function is __________ than
the classical way.
A. Easier C. Moderately difficult
B. Harder D. Relatively difficult
AUTOCAD & MATLAB
160. The laplace transform of a cascaded system is defined if ___________
A. The individual system have a common R.O.C.
B. The individual system doesn’t have a common R.O.C.
C. The impulse response of each system is defined
D. Cannot be determined