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
The point at coordinates (2, -18) is in what direction from the origin?
Arada [10]
I wish i could give an answer but see in dont think straight
3 0
3 years ago
You need to find out more about the fdisk utility and the commands associated with it before you set up a new linux system in ad
lutik1710 [3]

The man utility is a console based program that displays manual pages of other utilities, so for fdisk, you would use man -k fdisk to search for fdisk related manuals

7 0
4 years ago
Identify the components of documents merging
Lena [83]
There are 3 components of documents merging :

- input 1  , which contain the data source

- Input 2, which contain the main document

and

- Output 3, which contained the merged the documents
8 0
3 years ago
If one of the data values being entered into a table by the INSERT command violates an existing constraint, the remaining portio
Fittoniya [83]

Answer:

False

Explanation:

If one of the data values being entered into a table by the INSERT command violates an existing constraint, the database raises an error and none of the records aimed in the insert command is added.

Thus, in insert command syntax and column specifications has to be met in order to add any values being entered.

8 0
3 years ago
The __________ process is designed to find and document vulnerabilities that may be present because there are misconfigured syst
Roman55 [17]

answer.

I don't know what it is

8 0
2 years ago
Other questions:
  • Can someone explain a cylinder
    7·1 answer
  • What are the main types of computer software?
    5·2 answers
  • What does the shell of a operating system do?
    11·1 answer
  • 7. Which innovation in video games do you think has been most significant? Include at least one way that innovation affects the
    6·1 answer
  • ARP only permits address resolution to occur on a single network.could ARP send a request to a remote server in an IP datagram?w
    9·1 answer
  • Explain default dictionary in microsoft word​
    9·1 answer
  • If cost of 1 kg sugar is 36 find price of 3 kg sugar​
    8·1 answer
  • how is a two-dimensional array different from a traditional one dimensional array? From an ArrayList?
    6·1 answer
  • Kyle has a notebook for each of his 5 classes. He puts 6 stickers on each notebook. There are 10 stickers on each sheet. How man
    11·2 answers
  • Digital Print Project
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!