GoConqr has a new look! Let us know what you think.

Quiz

Grade 11 Computer Science Exam

Cameron Dunn 53 questions

Take the quiz

Questions in this quiz (53)

  1. 1Which of the following values would be best represented with a constant?
    1. APlayer name
    2. BPlayer level
    3. CPlayer score
    4. DPlayer location
  2. 2Which of the following would be best represented with a variable?
    1. AName
    2. BBirthday
    3. CAge
    4. DHome address
  3. 3Which keywords is used to declare a constant
    1. Aconst
    2. Bvar
    3. Clet
  4. 4Which keyword is used to declare a variable?
    1. Aconst
    2. Bvar
    3. Clet
  5. 5Which of the following is not a reason for declaring most values as constants?
    1. AIt is a best practice
    2. BThe compiler can make special optimizations for immutable values
    3. CIt is safer; developers can rely on consistent value
    4. DMost values never change
  6. 6Using type interference, which of the following variables would be assigned a Double type?
    1. Avar state = "Rhode Island"
    2. Blet country = "Belgium"
    3. Clet population = 142000
    4. Dlet speedLimit = 75.0
  7. 7Will the following code snippet compile? Why?
    let number: Double = 3
    1. AYes, because the compiler will assign the value 3.0 to number
    2. BYes, because 3 is a Double
    3. CNo, because 3 is not a Double
  8. 8What is the value of myNumber at the end of the following code?
    let x = 2
    let y = 4
    let z = 6
    let myNumber = x + y + z
    1. A4
    2. B6
    3. C10
    4. D12
  9. 9What is the value of myNumber at the end of the following code?
    let x = 2
    let y = 4
    let z = 6
    let myNumber = x + y * z
    1. A18
    2. B26
    3. C32
    4. D36
  10. 10What is the value of myNumber at the end of the following code?
    let x = 2
    let y = 4
    let z = 6
    let myNumber = x * y - z
    1. A2
    2. B4
    3. C6
    4. D12

Information

Description
Quiz on Grade 11 Computer Science Exam, created by Cameron Dunn on 17/06/2019.
Language
English
Views
0
Tags
grade 11
Rating
No ratings yet
Rate this quiz
Rate this quiz

More on Variables, Constants and Data Types

Feedback

What is it about?

What do you think of the new look?

How do you like it?