wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Quiz on Octave Programming

Total questions: 22

Worksheet time: 12mins

Name
Class
Date
1.

What is a Variable?

a)

It is a place where you can store some data

b)

It is a place in your code that changes

c)

It is a name given to a special sub-routine that changes how the program works

d)

It is when you want to add two number together

2.

Which of the following is a CONDITIONAL

a)

jump 5 times

b)

if you see an arrow then jump 5 times else sit down

c)

if you see an arrow

3.
A=[1 2 3 4 5];
a)
A is Row Vector
b)
A is Column Vector
4.
A=[1;2;3;4;5];
a)
A is Row Vector
b)
A is Column Vector
5.
floor(14.8) =
a)
14.8
b)
15
c)
14
d)
0.8
6.
A=[14  12  15;
        34  25  35;
        94  51  75;
        40  52  55]
What is the dimension of A ?
a)
4x3
b)
3x4
c)
4x4
d)
3x3
7.
round(14.8) =
a)
14.8
b)
15
c)
14
d)
0.8
8.
A=[14  12  15;
        34  25  35;
        94  51  75;
        40  52  55]
How many elements greater than 14 ?
a)
9
b)
10
c)
11
d)
12
9.
ciel(14.8) =
a)
14.8
b)
15
c)
14
d)
0.8
10.
5*2^2*5 =
a)
100
b)
300
c)
500
d)
1000
11.
A=[14  12  15;
        34  25  35;
        94  51  75;
        40  52  55]
How many elements less than 14 ?
a)
1
b)
2
c)
3
d)
4
12.
what is the output of this command
5 < 9  
a)
5
b)
9
c)
1
d)
0
13.
What is the result of this command
12 < 14
a)
1
b)
0
c)
12
d)
14
14.
What is the result of this command
3 ^ 2 * 3 ^ 2
a)
81
b)
36
c)
216
d)
6
15.
What is the result of this command
sin(pi/2) + cosd(0)
a)
2
b)
0
c)
1
d)
infinity
16.
What is the result of this command
mod(100,5) + rem(100,5)
a)
0
b)
1
c)
100
d)
5
17.
A=[14  12  15;
        34  25  35;
        94  51  75;
        40  52  55]
How many elements less than 50 ?
a)
7
b)
8
c)
6
d)
9
18.
A=[14  12  15;
        34  25  35;
        94  51  75;
        40  52  55]
How many even numbers in A?
a)
6
b)
7
c)
8
d)
9
19.
A=[14  12  15;
        34  25  35;
        94  51  75;
        40  52  55]
sort(A), will sort A in what order ?
a)
columns-ascending
b)
columns-descending
c)
rows-ascending
d)
columns-descending
20.
A=[14  12  15;
        34  25  35;
        94  51  75;
        40  52  55]
sort(A,2), will sort A in what order ?
a)
columns-ascending
b)
columns-descending
c)
rows-ascending
d)
columns-descending
21.
plot(x,y,'--r')
the output line will be ?
a)
dashed-red
b)
dash dotted-red
c)
dotted-red
d)
solid-red
22.
plot(x,y,':b')
the output line will be ?
a)
dashed-blue
b)
dotted-black
c)
dotted-blue
d)
solid-blue