GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Quiz

Grade 11 Computer Science Exam

Cameron Dunn 53 Fragen

Quiz starten

Fragen in diesem 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

Informationen

Beschreibung
Quiz am Grade 11 Computer Science Exam, erstellt von Cameron Dunn am 17/06/2019.
Sprache
English
Aufrufe
0
Schlagwörter
grade 11
Bewertung
Noch keine Bewertungen
Bewerte dieses Quiz
Bewerte dieses Quiz

Mehr zu Variables, Constants and Data Types

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck