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