CSCI 421 - Quiz 1(All Accurately solved)
The source file must be first processed by a(n) ______________ editor compiler load linker correct answers compiler Syntax of a programming language is part of the language definition. However, the semantics of the programming language is not part of the language definition. true false correct answers false A token in a grammar cannot be broken into smaller pieces true false correct answers true Which of the following operator has lowest precedence in ML? andalso * ~ correct answers andalso The act of associating properties with names is called _________________ assignment binding association declaration correct answers binding Suppose in ML datatype day = M | Tu | W | Th | F | Sa | Su; fun isWeekend x = (x = Sa orelse x = Su); What is the function type? day - bool day - boolean enum - boolean enum - bool correct answers day - bool What is the result of the following ? val barney = {1+2, 3.0*4.0, "brown"}; #2 barney; val it = 12.0 : double val it = "brown" : string
Written for
- Institution
- CMSC 421
- Course
- CMSC 421
Document information
- Uploaded on
- May 23, 2024
- Number of pages
- 10
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
-
the source file must be first processed by an
Also available in package deal