Search Header Logo

COMP130_Functions Ch02

Authored by W Mao

Computers

University

Used 2+ times

COMP130_Functions Ch02
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

6 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which of the following functions computes the remainder of x/y?

rem()

abs()

exp()

sqrt()

2.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which of the following rounds 1.4 to 2?

round(1.4)

fix(1.4)

floor(1.4)

ceil(1.4)

3.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What is output of the following statement?

rad2deg(pi/2)

0

45

90

180

4.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which of the following creates a vector x from 0 to 8 with an increment of 2?

x = 0 : 2 : 8

x = 0 : 8 : 2

x = 2 : 0 : 8

x = 8 : 2 : 0

5.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which of the following computes the average value of vector x?

median(x)

ave(x)

mean(x)

mode(x)

6.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which of the following cannot create vector X?

X = [5, 6, 7, 8]

X = [5 6 7 8]

X = 5 : 8

X = 5, 6, 7, 8

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?