General Aptitude Problems

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson
Download our mobile app to listen on the go
Get App

Questions and Answers

If '→' denotes increasing order of intensity, and [dry → arid → parched] is analogous to [diet → fast → ______], which option appropriately fills the blank?

  • Deny
  • Starve (correct)
  • Reject
  • Feast

Given two distinct non-zero real variables $x$ and $y$ such that $(x + y)$ is proportional to $(x - y)$, what can be concluded about the value of $\frac{x}{y}$?

  • Depends only on $y$ and not on $x$
  • Is a constant (correct)
  • Depends only on $x$ and not on $y$
  • Depends on $x$ and $y$

Consider the sample of numbers: 9, 18, 11, 14, 15, 17, 10, 69, 11, 13. What is the median of this sample?

  • 11
  • 14
  • 18.7
  • 13.5 (correct)

A person has coins of ₹1, ₹5, and ₹10 denominations in the ratio 5:3:13. What percentage of the total amount is made up of ₹5 coins?

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

For positive non-zero real variables $p$ and $q$, if $\log(p^2 + q^2) = \log p + \log q + 2 \log 3$, then what is the value of $\frac{p^4 + q^4}{p^2q^2}$?

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

Select the option that correctly fills the blanks (i)-(iv) in the following sentence: Steve was advised to keep his head (i)_____ before heading (ii)_____ to bat; for, while he had a head (iii)_____ batting, he could only do so with a cool head (iv)_____ his shoulders.

<p>(i) on (ii) out (iii) on (iv) for (A)</p> Signup and view all the answers

A rectangular paper sheet of dimensions 54 cm × 4 cm is taken. The two longer edges of the sheet are joined together to create a cylindrical tube. A cube whose surface area is equal to the area of the sheet is also taken. What is the ratio of the volume of the cylindrical tube to the volume of the cube?

<p>$\frac{4}{\pi}$ (B)</p> Signup and view all the answers

The pie chart presents the percentage contribution of different macronutrients to a typical 2,000 kcal diet of a person. Given the energy densities of Carbohydrates, Proteins, Unsaturated fat, Saturated fat, and Trans fat as 4, 4, 9, 9 and 9 kcal/g respectively, what is the total fat (all three types), in grams, this person consumes?

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

A rectangular paper of 20 cm × 8 cm is folded 3 times. Each fold is made along the line of symmetry, which is perpendicular to its long edge. What is the perimeter of the final folded sheet (in cm)?

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

In the figure, what is the least number of squares that must be added to make AB a line of symmetry?

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

Let $f: \mathbb{R} \rightarrow \mathbb{R}$ be a function such that $f(x) = \max{x, x^3}$, $x \in \mathbb{R}$, where $\mathbb{R}$ is the set of all real numbers. For what set of all points is $f(x)$ NOT differentiable?

<p>{-1, 0, 1} (C)</p> Signup and view all the answers

What is the product of all eigenvalues of the following matrix? $\begin{bmatrix} 1 & 2 & 3 \ 4 & 5 & 6 \ 7 & 8 & 9 \end{bmatrix}$

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

Consider a system that uses 5 bits for representing signed integers in 2's complement format. In this system, two integers A and B are represented as A=01010 and B=11010. Which one of the following operations will result in either an arithmetic overflow or an arithmetic underflow?

<p>A - B (C)</p> Signup and view all the answers

Consider a permutation sampled uniformly at random from the set of all permutations of {1, 2, 3, …, n} for some n ≥ 4. Let X be the event that 1 occurs before 2 in the permutation and Y the event that 3 occurs before 4. Which one of the following statements is TRUE?

<p>The events X and Y are independent (A)</p> Signup and view all the answers

Which one of the following statements is FALSE?

<p>Programmed I/O mechanism has a better CPU utilization than the interrupt driven I/O mechanism (C)</p> Signup and view all the answers

A user starts browsing a webpage hosted at a remote server. The browser opens a single TCP connection to fetch the entire webpage. Assume all caches are initially empty. What is the CORRECT chronological order of packets leaving the user's computer?

