CSCI 4230 Exam Questions With 100%
Verified Answers
Which of the following programs translates source files written in a
high-level programming language to assembly language or machine
language? -
correct answer ✅A compiler.
The C++ programming language is best described as which of the
following? -
correct answer ✅An imperative language with object-oriented
features.
What is the difference between declarative languages and
imperative languages. -
correct answer ✅Declarative languages focus on what the
computer should do, while imperative languages focus on how the
computer should do it.
What is the difference between a compiler and an interpreter? -
correct answer ✅An interpreter does not translate programs into
another language.
Which of the following kinds of rules are used to determine the
type of an expression based on its components or context? -
correct answer ✅Type inference rules.
, CSCI 4230 Exam Questions With 100%
Verified Answers
Which of the following best describes a language that is statically
typed? -
correct answer ✅The language is strongly typed and type checking
can be performed at compile time.
Which of the following is an example of subtype polymorphism? -
correct answer ✅Subclasses and inheritance in object-oriented
programming languages.
Which of the following would not be considered a primitive type? -
correct answer ✅An array.
Which of the following would not be considered a composite type?
-
correct answer ✅A numerical type.
Which of the following is not an example of explicit type
conversion? -
correct answer ✅Coercion.
Verified Answers
Which of the following programs translates source files written in a
high-level programming language to assembly language or machine
language? -
correct answer ✅A compiler.
The C++ programming language is best described as which of the
following? -
correct answer ✅An imperative language with object-oriented
features.
What is the difference between declarative languages and
imperative languages. -
correct answer ✅Declarative languages focus on what the
computer should do, while imperative languages focus on how the
computer should do it.
What is the difference between a compiler and an interpreter? -
correct answer ✅An interpreter does not translate programs into
another language.
Which of the following kinds of rules are used to determine the
type of an expression based on its components or context? -
correct answer ✅Type inference rules.
, CSCI 4230 Exam Questions With 100%
Verified Answers
Which of the following best describes a language that is statically
typed? -
correct answer ✅The language is strongly typed and type checking
can be performed at compile time.
Which of the following is an example of subtype polymorphism? -
correct answer ✅Subclasses and inheritance in object-oriented
programming languages.
Which of the following would not be considered a primitive type? -
correct answer ✅An array.
Which of the following would not be considered a composite type?
-
correct answer ✅A numerical type.
Which of the following is not an example of explicit type
conversion? -
correct answer ✅Coercion.