General Study Notes Quiz
19 Questions
0 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

Which of the following is the correct decimal fraction equal to hexadecimal fraction 0.248?

  • 31/32
  • 73/512 (correct)
  • 31/512
  • 31/125

Which of the following is the correct value of the quadruple of hexadecimal fraction 0.FEDC?

  • F.EDC0
  • 1.FDB8
  • 2.FB78
  • 3.FB70 (correct)

In a floating-point number format, which of the following is the correct operation for adjusting the radix point and the exponent so that the most significant digit of the mantissa can be a non-zero value? Here, an absolute value is used for the mantissa.

  • Round down
  • Carry
  • Round up
  • Normalize (correct)

The decimal value “-72” is stored in an 8-bit register using 2's complement. If the data in the register is logically shifted two bits to the right, which of the following is the correct result that is represented in decimal?

<p>46 (A)</p> Signup and view all the answers

By definition of the IEEE754 standard, 32-bit floating point numbers are represented as follows: S (1 bit) E (8 bits) M (23 bits) S: Sign bit E: Exponent M: Mantissa Which of the following is the correct “mask bits” in hexadecimal to be used for extracting only the exponent part of the above format? Here, “mask bits” means a bit pattern which is logically ANDed with the 32-bit floating point value.

<p>7F800000 (C)</p> Signup and view all the answers

In the Venn Diagrams labeled 1 to 3, which of the following is the result of Boolean “OR” operations for all three to be combined? Here, “•” is used for “logical AND,” “+” for “logical OR,” and “ A” for the “logical NOT” of A. Each set corresponding to x, y, or z is depicted by a circle

<p>xyz + x + y (A), xyz + x + y (B)</p> Signup and view all the answers

When you flip a coin four times, what is the probability that it will come up heads exactly twice?

<p>0.375 (C)</p> Signup and view all the answers

There are two important operations on a stack: PUSH and POP. PUSH adds the new data to the top of the stack leaving previous data below, and POP removes and returns the current top data of the stack. When the operations shown below are sequentially executed, which of the following is the correct combination of the values x and y? Here, the size of the stack is big enough to hold the entire data. “PUSH(a)” inserts the data a into the stack, and “POP(b)” removes the data b from the stack.

<p>x = 1, y = 7 (C)</p> Signup and view all the answers

Reverse Polish Notation (RPN) is used to represent arithmetic expressions without using brackets to define priorities for evaluation of operators. For example, 3x(a+b) becomes 3ab+x in RPN. Which of the following is the best data structure that should be used for implementation of RPN in a computer?

<p>Stack (A)</p> Signup and view all the answers

Which of the following is an appropriate description concerning the list and/or array structures?

<p>Using a subscript for each element in an array, quick access to any element can be achieved. The array structure allows any data to be inserted or deleted simply by modifying pointers. (A)</p> Signup and view all the answers

The table below shows a state transition table that checks the input character string. This check starts from the initial state A, and it fails if the state changes to E during the input of the character string. Which of the character strings in the answer group fails this check? Here, the symbol A in the answer group represents a space.

<p>12.2 (C)</p> Signup and view all the answers

There are two jugs; one is a 4-liter (4L) jug and the other is a 3-liter (3L) jug. Which of the following is the correct sequence to obtain exactly 2 liters of water in the 4L jug under the conditions shown below? Here, (x, y) indicates that the 4L jug contains x liters of water and the 3L jug has y liters of water.

<p>(0,0)→(0,3)→(3,0)→(3,3)→(4,2)→(0,2) → (2,0) (B)</p> Signup and view all the answers

Which of the following is the correct result produced by executing the program shown below? Here, the parameter “x” is called by value, and the parameter “y” is called by reference.

<p>a = 7, b = 3 (D)</p> Signup and view all the answers

The “prime number division remainder” method is a well-known hashing algorithm. In this method, a key value is divided by a number N, and the remainder which is also called a hash value is used directly as an index into the hash table. N is the largest prime number less than or equal to the size of the available addressable spaces. When the 20 addressable spaces are available, which of the following is the correct hash value calculated from the key value 136? Here, a prime number is one that cannot be divided evenly by any other number except one (1). 2, 3, 5, 7, 11, and 13 are the first few prime numbers.

<p>3 (B)</p> Signup and view all the answers

In a certain computer, a bubble sort of an array of 200 data elements takes the same time as a quick sort of the array. In case of an array of 40,000 data elements, how many times faster is a quick sort than a bubble sort? Here, a bubble sort and a quick sort take time proportional to n² and n×log2n respectively, and “n” is the number of data elements.

<p>100 (A)</p> Signup and view all the answers

Integers are stored in the 1st to N-th elements of an array A (N>1). The flowchart below shows the process to check which element of the array contains the same value as X. Which of the following correctly describes the execution result of this process?

<p>If the same value as X is not in the array, k is set to 1. (D)</p> Signup and view all the answers

Which of the following is a re-writable, erasable memory, using electrical signals, which is widely used for various devices such as digital cameras and digital music players and can maintain the data even after the power is turned off?

<p>Flash memory (A)</p> Signup and view all the answers

The figure shows an RS flip-flop using two NOR gates. Which of the following is the correct truth table for the flip-flop? Here, “unchanged” shown in the table means the outputs maintain a previous state, and “unstable” means the outputs are in an unstable state.

