Quality of object-oriented language

Assignment Help Basic Computer Science
Reference no: EM13767097

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

Reference no: EM13767097

Questions Cloud

Evaluating different market segments : Evaluating different market segments, the firm must look at two factors: the segments overall attractiveness - purchasing decision-making process and share common goals and risks associated with their decisions.
Describe a loving and supportive school environment : Describe a loving, supportive school environment from the point of view of both student and teacher. Describe the parental role in helping to create a loving, supportive school environment.
One hollow sphere with inner and outer radii : Suppose you have one hollow sphere with inner and outer radii 0.4m and 1.8m, and a second with inner and outer radii 1.4ft and 2.1ft. How many more cubic yards of material does the bigger hollow sphere have? Your answer should be in cubic yards. Form..
What are some problems you would expect to encounter : What are some problems you would expect to encounter if you were in charge of providing rehabilitation in a county jail
Quality of object-oriented language : The quality of a language that allows a programmer to express a computation clearly, correctly, concisely, and quickly is called.
The generic pharmaceuticals industry : Analyze the opportunites for Teva in innovative pharmaceutical and biosimilars.
How much consumers gain from consuming goods : The concept of consumer surplus indicates how much consumers gain from consuming goods and services at a specified price - difference between what a consumer is willing to pay for a good or service and the price that they actually pay.
Discuss any changes you would make to the policy : Research a current health policy of your choice and discuss why you find it relevant to you personally and the population. You may also discuss any changes you would make to the policy
Examples of illegal employment questions : List five examples of illegal employment questions. [Use credible sources]. For each example, why do you think these questions are or are not legal to ask prospective employees?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Advantages to physical servers

Are there any advantages to physical servers that would preclude someone from usingvirtual machines? At what point do you think the inherent cost savings and manageabilityadvantages that virtual machines provide would outweigh the physical ser..

  What emerging it/is do you think will be popular

What current IT/IS do you think will still be relevant ten years from now?What current popular IT/IS do you think will still be obsolete ten years from now?What emerging IT/IS do you think will be popular and widely adopted in the future?

  Which type of exception would be written as the parameter

Which type of exception would be written as the parameter of a catch-clause if the try-clause is calling new and we want to check whether the free store has run out of space? 16. What do you call the following function? bool operator==(Name otherN..

  Discuss the points and tabulate the strengths and weakness

Please discuss the points and tabulate the strengths and weaknesses

  What is physical security

What is physical security? What are the primary threats to physical security? How are they manifested in attacks against the organization? What are certification and accreditation when applied to information systems security management? List and..

  Which industrialization essentially made us less independent

Many experts assert which industrialization has essentially made us less independent and more closely related to other people than ever before.

  Class polygon which draws a hexagon for a set of numbers

Write a class Polygon which draws a hexagon for a set of numbers given by the user. You must only use method drawLine of class Graphics (other fill or draw methods won't be accepted).

  Explain various kinds of storage devices

Explain what storage devices are, comprising the explanation of storage media. Write examples of at least three various kinds of storage devices.

  The subnetting discussion topic under

Pick a network address from the list below. Everybody must pick a unique network address and number of subnet. Please reply to the Subnetting Discussion Topic under Week 3 Discussions with your selection. Don't select a network address that..

  Create a database for managing our business

Evaluate the given statement and discuss some approaches to address the issue: "We spent several million dollars a few years ago to create a database for managing our business. In the past several months, we acquired a new business but its data does ..

  Low enforcement agencies during an incident

Low enforcement agencies during an incident

  Add the following numbers in two''s complements

Given four bits, add the following numbers in two's complements. a. - 4 + (- 1), b. -7 + 3, c. -5 + 4

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd