Source packet
1. TOSS-UP Energy Short Answer
How many bits are there in a four-byte long word?
ANSWER: 32
2. TOSS-UP Energy Short Answer
A programming language is named after this woman. What is her name?
ANSWER: ADA LOVELACE (also accept: ADA; AUGUSTA ADA LOVELACE; LOVELACE)
3. TOSS-UP Energy Short Answer
How is the number -5 (base 10) represented in 4-bit two's complement binary arithmetic?
ANSWER: 1011
4. TOSS-UP Energy Short Answer
What is the 2's complement of the 4-bit binary number 1010?
ANSWER: 0110
5. TOSS-UP Energy Short Answer
Express the number 33 (base 8) in base 16.
ANSWER: 1B
6. TOSS-UP Energy Short Answer
What is another name for a base 16 number?
ANSWER: HEXADECIMAL (also accept: HEX)
7. TOSS-UP Energy Short Answer
How much is 1A (Hex) plus 2B (Hex)?
ANSWER: 45 (HEX) (also accept: 45; 69 DECIMAL)
8. TOSS-UP Energy Short Answer
What is the binary result when 0111 binary is subtracted from 1000 binary?
ANSWER: 0001 (also accept: 1)
9. TOSS-UP Energy Short Answer
What is the decimal range of unsigned integers given an 8-bit word?
ANSWER: 0 TO 255
10. TOSS-UP Energy Short Answer
What is the hexidecimal difference of 3A minus 2B?
ANSWER: F (also accept: 0F)
11. TOSS-UP Energy Multiple Choice
Which of the following would be used to find syntax errors in a Pascal program?
W) assembler
X) compiler
Y) error trap
Z) all of the above
ANSWER: X) compiler
12. TOSS-UP Energy Short Answer
What company created the 80X86 family of microprocessors?
ANSWER: INTEL
13. TOSS-UP Energy Multiple Choice
Ada Augusta, also known as the Countess of Lovelace, is generally considered to be the first programmer of a stored-program computer. Who was her famous father?
W) John Smith
X) Lord Byron
Y) John von Neumann
Z) Eli Whitney
ANSWER: X) Lord Byron
14. TOSS-UP Energy Short Answer
How many memory locations can be accessed with a 5-bit address bus?
ANSWER: 32 (also accept: 25)
15. TOSS-UP Energy Short Answer
In one statement, precisely what does the output of the following routine look like? FOR i := 10 DOWNTO 8 DO WRITELN(i * 5);
ANSWER: 50, 45, 40
16. TOSS-UP Energy Short Answer
In Pascal, what is the value of 10 MOD 3?
ANSWER: 1
17. TOSS-UP Energy Short Answer
In Pascal, what is the value of 10 DIV 3?
ANSWER: 3
18. TOSS-UP Energy Short Answer
In Pascal, what is the value of (10 DIV 3) MOD 3?
ANSWER: 0
19. TOSS-UP Energy Short Answer
If A = 1011 (base 2) and B = 1101 (base 2), what is A bitwise or'd with B?
ANSWER: 1111
20. TOSS-UP Energy Multiple Choice
What type of graphics card offers the greatest resolution?
W) VGA
X) EGA
Y) SVGA
Z) CGA
ANSWER: Y) SVGA
21. TOSS-UP Energy Multiple Choice
Which of the following is a last-in, first-out (also called LIFO) data structure:
W) tree
X) stack
Y) queue
Z) list
ANSWER: X) stack
22. TOSS-UP Energy Short Answer
Complete the following analogy: LIFO is to stack as FIFO is to:
ANSWER: QUEUE
23. TOSS-UP Energy Multiple Choice
Which of the following operations is used on a stack:
W) pop
X) enqueue
Y) insert
Z) delete
ANSWER: W) pop
24. TOSS-UP Energy Short Answer
Arrange the following THREE processes in their order of operation: load, compile, link
ANSWER: COMPILE, LINK, LOAD
25. TOSS-UP Energy Short Answer
A typical hard disk is divided into tracks and what?
ANSWER: SECTORS
26. TOSS-UP Energy Short Answer
What are the TWO wild card indicators in DOS?
ANSWER: ASTERISK AND QUESTION MARK (also accept: STAR AND QUESTION MARK; * AND ?)
27. TOSS-UP Energy Short Answer
What happens on a DOS machine when you simultaneously hold down the <Ctrl> <Alt> and <Del> keys?
ANSWER: THE SYSTEM REBOOTS (also accept: REBOOT; RESET; RESTART)
28. TOSS-UP Energy Short Answer
The ls command in Unix is similar to what command in DOS?
ANSWER: DIR
29. TOSS-UP Energy Short Answer
What value does the following Pascal statement assign to x? x := exp (3 * ln(10))
ANSWER: 1000
30. TOSS-UP Energy Short Answer
What is wrong with the following Pascal programming sequence? X := 3; REPEAT X := (X MOD X) + 1; UNTIL X = 0
ANSWER: IT IS AN INFINITE LOOP (also accept: X IS NEVER 0; INFINITE LOOP)
31. TOSS-UP Energy Multiple Choice
Which of the following does NOT belong?
W) star
X) ring
Y) address
Z) bus
ANSWER: Y) address
32. TOSS-UP Energy Short Answer
What batch file, if present in the root directory, is automatically executed by DOS after booting?
ANSWER: AUTOEXEC.BAT
33. TOSS-UP Energy Multiple Choice
The statement: C := A + B; is the correct syntax in all but one of the following languages:
W) Pascal
X) Cobol
Y) Ada
Z) Modula-2
ANSWER: X) Cobol
34. TOSS-UP Energy Multiple Choice
Assignment is performed with the equal sign in all but one of the following languages:
W) Fortran
X) Basic
Y) Pascal
Z) C
ANSWER: Y) Pascal
35. TOSS-UP Energy Short Answer
What is the value of the parity bit produced by an even parity check on an 8-bit word if the number of 1's is 7?
ANSWER: 1
36. TOSS-UP Energy Short Answer
What parity bit should be appended to 1011 to generate even parity?
ANSWER: 1
37. TOSS-UP Energy Short Answer
What is the value of the parity bit produced by an odd parity check if the number of 1's in an 8 bit machine word is 6?
ANSWER: 1
38. TOSS-UP Energy Multiple Choice
An accumulator is a special type of:
W) bit
X) register
Y) byte
Z) page
ANSWER: X) register
39. TOSS-UP Energy Short Answer
What is the radix of a hexadecimal number?
ANSWER: 16
40. TOSS-UP Energy Short Answer
Every Pascal program begins with what reserved word?
ANSWER: PROGRAM
41. TOSS-UP Energy Short Answer
What reserved word in Pascal is used to declare variables?
ANSWER: VAR
42. TOSS-UP Energy Short Answer
Given that A,B are reals and I is an integer and that A = 2.3 and B = 5.1 find the value of I in the following Pascal expression: I := TRUNC(A + B);
ANSWER: 7
43. TOSS-UP Energy Short Answer
In a Pascal program, I is an integer. What is the value of I after the following Pascal statements are executed? I := 1; I := ROUND(2.6) * I; I := I + 1;
ANSWER: 4
44. TOSS-UP Energy Short Answer
The Pascal statement WRITELN (X:7:3) will provide how many places to the right of the decimal point?
ANSWER: 3
45. TOSS-UP Energy Short Answer
In Pascal, what is the value of x given by the statement: x := ord('C')-ord('A')
ANSWER: 2 (also accept: x = 2)
46. TOSS-UP Energy Short Answer
What are the THREE states in tri-state logic?
ANSWER: 0, 1, AND HIGH IMPEDANCE (also accept: 0, 1, AND HI Z)
47. TOSS-UP Energy Short Answer
What does the following Pascal statement yield? 1 + 4 MOD 3 + 2
ANSWER: 4
48. TOSS-UP Energy Short Answer
The following expression is found in a program written in Pascal: y := 6-A*B/C What is the SECOND mathematical operation that will be carried out by the computer?
ANSWER: DIVISION (also accept: DIVISION BY C)
49. TOSS-UP Energy Short Answer
What is the nine's complement of 57.
ANSWER: 42
50. TOSS-UP Energy Short Answer
If one bit can have 2 unique configurations (on or off), and if 2 bits can have 4 unique configurations, how many unique configurations can 4 bits have.
ANSWER: 16
51. TOSS-UP Energy Short Answer
The CAT command in Unix is similar to what command in DOS?
ANSWER: TYPE
52. TOSS-UP Energy Short Answer
The dir command in DOS is similar to what command in Unix?
ANSWER: ls
53. TOSS-UP Energy Short Answer
You are programming in BASIC on your PC. If you want the computer to prompt you ON YOUR DISPLAY SCREEN with the name of the variable you are to assign a value to, what type of statement besides the INPUT statement could you use?
ANSWER: PRINT
54. TOSS-UP Energy Short Answer
You are programming in BASIC on your PC. What statement is generally used to interrupt program execution during debugging to enable you to examine or change the contents of variables in the immediate mode. Program execution is resumed by executing a CONT command.
ANSWER: STOP
55. TOSS-UP Energy Short Answer
You are programming in BASIC on your PC. What statement is used to exchange the values of variables of the same type, or two elements of an array.
ANSWER: SWAP
56. TOSS-UP Energy Short Answer
What standard procedure in Pascal opens a file for reading?
ANSWER: RESET
57. TOSS-UP Energy Short Answer
When programming in Pascal you encounter the following lines of code: V := 5.4; WRITELN(V:4:2); When you run the program, what value will the computer print for V?
ANSWER: 5.40
58. TOSS-UP Energy Short Answer
When programming in BASIC you encounter the following lines of code: X = CINT(-5.6) Print X When you run the program, what value will the computer print for X?
ANSWER: -6
59. TOSS-UP Energy Short Answer
A Pascal program executes the following statements: A := 1; B := 2; If A > 1 then A := 10; If B > 1 then A := 100; A := A + 2 * B What is the final value of A?
ANSWER: 104
60. TOSS-UP Energy Short Answer
A Pascal program executes the following statements: S := 5; E := 7; for c := S to E do writeln(c + (c-5) * 2); What NUMBERS appear on the screen?
ANSWER: 5, 8, 11
61. TOSS-UP Energy Short Answer
What statement is used in both BASIC and FORTRAN languages to resume computations in the main program or calling routine after executing a subroutine?
ANSWER: RETURN
62. TOSS-UP Energy Short Answer
A Pascal program executes the following statements: J := 1; for i := 1 to 3 do J := J * 2 * i; What is the final value of J?
ANSWER: 48
63. TOSS-UP Energy Short Answer
What three colors are used to generate all of the colors on a color monitor?
ANSWER: RED, GREEN, AND BLUE (also accept: RED, BLUE, GREEN; RGB)
64. TOSS-UP Energy Short Answer
The following are a set of lines from a BASIC program. A = -25 B = SGN(A) What is the value of B?
ANSWER: -1
65. TOSS-UP Energy Short Answer
A Pascal program executes the following statements: SUM := 0.0; for i := 1 to N do SUM := SUM + X[i]; If Y is to be the average of the numbers X(I) in your computer code, write Y in terms of the existing program variables.
ANSWER: Y := SUM / N (also accept: SUM / N; SUM/N)
66. TOSS-UP Energy Multiple Choice
Consider the following line of FORTRAN code: WRITE(6,35) The 35 in this statement refers to the:
W) output device number
X) input device number
Y) format statement reference number
Z) multiplcation factor
ANSWER: Y) format statement reference number
67. TOSS-UP Energy Multiple Choice
Consider the following line of FORTRAN code: WRITE(6,2) The 6 in this statement refers to the:
W) output device number
X) input device number
Y) format statement reference number
Z) multiplcation factor
ANSWER: W) output device number
68. TOSS-UP Energy Multiple Choice
Suppose you encounter the following lines in a Pascal computer program: WRITE('AB'); WRITELN('CD'); Will the output be printed on:
W) two separate lines
X) the same line
Y) two separate lines with a blank line between the lines
Z) four separate lines
ANSWER: X) the same line
69. TOSS-UP Energy Short Answer
When programming in BASIC, ASCII code can be used to represent characters numerically. In ASCII the UPPERCASE letter A represents what number?
ANSWER: 65
70. TOSS-UP Energy Short Answer
When reviewing a BASIC program you encounter the following statement: DEF FND(V,A) = V*A Describe what this statement does.
ANSWER: DEFINES A FUNCTION FND OF TWO VARIABLES V AND A (also accept: DEFINES A FUNCTION)
71. TOSS-UP Energy Multiple Choice
In BASIC the OPEN statement is used to:
W) dimension variables
X) access files
Y) define functions
Z) open the line to the printer
ANSWER: X) access files
72. TOSS-UP Energy Multiple Choice
The hexidecimal equivalent of the decimal number 23 is:
W) 18
X) 19
Y) 32
Z) 17
ANSWER: Z) 17
73. TOSS-UP Energy Multiple Choice
Which of the following is NOT a legitimate data structure?
W) List
X) Queue
Y) Register
Z) Graph
ANSWER: Y) Register
74. TOSS-UP Energy Short Answer
Seven is a prime number. Express seven as a three-bit binary number.
ANSWER: 111
75. TOSS-UP Energy Multiple Choice
The person who conceived and designed a "difference engine" but was not able to build it was:
W) Herman Hollerith
X) Charles Babbage
Y) Blaise Pascal
Z) Thomas Edison
ANSWER: X) Charles Babbage
76. TOSS-UP Energy Multiple Choice
Which of the following is NOT a sorting algorithm?
W) Heap
X) Bubble
Y) Binary
Z) Insertion
ANSWER: Y) Binary
77. TOSS-UP Energy Multiple Choice
Which of the following was the first digital computer?
W) Univac
X) Illiac
Y) VAX II/780
Z) Eniac
ANSWER: Z) Eniac
78. TOSS-UP Energy Multiple Choice
Which of the following is NOT a looping construct?
W) Do...While
X) If...Then...Else
Y) For...Do
Z) Repeat...Until
ANSWER: X) If...Then...Else
79. TOSS-UP Energy Short Answer
Pascal is said to be a scoped language. What type of scoping does Pascal exhibit:
ANSWER: LEXICAL SCOPING (also accept: LEXICALLY SCOPED; BLOCK STRUCTURED)
80. TOSS-UP Energy Short Answer
A language which exhibits inheritance is what type of language?
ANSWER: OBJECT-ORIENTED LANGUAGE (also accept: OBJECT-ORIENTED; OBJECT ORIENTED)
81. TOSS-UP Energy Multiple Choice
A standard PASCAL program ends with which of the following:
W) period
X) semicolon
Y) colon
Z) two slashes
ANSWER: W) period
82. TOSS-UP Energy Multiple Choice
Herman Hollerith
W) was the father of the computer
X) developed a coding system for punching cards
Y) invented a mechanical calculator that worked like an odometer
Z) built the first electronic computer
ANSWER: X) developed a coding system for punching cards
83. TOSS-UP Energy Multiple Choice
The code that uses only "1"s and "0"s to represent numbers is the:
W) decimal
X) binary
Y) alphanumeric
Z) floating point
ANSWER: X) binary
84. TOSS-UP Energy Short Answer
How many bytes is 1 kilobyte?
ANSWER: 1,024 BYTES (also accept: 1024)
85. TOSS-UP Energy Multiple Choice
If you needed an Analog to Digital converter that would adequately encode in the range of -5 to +5 volts with a resolution of 500 microvolt, what minimum number of bits resolution would be required:
W) 13 bits
X) 14 bits
Y) 15 bits
Z) 16 bits
ANSWER: Y) 15 bits
86. TOSS-UP Energy Multiple Choice
When programming in C, ++A is symbolic for what operation?
W) A = A + 1
X) A = A + B
Y) A = 1
Z) A = 0
ANSWER: W) A = A + 1
87. TOSS-UP Energy Short Answer
When programming in C, for what values of "A" will if(A) evaluate to false?
ANSWER: A = 0 (also accept: 0; ZERO)
88. TOSS-UP Energy Multiple Choice
What type of memory is used to hold application programs while they are being executed and may be cleared when the computer is turned off?
W) ROM
X) EPROM
Y) RAM
Z) DISK
ANSWER: Y) RAM
89. TOSS-UP Energy Multiple Choice
What command would you type to return to DOS from BASIC?
W) exit
X) quit
Y) end
Z) system
ANSWER: Z) system
90. TOSS-UP Energy Multiple Choice
Which of these is NOT a COBOL division?
W) Data Division
X) Procedure Division
Y) File Division
Z) Environment Division
ANSWER: Y) File Division
91. TOSS-UP Energy Multiple Choice
In which language is this a valid statement: A + B++
W) FORTRAN
X) COBOL
Y) BASIC
Z) C
ANSWER: Z) C
92. TOSS-UP Energy Multiple Choice
Which of the following is NOT an operating system?
W) XENIX
X) SQL
Y) PC DOS
Z) CP/M
ANSWER: X) SQL
93. TOSS-UP Energy Multiple Choice
The process of loading an operating system is called:
W) booting
X) formatting
Y) compiling
Z) debugging
ANSWER: W) booting
94. TOSS-UP Energy Multiple Choice
The process of preparing a floppy diskette for use is called:
W) assembling
X) translating
Y) parsing
Z) formatting
ANSWER: Z) formatting
95. TOSS-UP Energy Multiple Choice
A program that converts a high-level language source file into a machine-language file is called a:
W) translator
X) assembler
Y) compiler
Z) linker
ANSWER: Y) compiler
96. TOSS-UP Energy Multiple Choice
The binary number 1011 is expressed in hexadecimal notation as:
W) 11
X) 13
Y) A
Z) B
ANSWER: Z) B
97. TOSS-UP Energy Multiple Choice
When using COBOL, a serial search of a table begins with the first entry in the table, while a binary search of a table begins with what entry?
W) first
X) middle
Y) last
Z) none of the above
ANSWER: X) middle
98. TOSS-UP Energy Multiple Choice
When using COBOL, the instruction used to transfer control from the main module to some other part of the program is what instruction?
W) transfer
X) perform
Y) execute
Z) exchange
ANSWER: X) perform
99. TOSS-UP Energy Multiple Choice
What is the most common method used to erase EPROM chips before re-programming them?
W) magnetic field
X) ultraviolet light
Y) program all null values in memory
Z) high-pitched sound
ANSWER: X) ultraviolet light
100. TOSS-UP Energy Multiple Choice
In what section of a COBOL program is the SELECT statement found?
W) report section
X) file section
Y) working-storage section
Z) input-output section
ANSWER: Z) input-output section
101. TOSS-UP Energy Multiple Choice
When programming in Pascal, you use which of the following to define a block of code?
W) start and stop
X) begin and finish
Y) begin and end
Z) initiate and end
ANSWER: Y) begin and end
102. TOSS-UP Energy Multiple Choice
Which of the following is NOT a recursive language?
W) Pascal
X) COBOL
Y) C
Z) C++
ANSWER: X) COBOL
103. TOSS-UP Energy Multiple Choice
Rules that govern how computers communicate are called:
W) system standards
X) topology
Y) protocols
Z) baud rate
ANSWER: Y) protocols
104. TOSS-UP Energy Multiple Choice
Using Pascal, a repeat/until loop is executed. What is the minimum number of times the loop will be executed?
W) at least twice
X) can be zero times
Y) always executed at least once
Z) always twice
ANSWER: Y) always executed at least once
105. TOSS-UP Energy Multiple Choice
When programming in COBOL, which of its four divisions is used to describe the specific computer that will be used by the program?
W) identification division
X) environment division
Y) data division
Z) procedure division
ANSWER: X) environment division
106. TOSS-UP Energy Multiple Choice
Which database modeling technique is well known for its use of high level data manipulation languages, such as SQL, QUEL and QBE?
W) relational model
X) network model
Y) herarchical model
Z) entity-relationship model
ANSWER: W) relational model
107. TOSS-UP Energy Multiple Choice
Programs written in the C programming language consist of one or more functions. Which function is always the first to be executed?
W) open
X) exit
Y) menu
Z) main
ANSWER: Z) main
108. TOSS-UP Energy Multiple Choice
Where does Area A start in COBOL?
W) Column 12
X) Column 8
Y) Column 7
Z) Column 6
ANSWER: X) Column 8
109. TOSS-UP Energy Multiple Choice
Where does Area B start in COBOL?
W) Column 12
X) Column 11
Y) Column 10
Z) Column 8
ANSWER: W) Column 12
110. TOSS-UP Energy Multiple Choice
In COBOL, what is the data level 01 used for?
W) records
X) files
Y) fields
Z) condition names
ANSWER: W) records
111. TOSS-UP Energy Short Answer
EXE, COM and BAT files are all executable under MS-DOS. In which order will DOS look for these files?
ANSWER: COM, EXE, BAT (also accept: COM FIRST, EXE SECOND, BAT LAST)
112. TOSS-UP Energy Multiple Choice
One K of COMPUTER MEMORY is equivalent to:
W) 1,000 bytes
X) 2 to the eighth power bytes
Y) 2 to the tenth power bytes
Z) 640 thousand bytes
ANSWER: Y) 2 to the tenth power bytes
113. TOSS-UP Energy Multiple Choice
What DOS command gives you the total disk space, amount of available disk space, and the amount of free memory?
W) MEM
X) CHKDSK
Y) SPACE
Z) MEMORY
ANSWER: X) CHKDSK
114. TOSS-UP Energy Multiple Choice
A logical variable contains what type of data?
W) numeric
X) true/false
Y) alphanumeric
Z) memory address
ANSWER: X) true/false