In how many ways can the string A ∩ B - A ∩ B - A be fully parenthesized to yield an infix expression? (A) 15 (B) 14 (C) 13 (D) 12

1 Answer

Answer :

(B) 14

Related questions

Description : The reverse polish notation equivalent to the infix expression ((A + B) * C + D)/(E + F + G) (A) A B + C * D + EF + G + / (B) A B + C D * + E F + G + / (C) A B + C * D + E F G + +/ (D) A B + C * D + E + F G + /

Last Answer : (A) A B + C * D + EF + G + /

Description : Convert the following infix expression into its equivalent post fix expression (A + B^ D) / (E – F) + G (A) ABD^ + EF – / G+ (B) ABD + ^EF – / G+ (C) ABD + ^EF / – G+ (D) ABD^ + EF / – G+

Last Answer : (A + B^ D) / (E – F) + G

Description : The number of strings of length 4 that are generated by the regular expression (0|∈) 1+2* (3|∈), where | is an alternation character, {+, *} are quantification characters, and ∈ is the null string, is: (A) 08 (B) 10 (C) 11 (D) 12

Last Answer : (D) 12

Description : What is the output of the following? i = 5 while True: if i%0O9 == 0: break print(i) i += 1 a) 5 6 7 8 b) 5 6 7 8 9 c) 5 6 7 8 9 10 11 12 13 14 15 …. d) error

Last Answer : d) error

Description : Let A and B be two fuzzy integers defined as: A={(1,0.3), (2,0.6), (3,1), (4,0.7), (5,0.2)} B={(10,0.5), (11,1), (12,0.5)} Using fuzzy arithmetic operation given by (A) {(11,0.8), (13,1), (15,1)} ( ... ,0.2)} (D) {(11,0.3), (12,0.5), (13,0.6), (14,1), (15,0.7), (16,0.5), (17,0.2)}

Last Answer : (D) {(11,0.3), (12,0.5), (13,0.6), (14,1), (15,0.7), (16,0.5), (17,0.2)}

