Question
Two positive integers have HCF 14 and LCM 840. If one of the numbers is 210, then how many positive factors does the other number have?
Question
A metro train leaves Station A for Station B at 54 km/h. Ten minutes later, a student realizes he left his bag on the train and hires a cab from Station A. The cab moves along the same route and catches the metro exactly at Station B. What is the distance from Station A to Station B?
Question
In a leap year, 26 January falls on a Monday. On which day of the week will 15 August fall in the same year?
Question
A triangle has side lengths 17 cm, 25 cm, and 28 cm. The area of the circle inscribed in the triangle is:
Question
The present ages of Ananya and Raj are 28 years and 36 years respectively. What will be the ratio of their ages after 12 years?
Question
From 4 different pens, how many ways can 2 pens be selected?
Question
Identify the wrong term in the series:
A3, D9, H27, M81, S243
Question
Question image was not clearly readable in the provided upload.
Question
Question image was not clearly readable in the provided upload.
Question
The pie chart shows the distribution of 2400 volunteer hours among six activities: Park Restoration – 30%, River Clean-up – 25%, Waste Sorting – 17.5%, Awareness Drives – 12.5%, Food Distribution – 10%, First-Aid Support – 5%.
How many more volunteer hours were spent on Park Restoration than the average number of volunteer hours spent per activity?
Question
For River Clean-up, 1 clean-up kit was used for every 15 volunteer hours. For Waste Sorting, 1 sorting kit was used for every 21 volunteer hours. How many kits were used in total for these two activities?
Question
Awareness Drives generated 2 registrations for every 5 volunteer hours, while Food Distribution served 3 families for every 4 volunteer hours. How many more families were served than registrations generated?
Question
In an internal review, 25% of Food Distribution hours and 1/6 of River Clean-up hours were found to be weekend volunteer hours. What fraction of the total weekend hours from these two activities came from River Clean-up?
Question
An ordered pair (p, q) is selected at random such that both p and q are chosen from {1, 2, 3, 4, 5, 6}. Each ordered pair is equally likely. What is the probability that the fraction p/q is already in its simplest form?
Question
A chemistry lab needs 45 litres of a solution containing 10% salt. It has an 18% salt solution and pure water available. How many litres of the 18% salt solution should be used?
Question
Five friends Arjun, Bela, Charan, Divya, and Esha participated in a charity walkathon. Each walked at a different constant speed on a straight road from P to Q, covering 30 km.
How much time did Bela take to finish the walkathon?
Question
Using the same walkathon information, what is the difference between the speeds of Arjun and Esha?
Question
Using the same walkathon information, what is the sum of the time taken by Charan and Divya?
Question
Using the same walkathon information, what is the average of the speeds of Arjun and Divya?
Question
If the speeds of Arjun, Bela, and Charan are denoted by A, B, and C respectively, what is the value of (A + B)/C?
Question
Which of the below-given swapping method(s) is/are used by scheduling algorithms which schedule processes based on their priority?
I. Demand Paging II. Roll-in Roll-out III. Swap Prefetch
Question
What is the output of the following C program?
#include <stdio.h>
int main()
{
static int i;
call(++i);
return 0;
}
int call(int t)
{
int a[3];
int w = 2, *p;
p = (int *)&a;
for (; *p;)
{
w = *p;
*p = ++*p + t;
printf("%d", p + w);
}
}
Question
In which process state does the process wait to be assigned to a processor?
Question
The given code intends to prompt the user to enter a number, read that number using scanf, and then print the entered number. Identify the line causing the error.
#include <stdio.h> // Line 1
int main() {
int num;
printf("Enter a number: ");
scanf("%d", num); // Line 5
printf("The entered number is: %d\n", num); // Line 6
return 0;
}
Question
Which option is the correct reduced Boolean expression?
(A + A) · (A + B) = ?
Question
What will be the output of the program given below?
#include <stdio.h>
int g = 0;
void fun(void *p)
{
int (*q)() = p;
g++;
q();
}
int main()
{
void *p = main;
if (g <= 4)
fun(p);
else
printf("%d", g++);
return 0;
}
Question
Consider the following function:
struct BST_Node { int data; struct BST_Node *left, *right; };
struct BST_Node *Fun(struct BST_Node *root, int data) { if (!root) return NULL;
if (data < root->data)
return Fun(root->left, data);
if (data > root->data)
return Fun(root->right, data);
return root;
}
What task does the above function perform?
Question
Identify the error in the given code:
#include <stdio.h>
int main()
{
int num = 5;
int factorial = calculateFactorial(num);
printf("Factorial of %d is: %d\n", num, factorial);
return 0;
}
int calculateFactorial(int n)
{
if (n == 0 || n == 1)
return 1;
else
return n * calculateFactorial(n - 1);
}
Question
Given a stack S and a queue Q:
Stack S: 5, 6, 2, 13, 4, with TOP at 4. Queue Q: P, J, U, Q, with FRONT at P and REAR at Q.
After every addition to the stack, a corresponding deletion takes place in the queue, and the deleted element is added to the stack after the new element.
What will be the value at Q(FRONT) after these operations?
push(A), pop(), push(B), pop(), pop(), pop()
Question
What is the resultant value after performing a NOT operation on the binary number 10011011?
Question
Which option is the correct reduced Boolean expression?
ABC + BC + AC = ?
Question
Which option gives the difference between the completion time and the arrival time of a process in process scheduling?
Question
What will be the output of the following C program?
#include <stdio.h>
int main()
{
char *b[] = {"dharma", "hewlett-packard", "siemens", "ibm"};
char **p;
p = b;
printf("%s", ++*p);
printf("%s", p++);
printf("%s", ++*p);
return 0;
}
Question
Construct a min heap from the elements:
10, 15, 8, 12, 17, 2
Which node is the sibling of 8?
Question
What will be the output of the program given below?
#include <stdio.h>
typedef volatile T;
int a = 15;
volatile T *ptr = &a;
T *volatile *ptr1 = &ptr;
int volatile *volatile **ptr2 = &ptr1;
int main()
{
printf("%d %d %d", ++*ptr++, +++*ptr1--, ++++*ptr2++);
return 0;
}
Question
What will be the output of the program given below?
#include <stdio.h>
int main()
{
int x = 25;
printf("%d %d %d\n", x, x << 2, x >> 2);
return 0;
}
Question
Which option is the correct form after simplifying the Boolean expression?
B'D + BC'D + C'D
Question
What will be the output of the program given below?
#include <stdio.h>
int main()
{
int a = 4;
if (a ^ a && (a ^ a) || a)
printf("%d", a);
return 0;
}
Question
What is the minimum number of AND gates required for the expression?
PZ + NZ
Question
Consider a circular queue of size 5. Elements g, h, and b are already inserted.
Initially: FRONT = 2 REAR = 4
What will be the value of FRONT and REAR if one new element is inserted into the queue and two elements are deleted?
Question
What will be the REAR/TAIL and FRONT/HEAD after performing the following operations on an empty circular queue of size 3?
Enqueue(7), Enqueue(8), Dequeue(), Enqueue(4), Enqueue(9)
Note: Indexing starts from 0.
Question
Consider the truth table of a half subtractor:
A B | Difference | Borrow 0 0 | 0 | X1 0 1 | 1 | X2 1 0 | 1 | X3 1 1 | 0 | X4
Which sequence gives the correct values of X1, X2, X3, and X4 respectively?
Question
Which sorting algorithm will sort the array 8, 9, 10, 2, 4 in ascending order if:
Result after 1st pass: 8, 9, 2, 4, 10 Result after 2nd pass: 8, 2, 4, 9, 10
Question
What will be the output of the program given below?
#include <stdio.h>
int main()
{
unsigned char a = 9, b = 8;
printf("%d\n", a & b);
printf("%d\n", a | b);
printf("%d\n", a ^ b);
printf("%d\n", a = ~a);
return 0;
}
Question
What will be the output of the function if called as funcc(-9)?
void funcc(int x) { try { if (x > 0) throw x - 2; else throw x + 5; } catch (int x) { cout << " A " << x; } }
int main() { funcc(-9); cout << " C "; return 0; }
Question
What will be the output of the program given below?
#include <stdio.h>
int main()
{
char *p = "How-> ";
int *a;
int b = 10;
a = &b;
printf(p);
printf(a);
printf("%s ", p);
return 0;
}
Question
What will be the output of the program given below?
#include <stdio.h>
int main()
{
char str[80] = "World Table Tennis Championship";
char t[10];
char *p, *q;
p = str;
while (*p)
{
q = t;
while (*p != ' ' && *p)
{
*q = *p;
q++;
p++;
}
if (*p)
p++;
*q = '\0';
printf("%s\n", t);
}
return 0;
}
Question
In which allocation method may the physical blocks in which a file is stored be dispersed throughout the secondary storage device?
Question
What will be the output of the program given below?
#include <stdio.h>
int set(int **p)
{
int m = 5 * 5 + 4 - 2 * 3;
return m += m || 2;
}
int main()
{
int set(int **);
int *j;
printf("%d", set(&j));
return 0;
}
Question
Condition variables are used in conjunction with:
Question
Choose the correct statement(s) regarding static binding.
I. It happens during compile time. II. It occurs during class load time. III. It occurs during runtime.
Question
Which addressing mode best resembles the instruction below?
MOV R6, A
Question
Which of the following statements is/are false?
I. Inner class is a member of enclosing class. II. Outer class reference is required to initiate inner class. III. Inner classes defined within a method are method-local inner classes. IV. Method-local inner class can access method-local variable.
Question
What will be the output of the program given below?
#include <stdio.h>
int main()
{
char *c[] = {
"ENTER",
"NEW",
"POINTER",
"FIRST"
};
char **cp[] = {c + 3, c + 2, c + 1, c};
char ***cpp = cp;
printf("%s", **++cpp);
printf("%s", *--*++cpp + 3);
printf("%s", *cpp[-2] + 3);
printf("%s", cpp[-1][-1] + 1);
return 0;
}
Question
Consider the following factors:
I. Page size II. Instruction set architecture III. Physical memory size IV. Processes in memory
Which factor(s) decide(s) the least number of page frames that should be allocated to a running process in a system implementing virtual memory?
Question
When creating an object of a child class, both the child and parent constructors execute in a specific order. Which statement about constructors in inheritance is true?
Question
What will be the evaluated value of the postfix expression?
32 108 9 8 * 6 / 6 * - + 2 + 1 ^
Question
What is the octal equivalent of the hexadecimal value (FDEA)₁₆?
Question
What will be the output of the program given below if the size of integer is 2 bytes and pointer is 4 bytes?
#include <stdio.h>
int main()
{
char *p;
printf("%u", sizeof(0));
printf("%u", sizeof(p));
printf("%u", sizeof((char *)0));
printf("%u", sizeof((float *)0));
return 0;
}
Question
What will be the output of the program given below?
#include <stdio.h>
int main(void)
{
char a = 10;
char b = a == a | 2;
char c = b == a | 4;
printf("%d %d ", b, c);
return 0;
}
Salesforce • Pending
Salesforce • Pending
Salesforce • Pending
Atlassian • Pending