O GoConqr está de visual novo! Conte para nós o que você achou.

Quiz

Grade 11 Computer Science Exam

Cameron Dunn 53 perguntas

Fazer o quiz

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

Informações

Descrição
Quiz sobre Grade 11 Computer Science Exam, criado por Cameron Dunn em 17-06-2019.
Idioma
English
Visualizações
0
Etiquetas
grade 11
Avaliação
Ainda sem avaliações
Avalie este quiz
Avalie este quiz

Mais sobre Variables, Constants and Data Types

Fale Conosco

Sobre o que é sua mensagem?

O que você acha do novo visual?

Você gostou?