16 Questions
What is the term for programming languages like C++, C#, Java, Pascal, and Python?
High-level languages
What is the name for a program written in a high-level language?
Source program
What is the function of an interpreter when executing a high-level source code?
Reads one statement from the source code, translates it to machine code, and executes it right away
What does a compiler do with the entire source code of a high-level language program?
Translates the entire source code into machine-code file and then executes it
What is object-oriented programming based on?
Data and procedures
What are fields and procedures known as in object-oriented programming?
Attributes and methods
What is the building block of a program according to the given text?
Objects
What is the main method used for in Java programs?
To execute the program
How does a statement end in Java?
With a semicolon (;)
What is the purpose of reserved words in Java?
To have specific meaning to the compiler
What do opening and closing braces ({ }) denote in Java?
A block to enclose statements
What is the class name convention for Java programs?
Start with an uppercase letter
What must every Java program have?
At least one class
What represents an action or a sequence of actions in Java?
Statements
What is the purpose of the main method in Java?
To execute the program
What do opening and closing parentheses () denote in Java?
Denotes methods
This quiz covers the basics of object-oriented programming in Java, including high-level and low-level programming languages, interpreting and compiling source code, and examples of high-level languages such as C++, C#, Pascal, and Python.
Make Your Own Quizzes and Flashcards
Convert your notes into interactive study material.
Get started for free