<p>(ii), (iv), (i), (iii) (C)</p> Signup and view all the answers

An algorithm checks if an integer array of size N is sorted (ascending or descending) by making a single pass through the array and comparing each element with its adjacent elements. What is the worst-case time complexity of this algorithm?

<p>both O(N) and Ω(N) (B)</p> Signup and view all the answers

Consider the following C program:

#include <stdio.h>
int main(){
    int a = 6;
    int b = 0;
    while(a < 10) {
        a = a / 12 + 1;
        a += b;
    }
    printf("%d", a);
    return 0;
}

Which one of the following statements is CORRECT?

<p>The program prints 9 as output (C)</p> Signup and view all the answers

Consider the following C program:

#include <stdio.h>
void fX();
int main(){
    fX();
    return 0;
}
void fX(){
    char a;
    if((a=getchar()) != '\n')
        fx();
    if(a != '\n')
        putchar(a);
}

Assume the input to the program from the command line is 1234 followed by a newline character. Which one of the following statements is CORRECT?

<p>The program will terminate with 4321 as output (C)</p> Signup and view all the answers

Let S be the specification: "Instructors teach courses. Students register for courses. Courses are allocated classrooms. Instructors guide students." Which of the following ER diagrams CORRECTLY represents S?

<p>(iii) (D)</p> Signup and view all the answers

In a B+ tree, the requirement of at least half-full (50%) node occupancy is relaxed for which one of the following cases?

<p>Only the root node (A)</p> Signup and view all the answers

Which of the following statements about a relation R in first normal form (1NF) is/are TRUE?

<p>R can have a multi-attribute key (C)</p> Signup and view all the answers

Let $L_1$, $L_2$ be two regular languages and $L_3$ a language which is not regular. Which of the following statements is/are always TRUE?

<p>$L_1 \cup L_2$ is regular (D)</p> Signup and view all the answers

Which of the following statements about threads is/are TRUE?

<p>Threads belonging to a process are by default not protected from each other (A)</p> Signup and view all the answers

Which of the following process state transitions is/are NOT possible?

<p>Ready to Waiting (D)</p> Signup and view all the answers

Which of the following is/are Bottom-Up Parser(s)

<p>Shift-reduce Parser (C)</p> Signup and view all the answers

Let A and B be two events in a probability space with P(A) = 0.3, P(B) = 0.5, and P(A ∩ B) = 0.1. Which of the following statements is/are TRUE?

<p>P(AUB) = 0.7 (A)</p> Signup and view all the answers

Consider the circuit shown below where the gates may have propagation delays. Assume that all signal transitions occur instantaneously and that wires have no delays. Which of the following statements about the circuit is/are CORRECT?

[Circuit Diagram: X --> NOT gate --> AND gate (with X as one input) --> Y]

<p>With no propagation delays, the output Y is always logic Zero (B)</p> Signup and view all the answers

TCP client P successfully establishes a connection to TCP server Q. Let $N_P$ denote the sequence number in the SYN sent from P to Q. Let $N_Q$ denote the acknowledgement number in the SYN ACK from Q to P. Which of the following statements is/are CORRECT?

<p>The sequence number $N_P$ is chosen randomly by P (C)</p> Signup and view all the answers

Consider a 5-stage pipelined processor with Instruction Fetch (IF), Instruction Decode (ID), Execute (EX), Memory Access (MEM), and Register Writeback (WB) stages. Which of the following statements about forwarding is/are CORRECT?

<p>In forwarding, data from the output of the MEM stage can be passed on to the input of the EX stage of the next instruction (B)</p> Signup and view all the answers

Which of the following fields is/are modified in the IP header of a packet going out of a network address translation (NAT) device from an internal network to an external network?

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

Let A and B be non-empty finite sets such that there exist one-to-one and onto functions (i) from A to B and (ii) from A \times A to A \cup B. What are the possible values of |A|?

