Quiz 1 Practice Questions

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

CSC201

Quiz 1 Practice Questions


Covered Chapters: 1,2,3

Q1: write the command that will return the following.

[5 10 15 20 25 30 35 40]

[15 14 13 12 11 10 9 8 7 6 5 4 3 2 1]

12 14 16 18 20
0 0 5 10 15
1 1 1 1 1
10 10 10 10 10

Q2: show the output of the following commands

x(4,3:5) = 1

y([3 6], 2:5) = 5

z = [linspace(0,10,5); linspace(10,50,5);linspace(200,60,5)]

Q3: find all the f(x) values in the interval [10,100], with a margin of 2. where 𝑓(𝑥) = x – 5x + 10x

Q4: if a car was moving in a range of speeds for between 10km/h and 50km/h find the distance the car
passes in 10 minutes for each speed with a difference of 5km/h between calculations

Rami M. Altai
1071991@students.adu.ac.ae

You might also like