# DataMatrics Java Questions: CMC Sample Test Paper

Examrace Placement Series prepares you for the toughest placement exams to top companies.

1. There are six steps that lead from the first to the second floor. No two people can be on the same step. Mr A is two steps below Mr C Mr B is a step next to Mr D Only one step is vacant (No one standing on that step) Denote the first step by step 1 and second step by step 2 etc. If Mr A is on the first step, Which of the following is true?

1. Mr B is on the second step

2. Mr C is on the fourth step.

3. A person Mr E, could be on the third step

4. Mr D is on heigher step than Mr C

Ans: (D)

2. If Mr E was on the third step & Mr B was on a higher step than Mr E which step must be vacant

1. step 1

2. step 2

3. step 4

4. step 5

5. step 6

Ans: (A)

3. If Mr B was on step 1, which step could A be on?

1. 2&e only

2. 3&5 only

3. 3&4 only

4. 4&5 only

5. 2&4 only

Ans: (C)

4. If there were two steps between the step that A was standing and the step that B was standing on, and A was on a higher step than D, A must be on step

1. 2

2. 3

3. 4

4. 5

5. 6

Ans: (C)

5. Which of the following is false

1. B&D can be both on odd-numbered steps in one configuration

2. In a particular configuration A and C must either both an odd numbered steps or both an even-numbered steps

3. A person E can be on a step next to the vacant step.

Which is correct?

1. i only

2. ii only

3. iii only

Ans: (C)

6. Swimmers problem, six swimmers A B C D E F compete in a race. There are no ties. The out comes are as follows.

1. B does not win.

2. Only two swimmers seperate E & D

3. A is behind D & E

4. B is ahead of E, wiht one swimmer intervening

5. F is a head of D

who is fifth

1. A

2. B

3. C

4. D

5. E

Ans: (E)

7. How many swimmers seperate A and F?

1. 1

2. 2

3. 3

4. 4

5. not deteraminable from the given info.

Ans: (D)

8. The swimmer between C & E is

1. none

2. F

3. D

4. B

5. A

Ans: (A)

9. If the end of the race, swimmer D is disqualified by the Judges then swimmer B finishes in which place

1. 1

2. 2

3. 3

4. 4

5. 5

Ans: (B)

10. Chimney problem Five houses lettered A, B, C, D, & E are built in a row next to each other. The houses are lined up in the order A, B, C, D, & E. Each of the five houses has a coloured chimney. The roof and chimney of each house must be painted as follows.

1. The roof must be painted either green, red, or yellow.

2. The chimney must be painted either white, black, or red.

3. No house may have the same color chimney as the color of roof.

4. No house may use any of the same colors that the every next house uses.

5. House E has a green roof.

6. House B has a red roof and a black chimney

Which of the following is true?

1. At least two houses have black chimney.

2. At least two houses have red roofs.

3. At least two houses have white chimneys

4. At least two houses have green roofs

5. At least two houses have yellow roofs

Ans: (C)

11. Which must be false?

1. House A has a yellow roof

2. House A & C have different colour chimney

3. House D has a black chimney

4. House E has a white chmney

5. House B&D have the same color roof.

Ans: (B)

12. If house C has a yellow roof. Which must be true.

1. House E has a white chimney

2. House E has a balck chimney

3. House E has a red chimney

4. House D has a red chimney

5. House C has a balck chimney

Ans: (A)

13. Which possible combinations of roof & chimney can house

1. A red roof 7 a black chimney

2. A yellow roof & a red chimney

3. A yellow roof & a black chimney

Which is correct?

1. I only

2. II only

3. III only

4. I & II only

5. I&II&III

Ans (E);

## Oracle Test

• What is the maximum total number of green roofs for houses Ans: (C)
• There are 5 red shoes, 4 green shoes. If one drasw randomly a shoe what is the probability of getting redshoe is 5c1/9c1
• What is the selling price of a car? cost of car is Rs. 60 & profit 10% profit over selling price Ans: Rs. 66/-
• ⅓ of girls, ½ of boys go to canteen. What factor and total number of clasmates go to canteen. Ans: Cannot be determined.
• price of a product is reduced by 30%. What percentage should be increased to make it 100% Ans: 42.857%
• There is a square of side 6cm. A circle is inscribed inside the square. Find the ratio of the area of circle to square. r = 3 circle/square = 11/14
• Two candles of equal lengths and of different thickness are there. The thicker one will last of six hours. The thinner 2 hours less than the thicker one. Ramesh light the two candles at the same time. When he went to bed he saw the thicker one is twice the length of the thinner one. For how long did Ramesh lit two candles. Ans: 3 hours.
• M/N = 6/5 3M + 2N =? Ans: Cannot be determined
• p/q = 5/4 2p + q =? cannot determined.
• If PQRST is a parallelogram what it the ratio of triangle PQS & parallelogram PQRST Ans: 1: 2
• cost of an item is Rs. 12.60 7 profit is 10% over selling price what is the selling price Ans: Rs. 13.86/-
• There are 6 red shoes & 4 green shoes. If two of red shoes are drawn what is the probability of getting red shoesAns: 6c2/10c2
• 15 lts of water containing 20% alcohol, then added 5 lts of water. What is % alcohol. Ans: 15%
• A worker pay 20/-day, he works 1, ⅓ ⅔ ⅛ ¾ in a week. What is the total amount paid for that worker Ans: 57.50
• The value of x is between 0 & 1 which is the larger? Ans: 1/x
• What are the difference b/w candidate key, primary key and unique key?
• What is difference b/w pre query and post query?
• How many number of columns can be created in a single table.
• What is meant by ROWID? Why we need it?
• What is transaction?
• Difference b/w function, procedure?
• Which one is the best way to find out the number of rows in a table, state by following count (1), count ( * ), count (rowed)
• One table is given and questions based on this table.
• Write query to delete a single column in a table.
• Write query to add one more column in a existing table.
• Write query to delete only 2 duplicate records in a table. But the table they have given contains 3 duplicate records. How to do it.
• Some SELECT statements queries they asked like using group by, ordered by, where etc.