Roll No.
______________
GC University, Faisalabad
Final Examinations Spring 2020
BS Mathematics (Semester VIII)
Course Title: Computing Tools for Mathematics Course Code: MTH-604
Time Allowed: 90 Mins Max. Marks: 50
Credit Hour: 3(3 – 0) Session: 2016-2020
Objective Part
Q. 1 Four possible answers are given. Tick the correct one.
Sr. Four possible Answers
No.
A B C D
1 A mathematica note book consists of
Parenthesis Braces Square Any one
cells and the cell brackets are
2 Second last Second last
The % % sign refers to the Last input Last output
input output
3 For grouping the expressions, we use Parenthesis Braces Square Any one
For what input, the mathematica solve[ x 4 0 solve[ x 4 0 Solve[ x 4 0 Solve[ x 4
4
gives out put x 4 , x] , x] , x] 0, x]
5 In a fraction, to move from numerator
ESC TAB CTRL SPACE
box to denominator box, press
We can chose ‘2’ from
6 list[2] list [3] list [[2]] list [[3]]
list=Range[0,10] as
7 Compute in mathematica: log 5 20 log[5,20] Log[20,5] Log[5,20] log[20,5]
Writing in mathematica: ArcSin[Cos[π]] ArcSin[Cos π] ArcSin(Cos[π])
8 Arc[Sin[Cos[ π]]]
Sin1 Cos
9 If a={1,2,3,4} and b={3,4,5,7}, then
{1,2,3,4,5,7} {1,2,3,4,3,4,5,7} {1,2,3,3,4,4,5,7} {3,4}
Join[a,b] gives
10 To execute an input line, which
Esc+enter Shift+enter Alt+enter Ctrl+enter
keyboard keys combination is used
11 All the built-in functions start with
lower case Greek upper case Latin
letters
12 Which expression constructs identity
Identitymatrix[3] Imatrix[3] Identity[3] IdentityMatrix[3]
matrix of order 3
13 Prime number 5th prime
Prime[5] means Prime number 7 All of these
5 number
14
If A 4,5, 1, 2 , 6, 7
6 1, 2 4,5, 1, 2 4,5,1, 2
then A[[3]] returns
15
If A 4,5, 1, 2 , 6, 7
6 1, 2 4,5, 1, 2 4,5,1, 2
then A[[1;;3]] returns
16 If list={{1,2,3},{2,3},{4,5,6}}, then {{2,3},{2,3}, {{1,2,3},{3}, {{3},{3}, {{1,3},{2,3},
Delete[list,{1,2}] results {4,5,6}} {4,5,6}}, {4,5,6}} {4,5,6}}
17 Solve[x^2-x-6 Solve[x^2-x- solve[x^2-x-6 Solve[x^2-x-
Which expression has no syntax error
= =0,x] 6=0,{x}] = =0;x] 6=0,x]
18 The input a=3 is An equation An identity An assignment A function
19 Which expression is a list [1,2,3,4] (1,2,3,4) <1,2,3,4> {1,2,3,4}
20 Which expression returns the very
Ans % $ #
last generated output
Which expression gives the 3rd order
21 derivative of f x, y with respect to D[f[x,y];{y,3}] D[f[x,y],{x,3}] D[f[x,y],{y,3}] D[f[y,x],{y,3}]
y
22 Which command can solve the linear LinearSolve[A, LinearSolve[A LinearSolve[A; Linearsolve[A,
matrix system Ax b for x b] x,b] b] b]
23 In mathematica kernel, the relational
operator for “unequal is ” =/ != /= ~~
24 If we put a semicolon at the end of an
printed displayed delayed Suppressed
input line, the output is
25 Which expression has no syntax error cos x Cos x Cos x Cos x
Which expression returns the
26 imaginary part of a complex number Im[z] Img[z] im[z] I[z]
z
27 The brackets used to represent
Square parenthesis curly braces
arguments of functions
Which expression returns the
Numerical[
28 numerical value of with 20-digit N[ ,{20}] N[Pi,20] \\N[20]
precision ,20]
Which command is used to determine
29 the determinant of a non-singular det[A] |A| Det[A] Det(A)
square matrix A
30 Which command prints the matrix
MatrixForm[A] matrixform[A] Matrixform[A] Matrix[A]
form of a list A
Which command returns the additive
31 inverse of a non-singular square Inverse(A) Inverse{A} Inverse[A] -A
matrix A
32 Which command returns absolute
value of x
A x x Abs x Mod 3
For numerical approximation of FindRoot[ FindRoot[ Findroot[ Findroot[
33
equation, we use eqn,{x, x 0 }] eqn,x] eqn,{x, x 0 }] eqn,x]
Which command gives the list of
34 DiagonalElement
main diagonal elements of a square s[A]
Diagonal[A] MainDiagonal[A] Diagonal[A,1]
matrix A
35 Which function is helpful to exit the
Do, For or While loop Exit[ ] End[ ] Break[ ] Close[ ]
36 Which keyboard keys combination is
used to insert superscript cntrl,6 contrl,- contrl,+ contrl,enter
37 Which keyboard keys combination is
used to insert subscript cntrl,6 contrl,- contrl,+ contrl,enter
Which command returns the
38 multiplicative inverse of a non- Inverse[A] Inv[A] MultiInverse[A] [ A]1
singular square matrix A
39 Which command returns the
transpose of a matrix A T[A] {A}^T A^T Transpose[A]
If f x _ x 5 then which
40 f a F a f /@ a F a
command evaluates f at x a
41 The command
{a,{1,2,3}} {a,1,2,3} {1,2,3,a} {{1,2,3},a}
Append[{a},{1,2,3}] gives
42 Greek letter can be typed using esc a esc ctrl a ctrl esc a alpha
43 The integral sign cab be esc in esc ctrl int ctrl ctrl in ctrl esc int esc
produced using
44 Which keyboard keys combination is
used to insert a square root cntrl, square cntrl, 2 cntrl, s cntrl, r
45 Which keyboard keys combination is
used to insert a fraction cntrl,\ cntrl, | cntrl,- cntrl, /
Which command gives the number of
46 elements present in a one dimensional Elements[A] Elements[A,1] Length[A] Length[A,1]
list A
47 Which command automatically prints
the generated output While Do For Table
48 The command
{a,1,2,3} {1,2,3,a} {1,2,3,{a}} {{a},1,2,3}
Prepend[{1,2,3},a] returns
49 suppressed suppressed
:= is used for delayed output delayed input
output input
50 Which expression returns the real part
real[z] Re[z] Real[z] R[z]
of a complex number z