A) It retains its final value. B) It is left undefined. C) It is reset to zero. D) It is automatically deleted.
A) Pascal B) Neither language C) Both languages D) C
A) By guarding case-statements with an expression. B) By using the goto statement. C) By using a void function. D) By using break statements.
A) Jump and return B) Default and case C) Exit and goto D) Break and continue
A) Variadic functions B) Pointers C) Setjmp and longjmp D) Nested procedures/functions
A) Using setjmp and longjmp B) Using static declarations C) Using break and continue D) Using nested functions
A) It does not support recursion. B) It is slower than Pascal. C) It uses global variables. D) It stores stack frames and jump addresses in a programmer accessible structure.
A) Procedures B) Subroutines C) Void functions D) Functions
A) Procedures B) Functions C) Void functions D) Methods
A) Empty B) Nil C) Null D) Void
A) Function pointers B) Variadic functions C) Void functions D) Functions that return a value
A) As standalone statements B) Inside loops only C) In an expression D) As global variables
A) Yes B) Only in main() C) Only if declared static D) No
A) Pass-by-stack and pass-by-register B) Pass-by-value and pass-by-reference C) Pass-by-reference and pass-by-address D) Pass-by-pointer and pass-by-value
A) Using the address operator B) Using the VAR keyword C) By value D) By reference
A) Using references B) Using pointers C) Using void D) Using arrays
A) Left-to-right order B) Random order C) Right-to-left order D) Bottom-up order
A) Reversed order B) Right-to-left order C) Left-to-right order D) Center-out order
A) The callee B) The caller C) The main function D) The operating system
A) It uses right-to-left parameter passing B) Code is slightly smaller and recursion works faster C) It prevents stack overflows entirely D) It supports a variable number of parameters
A) Variadic functions B) Void functions C) Dynamic functions D) Recursive functions
A) va_list, va_start, and va_arg B) pass-by-reference and VAR C) varargs and pointers D) setjmp and longjmp
A) By using setjmp B) By declaring them static within a compiling module C) By using inner procedures D) By using global variables
A) Through a function pointer B) Through nested procedures C) Through pass-by-reference D) Through variadic lists
A) Case insensitive B) Converts everything to uppercase C) Ignores cases completely D) Case sensitive
A) Strictly uppercase only B) Not case sensitive C) Case sensitive D) Strictly lowercase only
A) Only if they are keywords B) Yes C) No D) Only if declared globally
A) Must be an underscore B) Must be a vowel C) Must be an uppercase letter D) May not be a digit
A) Neither B) Both C) C D) Pascal
A) To differentiate special system identifiers B) To speed up compilation C) To declare global constants D) To create private functions
A) System identifiers B) Subroutines C) Keywords D) Built-in types
A) typedef B) procedure C) if D) var
A) begin B) function C) array D) while
A) record B) enum C) string D) const
A) System functions B) Predefined normal identifiers C) User-defined macros D) Keywords or combinations of keywords
A) Special symbols B) Keywords C) Reserved punctuation D) Predefined normal identifiers
A) A punctuation mark B) A procedure C) A predefined identifier D) A combination of keywords
A) procedure B) typedef C) function D) void
A) typedef B) enum C) type D) struct
A) type B) class C) typedef D) def
A) Global definitions B) Local declarations C) C punctuation D) Typedef statements
A) 1982 B) 1969 C) 1972 D) 1970
A) 1989 B) 1969 C) 1970 D) 1972
A) 1970 B) 1972 C) 1969 D) 1982
A) BCPL B) ALGOL C) Assembly D) Fortran
A) ALGOL W B) ALGOL 68 C) CPL D) BCPL
A) Niklaus Wirth B) Bjarne Stroustrup C) Dennis Ritchie D) Ken Thompson
A) John Backus B) Alan Turing C) Niklaus Wirth D) Dennis Ritchie
A) 1972 B) 1989 C) 1970 D) 1982
A) 1982 B) 1970 C) 1969 D) 1989
A) && B) % C) || D) ;
A) # B) && C) || D) %
A) / B) && C) % D) ||
A) A comment B) A block statement C) An extra keyword D) A superfluous semicolon
A) byte, word, dword, etc. B) long, short, signed, unsigned, etc. C) pointer, reference, explicit, etc. D) ord, chr, subrange, etc.
A) At least two bytes. B) Four bytes. C) A single byte. D) Sixteen bits.
A) Eight bytes. B) Exactly one byte. C) At least two bytes. D) At least four bytes.
A) 33 B) 65 C) 1 D) 49
A) The number 9 B) A carriage return C) A space character D) A TAB character
A) succ B) trunc C) ord D) round
A) C89 B) C23 C) C99 D) C11
A) <pascal.h> B) <stdbool.h> C) <bool.h> D) <types.h>
A) Sets B) Bitwise operators C) Packed arrays D) Ord functions
A) Pointers B) Bitwise operators C) Arrays D) Sets
A) trunc() B) round() C) ord() D) succ()
A) round() B) trunc() C) ord() D) pred()
A) succ(a + 1); B) a++; C) a := succ(a); D) a = a + 1;
A) Dynamic length allocation B) Range checking C) Pointer arithmetic D) Automatic size adjustment
A) Link-time B) Compile-time C) Runtime D) Execution-time
A) length B) extent C) sizeof D) count
A) Structures B) Classes C) Unions D) Variants
A) Subrange construct B) Pointer construct C) Union construct D) Array construct
A) Unions B) Bitfields C) Structures D) Variant records
A) & B) @ C) ^ D) #
A) == B) = C) := D) <-
A) == B) is C) = D) :=
A) Always evaluates to true B) Always evaluates to false C) Implicit conversion D) Compilation error
A) Pascal B) FORTRAN C) ALGOL D) B
A) Pascal B) Ada C) B D) ALGOL
A) False B) True C) 10 D) Error
A) Like a Mulop B) Like an Addop C) Like an exclusive OR D) Like a conditional statement
A) Fifteen sets B) One set C) Two sets D) Three sets
A) The exact same approach B) A simpler approach C) An approach with only one level of precedence D) A diametrically opposite approach
A) 1 level B) 15 levels C) 2 levels D) 10 levels
A) Separately B) As math expressions C) Identically to Pascal D) As a single set of rules
A) A preprocessor B) Pointer arithmetic C) Constant declarations D) Type checking
A) An ANSI standard linker B) A built-in macro linker C) The same generic linker used for assembly language D) A Pascal-specific linker
A) Via library calls B) Via variant records C) Via built-in language statements D) Via schema types
A) A format string B) A language processor C) A system header D) An undiscriminated variant record
A) The text does not specify B) Some 10 years C) Some 50 years D) Some 30 years
A) Variable-length arrays B) System header files C) Format string interpretation D) Undiscriminated variant records |