COMP130_Functions Ch02

COMP130_Functions Ch02

University

6 Qs

quiz-placeholder

Similar activities

ComplejidadAlgoritmos

ComplejidadAlgoritmos

University

8 Qs

Computer Graphics

Computer Graphics

University

6 Qs

Pointeurs et références 2

Pointeurs et références 2

University

10 Qs

Understanding Digital Animation Concepts

Understanding Digital Animation Concepts

6th Grade - University

10 Qs

COMP130_IO

COMP130_IO

University

7 Qs

Cuestionario de Simulación_Evaluación Diagnóstica

Cuestionario de Simulación_Evaluación Diagnóstica

University - Professional Development

7 Qs

Intro to ML: Neural Networks Lecture 1 Part 2

Intro to ML: Neural Networks Lecture 1 Part 2

University

6 Qs

Quiz 8: Arrays&Vector

Quiz 8: Arrays&Vector

University

10 Qs

COMP130_Functions Ch02

COMP130_Functions Ch02

Assessment

Quiz

Computers

University

Medium

Created by

W Mao

Used 2+ times

FREE Resource

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