Questions related to mcqs

Assignment Help Basic Computer Science
Reference no: EM13725599

Question 1: The quality of a language that allows a programmer to express a computation clearly, correctly, concisely, and quickly is called _____.

  1. Efficiency
  2. Orthogonality
  3. Regularity
  4. Writ ability

Question 2: Which of the following is a functional language?

  1. Lisp
  2. Python
  3. ALGOL
  4. FORTRAN

Question 3: Which of the following is an object-oriented language?

  1. Algol
  2. C++
  3. FORTRAN
  4. C

Question 4: A language achieves ____ by avoiding special cases in the use of constructs.

  1. Orthogonality
  2. Generality
  3. Efficiency
  4. Uniformity

Question 5: A language that allows the user to add features to it is said to have the property of ____.

  1. Uniformity
  2. Extensibility
  3. Regularity
  4. Reliability

Question 6: A ____ specifies the syntax of a piece of code that expands to other standard code.

  1. Compiler
  2. Function
  3. Macro
  4. Procedure

Question 7: C++ ____.

  1. Is an object-oriented language
  2. Is a functional type language
  3. Is a logic type language
  4. Is not widely used

Question 8: Which of the following statements about functional programming languages is incorrect?

  1. In pure functional programming, there are no assignments
  2. In pure functional programming there are no loops
  3. In pure functional programming loops are replaced by recursive calls
  4. The value of a function depends on the order of evaluation of its parameters

Question 9: To express symbols as a data type in Scheme, use the keyword ____.

  1. Symbol
  2. Quote
  3. Form
  4. Exclamation

Question 10: Which of the following represents a list of data in Scheme?

  1. (3.1, 3.2, 3.3)
  2. (Quote (3.1 3.2 3.3))
  3. (3.1; 3.2; 3.3)
  4. (Quote (3.1, 3.2, and 3.3))

Question 11: Which of the following correctly assigns values to two variables and then multiplies them in the Scheme programming language?

  1. (Let ((x 5) (y 3)) (* x y))
  2. (Let (x 5) (y 3)) (* x y)
  3. Let (x 5) (y 3) (* x y)
  4. (Let (x 5 y 3) (* x y))

Question 12: The ____ is used in Scheme to create a function.

  1. Let special form
  2. Lambda special form
  3. Letrec special form
  4. Procedure special form

Question 13: Which of the following Scheme statements will insert the number 6 at the head of a list named L?

  1. (Add 6 L)
  2. (Hd 6 L)
  3. (Insert 6 L)
  4. (Cons 6 L)

Question 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?

  1. (8)
  2. (2 8)
  3. (3)
  4. (7 2 8)

Question 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?

  1. (x)
  2. (x y)
  3. (y)
  4. (t)

Question 16: ____ are statements that are assumed to be true and from which other true statements can be proved.

  1. Axioms
  2. Logical statements
  3. Predicates
  4. Universal statements

Question 17: In the Horn clause a1 and a2 and a3 ? b, the variable b is called the ____.

  1. Head
  2. Tail
  3. Body
  4. Fact

Question 18: In the Horn clause a1 and a2 and a3 ? b, the portion a1 and a2 and a3 is called the ____.

  1. Head
  2. Tail
  3. Body
  4. Query

Question 19: ____ is the process of pattern matching to make statements identical.

  1. Unification
  2. Instantiation
  3. Resolution
  4. Equalization

Question 20: Variables set equal to patterns are said to be ____.

  1. Unified
  2. Initialized
  3. Instantiated
  4. Resolved

Question 21: Prolog uses ____.

  1. Lowercase for variable names, and uppercase for constants and functions
  2. Uppercase for variable names, and lowercase for constants and functions
  3. Lowercase for variable names and constants, and uppercase for functions
  4. Uppercase for variable names and constants, and lowercase for functions

Question 22: A list is written in Prolog using ____ to enclose the items.

  1. Curly braces
  2. Single quotes
  3. Square brackets
  4. Double quotes

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

  1. Force
  2. Equals
  3. Evaluate
  4. Is

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

  1. Is
  2. Parent
  3. Fail
  4. Repeat

Reference no: EM13725599

Questions Cloud

An expertise in building customer relationships : The Meredith Corporation has developed an expertise in building customer relationships through segmentation, targeting, and positioning. However, the amazing part is that they have accomplished this by focusing on only the female half of the po..
Demographic: couples without children : Demographic: Couples without Children Product: Travel collects at least 1 journal article about Travel and or Couples without children
Identify and analyze two potential target segments : Using the scenario as an example, identify and analyze (at a summary level) 2 potential target segments using demographics and psychographics that may meet the bank's high-level strategic goals
Why gopro users are so loyal : How does the chapter-opening GoPro story relate to the major concepts in the consumer behavior chapter? Include in your response why GoPro users are so loyal
Questions related to mcqs : The quality of a language that allows a programmer to express a computation clearly, correctly, concisely, and quickly is called _____.
Laws and their amendments : Before starting this assignment, be sure that you are familiar with the following laws and their amendments:
Explain similarities between european views of africans : Three distinct similarities between European views of Africans and European views of Native Americans around the time of European arrival in the Americas.
Create a new integrated marketing communication plan : Pitch a new Integrated Marketing Communication plan (IMC) to your client for the Apple I-Pad, Identify any considerations you will need to employ to build and maintain the brand and customer loyalty
Extensive positive experience in the past : Think about a leader with whom you have had extensive positive experience in the past. Think about whether this leader had a high need for achievement, affiliation, or power.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Explain at least one 1 possible effect that multithreading

question 1 describe at least one 1 possible effect that multithreading could have on event-driven programming when you

  Storage of an unordered collection of items

Storage of an unordered collection of items that facilitates efficient, random access of items based on an item's position in the collection.

  Create class includes instance variables automatic propertie

Create a class called Employee that includes three pieces of information as either instance variables or automatic properties - a firstname (type string), a last name (type string) and a monthly salary (decimal)

  Write fields to use as control break fields to make report

Write down fields that you want to use as control break fields to make a report which lists all inventory items in grocery store? Create a sample report.

  Windows gui usually excels over command line interface cli

windows gui typically excels over command line interface cli owing to its ease of use and short learning curve. in your

  Create a florida state information system

Create and use a Microsoft Access Database from which the program will retrieve the city information. Include 1 table with 5 fields per row, and 10 rows of data (cities).

  Important ideas for legislators to get from your testimony

Suppose the legislature in your state is debating the adoption of UCITA. What are the three most important ideas you want your legislators to get from your testimony?

  What is a predefined control event

What is a predefined control event? Discuss its usage in programming

  Make a class for a singly linked circular list

Make a class for a singly linked circular list that has no end and no beggining. The only access on the list is a single reference, current, that can point to any link on the list.

  Explain about how device works

Write down what first comes to mind as to what is good and bad about the way the device works. The range of tasks a typical user would want to do using it.

  Make the contents of your script resident in memory

Modify your whoisthere function so that you can enter "These are the folks logged in:" as an argument to appear before your list of who is logged in to the system.

  Describe kinds of pc applications skills

Describe in scholarly detail the kinds of PC applications skills which important for working within a major organization? Also put yourself in the shoes of a manager and share your thoughts.

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