CS1010 Lab 01

CS1010 Lab 01

University

11 Qs

quiz-placeholder

Similar activities

C program quiz 1

C program quiz 1

University

10 Qs

Lecture 4 - Introduction to Computing

Lecture 4 - Introduction to Computing

University

14 Qs

Quiz-1(Session 2023-24)

Quiz-1(Session 2023-24)

University

11 Qs

6thApril

6thApril

University

10 Qs

Image Representation Quiz

Image Representation Quiz

9th Grade - University

8 Qs

SOII. Gestión ficheros y práctica

SOII. Gestión ficheros y práctica

University

10 Qs

Sistema de Archivos

Sistema de Archivos

University

11 Qs

C Practice Test 1

C Practice Test 1

University

12 Qs

CS1010 Lab 01

CS1010 Lab 01

Assessment

Quiz

Computers

University

Medium

Created by

Gabriella Gloria

Used 4+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?