Description : Compute the value of adding the following two fuzzy integers: A = {(0.3,1), (0.6,2), (1,3), (0.7,4), (0.2,5)} B = {(0.5,11), (1,12), (0.5,13)} Where fuzzy addition is defined as μA+B(z) = maxx+y=z (min(μA(x), μB( ... ,18)} (D) {(0.3,12), (0.5,13), (0.6,14), (1,15), (0.7,16), (0.5,17), (0.2,18)}

Last Answer : (D) {(0.3,12), (0.5,13), (0.6,14), (1,15), (0.7,16), (0.5,17), (0.2,18)} 

Description : Which of the following is not an inherent application of stack? (A) Implementation of Stack (B) Evaluation of a postfix expression (C) Job Scheduling (D) Reverse a string

Last Answer : (C) Job Scheduling

Description : Which one of the following array represents a binary max-heap? (A) [26, 13, 17, 14, 11, 9, 15] (B) [26, 15, 14, 17, 11, 9, 13] (C) [26, 15, 17, 14, 11, 9, 13] (D) [26, 15, 13, 14, 11, 9, 17]

Last Answer : (C) [26, 15, 17, 14, 11, 9, 13]

Description : Which command is used to copy all files having the string chap and any two characters after that to the progs directory? A. cp chap?? progs B. cp chap* progs C. cp chap[12] /progs/*.*

Last Answer : A. cp chap?? progs

Description : Suppose that the virtual Address space has eight pages and physical memory with four page frames. If LRU page replacement algorithm is used, .............. number of page faults occur with the reference string. 0 2 1 3 5 4 6 3 7 4 7 3 3 5 5 3 1 1 1 7 2 3 4 1 (A) 11 (B) 12 (C) 10 (D) 9

Last Answer : (A) 11

Description : Consider a system having ‘m’ resources of the same type. These resources are shared by three processes P1, P2 and P3 which have peak demands of 2, 5 and 7 resources respectively. For what value of ‘m’ deadlock will not occur? (A) 70 (B) 14 (C) 13 (D) 7

Last Answer : (B) 14

Description : The number of strings of length 4 that are generated by the regular expression (0+1 +|2+3 + )*, where | is an alternation character and {+, *} are quantification characters, is: (A) 08 (B) 09 (C) 10 (D) 12

Last Answer : (C) 10

Description : The inorder traversal of the following tree is: (A) 2 3 4 6 7 13 15 17 18 18 20 (B) 20 18 18 17 15 13 7 6 4 3 2 (C) 15 13 20 4 7 17 18 2 3 6 18 (D) 2 4 3 13 7 6 15 17 20 18 18

Last Answer : Answer: D 

Description : Consider the following binary search tree: If we remove the root node, which of the node from the left subtree will be the new root? (A) 11 (B) 12 (C) 13 (D) 16

Last Answer : (D) 16

Description : A software company needs to develop a project that is estimated as 1000 function points and is planning to use JAVA as the programming language whose approximate lines of code per function point is accepted as 50. Considering a=1. ... ? (1) 11.2 months (2) 12.2 months (3) 13.2 months (4) 10.2 months

Last Answer : Generally, any projects are measured in weeks. However, the complex project might take more time depending on the level of object re-use available.

Description : I have some matchsticks set up like this: I + XI = X. If you do not know Roman numerals, here is a quick starter: I=1 II=2 III=3 IV=4 V=5 VI=6 VII=7 VIII=8 IX=9 X=10 XI=11 ... are told to move the minimum number of matchsticks to make the question correct. So, how many do you have to move? -Riddles

Last Answer : Most people would get to one move at the least, but the real answer is zero moves. If you rotate the whole question around 180 degrees, it will display this: X = IX + I

Description : 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50'. What number is missing? -Riddles

Last Answer : 22

Description : the median of the data 13, 12, 14, 13, 15, 16, 18, is _______.

Last Answer : the median of the data 13, 12, 14, 13, 15, 16, 18, is _______.

Description : the range of the data 13, 18, 20, 15, 12, 17, 9, 14, 11, and 16 is ________.

Last Answer : the range of the data 13, 18, 20, 15, 12, 17, 9, 14, 11, and 16 is ________.

Description : What is the nth term for 12 13 14 15?

Last Answer : Need answer

Description : What are the common factors of 11 12 13 14 and 15?

Last Answer : 1 is a common factor of 11, 12, 13, 14 and 15.

Description : Which of the following nuclei would be the most stable A. 10 protons , 14 neutrons B. 10 protons, 15 neutrons C. 10 protons, 13 neutrons D. 10 protons, 12 neutrons.?

Last Answer : (Explanation): remember that if an atom has less than 20 protons, the closer the number of neutrons and protons are, the more stable it is. Since 10 is closest to 12 out of these options, D is the correct answer.

Description : How many sahaaba were martyred in Battle of Badar? A. 12 B. 13 C. 14 D. 15

Last Answer : ANSWER: C

Description : How many sahaaba were martyred in Battle of Badar? A. 12 B. 13 C. 14 D. 15

Last Answer : ANSWER: C

Description : How many sahaaba were martyred in Battle of Badar? A. 12 B. 13 C. 14 D. 15

Last Answer : ANSWER: C

Description : Diameter of Sun is-------? A. 12 Lakh kms B. 13 Lakh kms C. 14 Lakh kms (Answer) D. 15 Lakh kms

Last Answer : C. 14 Lakh kms (Answer)

Description : To how many degrees did the narrator turn as per the instructions from the Paris Control Room? a) 12 b) 13 c) 14 d) 15

Last Answer : a) 12

Description : Three pipes A, B and C can fill a tank in 6 hours. After working at it together for 2 hours, C is closed and A and B can fill the remaining part in 7 hours. The number of hours taken by C alone to fill the tank is: a) 10 b) 14 c) 12 d) 13 e) 15

Last Answer : (A+B+C) - (A+B) (A+B+C) =1/6 and (A+B+C) in 2hrs=2/6 and remaining part 1-2/6=2/3. So (A+B) in 7 hrs is 2/ (3*7) =2/21. 1/6-2/21=1/14 so answer is 14. Answer: b)

Description : Find the number which when multiplied by 13 is increased by 180: 1. 20 2. 15 3. 12 4. 5 5. 14

Last Answer : Answer- 2 (15) Explanation:- let no. be X X *13= X+180 !2x=180 x=15

Description : The ages of Gaurav and Goutham will be in the ratio 5 : 7 after ten years from now and will be in the ratio 13 : 18 after twelve years from now. Find the ratio of the sum of their ages 10 years hence to the sum of their ages 12 ... hence. 1 : 25 : 27 2 : 13 : 15 3 : 14 : 17 4 : 18 : 23 5 : 30 : 31

Last Answer : 5 : 30 : 31

Description : A manufacture undertakes to supply 2000 pieces of a particular component at Rs.25 per piece. According to his estimates, even if 5% fail to pass the quality tests, then he will make a profit of 25%. However as it turned out, ... A. Rs 12,000 B. Rs 13,000 C. Rs 14,000 D. Rs 15,000 E. None f these

Last Answer : Answer - B. Rs 13,000 Explanation: 5% of 2000=100 so 2000-100=1900 so,if he sells 1900 he will get 25% profit cost per piece rs 25 so 25x 1900 don't solve here if 125% . ... /125=38000=CP if 50% rejected,only 1000 pieces sold so 1000 25=25000=SP loss=cp-sp= 38000-25000=13000

Description : A cuboid shaped wooden block has 6 cm length, 4 cm breadth and 1 cm height. 12. Two faces measuring 4 cm x 1 cm are coloured in black. 13. Two faces measuring 6 cm x 1 cm are coloured in red. 14. Two ... How many cubes will have 4 coloured sides and two non-coloured sides ? (a)8 (b)4 (c)16 (d)10

Last Answer : Answer key : (b)

Description : Implement F(A,B,C,D)= Ʃ (1,3,4,11,12,13,14,15) using multiplexer

Last Answer : • Implementation • Table • Explanation

Description : In each of the following questions, find the odd number/letters/word from the given alternatives. 10. (a) PQXZ (b) BCQN (c) ABDF (d) MNPR 11. (a) ABYZ (b) CDWX (c) EFUV (d) GHTV 12. ... ) Sailing (c) Dividing (d) Driving 15. (a) Perception (b) Discernment (c) Penetration (d) Insinuation 

Last Answer : 10. (b) 11. (d) 12. (b) 13. (d) 14. (d) 15. (d)

Description : The number of candidates writing three different entrance exams is in the ratio 4:5:6. There is a proposal to increase these numbers of candidates by 40%, 60% and 85% respectively. What will be the ratio of increased numbers? a) 14:15:16 b) 12:15:19 c)13:19:21 d) 14:16:19 E) None of these

Last Answer : Answer : E Given ratio of number of candidates is 4:5:6 Let the number of candidates for 3 exams be 4k, 5k and 6k respectively. After increasing, number of candidates become (140% of 4k), (160% of 5k) & (185% ... 111k/10 Now, the required new ratio is: 56k/100 : 80k/10 : 111k/10 = 56 : 80 : 111

Description : Two students appeared at an examination. One of them secured 18marks more than the other and his marks was 72% of the sum of their marks. What are the marks obtained by them? a) 12.5,23.3 b) 26.7,16.0 c) 13.3,14.2 d) 11.45, 29.45 e) 29.8,15.4 

Last Answer : Answer: D  Let the marks secured by them be x and (x + 18)  Then sum of their marks = x + (x + 18) = 2x + 18  Given that (x + 18) was 72% of the sum of their marks  =>(x+18) = 72/100(2x+18)  => ... 11x = 126 x = 11.45  Then (x + 18) = 11.45 + 18 = 29.45  Hence their marks are 11.45 and 29.45

Description :  In the following question, select the odd number from the given alternatives.  Options: 1)13-5 2) 15-7 3) 12-6 4) 14-6 

Last Answer : 1 and 2

Description : Float a[15], what is the size of array? A) 17 B) 14 C) 15 D) 16

Last Answer : 16

Description : A memory management system has 64 pages with 512 bytes page size. Physical memory consists of 32 page frames. Number of bits required in logical and physical address are respectively: (1) 14 and 15 (2) 14 and 29 (3) 15 and 14 (4) 16 and 32

Last Answer : (3) 15 and 14

Description : In what way is a file more flexible than a String?

Last Answer : Ans: A file is stored permanently in a storage device.It is easy to access a file whenever required. On the other hand, a string is stored temporarily in RAM, and the contents of a string will be erased automatically when the power is switched off or when the program execution is terminated.

Description : Why is the ‘S’ of String capital?

Last Answer : A: Since String is a class.

Description : Is it compulsory to write String args[] when running a program in BlueJ?

Last Answer : A: No it is not compulsory when we are running it in BlueJ. But normally (in all other cases) it is always better to have it, as the JVM looks for the main method with a String array as a parameter.

Description : Which command is used to concatenate all files beginning with the string 'emp' and followed by a non-numeric characters? A. cat emp[!0-9] B. more [emp][!0-9] C. cat emp[x-z]

Last Answer : A. cat emp[!0-9]

Description : Which command is used to change protection mode of files starting with the string emp and ending with 1,2, or 3? A. chmod u+x emp[l-3] B. chmod 777 emp* C. chmod u+r ??? emp D. chmod 222 emp? E. None of the above

Last Answer : A. chmod u+x emp[l-3]

Description : In java, string is a ............. A) primitive data type B) abstract data type C) combination of boolean D) None of the above

Last Answer : B) abstract data type

Description : Which of the following methods belong to the string class? A) length( ) B) compare To ( ) C) equals ( ) D) All of them

Last Answer : D) All of them

Description : Which of the following methods belong to the string class? A) length( ) B) compare To ( ) C) equals ( ) D) All of them

Last Answer : D) All of them

Description : The class string belongs to ................... package. A) java.awt B) java.lang C) java.applet D) java.string

Last Answer : B) java.lang

Description : What would happen if "String[]args" is not included as argument in the main method. A) No error B) Compilation error C) Program won't run D) Program exit

Last Answer : C) Program won't run