COMP130_IO_Selection

COMP130_IO_Selection

University

9 Qs

quiz-placeholder

Similar activities

C - Pointers

C - Pointers

University

10 Qs

USB

USB

9th Grade - Professional Development

14 Qs

Flip - Flops

Flip - Flops

University

12 Qs

Coding Fundamentals in C

Coding Fundamentals in C

6th Grade - Professional Development

12 Qs

Digital Electronics Weekend Assignment 5

Digital Electronics Weekend Assignment 5

University - Professional Development

10 Qs

X-Quiz #7

X-Quiz #7

University

10 Qs

Solving Polynomial using Rational Root Theorem

Solving Polynomial using Rational Root Theorem

10th Grade - University

10 Qs

Basics Of C Programming

Basics Of C Programming

University

10 Qs

COMP130_IO_Selection

COMP130_IO_Selection

Assessment

Quiz

Computers

University

Medium

Created by

W Mao

Used 6+ times

FREE Resource

9 questions

Show all answers

1.

FILL IN THE BLANK QUESTION

1 min • 5 pts

n = input("Enter an expression", "s")

what is the value of n if user enter 1+1

2.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

fprintf('Some example output is %8.#f \n', pi*1000)

To generate the following output, what is the value of # ?

3141.593

0

2

3

7

3.

FILL IN THE BLANK QUESTION

1 min • 5 pts

The ____command allows the user to select 5 points from

a figure window and converts the points into the

appropriate x- and y-coordinates.

4.

MULTIPLE CHOICE QUESTION

2 mins • 5 pts

x = [ 1, 2, 3, 4, 5];

y = [2, 2, 2, 4, 6];

x<y

Which one is the result?

1

0

0 0 0 0 1

1 0 0 0 1

5.

FILL IN THE BLANK QUESTION

1 min • 5 pts

What is result of the following code

x = 25;

x < 30 < x

6.

FILL IN THE BLANK QUESTION

1 min • 5 pts

What is the result of the following code?

x = 2;

y = 2;

3 - x < x - y

7.

FILL IN THE BLANK QUESTION

1 min • 5 pts

What is the result of the following code?

x = 2;

y = 2;

(x==y)+1

8.

FILL IN THE BLANK QUESTION

1 min • 5 pts

what is the result of the following code

x = 1.1;

floor(x) == x | floor(x) == round(x)

9.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

Media Image

Which of the following statements is true if the output is Case 3

x is greater than 6

y is equal to 'A'

x is greater than 6

y is not equal to 'A'

x is less than or equal to 6

y is not equal to 'A'

x is less than or equal to 6

y is equal to 'A'