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