100% satisfaction guarantee Immediately available after payment Read online or as PDF No strings attached 4.6 TrustPilot
logo-home
Exam (elaborations)

CMPSC 200 Practice Exam Question and answer correctly solved

Rating
-
Sold
-
Pages
22
Grade
A+
Uploaded on
22-01-2025
Written in
2024/2025

CMPSC 200 Practice Exam Question and answer correctly solved What does MATLAB stand for? - correct answer Matrix Laboratory What numeric value would be produced by this calculation in MATLAB? 5-2/4^2 a) 4.875 b) 4.75 c) 5.125 d) This calculation would produce a syntax error - correct answer a) 4.875 Which of the following is not a valid variable name in MATLAB? a) 38special b) B52s c) Blink_182 d) U2 - correct answer a) 38special - a valid variable name must start with a letter followed be letters, digits, or underscores What is the value of z at the end of a run of this code fragment? cos = @(y) sin(y)

Show more Read less
Institution
CMPR
Course
CMPR

Content preview

CMPSC 200 Practice Exam Question and
answer correctly solved
What does MATLAB stand for? - correct answer ✔Matrix Laboratory


What numeric value would be produced by this calculation in MATLAB? 5-
2/4^2
a) 4.875
b) 4.75
c) 5.125
d) This calculation would produce a syntax error - correct answer ✔a) 4.875


Which of the following is not a valid variable name in MATLAB?
a) 38special
b) B52s
c) Blink_182
d) U2 - correct answer ✔a) 38special
- a valid variable name must start with a letter followed be letters, digits, or
underscores


What is the value of z at the end of a run of this code fragment?
cos = @(y) sin(y)
z = cos(0)
a) 1
b) 0 (or something numerically equal to zero)
c) -1

,d) This code fragment will not run due to a syntax error - correct answer ✔b)
0 (or something numerically equal to zero)


Picture a figure containing 18 subplots, arranged as if they had 3 rows and 6
columns. Which subplot command is associated with operations for the plot in
the 2nd row, 4th column?
a) subplot(3,6,11)
b) subplot(3,6,10)
c) subplot(6,3,10)
d) subplot(6,3,11) - correct answer ✔b) subplot(3,6,10)


Which of the following is a valid function header in MATLAB?
a) function y, z = f[x]
b) function = f(x) y,z
c) y,z = f(x)
d) function [y,z] = f(x) - correct answer ✔d) function [y,z] = f(x)


Consider the following code fragment:
x = exp(0)
x=x+1
When one runs the code, what is the value of x at the end of a run of this
code?
a) 2
b) 1
c) 0
d) This code fragment will not run due to a syntax error - correct answer ✔a)
2

, Which command rounds an arbitrary variable y to the nearest integer towards
positive infinity?
a) floor(y)
b) ceil(y)
c) fix(y)
d) round(y) - correct answer ✔b) ceil(y)


If a person wants to print an character string using the fprintf command, the
necessary type field could be
a) %s
b) %c
c) %d
d) %i - correct answer ✔a) %s


Which of these is a built-in function in MATLAB?
a) NaN
b) pi
c) size
d) j - correct answer ✔NaN


Which of these commands deletes information from the workspace?
a) clc
b) close
c) clear
d) clf - correct answer ✔clear


What result would you anticipate after running the command nargin('nthroot')?

Written for

Institution
CMPR
Course
CMPR

Document information

Uploaded on
January 22, 2025
Number of pages
22
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
STUVIAMAESTRO254 Florida State University
View profile
Follow You need to be logged in order to follow users or courses
Sold
164
Member since
2 year
Number of followers
98
Documents
9466
Last sold
3 days ago
Academic Excellence Hub

At Academic Excellence Hub, we specialize in providing premium academic exam solutions for university students and institutions. Our carefully curated collection of assessments ensures academic excellence, preparation mastery, and success in competitive environments. We pride ourselves on delivering reliable, confidential, and high-quality exam resources tailored to meet the highest academic standards. Empower your academic journey with trusted expertise and unparalleled service.

Read more Read less
2.6

40 reviews

5
4
4
10
3
7
2
2
1
17

Trending documents

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions