
W06-07: CP03 Quiz (CSCI0823)
Quiz by Bryan N. Manalaotao
Feel free to use or edit a copy
includes Teacher and Student dashboards
Measure skillsfrom any curriculum
Measure skills
from any curriculum
Tag the questions with any skills you have. Your dashboard will track each student's mastery of each skill.
With a free account, teachers can
- edit the questions
- save a copy for later
- start a class game
- automatically assign follow-up activities based on students’ scores
- assign as homework
- share a link with colleagues
- print as a bubble sheet
15 questions
Show answers
- Q1What is the most common elementary numeric data type in programming languages?Floating pointIntegerCharacterDecimal20s
- Q2Which programming language does not include a boolean type?PrologCCOBOLJava20s
- Q3Which data type represents real numbers and is composed of a mantissa and an exponent?DecimalCharacterIntegerFloating point20s
- Q4In C and C++, how are character typically represented?Enclosed in single quotation marksEnclosed in parenthesesEnclosed in double quotation marksEnclosed in square brackets20s
- Q5Which language allows for the declaration of variables with up to 120 characters in length?PrologJavaCOBOLC20s
- Q6Which type of binding occurs before run time and remains unchanged throughout program execution?Type bindingDynamic bindingStatic bindingLate binding20s
- Q7What is the range of values for boolean variables in programming languages?-∞ to +∞0 to 100True or false1 to 1020s
- Q8Which keyword is used in C to denote the start and end of blocks of executable statements?BLOCK ... UNBLOCKBEGIN ... ENDSTART ... STOP{ ... }20s
- Q9In which language are variable names and identifiers allowed to have a maximum length of 30 characters?CPythonPrologCOBOL20s
- Q10Which type of variable is bound to storage during the execution of explicit programmer-given instructions?Global variableExplicit Dynamic variableSemi Dynamic variableConstant variable20s
- Q11What characteristic of static scoping enables the binding of names to nonlocal variables?The ability to dynamically change variable scope during executionThe ability to determine variable scope dynamically during executionThe ability to determine variable scope statically before executionThe ability to bind names to local variables only20s
- Q12Which type of compatibility method considers two variables to be compatible if they have similar structures?Compatibility by nameCompatibility by typeCompatibility by valueCompatibility by structure20s
- Q13What is the process of ensuring that operands of an operator are of compatible types called?Type inferenceType checkingBindingVariable initialization20s
- Q14In which programming language are variable declarations made explicit?RubyJavaCPython20s
- Q15What is the lifetime of a variable?The time during which it is visible in a programThe time during which it is assigned a valueThe time during which it is allocated storageThe time during which it is initialized20s