• wonderlic tests
  • EXAM REVIEW
  • NCCCO Examination
  • Summary
  • Class notes
  • QUESTIONS & ANSWERS
  • NCLEX EXAM
  • Exam (elaborations)
  • Study guide
  • Latest nclex materials
  • HESI EXAMS
  • EXAMS AND CERTIFICATIONS
  • HESI ENTRANCE EXAM
  • ATI EXAM
  • NR AND NUR Exams
  • Gizmos
  • PORTAGE LEARNING
  • Ihuman Case Study
  • LETRS
  • NURS EXAM
  • NSG Exam
  • Testbanks
  • Vsim
  • Latest WGU
  • AQA PAPERS AND MARK SCHEME
  • DMV
  • WGU EXAM
  • exam bundles
  • Study Material
  • Study Notes
  • Test Prep

CIS 505 Exam 1 Notes Study Guide

Study Material Feb 5, 2025
Preview Mode - Purchase to view full document
Loading...

Loading study material viewer...

Page 0 of 0

Document Text

CIS 505 Exam 1 Notes Study Guide
How do signify a real in SML?
12.0, 3e~2, 3,14e12
How do you signify a character in SML?
#"x", #"A", #\n"
Brainpower
Read More
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
fun myfun x = x + a;
val myfun = fn : int -> int
val a = 4
val a = 4 : int
What is a if myfun is called?
2
What is the difference between
fn:int−>int−>int−>int
fn: (int−>int)−>(int−>int)
The first one takes an argument of type in and returns an int−>int−>int
The second one takes an argument of type (int−>int) and returns an (int−>int)
What is 'a?
A type variable; essentially a place holder where we can fill in any type
Using a list, write a recursive function that adds all the elements together.

CIS 505 Exam,CIS 505 Test,CIS 505 Flashcard,CIS 505 quiz,CIS 505 Practice,CIS 505 Practice test,CIS 505 Practice flashcard,CIS 505 Practice exam,CIS 505 Study guide,CIS 505 Practice questions,CIS 505 Questions,CIS 505 Practice questions and answers,CIS 505 Questions and answers,CIS 505 pdf,CIS 505 quizlet,CIS 505 reddit,CIS 505 Answer sheet,CIS 505 Answer key,CIS 505 Pdf free,CIS 505 Exam help,CIS 505 Cheat sheet,CIS 505 quiz bank,CIS 505 Questions bank,CIS 505 Practice Guide,CIS 505 Guide,CIS 505 Testbank,CIS 505 Practice Answers,CIS 505 Answers,CIS 505 Exam prep,CIS 505 Prep,CIS 505 Pdf download,CIS 505 Flashcards,CIS 505 Real questions,CIS 505 Actual questions,CIS 505 Real Questions and answers,CIS 505 Actual Questions and answers,CIS 505 Exam review,CIS 505 Review,CIS 505 Exam questions,CIS 505 Exam questions and answers,CIS 505 Practice test pdf,CIS 505 Practice test quizlet,CIS 505 Practice test Reddit,CIS 505 Practice test quizlet multiple choice,CIS 505 Exam study guide,CIS 505 Practice test free,CIS 505 Test questions,CIS 505 Exam study guide,CIS 505 Practice exam free,CIS 505 Practice tests free,CIS 505 Exam practice test,CIS 505 Exam test questions,CIS 505 Exam questions and answers,CIS 505 Exam practice test

Download Study Material

Buy This Study Material

$11.00
Buy Now
  • Immediate download after payment
  • Available in the pdf format
  • 100% satisfaction guarantee

Study Material Information

Category: Study Material
Description:

CIS 505 Exam 1 Notes Study Guide

UNLOCK ACCESS $11.00