
CS1010 Lab 01
Authored by Gabriella Gloria
Computers
University
Used 4+ times

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
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
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
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
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

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?