Quiz
cs396
This quiz has question types that open in the usual player.
Questions in this quiz (20)
1We can describe a programming language syntax using __.
- Aaxiomatic language
- BBNF
- Cpredicate logic
- Dattribute syntax
2Heap-dynamic variables are also known as __.
- Alocal variables
- Bglobal variables
- Cstatic variables
- Dnameless variables
3Transient data in a program don't include __.
- AThe return address
- BThe result address
- CThe symbol table
- DThe dynamic variables
4Which of the following situations will create a "dangling pointer"?
- Asetting an arbitrary pointer variable to "null"
- Bsetting the CDR part of a CONS cell somewhere in the middle of a list to "null"
- Cfreeing a block to which there still exists a live pointer
- Dfreeing a block which still contains pointers to other existing blocks
5Which of the following is a Prolog atom?
- A23
- BAtom
- Catom
- D"Atom"
6In Java, a string length is __.
- Astatic
- Blimited dynamic
- Cunlimited dynamic
- Dwrapper-based
7In C, a string length is __.
- Astatic
- Blimited dynamic
- Cunlimited dynamic
- Dwrapper-based
8A pointer is a reference that is implicitly dereferenced.
- ATrue
- BFalse
9In OOLs, dynamic binding supports __.
- Aabstraction
- Bencapsulation
- Cpolymorphism
- Dinheritance
10Dynamic scoping is used in __.
- APerl
- BPascal
- CPureBasic
- DPowerShell
11The components of an attribute grammar don't include __.
- Asentential forms
- Bpredicate functions
- Csemantic functions
- Dattributes
12Some statically-typed programming languages use inference to automatically detect a variable data type.
- ATrue
- BFalse
13In Pascal, variables must be declared at the beginning of a code block.
- ATrue
- BFalse
14In Java, named constants are __.
- Adynamically bound to value
- Bdynamically bound to type
- Cstatically bound to value
- Dstatically bound to memory location
15Which of the following languages use dynamic type binding?
- AC
- BScheme
- CC++
- DPython
- EJava
- FBasic
- GC#
- HJavaScript
16Which of the following is not an attribute of a variable?
- Aaddress
- Btype
- Cscope
- Dlifetime
- Evalue
- Falias
- Gname
17What kind of variable is aka a local variable?
- Astatic
- Bstack-dynamic
- Cexplicit heap-dynamic
- Dimplicit heap-dynamic
18Which of the following are advantages of a statically-scoped language, like C, Java, or JavaScript?
- Aeasier to read
- Bfaster to execute
- Ceasier to implement
19A [blank_start]union[blank_end] can have multiple fields, but all will share the same value.
- Aunion
- Brecord
20A [blank_start]record[blank_end] can have multiple fields, each with its own value.
- Arecord
- Bunion
Information
- Description
- Quiz on cs396, created by Johnny Catsup on 07/12/2018.
- Author
- Johnny Catsup
- Language
- English
- Views
- 0
- History
- Created on 7 Dec 2018 · updated on 10 Dec 2018
- Rating
- No ratings yet Rate this quiz