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