<p>{1} (B)</p> Signup and view all the answers

Flashcards

Analogy: dry → arid → parched :: diet → fast → ?

If '→' signifies an increasing order of intensity, and if dry relates to arid and parched similarly, then diet, fast, and starve follow the same logic. Starve is used to fill the blank, as diet → fast → starve also goes from less to more intensity.

What is the median?

The median is the middle value when a data set is ordered from least to greatest. To find the median, first sort the numbers. The sorted list is: 9, 10, 11, 11, 13, 14, 15, 17, 18, 69. Since there are 10 numbers (an even amount), the median is the average of the two middle numbers, which are 13 and 14. (13 + 14) / 2 = 13.5

Fill in the blanks: keep head (i) ____ before heading (ii) ____ to bat;bat (iii) ____ w cool head (iv) ____ shoulders

To keep one's head 'down' means to remain calm; to head 'out' means to depart for batting; to bat 'for' implies batting in place of someone, and to bear burdens on one's shoulders indicates responsibility.

Time complexity of one pass array check?

O(N) represents linear time complexity, where the time taken increases linearly with the size of the input. A single pass through array to comparing each element of the array only with its adjacent elements represents a linear time complexity.

Signup and view all the flashcards

What does this code do? while(a < 10) { a = a / 12 + 1; a += b;}

The program will get stuck in an infinite loop because because (a < 10) will always be true. Initially, a = 6.
Inside the while loop, the first statement is a = a / 12 + 1 = 6 / 12 + 1 = 0 + 1 = 1 (integer division). Then a += b is a = a + b = 1 + 0 = 1. so a will never be >= 10 and the program will get stuck in an infinite loop.

Signup and view all the flashcards

What is the output? fx(){char a; if((a=getchar()) != '\n') { fx(); } if(a != '\n') putchar(a);}

This program uses recursion and the stack: The input "1234\n" calls fx() recursively until '\n' and then prints characters in reverse order using putchar(). \nputchar(a) is called only when getchar() != '\n' after the recursive calls complete. So it prints characters from the last non-\n character to the first, resulting in "4321".

Signup and view all the flashcards

1NF Relation

First Normal Form (1NF) is a property of a relation in a relational database. means that each column in a table can only contain one value (atomic). Options B, and C violate this rule; with relations in 1NF being able to possess composite attributes, foreign keys, and multiple candidate keys.

Signup and view all the flashcards

Cycle Stealing in DMA

In DMA's cycle stealing mode, data word is transferred directly between an I/O device and main memory, which allows devices to access memory without const CPU involvement. Therefore, statement A is true.

Signup and view all the flashcards

What is the correct TCP order?

Step 1: The DNS request is the first packet to leave to resolve IP address.\nStep 2: After DNS, a TCP connection must be opended to estabilish socket connection.\nStep 3: TCP connection to request the index.\nStep 4: TCP for images on the webpage.

Signup and view all the flashcards

2's Complement overflow

In 2's complement representation, 01010 represents +10 and 11010 represents -6. Adding them results in 00100, which is +4. To perform subtraction, one takes the 2’s complement of the number to be subtracted, and then adds it to the other number. A - B --> 01010 - 11010. Which results in positive overflow since A = 10 and B = -6, A - B = 10 - (-6) = 16 and largest positive number is 01111 = 15.

Signup and view all the flashcards

Independent events def

Event X: 1 before 2. Event Y: 3 before 4. There is no dependency between X and Y. Occurrence of X is not affected by the occurrence of Y, and vice versa. Thus these events are independent.

Signup and view all the flashcards

Study Notes

