100% tevredenheidsgarantie Direct beschikbaar na je betaling Online lezen of als PDF Geen vaste maandelijkse kosten 4,6 TrustPilot
logo-home
Tentamen (uitwerkingen)

CMPSC 200 Practice Exam Question and answer correctly solved

Beoordeling
-
Verkocht
-
Pagina's
22
Cijfer
A+
Geüpload op
22-01-2025
Geschreven 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)

Meer zien Lees minder
Instelling
CMPR
Vak
CMPR

Voorbeeld van de inhoud

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')?

Geschreven voor

Instelling
CMPR
Vak
CMPR

Documentinformatie

Geüpload op
22 januari 2025
Aantal pagina's
22
Geschreven in
2024/2025
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden

Onderwerpen

€13,35
Krijg toegang tot het volledige document:

100% tevredenheidsgarantie
Direct beschikbaar na je betaling
Online lezen of als PDF
Geen vaste maandelijkse kosten


Ook beschikbaar in voordeelbundel

Maak kennis met de verkoper

Seller avatar
De reputatie van een verkoper is gebaseerd op het aantal documenten dat iemand tegen betaling verkocht heeft en de beoordelingen die voor die items ontvangen zijn. Er zijn drie niveau’s te onderscheiden: brons, zilver en goud. Hoe beter de reputatie, hoe meer de kwaliteit van zijn of haar werk te vertrouwen is.
STUVIAMAESTRO254 Florida State University
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
164
Lid sinds
2 jaar
Aantal volgers
98
Documenten
9466
Laatst verkocht
3 dagen geleden
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.

Lees meer Lees minder
2,6

40 beoordelingen

5
4
4
10
3
7
2
2
1
17

Populaire documenten

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via Bancontact, iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo eenvoudig kan het zijn.”

Alisha Student

Veelgestelde vragen