Garantie de satisfaction à 100% Disponible immédiatement après paiement En ligne et en PDF Tu n'es attaché à rien 4,6 TrustPilot
logo-home
Examen

CIS 505 Exam 1 Notes Study Guide |Complete Questions with 100% Correct Answers

Note
-
Vendu
-
Pages
5
Grade
A+
Publié le
17-04-2024
Écrit en
2023/2024

CIS 505 Exam 1 Notes Study Guide |Complete Questions with 100% Correct Answers How do signify a real in SML? 12.0, 3e~2, 3,14e12 How do you signify a character in SML? #"x", #"A", #n" How do you concatenate two strings in SML? Using the ^ operator i.e. "abra" ^ "cadabra" = "abracadabra" What operators can you not use on reals? =, Can and be used on strings? Yes, and it means lexicographically precedes. It returns a bool i.e. "a" "b", "abc" "acb" What are the 3 boolean operators? not, andalso, orelse SML has what two types of typing? Static and Strong How to cast as a real in SML? real(11) = 11.0 How to round down, round up, round generally, and truncate? floor(5.4) = 5 ceiling(5.4) = 6 round(5.5) = 6 trunc(~5.4) = ~5 How to go from character to int? Vice-versa? ord(#"0") = 48 chr(48) = #"0" What is a tuple? A fixed-size ordered collection of two or more values. Always same length, sometimes different types Ex: (1, "a", true) (4, (1,"a",true)) What is a list? A list is a list of all the same type. Always same type, sometimes different length What are the return types of these list operations? Empty List [] Head hd Tail tl Append @ cons :: 'a list 'a list→'a 'a list→'a list 'a list*'a list→'a list 'a*'a list→'a list What do explode and implode to? Explode takes a string and converts it into a list of characters Implode takes a list of characters and makes it a string Fill in the blanks: SML is a(n) __________________-based (________________) language with ___________, ____________ typing SML is an expression-based(functional) language with strong, static typing. Write a basic function that takes in a number and adds one fun inc(x) = x+1; What does tl return? All the elements of the list except the first one Write a function that uses the a function and a number as its parameters. It is supposed to add the number and one to the function fun do_fun(f,x) = f(x) + x + 1; val a = 2; val a = 2 : int

Montrer plus Lire moins
Établissement
CIS 505
Cours
CIS 505









Oups ! Impossible de charger votre document. Réessayez ou contactez le support.

École, étude et sujet

Établissement
CIS 505
Cours
CIS 505

Infos sur le Document

Publié le
17 avril 2024
Nombre de pages
5
Écrit en
2023/2024
Type
Examen
Contient
Questions et réponses

Sujets

$11.50
Accéder à l'intégralité du document:

Garantie de satisfaction à 100%
Disponible immédiatement après paiement
En ligne et en PDF
Tu n'es attaché à rien

Faites connaissance avec le vendeur

Seller avatar
Les scores de réputation sont basés sur le nombre de documents qu'un vendeur a vendus contre paiement ainsi que sur les avis qu'il a reçu pour ces documents. Il y a trois niveaux: Bronze, Argent et Or. Plus la réputation est bonne, plus vous pouvez faire confiance sur la qualité du travail des vendeurs.
Topscorer1 South University
Voir profil
S'abonner Vous devez être connecté afin de suivre les étudiants ou les cours
Vendu
249
Membre depuis
4 année
Nombre de followers
207
Documents
7257
Dernière vente
2 semaines de cela
TOPSCORER1

Expert Study Solutions | Nursing, Business, Accounting & More! Looking for top-quality study materials to excel in college or university? You're in the right place! I provide highly graded, almost A+ solutions across various subjects, including Nursing (my main expertise), Business, Accounting, Statistics, Chemistry, Biology, and many more. ✅ Accurate & Well-Researched Guides ✅ Comprehensive Solutions for Better Grades ✅ Student-Friendly Approach & Full Support ✅ Satisfaction Guaranteed – Refund Available if Not Satisfied I’m committed to helping students succeed by providing reliable, high-quality academic resources. Let’s boost your grades together!

Lire la suite Lire moins
3.8

40 revues

5
22
4
5
3
4
2
0
1
9

Documents populaires

Récemment consulté par vous

Pourquoi les étudiants choisissent Stuvia

Créé par d'autres étudiants, vérifié par les avis

Une qualité sur laquelle compter : rédigé par des étudiants qui ont réussi et évalué par d'autres qui ont utilisé ce document.

Le document ne convient pas ? Choisis un autre document

Aucun souci ! Tu peux sélectionner directement un autre document qui correspond mieux à ce que tu cherches.

Paye comme tu veux, apprends aussitôt

Aucun abonnement, aucun engagement. Paye selon tes habitudes par carte de crédit et télécharge ton document PDF instantanément.

Student with book image

“Acheté, téléchargé et réussi. C'est aussi simple que ça.”

Alisha Student

Foire aux questions