1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
nikklg [1K]
3 years ago
14

1. If an F# function has type 'a -> 'b when 'a : comparison, which of the following is not a legal type for it? Select one:

Computers and Technology
1 answer:
Stella [2.4K]3 years ago
7 0

Answer:

B. string -> (int -> int)

Explanation:

We are going to perform comparison operations '->'. It is important to notice that the comparison operation gives us a bool value (True or False) and the comparison operation is legal if and only if the data types to be compared are the same.

Example:

int(4)->int(5) False

int(4)->int(4) True

int(4)->string(4) Error, data types don't match

For this reason:

  • A. Is legal because float -> float evaluates to True, True is a boolean value and bool -> bool is legal because both are the same data type.
  • B. Is illegal because int -> int evaluates to True, True is a boolean value and string is not a boolean (string -> bool).
  • C. Is legal because int is the same type than int.
  • D. Is legal because the list is the same type than list regardless it's content.

Note:

The operations inside parentheses are evaluated first.

List is a type by itself regardless of its content.

You might be interested in
Who know's web Design
balu736 [363]

Answer: B

Explanation:

inline is the answer

4 0
3 years ago
Which of these strategies do you practice when tests are returned to you? Check all that apply.
victus00 [196]

Answer:

I apply numbers...

5, 6 and 3

7 0
2 years ago
Read 2 more answers
Describe the history of the Internet and WWW
Sladkaya [172]

Explanation:

 Internet is the worldwide system that is publicly available and it interconnect various computer network in the system for transmission of data. Robert E. Kahn was the founder of internet in 1960s by the creation of Advanced research agency network (ARPANET).

WWW is the world wide web system and it is the combination of various types of resources and the users. The world wide web is the universal network that access data and uses the HTTP( hypertext transfer protocol). It is basically invented by Sir tim berners-Lee in 1989.

6 0
3 years ago
What easy to understand device do artists often use in commentary?
sweet [91]

Answer:

Subject Matter.

Explanation:

If you have ever heard the commentary of anything in your life .You should have observed that the all of the commentators are the experienced people in that field or experts in that field.

They use their knowledge of that field to given us in depth analysis and also explain in language that is easily understandable.

5 0
4 years ago
Assume that isIsosceles is a bool variable, and that the variables isoCount, triangleCount, and polygonCount have all been decla
Leona [35]

Answer:

if (isIsosceles) {

 isoCount++;

 triangleCount++;

 polygonCount++;

}

Explanation:

The above will work in C/C++/Java/JavaScript, but you didn't specify which language you need. Anyway the principle stays the same.

6 0
3 years ago
Other questions:
  • Convert each of the following bit patterns into whole numbers. Assume the values are stored
    14·1 answer
  • Which spreadsheet operation does a look function perform?
    5·1 answer
  • The hardware components of a computer system interact with each other by using which of the following?
    14·2 answers
  • Which of the following types of memory extends the actual physical memory of a computer by copying blocks of data from the memor
    11·1 answer
  • The _______ system coordinates computer resources, provides the user interface, and runs applications.
    10·1 answer
  • Next, Sue decides to embed a chart from Microsoft Word. She copies and pastes data from a table that she has already created in
    8·1 answer
  • Sixteen stations, numbered 1 through 16, are contending for the use of a shared channel by using the adaptive tree walk protocol
    7·1 answer
  • The following questions requires manipulation an analysis of String objects. a. Create a class named String_Manipulation with a
    6·1 answer
  • How to get the lightning round in dares of eternity
    5·1 answer
  • 1. What is the difference between a group and a topic?
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!