Search Header Logo

CS1010 Lab 01

Authored by Gabriella Gloria

Computers

University

Used 4+ times

CS1010 Lab 01
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct file extension for C source files?

.java

.c

.cpp

.cfile

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a basic data type in C?

integer

real number

character

string

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Consider the function foo().  What is the value of b at Line A?

foo() causes an error.

value of variable b cannot be determined

b contains the value of 15

b contains the value of 5

b contains the value of 75

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a flowchart, which symbol is used to represent a decision point?

diamond

rectangle

oval

arrow

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What function would calculate the weighted mean given a list L and weights W :

  • divide(sum(multiply(L, W)), W)

  • multiply(mean(L), mean(W))

  • divide(sum(multiply(L, W)), sum(W))

  • sum(divide(multiply(L, W), W))

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Given the mathematical function for the variance of a list L :
Which function represents this operation?

  • mean(subtract(L, square(mean(L))))

  • sum(square(subtract(L, mean(L))))

  • divide(square(subtract(L, mean(L))), n)

  • mean(square(subtract(L, mean(L))))

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

For the operation of standardizing a list L, which function is correct?

  • divide(L, stddev(L))

  • subtract(L, mean(L))

  • divide(subtract(L, mean(L)), stddev(L))

  • divide(subtract(L, stddev(L)), mean(L))

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?