COMP130_Symbolic

COMP130_Symbolic

University

10 Qs

quiz-placeholder

Similar activities

12. Regresión

12. Regresión

University

10 Qs

Boolean Algebra

Boolean Algebra

9th Grade - University

10 Qs

Linux Tools for Developers

Linux Tools for Developers

University

15 Qs

Operators in C

Operators in C

University

12 Qs

IOTA : Web Development Bootcamp Quiz 5

IOTA : Web Development Bootcamp Quiz 5

University

10 Qs

Java

Java

University

15 Qs

C - Pointers

C - Pointers

University

10 Qs

Java Fundamentals - Test 3B

Java Fundamentals - Test 3B

University

5 Qs

COMP130_Symbolic

COMP130_Symbolic

Assessment

Quiz

Computers

University

Medium

Created by

W Mao

Used 5+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Both symbolic variables and expressions are represented in Matlab using the sym datatype.

True

False

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Given the following code:

syms x;

expr = x + 2;

x = 10;

What would be the value of expr * 3 ?

double value 36

symbolic expression 3*x + 6

error

symbolic value 36

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Symbolic equations are created using

=

==

===

the isequal function

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following code outputs 2?

syms x;

int(diff(x^2))

syms x;

diff(diff(x^2))

syms x;

diff(int(x))

syms x;

int(int(x))

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the output of the following code?

z = str2sym('a+2*a+(a-1)^2')

collect(z)

error

3*a + (a - 1)^2

a^2 + a + 1

a + 2*a + a^2 - 2*a + 1

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

syms x a b c;

e1 = a*x^2+b*x+c == 0;

Given the above code, which of the following outputs x^2 + 2*x + 3 == 0 ?

subs(e1,{1, 2, 3})

subs(e1,[1, 2, 3])

subs(e1, {a, b, c}, {1, 2, 3})

subs(e1, (a, b, c), (1, 2, 3))

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

syms x

y = x^2;

Given the above code, which of the following is most likely to generate the figure?

fplot(y, [-7,7])

fplot(y)

fplot([-7, 7], y)

plot(x, y)

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?