General Aptitude (GA)

  • If '→' denotes increasing order of intensity, then the meaning of the words [dry → arid → parched] is analogous to [diet → fast → starve].
  • If 2 distinct non-zero real variables x and y are such that (x + y) is proportional to (x − y), then the value of x/y is a constant.
  • Given the sample of numbers: 9, 18, 11, 14, 15, 17, 10, 69, 11, 13, the median of the sample is 13.5.
  • The number of coins of ₹1, ₹5, and ₹10 denominations that a person has are in the ratio 5:3:13; Of the total amount, the percentage of money in ₹5 coins is 14.5%.
  • For positive non-zero real variables p and q, if log (p² + q²) = log p + log q + 2 log 3, then, the value of (p⁴ + q⁴) / (p²q²) is 79.
  • Steve was advised to keep his head down before heading out to bat; batting, he could only do so with a cool head for, while he had a head on his shoulders.
  • Given a rectangular paper sheet of dimensions 5π cm × 4 cm is taken. The two longer edges of the sheet are joined together to create a cylindrical tube. A cube whose surface area is equal to the area of the sheet is also taken. The ratio of the volume of the cylindrical tube to the volume of the cube is 1/π.
  • Given the pie chart represents the percentage contribution of different macronutrients to a typical 2,000 kcal diet of a person and the typical energy density (kcal/g) of these macronutrients is given in the table, the total fat (all three types), in grams, this person consumes is 44.4.
  • A rectangular paper of 20 cm × 8 cm is folded 3 times; Each fold is made along the line of symmetry, which is perpendicular to its long edge. The perimeter of the final folded sheet (in cm) is 18 .
  • The least number of squares to be added in the figure to make AB a line of symmetry is 6.

Technical

  • Let f: R → R be a function such that f(x) = max{x, x³}, x ∈ R, where R is the set of all real numbers; The set of all points where f(x) is NOT differentiable is {-1, 0, 1}.
  • The product of all eigenvalues of any squared matrix equals to determimant of the matrix, so the answer is 0
  • Consider a system that uses 5 bits for representing signed integers in 2's complement format, where A=01010 and B=11010, 2 * B results in arithmetic overflow
  • Consider a permutation sampled uniformly at random from the set of all permutations of {1, 2, 3, …, n} for some n ≥ 4; Let X be the event that 1 occurs before 2 and Y the event that 3 occurs before 4, the two events are independant
  • In the cycle stealing mode of DMA, one word of data is transferred between an I/O device and main memory in a stolen cycle. The statement is false.
  • First DNS packets resolves the URL, the rest can be answered by local DNS cache
  • for a sorted array of integers the time complexity is O(N)

C Program Questions

  • the C program will get stuck in an inifinite while loop, because "a" will be stuck as 6 < 10
  • For the void function, if input is given as 1234, the output is 4321, because the last character typed "4" becomes first character printed

Data Structures

  • Regarding the ER Diagram, instructors guide students, courses are allocated classrooms and students register for courses.
  • Within a B+ tree, the requirement of at least half-full (50%) node occupancy is relaxed only for the root node.
  • For a relational database in first normal form (1NF), R can have a multi-attribute key.

Languages

  • For the regular language L1 and L2 and non regular Language L3, L₁ U L₃ is not regular
  • Threads in process share memory by default and can't automatically be protected from each other

Process State Transitions

  • The process state transition that's/are NOT possible is Waiting to running
  • Predictive Parser is/are Bottom-Up Parser(s)

Probability

  • Two events A and B, are independent
  • (A ∩ Bº) = 0.2, where Bº is the complement of the event B

Logic Gates

  • The output Y is always logic Zero for no propagation delays between gates

TCP

  • The sequence number Np is chosen randomly by TCP client P

Pipeline

  • For data forwarding, in pipelined execution, data from the output of the MEM stage can be passed on to the input of the EX stage of the next instruction

Network

  • Fields modified in the IP header of a packet going out of a NAT device is a Source IP and Header Checksum.

Data Types

  • Given there exist one-to-one and onto functions (i) from A to B and (ii) from A × A to A U B, the number of possible values of |A| is 1.
  • Expression of operators given 3+1+5*2/7+2-4-7-6/2 is -6

Graph

  • Number of spanning trees in a complete graph is 16

Studying That Suits You

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

Quiz Team

Related Documents

Use Quizgecko on...
Browser
Browser