Ask Computer Engineering Expert

1. The quality of a language that allows a programmer to express a computation clearly, correctly, concisely, and quickly is called _____.
efficiency
orthogonality
regularity
writability

2. Which of the following is a functional language?
Lisp
Python
ALGOL
FORTRAN

3. Which of the following is an object-oriented language?
Algol
C++
FORTRAN
C

4. A language achieves ____ by avoiding special cases in the use of constructs.
orthogonality
generality
efficiency
uniformity

5. A language that allows the user to add features to it is said to have the property of ____.
uniformity
extensibility
regularity
reliability

6. A ____ specifies the syntax of a piece of code that expands to other standard code.
compiler
function
macro
procedure

7. C++ ____.
is an object-oriented language
is a functional type language
is a logic type language
is not widely used

8. Which of the following statements about functional programming languages is incorrect?
In pure functional programming, there are no assignments
In pure functional programming there are no loops
In pure functional programming loops are replaced by recursive calls
The value of a function depends on the order of evaluation of its parameters

9. To express symbols as a data type in Scheme, use the keyword ____.
symbol
quote
form
exclamation

10. Which of the following represents a list of data in Scheme?
(3.1, 3.2, 3.3)
(quote (3.1 3.2 3.3))
(3.1; 3.2; 3.3)
(quote (3.1, 3.2, 3.3))

11. Which of the following correctly assigns values to two variables and then multiplies them in the Scheme programming language?
(let ((x 5) (y 3)) (* x y))
(let (x 5) (y 3)) (* x y)
let (x 5) (y 3) (* x y)
(let (x 5 y 3) (* x y))

12. The ____ is used in Scheme to create a function.
let special form
lambda special form
letrec special form
procedure special form

13. Which of the following Scheme statements will insert the number 6 at the head of a list named L?
(add 6 L)
(hd 6 L)
(insert 6 L)
(cons 6 L)

14. Given a list L in Scheme with contents of (3 7 2 8). What will be returned if the command (cdr L) is executed?
(8)
(2 8)
(3)
(7 2 8)

15. Given a list L in Scheme with contents of ((x y) s (t)). What will be returned if the command (cdr (car L)) is executed?
(x)
(x y)
(y)
(t)

16. ____ are statements that are assumed to be true and from which other true statements can be proved.
Axioms
Logical statements
Predicates
Universal statements

17. In the Horn clause a1 and a2 and a3 ? b, the variable b is called the ____.
head
tail
body
fact

18. In the Horn clause a1 and a2 and a3 ? b, the portion a1 and a2 and a3 is called the ____.
head
tail
body
query

19. ____ is the process of pattern matching to make statements identical.
Unification
Instantiation
Resolution
Equalization

20. Variables set equal to patterns are said to be ____.
unified
initialized
instantiated
resolved

21. Prolog uses ____.
lowercase for variable names, and uppercase for constants and functions
uppercase for variable names, and lowercase for constants and functions
lowercase for variable names and constants, and uppercase for functions
uppercase for variable names and constants, and lowercase for functions

22. A list is written in Prolog using ____ to enclose the items.
curly braces
single quotes
square brackets
double quotes

23. To force evaluation of an arithmetic term in Prolog, you must use the built-in predicate ____.
force
equals
evaluate
is

24. To force Prolog to perform loops, we must force backtracking even when a solution is found by using the built-in predicate ____.
is
parent
fail
repeat

25. The first programming language to incorporate the object paradigm in a thorough and consistent way was ____.
Simula67
Fortran-80
Smalltalk-80
Algol60

26. Member functions can be implemented outside the declaration of a class in C++ using the ____ operator.
scope altering
directive
redirection
scope resolution

27. The lexical structure of a programming language is the structure of its ____.
variables
comments
tokens
references

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M91336867
  • Price:- $30

Guranteed 24 Hours Delivery, In Price:- $30

Have any Question?


Related Questions in Computer Engineering

Does bmw have a guided missile corporate culture and

Does BMW have a guided missile corporate culture, and incubator corporate culture, a family corporate culture, or an Eiffel tower corporate culture?

Rebecca borrows 10000 at 18 compounded annually she pays

Rebecca borrows $10,000 at 18% compounded annually. She pays off the loan over a 5-year period with annual payments, starting at year 1. Each successive payment is $700 greater than the previous payment. (a) How much was ...

Jeff decides to start saving some money from this upcoming

Jeff decides to start saving some money from this upcoming month onwards. He decides to save only $500 at first, but each month he will increase the amount invested by $100. He will do it for 60 months (including the fir ...

Suppose you make 30 annual investments in a fund that pays

Suppose you make 30 annual investments in a fund that pays 6% compounded annually. If your first deposit is $7,500 and each successive deposit is 6% greater than the preceding deposit, how much will be in the fund immedi ...

Question -under what circumstances is it ethical if ever to

Question :- Under what circumstances is it ethical, if ever, to use consumer information in marketing research? Explain why you consider it ethical or unethical.

What are the differences between four types of economics

What are the differences between four types of economics evaluations and their differences with other two (budget impact analysis (BIA) and cost of illness (COI) studies)?

What type of economic system does norway have explain some

What type of economic system does Norway have? Explain some of the benefits of this system to the country and some of the drawbacks,

Among the who imf and wto which of these governmental

Among the WHO, IMF, and WTO, which of these governmental institutions do you feel has most profoundly shaped healthcare outcomes in low-income countries and why? Please support your reasons with examples and research/doc ...

A real estate developer will build two different types of

A real estate developer will build two different types of apartments in a residential area: one- bedroom apartments and two-bedroom apartments. In addition, the developer will build either a swimming pool or a tennis cou ...

Question what some of the reasons that evolutionary models

Question : What some of the reasons that evolutionary models are considered by many to be the best approach to software development. The response must be typed, single spaced, must be in times new roman font (size 12) an ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As