Answers32
You create a subclass from a superclass. You can only access private data attributes derived from
the parent class using...
accessor methods
dot operator
__str__
initialization method - ANSWERS-accessor methods
Polymorphism allows you to write methods in a subclass that have the same name as methods
in the superclass.
True
False - ANSWERS-True
It is not possible to call a superclass's __init__ method from a subclass's __init__ method.
True
False - ANSWERS-False
A subclass can have a method with the same name as a method in the superclass.
True
,False - ANSWERS-True
Only the __init__ method can be overridden.
True
False - ANSWERS-False
You can have an empty class.
True
False - ANSWERS-True
A(n) __________ program translates a high-level language program into a separate machine
language program.
translator
assembler
compiler
utility - ANSWERS-compiler
The rules that must be followed when writing a program are called __________.
operators
punctuation
syntax
key words - ANSWERS-syntax
,The __________ translates an assembly language program to a machine language program.
assembler
translator
compiler
interpreter - ANSWERS-assembler
Computers can only execute programs that are written in __________.
assembly language
Java
Python
machine language - ANSWERS-machine language
In the __________ numbering system, all numeric values are written as sequences of 0s and 1s.
octal
hexadecimal
decimal
binary - ANSWERS-binary
A byte is made up of __________ bits.
2
8
, 16
4 - ANSWERS-8
A byte is enough memory to store a(n) __________ value.
character
exponential
integer
floating point - ANSWERS-character
A type of memory that can hold data for long periods of time, even when there is no power to
the computer, is called __________.
RAM
CPU registers
secondary storage
main memory - ANSWERS-secondary storage
This is a volatile type of memory that is used only for temporary storage while a program is
running.
secondary storage
RAM
the USB drive
the disk drive - ANSWERS-RAM
The part of a computer that runs programs is called __________.