Shared Flashcard Set

Details

380
things to know
14
Computer Science
Undergraduate 4
09/04/2013

Additional Computer Science Flashcards

 


 

Cards

Term
syntax
Definition
grammar rules defining program fragment
Term
semantics
Definition
the meaning of various programming fragments
Term
pragmatics
Definition
how to effectively use language features, libraries, IDEs
Term
examples of values
Definition
system.in, 4, “hi”
Term
examples of types
Definition
int, float, double, String, a set of values
Term
examples of expressions
Definition
(a piece of syntax which evaluates to some particular value) 2-4*5, sqrt(16)
Term
2^10
Definition
1024 -1k
Term
2^20
Definition
1048576 -1m
Term
2^30
Definition
1073741824 -1g
Term
statically-typed
Definition
at compile time, the types of all declared names are known.
-can be provided by programmer and checked by type system or inferred by the
language (c# allows simplevar = 5; and infers x € int) [better: catch err quicker]
Term
dynamically-typed
Definition
language knows the type of every value . but a variable might hold values of different types over its lifetime, php, racket, javascript. Each value may include extra bits, indicating its type [better: write faster]
Term
duck-typing
Definition
care about an object having a field/method, not inheritance ex: javascript
Term
type-safe
Definition
any type error is caught [dynamically or statically]
Term
soundness
Definition
the type system allows a program to run, then it doesnt contain any type errors
Supporting users have an ad free experience!