What is the decimal value of the binary number 10110?
Logic Binary
Question · Easy
For input pairs (A,B) = (1,0) and then (1,1), what are an AND gate's outputs in that order?
In an 8-bit two's-complement system, how is -5 represented?
Question · Medium
For Boolean variables, simplify NOT(A AND B) AND A.
Question · Hard
Which data structure removes items in last-in, first-out order?
Data Structures
Array A occupies consecutive memory locations, each element using 4 bytes. A[0] begins at address 1000. Where does A[3] begin?
In a singly linked list, node P points to node Q. To insert new node N between them without losing Q, which sequence is correct?
In Pascal, after 's := 0; for i := 1 to 4 do s := s + i;', what is s?
Which condition must hold for the usual binary-search algorithm on an array?
Graphical Algorithms
One left-to-right bubble-sort pass compares adjacent entries and swaps them when the left one is larger. Starting with [5, 1, 4, 2], what remains after this pass?
A successful linear search checks entries from the first to the last. Each of the five positions is equally likely to hold the target. What is the expected number of comparisons?
A prefix code assigns A = 0, B = 10 and C = 11. A message has 6 A symbols, 3 B symbols and 1 C symbol. How many bits encode it, excluding any codebook overhead?
Which operating-system responsibility enables several running programs to take turns using a single CPU?
Operating Systems
In a Unix shell, which command reports the current working directory?
A process requests input from a disk and cannot continue until it arrives. Which state best describes it during that wait?
Why can batch processing reduce idle time between successive jobs compared with an operator manually loading every job?
A school has several employees with the same name. Which field is the best primary key if every employee has a unique assigned identifier?
Systems Analysis
Before designing a replacement payroll information system, what should an analyst establish first?
Each pupil belongs to one class, and a class can contain many pupils. Which relationship describes Class to Pupil?
A payroll requirement says that overtime pay is added only after 40 hours. Which test set best checks the boundary, using otherwise identical employee records?
That is everything here.