Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

CDS 130 Exam 2 Questions & Answers

Rating
-
Sold
-
Pages
4
Grade
A+
Uploaded on
17-06-2025
Written in
2024/2025

CDS 130 Exam 2 Questions & Answers A bag has 5 red marbles, 13 white marbles, and 8 blue marbles. Your pick a marble at random and RETURN the marble to the bag. Then, you pick a second marble at random. What is the probability that the first marble picked is white, and the second marble picked is red? Choose the BEST answer from below. - ANSWERS(13/26) * (5/26) Show the elements of b after the following line of code is executed: b = 2 : 2 : 9 - ANSWERSSpecified Answer for: b1 - 2 Specified Answer for: b2 - 4 Specified Answer for: b3 - 6 Specified Answer for: b4 - 8 Assign each variable below using only the given command. Your code should contain exactly one line for the assignment of B and exactly one line for the assignment of F. Use the zeros command to assign variable B with an array of size 9 by 9, containing value 0 in each element. Use the ones command to assign variable F with an array of size 15 by 15, containing value 6 in each element. - ANSWERSB = zeros(9, 9); F = 6 * ones(15, 15); The program below runs without error. Show the program's output in the command window. clear clc a = 9 ; b = 6 ; d = a - b

Show more Read less
Institution
CDS 130
Course
CDS 130

Content preview

CDS 130 Exam 2 Questions & Answers

A bag has 5 red marbles, 13 white marbles, and 8 blue marbles. Your pick a marble at random
and RETURN the marble to the bag. Then, you pick a second marble at random.

What is the probability that the first marble picked is white, and the second marble picked is
red? Choose the BEST answer from below. - ANSWERS(13/26) * (5/26)



Show the elements of b after the following line of code is executed:

b = 2 : 2 : 9 - ANSWERSSpecified Answer for: b1 - 2

Specified Answer for: b2 - 4

Specified Answer for: b3 - 6

Specified Answer for: b4 - 8



Assign each variable below using only the given command. Your code should contain exactly
one line for the assignment of B and exactly one line for the assignment of F.

Use the zeros command to assign variable B with an array of size 9 by 9, containing value 0 in
each element.

Use the ones command to assign variable F with an array of size 15 by 15, containing value 6 in
each element. - ANSWERSB = zeros(9, 9);

F = 6 * ones(15, 15);



The program below runs without error. Show the program's output in the command window.

clear clc

a=9;

b=6;

d=a-b

f = mod(a - b, 5)

Written for

Institution
CDS 130
Course
CDS 130

Document information

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

Subjects

$8.49
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF


Also available in package deal

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.
Bensuda Oxford University
Follow You need to be logged in order to follow users or courses
Sold
890
Member since
3 year
Number of followers
445
Documents
23005
Last sold
2 days ago
ECONOMICS,NURSING,BIOLOGY AND ALL REVISION MATERIALS

DEDICATED TO PROVIDE YOU WITH THE BEST LEARNING MATERIALS THAT WILL IMPROVE YOUR GRADES ,WELCOME TO ALIZGRADES AND LETS DO IT TOGETHER!!! GOODLUCK!!!!!!!

3.7

164 reviews

5
77
4
25
3
25
2
11
1
26

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

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions