DEV Community

GFG Student Chapter GLAU
GFG Student Chapter GLAU

Posted on

Solutions of Brain it Out

`1.120, 99, 80, 63, 48, ?
A. 35
B. 38
C. 39
D. 40

Ans- a

2.3, 10, 101, ?
A. 10101
B. 10201
C. 10202
D. 11012

Ans-c

3.In the series 2, 6, 18, 54, .. what will be the 8th
term ?
A. 4370
B. 4374
C. 7443
D. 7434

Ans-b

4.125, 80, 45, 20, ?
A. 5
B. 8
C. 10
D. 12

Ans-a

5.What is the probability of getting a sum 9 from two throws of a dice?
A. 1/6
B. 1/8
C. 1/12
D. 1/9

Ans-d

5.Half percent , written as a decimal , is
a) 0.2 b)0.02 c)0.005 d)0.05

Ans=c

6.If A's salary is 25% more than B's salary, then B's salary is how much lower than A's salary?
a)22% b)20% c)25% d)18%

ans-b

7.30% of a number when substracted from 91 , gievn the number itself. Find the number.
a)60 b)65 c)75 d)70

Ans-d

8.220% of a number X is 44 . What is 44% of X.
a)8.8 b)8.9 c)6.6 d)7.7

Ans-a

9.Two numbers are in the ratio 3:4. If their LCM is 240 , the smaller of two number is
a)100 b)80 c)60 d)50

Ans-c

10.Sandeep sells 320 Books at the cost price of 400 Books. What is his profit percent?
a)33.33% b)25% c)40% d)30%

Ans-b

11.Find the numbers of divisors of 1420.
a)14 b)15 c)13 d)12

Ans-d

12.The hare got a head-start ___ became overconfident towards the end of the race.
a)but

b)so

c)off

d)on

Ans-a

13.Harry was sad ____ losing his friend.
a. about b. By c. In d. under

Ans-a

14.Midas went home to his wife and daughter touching pebbles, rocks, and plants on the way, which turned ___ gold.
a. over b.as c. from d. into

Ans-d

15.He had gone to bed ___ the same time every night for as long as he could remember.
a.at b.in c.as d. on

Ans-a

16.He tried a few more times ___ kept failing
a.to b. but c. except d. after

Ans-b

17.The oldest brother used to go ___ the forest in search of firewood to sell in the market.
a. into b. after c. within d.by

Ans-a

18.____ her happiness, she was afraid she couldn’t afford to pay the bill.
a. past b. over c. despite d. beside

Ans-c

19.When he returned, all he could talk ____ was the wonderful adventures he had and the great deeds he had done.
a. with b. off c. regarding d. about

Ans-d

20.Don’t count your chickens ___ they hatch
a. until b. despite c. beyond d. without

Ans-a

21.Reading to children offers a great method to teach them life lessons ___ a way that they’ll understand
a. in b. on c. from d. among

Ans-a

22.What is the worst case time complexity to sort an array which contains only three values 3,4 and 5 ?
a. O(log n) b. O(n) c. O(n*n) d. O(1)

Ans-b

23.What is the worst case time complexity to find if there is any duplicate element or not if the values of the element is less than the 2*n where n is the size of the array.?
a. O(log n) b. O(n) c. O(n*n) d. O(1)

Ans-b

24.In breadth first search of graph , which data structure is used.?
a. stack b. queue c. array d. Linkedlist

Ans-b

25.If the numbers 4,3,2,1 are placed in a queue(in that order) and then removed one at a time. In what order they will be removed ?
a.1,2,3,4 b.1,3,2,4 c.4,3,2,1 d.1,4,2,3

Ans-c

26._______ refers to the process of locating and removing the errors in a program
A. Analyzing B. Correcting C. Debugging D. Executing

Ans-c

27.Programmer-defined functions can be
(A) Value-returning functions only (B) Void functions only
(C) Either value-returning or void functions (D) None of these

Ans-c

28.A function that is called automatically each time an object is created is a(n)
(A) Constructor (B) Contractor (C) Builder (D) Architect

Ans-a

29.If you assign a default value to any variable in a function prototype's parameter list, then _______
(A) All other parameters in the function prototype must have default values
(B) All parameters to the right of that variable must have default values
(C) All parameters to the left of that variable must have default values
(D) No other parameters in that prototype can have default values

Ans-b

30.void main()
{
int a=10, b=20;
char x=1,y=0;
if(a,b,x,y)
{
printf("EXAM");
}
}

What is the output?
a)EXAM is Printed b)exam is printed c)Compile Error

d)Nothing is printed.

Ans-d

31.What will be the output of the following code snippet?

#include
void solve() {
int x = 2;
printf("%d", (x << 1) + (x >> 1));
}
int main() {
solve();
return 0;
}

a)5 b)4 c)2 d)1

Ans-a

32.What will be the output of the following code snippet?

# include < stdio.h >
# include < string.h >
void solve() {
char s[] = "Hello";
printf("%s ", s);
char t[40];
strcpy(t, s);
printf("%s", t);
}
int main() {
solve();
return 0;
}

a)Hello Hello

b)Hello

c)Compilation Error

d)None of the above

Ans-a

33.What will be the output of the following code snippet?

# include
#define CUBE(x) x * x * x
void solve() {
int ans = 216 / CUBE(3);
printf("%d", ans);
}
int main() {
solve();
return 0;
}

a)8

b)648

c)72
d)None of the above

Ans-b

34.What will be the output of the following code snippet?

# include
struct School {
int age, rollNo;
};
void solve() {
struct School sc;
sc.age = 19;
sc.rollNo = 82;
printf("%d %d", sc.age, sc.rollNo);
}
int main() {
solve();
return 0;
}

a)19 82

b)Compilation Error

c)82 19

d)None of the above

Ans-a

35.Integer val, n
Set val = 32, n = 1
while(val greater than equal to n)
val = val >> 1
end loop
Print val

A-16
B-64
C-0
D-11

Ans- c

36.Which of the following symbol is used to denote a pre-processor statement?
a) !
b) #
c) ~
d) ;

Ans-b

37.Which of the following is not the type of
Queue?

A) Single ended queue
B) Ordinary queue
C) Circular queue
D) Priority queue

Ans - a

38.The time complexity of quick sort is ...
A) O(n^2)
B) O(n log n)
C) Insufficient information
D) Both A&B

Ans-C

39.The prefix of (A+B)(C-D)/E*F is:
(A) /+-AB*CD
(B)/
+-ABCD*EF
(C)"/*+AB-CDEF
(D)*AB+CD/EF
Answer: C

40.A technique for direct search is .
(A) Binary Search
(B) Hashing
(C) Tree Search
(D) Linear Search
Answer: B

41.Merging 4 sorted files containing 50, 25, 10
and 15 records will take ... time
(A) O(100)
(B) O(200)
(C)O(175)
(D) O(125)
Answer: A

42.Choose the word which is different from the rest.
a)Chicken b)Snake c)Swan d)Crocodile

Ans-a

43.Choose the word which is different from the rest.
a)Kiwi b)Eagle c)Emu d)Ostrich e)Penguin

Ans-b

44.Choose the word which is different from the rest.
a)Rigveda b)Yajurveda c)Atharvaveda d)Ayurveda

Ans-d

45.Choose the word which is different from the rest.
a)Curd b)Butter c)Oil d)Cheese

Ans-c

46.If one-third of one-fourth of a number is 15, then three-tenth of that number is:
a)35 b)36 c)45 d)54

Ans-d

47.The product of two numbers is 120 and the sum of their squares is 289. The sum of the number is:
a)20 b)23 c)169 d)None of these

Ans-b

48.What is the sum of two consecutive even numbers , the difference of whose squares is 84?
a)34 b)38 c)42 d) 46

Ans-c

49.The difference between a number and its three -fifths is 50, What is the number?
a)75 b)100 c)125 d)None of these

Ans-c

50.The difference between two integers is 5. Their product is 500. Find the numbers.
a)15,20 b) 20,25 c)30,25 d)21,26

Ans-b

51.If the product of three consecutive inteegrs is 120, then the sum of the integers is:
a)9 b)12 c)14 d)15

ans-d

52.I felt somewhat more relaxed.......
a)but tense as compared to earlier b)and tense as compared to earlier c)as there was already no tension at all
d)and tension-free as compared to earlier

Ans-d

53.The manager would like you to help Dhiraj,means......
a)the manager would like you if you help Dhiraj b)the manager desires you to help Dhiraj c)the manager likes you because you help Dhiraj
d)Dhiraj expects the manager to tell you to help him

Ans-b

54.He has no money now .......

a)although he was very poor once b)as he has given up all his wealth c)because he was very rich once
d)because he has received huge donation

Ans-b

55.Please , come ...... the bathroom.
a)out of b)over c)on d)in

Ans-a

56.Please , don't laugh .... those beggars.
a)for b)against c)at d)from

Ans-c

57.A person who renounces the world and practices self discipline in order to attain salvation:
a)Sceptic b)Ascetic c)Devotee d)Antiquarian

Ans-b

58.Ramesh ransk 13th in the class of 33 students. There are 5 students below Suresh rankwise.How many student are there between Ramesh and Suresh?
a)12 b)14 c)15 d)16

Ans-b

59.Mohan is older than Prabir. Suresh is younger than Prabir.Mihir is older than Suresh, but younger than Prabir. Who among the four is young?
a)Prabir b)Mihir c)Mohan d)Suresh

Ans-d

60.A man is 24 years, older than his son. In two years, his age will be twice the age of his son. The present age of his son is
a)14 years b)22 years c)20 years d)18 years

Ans-b

61.M scores more run than N but less than P. Q scores more than N but less than M. Who is the lowest scorer?
a)M b)N c)P d)Q

Ans-b

62.Which of the following is not a valid SQL type?
1.FLOAT
2.NUMERIC
3.DECIMAL
4.CHARACTER
Ans – 3

63.(A) There were / (B) no less than fifty persons / (C) present in the room / (D) No error
a)A b) B c)C d) D

Ans – B

64.(A) The meeting was postponed / (B) because only a few number of persons / (C) were present there/ (D) No error

A.(a)
B.(b)
C.(c)
D.(d)
Ans – b

65.Somebody informed (A)/ the contractor that his (B)/ brother had only died (C)/ five days before (D)/ No error (E).

A.(a)
B.(b)
C.(c)
D.(d)
E.(e)
Ans –c

66.She is very senior(A)/ to me, so I (B)/cannot defy (C)/ her orders (D)/ No error (E).
A.(a)
B.(b)
C.(c)
D.(d)
E.(e)
Ans –A

67.Find the correctly spelt word
A. Absense
B. Absence
C. Abcence
D. Abcense
Ans -B

68.Find the correctly spelt word
A. amateur
B. amatur
C. ameateur
D. ameteur
Ans –a

69.In this question, four words are given out of only one is misspelt. Find the misspelt word
A. Combination
B. Exageration
C. hallueination
D. Admonition
ANS -B
70.Find the correctly spelt word.
A. Proffessional
B. Professional
C. Proffesional
D. Proffessionnal
E. None of the above

71.The selling price and cost price of an article differs by 480. What is the selling price in case the profit percentage is 20%?
A.2400
B.2880
C.2600
D.2000
ANS-B

72.An metallic alloy contains 20g copper, 20g tin and 40g silver.Then find out the percentage of tin in the alloy?
A.20%
B.30%
C.25%
D.40%
ANS – C

73.At what rate percent per annum will a sum of money double in 8 yr?
A.12%
B.12.5%
C.13%
D.15%
ANS -B

74.A ............ is anything that can cause harm.
A. vulnerability
B. phishing
C. threat
D. spoof
E. None of these
ANS -A

75.Which of the following a computer's memory, but unlike a virus, it does not replicate itself ?
A. Trojan horse
B. Logic bomb
C. Cracker
D. Firewall
E. None of these
ANS- B

76.Languages which can easily interact with the hardware are called
A. High level languages
B. Low level languages
C. Middle level languages
D. All of the above
E. None of the above
ANS – B
77.Which of the following terms applies to communication between separate computer systems?
A. Computer literacy
B. Power supply
C. Applications software
D.  Connectivity
ANS-D

78.In a certain code, 'CLOCK' is written as 'XOLXP'. How will 'LOTUS' be written in that same code?
a) OLGFH
b) LOGFH
c) OLGHF
d) OGLFH
ANS-A

79.If in a certain code language 'NEETA' is written as 'MVVGZ', then what word will be written for 'IZHSNR'?
a) RASHMI
b) VANDANA
c) ANJALI
d) POONAM
ANS-A

80.A man goes 5 km East, then he turns right and goes 4 km, then he turns left and goes 5 km. Which direction is he facing now?
a) North
b) South
c) East
d) West
ANS-C

81.Arrange the following words in a meaningful sequence -
a. Frog
b. Grass
c. Grasshopper
d. Eagle
e. Snake
A. b, c, a, e, d
B. c, b, a, d, e
C. b, a, c, d, e
D. d, e, a, c, b
ANS-A
82.Raman says "Anuj's mother is the only daughter of my mother." How is Anuj related to Raman?
A.Brother
B.Nephew
C.Father
D.None of the above
ANS-B
83.Looking at the portrait of a man, Mohan said, "His mother is the wife of my father's son and I have no brother and sister." at whose portrait was Mohan looking?
A.His sister
B.His son
C.His cousin
D.His nephew
ANS-B
84.Pointing to a woman, a man said, "Her father is the only son of my father." How is the man related to the woman?
A.Grandfather
B.Father
C.Son
D.None of the above
ANS-B
85.What will be the missing letters in the series EQ, FS, HW, KA, ___ , TL ?
A.AL
B.OF
C.HP
D.None of the above
ANS-B
86.What is the worst case time complexity to sort an array which contains only three values 3,4 and 5 ?
A. O(logn)

B. O(n)

C. O(n*n)

D. O(1)
ANS:B
87.What is the worst case time complexity to find if there is any duplicate element or not if the values of the element is less than the 2*n where n is the size of the array.?
A. O(logn)
B. O(n)
C. O(n*n)
D. O(1)
ANS: B
88.What type of data would your name be?
A.Integer
B.Boolean
C.String
D.Real
ANS: C
89.What type of data would Pi be?
A.Integer

B.Boolean
C.String

D.Real
ANS. D
90.In breadth first search of graph , which data structure is used.?
A.stack
B.queue
C.array
D.LinkedList
ANS: B
91.If the numbers 4,3,2,1 are placed in a queue(in that order) and then removed one at a time. In what order they will be removed ?
A. 1,2,3,4
B. 4,3,2,1
C. 1,3,2,4
D. 1,4,2,3
ANS: B
92._______ refers to the process of locating and removing the errors in a program
A.Analyzing
B.Correcting
C. Debugging
D. Executing
ANS: C
93.Programmer-defined functions can be
A.Value-returning functions only
B.Void functions only

C.Either value-returning or void functions
D.None of these
ANS:C
94.A function that is called automatically each time an object is created is a(n)
A.Constructor

B.Contractor

C.Builder

D.Architect
ANS: A
95.If you assign a default value to any variable in a function prototype's parameter list, then _______
A.All other parameters in the function prototype must have default values
B.All parameters to the right of that variable must have default values
C.All parameters to the left of that variable must have default values
D.No other parameters in that prototype can have default values
ANS: B
96.What is the sum of all the composite numbers up to 20?
A. 128
B. 130
C. 131
D. 132 

ANS: D
97.Which alphabet will be 14th to the left of 8th alphabet from the right in the following series of letters?
A O B P C Q D R E S F T G U H V I W J X K Y L Z M N.
A.B
B.C
C.Y
D.P
ANS:B
98.Hritik is taller than Salman who is shorter than Sanjay. Akshay is taller than Shahrukh but shorter than Salman. Sanjay is shorter than Hritik. Who is the tallest?
A.Salman
B.Sanjay
C.Hritik
D.Shahrukh
ANS: C
99.Lali and Anju are a married couple. Tunu and Munu are brothers. Tunu is the brother of Lali. How is Munu related to Anju?
A.Brother
B.Brother-in-law
C.Sister-in-law
D.None of these
ANS: B
100.How many sets of two letters have as many letters between them as in the English alphabetical order in the word ‘WRISTWATCH’.
A. 1
B.2
C.3
D.4
ANS: B
101.Pointing towards a lady, Neeraj said. “ She is the daughter of the only child of my grandmother.”
How is the lady related to Neeraj ?
A.Sister
B. Niece
C. Cousin
D. None of these
ANS: A
102.+ means ‘ is greater than’
- Means ‘ is less than’
× means ‘ is not greater than’
÷ means ‘ is not less than’
p – q - r implies
A. p – q + r
B. q + p – r
C.r × q + p
D.q + p ÷ r
ANS: B
103.Find the missing alphabet in the following series?
O, T , T, F, F ,S , S, E, ?
A.N
B.W
C.F
D.Z
ANS: A
104.A+B>C+D and B+C> A+D then it is definite that
A. D>B
B. C>D
C. A>D
D. B>D
ANS: D
104.Meena's mother has five daughters: Reena, Teena, Sheena and Sheela. Who is the fifth daughter?
A.Beena
B.Seena
C.Meena
D.Nakeena
ANS: C
105.How many times can you subtract the number 5 from 35?
A.Once
B.Twice
C.Thrice
D.Seven times
ANS: A
106.Ravish and Kamlesh like hockey and volleyball. Suresh and Ravish likes hockey and badminton. Giri and Kamlesh like chess and volleyball. Suresh, Girl and Mukesh like football and badminton.
Who likes hockey, volleyball and badminton?
a) Suresh
b) Kamlesh
c) Ravish
d) Giri
ANS: C
107.Ravish and Kamlesh like hockey and volleyball. Suresh and Ravish likes hockey and badminton. Giri and Kamlesh like chess and volleyball. Suresh, Girl and Mukesh like football and badminton.
Who likes chess, hockey and volleyball?
a) Suresh
b) Kamlesh
c) Ravish
d) Giri
ANS:B
108.Ravish and Kamlesh like hockey and volleyball. Suresh and Ravish likes hockey and badminton. Giri and Kamlesh like chess and volleyball. Suresh, Girl and Mukesh like football and badminton.
Who likes badminton, chess, football and volleyball?
a) Suresh
b) Kamlesh
c) Giri
d) Ravish
ANS: C
109.Rajneesh, Kavita, Suresh, Gambir and Mahesh are friends and good players. Rajneesh and Kavita are good in hockey and volleyball. Suresh and Rajneesh are good in hockey and tennis. Gambir and Kavita are good in cricket and volleyball. Suresh, Gambir and Mahesh are good in football and tennis.
Who is good in hockey, volleyball and cricket?
a) Rajneesh
b) Suresh
c) Kavita
d) Gambhi
ANS:C
110.Rajneesh, Kavita, Suresh, Gambir and Mahesh are friends and good players. Rajneesh and Kavita are good in hockey and volleyball. Suresh and Rajneesh are good in hockey and tennis. Gambir and Kavita are good in cricket and volleyball. Suresh, Gambir and Mahesh are good in football and tennis.
Who is good in tennis, cricket, volleyball and football?
a) Suresh
b) Kavita
c) Rajneesh
d) Gambhir
ANS:D
`

Top comments (0)