NEW
Font size
WorksheetsSt.JOSEPH'S HCL TECH PLACEMENT PRACTICE TEST-2 19/7/25 @ 7 PM
Total questions: 30
Worksheet time: 30mins
A: B: C is in the ratio of 3: 2: 5. How much money will C get out of Rs 1260?
252
125
503
603
A: B is 1: 2; B: C is 3: 2 and C: D is 1:3. Find A: B: C: D.
3: 6: 4: 12
2: 3: 5: 7
3: 5: 7: 6
2: 1: 6: 13
The ratio of the total amount distributed in all the males and females as salary is 6: 5. The ratio of the salary of each male and female is 2: 3. Find the ratio of the no. of males and females.
5:9
5:7
7:5
9:5
The ratio of income of two workers A and B are 3: 4. The ratio of expenditure of A and B is 2: 3 and each saves Rs 200. Find the income of A and B.
500, 600
600, 800
600, 900
800, 1000
A person covers the different distances by train, bus, and car in the ratio of 4: 3: 2. The ratio of the fair is 1: 2: 4 per km. The total expenditure as a fair is Rs 720. Find the total expenditure as fair on the train.
140
150
160
170
A bag contains Rs 410 in the form of Rs 5, Rs 2, and Rs 1 coins. The number of coins is in the ratio 4: 6: 9. So, find the number of 2 Rupees coins.
40
50
60
70
What is the value of (25.732)2 - (15.732)2?
414.64
414.256
414.128
414.52
If 12276 /1.55 = 7920, what is the value of 122.76/15.5?
7.097
7.92
79.2
79.02
Which of the following fraction sets of fractions is in descending order?
3/5, 7/9, 6/7
7/9, 3/5, 6/7
7/9, 6/5, 3/5
6/7, 7/9, 3/5
In a mixture of 13 litres, the ratio of milk and water is 3 : 2. If 3 liters of this mixture is replaced by 3 liters of milk, then what will be the ratio of milk and water in the newly formed mixture?
10 : 3
8 : 5
9 : 4
1 : 1
Peter is in the East of Tom and Tom is in the North of John. Mike is in the South of John then in which direction of Peter is Mike?
South-East
South-West
South
North-East
Deepak placed his watch on the table in such a way that at 6 pm the hour hand points to the South. In which direction the minute hand will point at 9 pm?
North
West
South
East
Tom walked 10 m towards north then turned right and walked 25 m. Then he turned right and walked 30 m. Now he turned left and walked 10 m. Finally, he turned left and walked 20 m. How far and in which direction is he from the starting point?
50 m East
30 m North
40 m North
35 m East
Geeta walks 20 m towards north then she walks 12 m towards the South. Now, she walks 6 m towards east. How far and in which direction is she from the starting point?
10 m North-East
10 m North
6 m East
6 m South-West
Mohan is facing north-east. He turns 90 degrees in the anticlockwise direction then he turns 135 degrees in the clockwise direction. Which direction is Mohan facing now?
East
East
South
North
West
In the morning, after sunrise, Ramesh and Suresh were talking to each other face to face at Rajnigandha crossing. If Suresh's shadow was exactly to the right of Ramesh, which direction Suresh was facing?
north
east
south
data is inadequate
Look at the series, 46, 44, 40, 38, 34, _, which number should come next?
30
36
32
31
Find the next two numbers in the series, 16, 20, 46, 24, 28, 56, 32 _, _
36, 66
66, 36
34, 62
62, 34
RQP, ONM, _, IHG, FED, find the missing letters.
CDE
LKI
LKJ
BAC
Find the missing letters in the series, E3FG, _, E5FG, E6FG, E7FG.
EF4G
E3F4G
E4FG
EF3G4
Which of the function is more appropriate for reading a multi-word string?
puts()
gets()
printf()
scanf()
What will be the output of the below program?
#include<stdio.h>
int main()
{
char a[] = "%d\n";
a[1] = 'b';
printf(a, 65);
return 0;
}
b
a
A
65
Which of the following statements are correct about string?
1.The format specifier %s is used to print a string.
2.The length of the string can be obtained by strlen().
3.The pointer cannot work on string.
4.A string is a collection of characters terminated by '\0'.
1, 4
1, 2, 3
1, 2, 4
2, 3, 4
What will be the output of the below program?
#include <stdio.h>
void main()
{
char ch[10]={'h', 'e', 'l', 'l', 'o', '\0'};
char ch2[10]={'c', '\0'};
strcat(ch,ch2);
printf("Value of first string is: %s",ch);
}
hello
c
helloc
Compile error
Will the program compile successfully?
#include<stdio.h>
int main()
{
char a[] = "India";
char *p = "CHINA";
a = "CHINA";
p = "India";
printf("%s %s\n", a, p);
return 0;
}
YES
NO
Is there any difference between the two statements?
char *ch = "IndiaBIG";
char ch[] = "IndiaBIG";
YES
NO
Which of the following statements are correct about the program below?
#include<stdio.h>
int main()
{
char str[20], *s;
printf("Enter a string\n");
scanf("%s", str);
s=str;
while(*s != '\0')
{
if(*s >= 97 && *s <= 122)
*s = *s-32;
s++;
}
printf("%s",str);
return 0;
}
The code converts a string in to an integer
The code converts lower case character to upper case
The code converts upper case character to lower case
Error in code
What will be the output of the program ?
#include<stdio.h>
int main()
{
printf(5+"Good Morning\n");
return 0;
}
Good Morning
Good
M
Morning
If the size of pointer is 4 bytes then What will be the output of the program ?
#include<stdio.h>
int main()
{
char *str[] = {"Frogs", "Do", "Not", "Die", "They", "Croak!"};
printf("%d, %d", sizeof(str), strlen(str[0]));
return 0;
}
22, 4
25, 5
24, 5
20, 2
If the two strings are identical, then strcmp() function returns
-1
1
0
YES
