placeholder image to represent content

W06-07: CP03 Quiz (CSCI0823)

Quiz by Bryan N. Manalaotao

Our brand new solo games combine with your quiz, on the same screen

Correct quiz answers unlock more play!

New Quizalize solo game modes
15 questions
Show answers
  • Q1
    What is the most common elementary numeric data type in programming languages?
    Floating point
    Integer
    Character
    Decimal
    20s
  • Q2
    Which programming language does not include a boolean type?
    Prolog
    C
    COBOL
    Java
    20s
  • Q3
    Which data type represents real numbers and is composed of a mantissa and an exponent?
    Decimal
    Character
    Integer
    Floating point
    20s
  • Q4
    In C and C++, how are character typically represented?
    Enclosed in single quotation marks
    Enclosed in parentheses
    Enclosed in double quotation marks
    Enclosed in square brackets
    20s
  • Q5
    Which language allows for the declaration of variables with up to 120 characters in length?
    Prolog
    Java
    COBOL
    C
    20s
  • Q6
    Which type of binding occurs before run time and remains unchanged throughout program execution?
    Type binding
    Dynamic binding
    Static binding
    Late binding
    20s
  • Q7
    What is the range of values for boolean variables in programming languages?
    -∞ to +∞
    0 to 100
    True or false
    1 to 10
    20s
  • Q8
    Which keyword is used in C to denote the start and end of blocks of executable statements?
    BLOCK ... UNBLOCK
    BEGIN ... END
    START ... STOP
    { ... }
    20s
  • Q9
    In which language are variable names and identifiers allowed to have a maximum length of 30 characters?
    C
    Python
    Prolog
    COBOL
    20s
  • Q10
    Which type of variable is bound to storage during the execution of explicit programmer-given instructions?
    Global variable
    Explicit Dynamic variable
    Semi Dynamic variable
    Constant variable
    20s
  • Q11
    What characteristic of static scoping enables the binding of names to nonlocal variables?
    The ability to dynamically change variable scope during execution
    The ability to determine variable scope dynamically during execution
    The ability to determine variable scope statically before execution
    The ability to bind names to local variables only
    20s
  • Q12
    Which type of compatibility method considers two variables to be compatible if they have similar structures?
    Compatibility by name
    Compatibility by type
    Compatibility by value
    Compatibility by structure
    20s
  • Q13
    What is the process of ensuring that operands of an operator are of compatible types called?
    Type inference
    Type checking
    Binding
    Variable initialization
    20s
  • Q14
    In which programming language are variable declarations made explicit?
    Ruby
    Java
    C
    Python
    20s
  • Q15
    What is the lifetime of a variable?
    The time during which it is visible in a program
    The time during which it is assigned a value
    The time during which it is allocated storage
    The time during which it is initialized
    20s

Teachers give this quiz to your class