100% de satisfacción garantizada Inmediatamente disponible después del pago Leer en línea o como PDF No estas atado a nada 4,6 TrustPilot
logo-home
Examen

CMPSC 200 Practice Exam Question and answer correctly solved

Puntuación
-
Vendido
-
Páginas
22
Grado
A+
Subido en
22-01-2025
Escrito en
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)

Mostrar más Leer menos
Institución
CMPR
Grado
CMPR

Vista previa del contenido

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

Escuela, estudio y materia

Institución
CMPR
Grado
CMPR

Información del documento

Subido en
22 de enero de 2025
Número de páginas
22
Escrito en
2024/2025
Tipo
Examen
Contiene
Preguntas y respuestas

Temas

$14.99
Accede al documento completo:

100% de satisfacción garantizada
Inmediatamente disponible después del pago
Leer en línea o como PDF
No estas atado a nada


Documento también disponible en un lote

Conoce al vendedor

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
STUVIAMAESTRO254 Florida State University
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
164
Miembro desde
2 año
Número de seguidores
98
Documentos
9466
Última venta
3 días hace
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.

Lee mas Leer menos
2.6

40 reseñas

5
4
4
10
3
7
2
2
1
17

Documentos populares

Recientemente visto por ti

Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes