Tag the questions with any skills you have. Your dashboard will track each student's mastery of each skill.
Give this quiz to my class
Q 1/50
Score 0
What is the main property of process abstraction?
30
Encapsulation
Polymorphism
Inheritance
Parameterization
Q 2/50
Score 0
What is the purpose of an Abstract Data Type (ADT)?
30
To complicate programming tasks
To leak access to data structures
To simplify data representation and operations
To increase data type complexity
50 questions
Q.
What is the main property of process abstraction?
1
30 sec
Q.
What is the purpose of an Abstract Data Type (ADT)?
2
30 sec
Q.
What is one of the requirements of an ADT?
3
30 sec
Q.
Which programming languages use encapsulation constructs to provide a single data type and its operations?
4
30 sec
Q.
What is the principle behind "data hiding" in traditional structure programming?
5
30 sec
Q.
What is the main advantage of encapsulation in abstract data types?
6
30 sec
Q.
Which concept in object-oriented programming allows for the combination of functions and data within a single entity?
7
30 sec
Q.
What is the purpose of parameterization in process abstraction?
8
30 sec
Q.
How does encapsulation contribute to the stability and maintainability of a program?
9
30 sec
Q.
Which programming languages provide a more generalized encapsulation construct that can define a number of entities?
10
30 sec
Q.
What is the main advantage of using Abstract Data Types (ADTs)?
11
30 sec
Q.
In object-oriented programming, what surrounds or hides data with its functions?
12
30 sec
Q.
What is the primary purpose of encapsulation in abstract data types?
13
30 sec
Q.
Expressions are the fundamental means of specifying computations in a programming language. Which of the following is a primary role of expressions in imperative languages?
14
30 sec
Q.
Which operator has the highest precedence in most programming languages?
15
30 sec
Q.
In C-based languages, which of the following is an example of a conditional expression?
16
30 sec
Q.
Which of the following is a solution to the problem of functional side effects?
17
30 sec
Q.
A program has the property of referential transparency if:
18
30 sec
Q.
Which of the following languages does NOT allow user-defined overloaded operators?
19
30 sec
Q.
Which of the following is a widening conversion?
20
30 sec
Q.
In most programming languages, how are mixed-mode expressions typically handled?
21
30 sec
Q.
Which Boolean operator/s has equal precedence in some language?
22
30 sec
Q.
Which of the following statements about short-circuit evaluation is true?
23
30 sec
Q.
Which language uses := as the assignment operator?
24
30 sec
Q.
What is the shorthand syntax for adding two values in most modern programming languages?
25
30 sec
Q.
Which of the following languages allows the assignment statement to produce a result and be used as an operand?
26
30 sec
Q.
In which language can you use the syntax ($first, $second) = ($second, $first); for multiple-target, multiple-source assignments?
27
30 sec
Q.
Which of the following statements is true about mixed-mode assignments in Java?
28
30 sec
Q.
Which of the following is an example of a ternary operator?
29
30 sec
Q.
In most languages, which of the following operators has the highest precedence?
30
30 sec
Q.
What is a potential problem with functional side effects in expressions?
31
30 sec
Q.
Which type of conversion can lose accuracy?
32
30 sec
Q.
Which control structure is controlled by precedence and associativity?
33
30 sec
Q.
What are the three levels of control flow mentioned in the course packet?
34
30 sec
Q.
It is defined as a control statement plus statements whose execution it controls?
35
30 sec
Q.
In the context of selection statements, what does the 'else' clause represent?
36
30 sec
Q.
Which of the following design issues relates to two-way selection statements?
37
30 sec
Q.
In FORTRAN, what is the purpose of the 'GOTO' statement in selection statements?
38
30 sec
Q.
What is a key characteristic of the 'switch' statement in C-like languages?
39
30 sec
Q.
Which of the following is a design choice for the 'switch' statement?
40
30 sec
Q.
In Scheme, what form does the 'cond' special form take?
41
30 sec
Q.
Which statement correctly describes counter-controlled loops?
42
30 sec
Q.
In C's 'for' statement, which expression is evaluated once at the beginning of the loop? ([expr_1] ; [expr_2] ; [expr_3])
43
30 sec
Q.
Which type of loop control is based on a boolean expression and can be either pre-test or post-test?
44
30 sec
Q.
What is the purpose of the 'continue' statement in loops?
45
30 sec
Q.
In the context of iteration based on data structures, what is an iterator function?
46
30 sec
Q.
Which of the following is a design issue for nested loops with user-located loop control mechanisms?
47
30 sec
Q.
Which of the following design issues relates to two-way selection statements?
48
30 sec
Q.
In Scheme, what form does the 'cond' special form take?
49
30 sec
Q.
Which statement correctly describes counter-controlled loops?