COMP130_Symbolic

Quiz
•
Computers
•
University
•
Medium
W Mao
Used 6+ 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
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
Similar Resources on Wayground
13 questions
Git Quiz

Quiz
•
University
11 questions
Git basics

Quiz
•
University
9 questions
Python Basics

Quiz
•
University
15 questions
Exam 1 Practice

Quiz
•
University
15 questions
Scope of Variables in Python

Quiz
•
1st Grade - Professio...
10 questions
MATLAB 2

Quiz
•
KG - University
10 questions
JAVA operators

Quiz
•
University
9 questions
Lección 3 E-thinking - python

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University