<p>Inputs S R Q Q 0 0 unstable 0 0 1 1 0 1 0 0 1 1 1 unchanged 1 (A)</p> Signup and view all the answers

Which of the following is the correct combination of various addressing modes? Here, X1 is an address which is stored in a program counter. X2 is an address part of an instruction which is addressed by X1. X3 is an address in which an operand needed to execute an instruction is stored. X4 is a value in an index register. (X2) means the contents of location X2.

<p>Addressing mode Direct Indirect PC (Program Counter)-relative Indexed X3 = (X2) X3 = X2 X3 = X1+X2 X3 = X2+X4 (C)</p> Signup and view all the answers

Flashcards

Decimal to Hexadecimal Conversion

Converting a decimal fraction to its hexadecimal equivalent involves breaking down the decimal into powers of 16 and representing each power as a hexadecimal digit.

Hexadecimal Fraction

A hexadecimal fraction can be represented as a sum of powers of 16, where the exponents are negative integers.

Octal Representation of Decimal Fractions

A decimal fraction results in a finite octal fraction if the denominator of the decimal fraction, when expressed in its simplest form, only has prime factors of 2.

Two's Complement Representation

Two's complement is a way to represent signed binary numbers, where the most significant bit (MSB) indicates the sign (0 for positive, 1 for negative). Negative numbers are represented as the complement of their positive counterparts plus 1.

Signup and view all the flashcards

Left Shift in Binary

Left shifting a binary number by 'n' bits multiplies the original number by 2n.

Signup and view all the flashcards

Complement Representation in Computers

Complement representation is used in computers to simplify arithmetic circuits. Subtraction can be directly processed as addition by using the two's complement of the subtrahend.

Signup and view all the flashcards

Newton's Method

Newton's method is an algorithm used to find the approximate solution to an equation f(x) = 0. It iteratively refines an initial guess by using the tangent line of the function at the current point.

Signup and view all the flashcards

Modulo Operation

The modulo operation (x mod y) returns the remainder when x is divided by y.

Signup and view all the flashcards

Probability of Winning

The probability of winning a game is calculated based on the number of favorable outcomes divided by the total number of possible outcomes.

Signup and view all the flashcards

Set Intersection

The intersection of two sets contains elements that are common to both sets.

Signup and view all the flashcards

Logical Expression Equivalence

Two logical expressions are equivalent if they produce the same truth value for all possible input combinations.

Signup and view all the flashcards

Even Parity Bit

An even parity bit is added to a character code to ensure that the total number of '1' bits, including the parity bit, is even.

Signup and view all the flashcards

LIFO Data Structure

Last-In, First-Out (LIFO) data structures follow the principle that the last element added is the first one to be removed. Stacks are an example of LIFO data structures.

Signup and view all the flashcards

Fixed-point Number Representation

Fixed-point number representation uses a fixed position for the radix point (binary point). Negative numbers can be represented using two's complement.

Signup and view all the flashcards

Loop Condition

A loop condition dictates the criteria that must be met for a loop to continue executing. It is usually a logical expression that checks the value of a variable or a combination of variables.

Signup and view all the flashcards

Logical Expression

A logical expression combines Boolean variables using logical operators such as 'AND', 'OR', and 'NOT'.

Signup and view all the flashcards

ISBN Check Digit

The check digit in an International Standard Book Number (ISBN) is calculated using a modulo 11 operation to ensure the validity of the number.

Signup and view all the flashcards

Mealy Machine

A Mealy machine is a finite state machine where the output depends on both the current state and the input.

Signup and view all the flashcards

Postfix Notation

Postfix notation (reverse Polish notation) represents mathematical expressions without using parentheses.

Signup and view all the flashcards

Permutation of Distinct Objects

The number of permutations of n distinct objects is n! (n factorial).

Signup and view all the flashcards

Probability of a Single Event

The probability of a single event is calculated as the number of favorable outcomes divided by the total number of possible outcomes.

Signup and view all the flashcards

Hash Function

A hash function maps a key value to a unique hash value, which is used to store and retrieve data in a hash table.

Signup and view all the flashcards

Page Table

A page table is used in memory management to map logical addresses to physical addresses. Each entry in the page table represents a page and its corresponding physical address.

Signup and view all the flashcards

Heap Data Structure

A heap is a binary tree-based data structure where each node's value is greater than or equal to its children's values (max heap) or less than or equal to its children's values (min heap).

Signup and view all the flashcards

Singly Linked List

A singly linked list is a linear data structure where each element (node) points to its successor. It is a dynamic data structure as the elements can be added or removed at runtime.

Signup and view all the flashcards

Array Data Structure

An array is a data structure that stores a fixed collection of elements of the same data type in a contiguous block of memory. Each element can be accessed directly using its index.

Signup and view all the flashcards

Study Notes

No specific text or questions provided. Please provide the text or questions for me to generate study notes.

Studying That Suits You

Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

Quiz Team

Related Documents

MCQ Part 1 PDF

Description

This quiz is designed to help you review and reinforce your understanding of various study materials. It covers a broad range of topics and can assist in identifying areas that may need further focus. Prepare to test your knowledge and improve your study techniques!

More Like This

21st Century Skills Summ Review
49 questions
Study Review Techniques Quiz
5 questions

Study Review Techniques Quiz

UserFriendlyDecagon avatar
UserFriendlyDecagon
General Quiz on Study Techniques
60 questions
Use Quizgecko on...
Browser
Browser