Вы находитесь на странице: 1из 4

1. If a 4inch cube is painted on all the sides.

If it is cut into 1 inch cubes, how many cubes are not painted at all. 2. What is the value of (0.75*0.75*.075-0.001) / (0.75*.75-0.075+0.01) a)0.845 b)2.45 c)0.75 d)1 ans a 3. Abode means a) b)dwelling ans b 4. Ovation a)applause b)guesture c) d) ans a 6. If body: helmet:: finger:? a)nail b)glove c)cannot be determined d) 7. Find if any error in the code main() { int i=1; for(;;) { printf("%d",i++); if (i>10) break; } } a)two semicolon b)for should be replaced by a while loop c)complilation error d)no error d 8. when is index of a table used a)when table is less range of values b)when table is used frequently c) when the table is small d)when we use join statement with select and where clause d 9. What is the output of the following main() { int i=-3, j=2, m, k=0; m=++i && ++j ++k printf("%d %d %d %d", i, j, m, k); } a)-2 3 1 1 b) -2 3 0 1 c) -3 2 1 1 d)2 -3 0 1 a 10. What is the output of the program void main()

{ char s[]="oracle is the best"; char t[40]; char *ss,*tt; while(*tt++=*ss++); printf("%s",t); getch(); } // A. oracle is the best // B. Core dump // c. Error Message // D. Goes into infinite loop Ans: B. core dump (Garbage value) 11. What is the output of the program void main() { int j[10]={9,7,5,3,1,2,4,6,9}; int i=1; clrscr(); for(;i<9;i++) printf("%d ",--j[i++]); getch(); } // A. 6,2,1,5 // B. 6,2,1,5,7 // c. Error Message // D. core dump Ans: A. 6,2,1,5 12. Identify the pseudocolumns a. b. c. d. rowid sysdate rowval dual

13. select deptno, count(empno) from emp where count(empno)>=5 group by deptno; identify the line no which contains the error a. b. c. d. 1 2 3 1,3

14. choose the group function that can be used with any data type a. b. c. d. a sum() min() avg() all

15. How many mashes are there in 1 square meter of wire gauge if each mesh is 8m m long and 5mm wide ? (A) 2500

(B) 25000 (C) 250 (D) 250000 Area = length x width 1 meter = 1000 mm 1 square meter = 1000mm x 1000mm Mult iply 1000 x 1000 to find area in square mm. Multiply 8mm x 5mm to find area of each mesh. Divide that answer into previous answer to find # of meshes. Duane B ryant 16. x% of y is y% of ? (A) (B) (C) (D) x/y 2y x can't be determined

17. Which of the following is not correct about an Exception ? a] b] c] d] Raised automatically / Explicitly in response to an ORACLE_ERROR An exception will be raised when an error occurs in that block Process terminates after completion of error sequence. A Procedure or Sequence of statements may be processed.

Ans : C 18. Which of the following is not correct about User_Defined Exceptions ? a] b] c] d] Must be declared Must be raised explicitly Raised automatically in response to an Oracle error None of the above

Ans : C 19. SUBSTR(SQUARE ANS ALWAYS WORK HARD,14,6) will return a] ALWAY b} S ALWA c] ALWAYS Ans : C 20. REPLACE('JACK AND JUE','J','BL') will return a] b] c] d] JACK AND BLUE BLACK AND JACK BLACK AND BLUE None of the above

Ans : C (original strng,searchd strng,replace strng)

A cube is painted green on all the sides. it is then cut into 64 cubes of equal size. how many of smaller cubes are painted on 1 side? Cube root of 64 is 4 therefore cube is 4 x 4 x 4. Each side of the cube has 16 v isible small cube faces, 4 of which are corners (3 green sides) and 8 more are e

dges (2 green sides), so there are only four small cubes with one green face on each of the six sides of the large cube. Your answer is therefore 24.

A solid cube of 4 inches has been painted red, green and black on the pairs of opposite faces. It has then been cut into one inch cubes. Following questions relate to the smaller one inch cubes. 1.How many cubes have only one face painted? (1) 8 (2) 16 (3) 24 (4) 32 2. How many cubes have only two faces painted? (1) 0 (2) 16 (3) 24 (4) 32 3. How many cubes have only four faces painted? (1) 0 (2) 8 (3) 12 (4) 16 4. How many cubes have no faces painted? (1) 0 (2) 8 (3) 16 (4) 24 How to solve this 1) 24 2) 24 (since the other two sides which has 8 cubes painted two sides 16+8 so the correct answer is 24 which is correct when we substitue the formula 12*(n-2)=> 12*(4-2)=24) 3) 0 4) 8

Вам также может понравиться