| 1. What does the following program print? #include <stio.h> int sum,count; void main(void) {< BR> for(count=5;sum+=--count;) printf("%d",sum); } a. The pgm goes to an infinite loop b. Prints 4791010974 c. Prints 4791001974 d. Prints 5802112085 e. Not sure 2. What is the output of the following program? #include <stdio.h> void main(void) { int i;< BR> for(i=2;i<=7;i++) printf("%5d",fno()); } fno() { staticintf1=1,f2=1,f3; return(f3=f1+f2,f1=f2,f2=f3); } a. produce syntax errors b. 2 3 5 8 13 21 will be displayed c. 2 2 2 2 2 2 will be displayed d. none of the above e. Not sure 3. What is the output of the following program? #include <stdio.h> void main (void) { int x = 0x1234; int y = 0x5678; x = x & 0x5678; y = y | 0x1234; x = x^y; printf("%x\t",x); x = x | 0x5678; y = y & 0x1234; y = y^x; printf("%x\t",y); } a. bbb3 bbb7 b. bbb7 bbb3 c. 444c 4448 d. 4448 444c e. Not sure 4. What does the following program print? #include <stdio.h> void main (void) { int x; x = 0; if (x=0) printf ("Value of x is 0"); else printf ("Value of x is not 0"); } a. print value of x is 0 b. print value of x is not 0 c. does not print anything on the screen d. there is a syntax error in the if statement e. Not sure 5. What is the output of the following program? #include <stdio.h> #include <string.h> int foo(char *); void main (void) { char arr[100] = {"Welcome to Mistral"}; foo (arr); } foo (char *x) { printf ("%d\t",strlen (x)); printf ("%d\t",sizeof(x)); return0; } a. 100 100 b. 18 100 c. 18 18 d. 18 2 e. Not sure 6. What is the output of the following program? #include <stdio.h> display() { printf ("\n Hello World"); return 0; } void main (void) { int (* func_ptr) (); func_ptr = display; printf ("\n %u",func_ptr); (* func_ptr) (); } a. it prints the address of the function display and prints Hello World on the screen b. it prints Hello World two times on the screen c. it prints only the address of the fuction display on the screen d. there is an error in the program e. Not sure 7. What is the output of the following program? #include <stdio.h> void main (void) { int i = 0; char ch = 'A'; do putchar (ch); while(i++ < 5 || ++ch <= 'F'); } a. ABCDEF will be displayed b. AAAAAABCDEF will displayed c. character 'A' will be displayed infinitely d. none e. Not sure 8. What is the output of the following program? #include <stdio.h> #define sum (a,b,c) a+b+c #define avg (a,b,c) sum(a,b,c)/3 #define geq (a,b,c) avg(a,b,c) >= 60 #define lee (a,b,c) avg(a,b,c) <= 60 #define des (a,b,c,d) (d==1?geq(a,b,c):lee(a,b,c)) void main (void) { int num = 70; char ch = '0'; float f = 2.0; if des(num,ch,f,0) puts ("lee.."); else puts("geq..."); } a. syntax error b. geq... will be displayed c. lee.. will be displayed d. none e. Not sure 9. Which of the following statement is correct? a. sizeof('*') is equal to sizeof(int) b. sizeof('*') is equal to sizeof(char) c. sizeof('*') is equal to sizeof(double) d. none e. Not sure 10. What does the following program print? #include <stdio.h> char *rev(int val); void main(void) { extern char dec[]; printf ("%c", *rev); } char *rev (int val) { char dec[]="abcde"; return dec; } a. prints abcde b. prints the address of the array dec c. prints garbage, address of the local variable should not returned d. print a e. Not sure 11. What does the following program print? void main(void) { int i; static int k; if(k=='0') printf("one"); else if(k== 48) printf("two"); else printf("three"); } a. prints one b. prints two c. prints three d. prints one three e. Not sure 12. What does the following program print? #include<stdio.h> void main(void) { enum sub { chemistry, maths, physics }; struct result { char name[30]; enum sub sc; }; struct result my_res; strcpy (my_res.name,"Patrick"); my_res.sc=physics; printf("name: %s\n",my_res.name); printf("pass in subject: %d\n",my_res.sc); } a. name: Patrick b. name: Patrick c. name: Patrick pass in subject: 2 pass in subject:3 pass in subject:0 d. gives compilation errors e. Not sure 13. What does printf("%s",_FILE_); and printf("%d",_LINE_); do? a. the first printf prints the name of the file and the second printf prints the line no: of the second printf in the file b. _FILE_ and _LINE_ are not valid parameters to printf function c. linker errors will be generated d. compiler errors will be generated e. Not sure 14. What is the output of the following program? #include <stdio.h> void swap (int x, int y, int t) { t = x; x = y; y = t; printf ("x inside swap: %d\t y inside swap : %d\n",x,y); } void main(void) { int x; int y; int t; x = 99; y = 100; swap (x,y,t); printf ("x inside main:%d\t y inside main: %d",x,y); } a. x inside swap : 100 y inside swap : 99 x inside main : 100 y inside main : 99 b. x inside swap : 100 y inside swap : 99 x inside main : 99 y inside main : 100 c. x inside swap : 99 y inside swap : 100 x inside main : 99 y inside main : 100 d. x inside swap : 99 y inside swap : 100 x inside main : 100 y inside main : 99 e. Not sure 15. Consider the following statements: i) " while loop " is top tested loop ii) " for loop " is bottom tested loop iii) " do - while loop" is top tested loop iv) " while loop" and "do - while loop " are top tested loops. Which among the above statements are false? a. i only b. i & ii c. iii & i d. ii, iii & iv e. Not sure 16. Consider the following piece of code: char *p = "MISTRAL"; printf ("%c\t", *(++p)); p -=1; printf ("%c\t", *(p++)); Now, what does the two printf's display? a. M M b. M I c. I M d. M S e. Not sure 17. What does the following program print? #include <stdio.h> struct my_struct { int p:1; int q:1; int r:6; int s:2; }; struct my_struct bigstruct; struct my_struct1 { char m:1; }; struct my_struct1 small struct; void main (void) { printf ("%d %d\n",sizeof (bigstruct),sizeof (smallstruct)); } a. 10 1 b. 2 2 c. 2 1 d. 1 1 e. Not sure 18. Consider the following piece of code: FILE *fp; fp = fopen("myfile.dat","r"); Now fp points to a. the first character in the file. b. a structure which contains a char pointer which points to the first character in the file. c. the name of the file. d. none of the above. e. Not sure. 19. What does the following program print? #include <stdio.h> #define SQR (x) (x*x) void main(void) { int a,b=3; a = SQR (b+2); } a. 25 b. 11 c. 17 d. 21 e. Not sure. 20. What does the declaration do? int (*mist) (void *, void *); a. declares mist as a function that takes two void * arguments and returns a pointer to an int. b. declares mist as a pointer to a function that has two void * arguments and returns an int. c. declares mist as a function that takes two void * arguments and returns an int. d. there is a syntax error in the declaration. e. Not sure. 21. What does the following program print? #include <stdio.h> void main (void) { int mat [5][5],i,j; int *p; p = & mat [0][0]; for (i=0;i<5;i++) for (j=0;j<5;j++) mat[i][j] = i+j; printf ("%d\t", sizeof(mat)); < BR> i=4;j=5; printf( "%d", *(p+i+j)); } a. 25 9 b. 25 5 c. 50 9 d. 50 5 e. Not sure 22. What is the output of the following program? #include <stdio.h> void main (void) { short x = 0x3333; short y = 0x4321; long z = x; z = z << 16; z = z | y; printf("%1x\t",z); z = y; z = z >> 16; z = z | x; printf("%1x\t",z); z = x; y = x && y; z = y; printf("%1x\t",z); } a. 43213333 3333 1 b. 33334321 4321 4321 c. 33334321 3333 1 d. 43213333 4321 4321 e. Not sure 23. What is the output of the following program? #include <stdio.h> void main (void) { char *p = "Bangalore"; #if 0 printf ("%s", p); #endif } a. syntax error #if cannot be used inside main function b. prints Bangalore on the screen c. does not print anything on the screen d. program gives an error "undefined symbol if" e. Not sure 24. If x is declared as an integer, y is declared as float, consider the following expression: y = *(float *)&x; Which one of the following statments is true? a. the program containing the expression produces compilation errors; b. the program containing the expression produces runtime errors; c. the program containing the expression compiles and runs without any errors; d. none of the above e. Not sure 25. What is the return type of calloc function? a. int * b. void * c. no return type: return type is void d. int e. Not sure |
MISTRAL
MPHASIS
1.In the command scanf, h is used for
Ans. Short int
2.A process is defined as
Ans. Program in execution
3.A thread is
Ans. Detachable unit of executable code)
4.What is the advantage of Win NT over Win 95
Ans. Robust and secure
5.How is memory management done in Win95
Ans. Through paging and segmentation
6.What is meant by polymorphism
Ans. Redfinition of a base class method in a derived class
7.What is the essential feature of inheritance
Ans. All properties of existing class are derived
8.What does the protocol FTP do
Ans. Transfer a file b/w stations with user authentification
9.In the transport layer ,TCP is what type of protocol
Ans. Connection oriented
10.Why is a gateway used
Ans. To connect incompatible networks
11.How is linked list implemented
Ans. By referential structures
12.What method is used in Win95 in multitasking
Ans. Non preemptive check
13.What is meant by functional dependency
14.What is a semaphore
Ans. A method synchronization of multiple processes
15.What is the precedence order from high to low ,of the symbols ( ) ++ /
Ans.( ) , ++, /
16.Preorder of A*(B+C)/D-G
Ans.*+ABC/-DG
18. B-tree (failure nodes at same level)
19. Dense index (index record appers for every search -key in file)
20.What is the efficiency of merge sort
Ans. O(n log n)
21.A program on swaping ( 10,5 )was given (candidate cannot recollect)
22.In which layer are routers used
Ans.In network layer
23.In which layer are packets formed ( in network layer )
24.heap ( priority queue )
25.copy constructor ( constant reference )
26.Which of the following sorting algorithem has average sorting behavior --
Bubble sort,merge sort,heap sort,exchange sort
Ans. Heap sort
27.In binary search tree which traversal is used for getting ascending order values--Inorder ,post order,preorder
Ans.Inorder
28.What are device drivers used for
Ans.To provide software for enabling the hardware
29. Irrevalent to unix command ( getty)
30.What is fork command in unix
Ans. System call used to create process
31.What is make command in unix
Ans. Used forcreation of more than one file
32.In unix .profile contains
Ans. Start up program
33.In unix echo is used for ( answer C)
34.In unix 'ls 'stores contents in
Ans.inode block
QUANTITATIVE SECTION
1.In a class composed of x girls and y boys what part of the class is composed of girls
A.y/(x + y)
B.x/xy
C.x/(x + y)
D.y/xy
Ans.C
2.What is the maximum number of half-pint bottles of cream that can be filled with a 4-gallon can of cream(2 pt.=1 qt. and 4 qt.=1 gal)
A.16
B.24
C.30
D.64
Ans.D
3.If the operation,^ is defined by the equation x ^ y = 2x + y,what is the value of a in 2 ^ a = a ^ 3
A.0
B.1
C.-1
D.4
Ans.B
4.A coffee shop blends 2 kinds of coffee,putting in 2 parts of a 33p. a gm. grade to 1 part of a 24p. a gm.If the mixture is changed to 1 part of the 33p. a gm. to 2 parts of the less expensive grade,how much will the shop save in blending 100 gms.
A.Rs.90
B.Rs.1.00
C.Rs.3.00
D.Rs.8.00
Ans.C
5.There are 200 questions on a 3 hr examination.Among these questions are 50 mathematics problems.It is suggested that twice as much time be spent on each maths problem as for each other question.How many minutes should be spent on mathematics problems
A.36
B.72
C.60
D.100
Ans.B
6.In a group of 15,7 have studied Latin, 8 have studied Greek, and 3 have not studied either.How many of these studied both Latin and Greek
A.0
B.3
C.4
D.5
Ans.B
7.If 13 = 13w/(1-w) ,then (2w)2 =
A.1/4
B.1/2
C.1
D.2
Ans.C
8. If a and b are positive integers and (a-b)/3.5 = 4/7, then
(A) b < a
(B) b > a
(C) b = a
(D) b >= a
Ans. A
9. In june a baseball team that played 60 games had won 30% of its game played. After a phenomenal winning streak this team raised its average to 50% .How many games must the team have won in a row to attain this average?
A. 12
B. 20
C. 24
D. 30
Ans. C
10. M men agree to purchase a gift for Rs. D. If three men drop out how much more will each have to contribute towards the purchase of the gift/
A. D/(M-3)
B. MD/3
C. M/(D-3)
D. 3D/(M2-3M)
Ans. D
11. A company contracts to paint 3 houses. Mr.Brown can paint a house in 6 days while Mr.Black would take 8 days and Mr.Blue 12 days. After 8 days Mr.Brown goes on vacation and Mr. Black begins to work for a period of 6 days. How many days will it take Mr.Blue to complete the contract?
A. 7
B. 8
C. 11
D. 12
Ans.C
12. 2 hours after a freight train leaves Delhi a passenger train leaves the same station travelling in the same direction at an average speed of 16 km/hr. After travelling 4 hrs the passenger train overtakes the freight train. The average speed of the freight train was?
A. 30
B. 40
C.58
D. 60
Ans. B
13. If 9x-3y=12 and 3x-5y=7 then 6x-2y = ?
A.-5
B. 4
C. 2
D. 8
Ans. D
ANALYTICAL ABILITY
1. The office staff of XYZ corporation presently consists of three bookeepers--A, B, C and 5 secretaries D, E, F, G, H. The management is planning to open a new office in another city using 2 bookeepers and 3 secretaries of the present staff . To do so they plan to seperate certain individuals who don't function well together. The following guidelines were established to set up the new office
I. Bookeepers A and C are constantly finding fault with one another and should not be sent together to the new office as a team
II. C and E function well alone but not as a team , they should be seperated
III. D and G have not been on speaking terms and shouldn't go together
IV Since D and F have been competing for promotion they shouldn't be a team
1.If A is to be moved as one of the bookeepers,which of the following cannot be a possible working unit.
A.ABDEH
B.ABDGH
C.ABEFH
D.ABEGH
Ans.B
2.If C and F are moved to the new office,how many combinations are possible
A.1
B.2
C.3
D.4
Ans.A
3.If C is sent to the new office,which member of the staff cannot go with C
A.B
B.D
C.F
D.G
Ans.B
4.Under the guidelines developed,which of the following must go to the new office
A.B
B.D
C.E
D.G
Ans.A
5.If D goes to the new office,which of the following is/are true
I.C cannot go
II.A cannot go
III.H must also go
A.I only
B.II only
C.I and II only
D.I and III only
Ans.D
2.After months of talent searching for an administrative assistant to the president of the college the field of applicants has been narrowed down to 5--A, B, C, D, E .It was announced that the finalist would be chosen after a series of all-day group personal interviews were held.The examining committee agreed upon the following procedure
I.The interviews will be held once a week
II.3 candidates will appear at any all-day interview session
III.Each candidate will appear at least once
IV.If it becomes necessary to call applicants for additonal interviews, no more 1 such applicant should be asked to appear the next week
V.Because of a detail in the written applications,it was agreed that whenever candidate B appears, A should also be present.
VI.Because of travel difficulties it was agreed that C will appear for only 1 interview.
1.At the first interview the following candidates appear A,B,D.Which of the follwing combinations can be called for the interview to be held next week.
A.BCD
B.CDE
C.ABE
D.ABC
Ans.B
2.Which of the following is a possible sequence of combinations for interviews in 2 successive weeks
A.ABC;BDE
B.ABD;ABE
C.ADE;ABC
D.BDE;ACD
Ans.C
3.If A ,B and D appear for the interview and D is called for additional interview the following week,which 2 candidates may be asked to appear with D?
I. A
II B
III.C
IV.E
A.I and II
B.I and III only
C.II and III only
D.III and IV only
Ans.D
4.Which of the following correctly state(s) the procedure followed by the search committee
I.After the second interview all applicants have appeared at least once
II.The committee sees each applicant a second time
III.If a third session,it is possible for all applicants to appear at least twice
A.I only
B.II only
C.III only
D.Both I and II
Ans.A
3. A certain city is served by subway lines A,B and C and numbers 1 2 and 3
When it snows , morning service on B is delayed
When it rains or snows , service on A, 2 and 3 are delayed both in the morning and afternoon
When temp. falls below 30 degrees farenheit afternoon service is cancelled in either the A line or the 3 line,
but not both.
When the temperature rises over 90 degrees farenheit, the afternoon service is cancelled in either the line C or the
3 line but not both.
When the service on the A line is delayed or cancelled, service on the C line which connects the A line, is delayed.
When service on the 3 line is cancelled, service on the B line which connects the 3 line is delayed.
Q1. On Jan 10th, with the temperature at 15 degree farenheit, it snows all day. On how many lines will service be
affected, including both morning and afternoon.
(A) 2
(B) 3
(C) 4
(D) 5
Ans. D
Q2. On Aug 15th with the temperature at 97 degrees farenheit it begins to rain at 1 PM. What is the minimum number
of lines on which service will be affected?
(A) 2
(B) 3
(C) 4
(D) 5
Ans. C
Q3. On which of the following occasions would service be on the greatest number of lines disrupted.
(A) A snowy afternoon with the temperature at 45 degree farenheit
(B) A snowy morning with the temperature at 45 degree farenheit
(C) A rainy afternoon with the temperature at 45 degree farenheit
(D) A rainy afternoon with the temperature at 95 degree farenheit
Ans. B
4. In a certain society, there are two marriage groups, red and brown. No marriage is permitted within a group. On marriage, males become part of their wives groups; women remain in their own group. Children belong to the same group as their parents. Widowers and divorced males revert to the group of their birth. Marriage to more than one person at the same time and marriage to a direct descendant are forbidden
Q1. A brown female could have had
I. A grandfather born Red
II. A grandmother born Red
III Two grandfathers born Brown
(A) I only
(B) III only
(C) I, II and III
(D) I and II only
Ans. D
Q2. A male born into the brown group may have
(A) An uncle in either group
(B) A brown daughter
(C) A brown son
(D) A son-in-law born into red group
Ans. A
Q3. Which of the following is not permitted under the rules as stated.
(A) A brown male marrying his father's sister
(B) A red female marrying her mother's brother
(C) A widower marrying his wife's sister
(D) A widow marrying her divorced daughter's ex-husband
Ans. B
Q4. If widowers and divorced males retained their group they had upon marrying which of the following would be permissible ( Assume that no previous marriage occurred)
(A) A woman marrying her dead sister's husband
(B) A woman marrying her divorced daughter's ex-husband
(C) A widower marrying his brother's daughter
(D) A woman marrying her mother's brother who is a widower.
Ans. D
5. I. All G's are H's
II. All G's are J's or K's
III All J's and K's are G's
IV All L's are K's
V All N's are M's
VI No M's are G's
Q1. If no P's are K's which of the following must be true
(A) No P is a G
(B) No P is an H
(C) If any P is an H it is a G
(D) If any P is a G it is a J
Ans. D
Q2. Which of the following can be logically deduced from the stated conditions
(A) No M's are H's
(B) No H's are M's
(C) Some M's are H's
(D) No N's are G's
Ans. D
Q3. Which of the following is inconsistent with one or more conditions
(A) All H's are G's
(B) All H's are M's
(C) Some H's are both M's and G's
(D) No M's are H's
Ans. C
Q4. The statement "No L's are J's" is
I. Logically deducible from the conditions stated
II Consistent with but not deducible from the conditions stated
III. Deducible from the stated conditions together with the additional statements "No J's are K's"
(A) I only
(B) II only
(C) III only
(D) II and III only
Ans. D
NOVELL NETWARE
the paper consists of three sections. 1. Aptitude 15 questions 20 min Section 1 Question 1 to 5 have to be answered on the basis of the information On
Each 1. (a) Ans: (c)
(a) 0 Ans: (d)
(a) 0 Ans: (a)
(a) Sunday Ans: (b)
(a) Tuesday and Ans: (a) Question 7 to 10 have to be answered on the basis of the The
a) Ans. (a)
a) L Ans. (b)
a) L Ans. (e)
a) L Ans. (e)
* 5
Section 1. a) Ans: (d)
a) Ans: (d)
a) Ans: (c)
a) Ans: (b)
a) Ans: (b)
a)
a)
a)
a)
a)
a) (See O.S.Concepts by
a) Ans: (c)
a)
a)
a)
a)
a) Ans: (a)
a) Ans : (a) 19. Ans : DMA
a) Ans: d
int
3. int Explain the variable assignment
4.
5. void main() What
6. #define scanf "%s is a What
7. {char *p="abc";
8. printf("%u",-1)
9. #define void int What
10. Ans. 8
|
NUCLEUS SOFTWARE TEST PAPER
Aptitude Section
Q. 5 men or 8 women do equal amount of work in a day. a job requires 3 men and 5 women to finish the job in 10 days how many woman are required to finish the job in 14 days.
a) 10
b) 7
c) 6
d) 12
Ans 7
Q. A simple interest amount of rs 5000 for six month is rs 200. what is the anual rate of interest?
a) 10%
b) 6%
c) 8%
d) 9%
Ans 8%
Q. In objective test a correct ans score 4 marks and on a wrong ans 2 marks are ---. a student score 480 marks from 150 question. how many ans were correct?
a) 120
b) 130
c) 110
d) 150
Ans130.
Q. An artical sold at amount of 50% the net sale price is rs 425 .what is the list price of the artical?
a) 500
b) 488
c) 480
d) 510
Ans 500
Technical Section
Q. You are creating a Index on EMPNO column in the EMPLOYEE table. Which statement will you use?
a) CREATE INdEX emp_empno_idx ON employee, empno;
b) CREATE INdEX emp_empno_idx FOR employee, empno;
c) CREATE INdEX emp_empno_idx ON employee(empno);
d) CREATE emp_empno_idx INdEX ON employee(empno);
Ans. c
Q. Which program construct must return a value?
a) Package
b) Function
c) Anonymous block
d) Stored Procedure
e) Application Procedure
Ans. b
Q. Which Statement would you use to remove the EMPLOYEE_Id_PK PRIMARY KEY constraint and all depending constraints fromthe EMPLOYEE table?
a) ALTER TABLE employee dROP PRIMARY KEY CASCAdE;
b) ALTER TABLE employee dELETE PRIMARY KEY CASCAdE;
c) MOdIFY TABLE employee dROP CONSTRAINT employee_id_pk CASCAdE;
d) ALTER TABLE employee dROP PRIMARY KEY employee_id_pk CASCAdE;
e) MOdIFY TABLE employee dELETE PRIMARY KEY employee_id_pk CASCAdE;
Ans. a
Q. Which three commands cause a transaction to end? (Chosse three)
a) ALTER
b) GRANT
c) DELETE
d) INSERT
e) UPdATE
f) ROLLBACK
Ans. a ,b ,f
Q. Under which circumstance should you create an index on a table?
a) The table is small.
b) The table is updated frequently.
c) A columns values are static and contain a narrow range of values
d) Two columns are consistently used in the WHERE clause join condition of SELECT
statements.
Ans.d
Q. What is the common standard naming convention of checkbox control?
a) CHB
b) CHK
c) CHX
d) CBX
Q. Which of the function returns a reference to an object provided by an ActiveX component.
a) createobject
b) getobjectname
c) createobjectx
d) getobject
Q. We have something like Global functions in JAVA, they are called as .....
a) class
b) package
c) file
d) include
Q. Which all OS supports Networking?
a) Windows 95
b) Linux
c) Windows 3.0
d) Unix
Q. Which of the following is not an RdBMS?
a) Ingres
b) Oracle
c) Unify
d) Clipper
Q. Shell function in VB is used for calling
a) Another Function
b) Another Procedure
c) Another Application
d) None
Q. The RdBMS which satisfies the most number of its Principle among the followings
a) MS SqlServer
b) Oracle 7.3
c) Informix
d) Sybase
Q. Normalization is considered to be complete when it is in
a) Second Form
b) Third Form
c) First Form
d) None
Q. Two databases can be connected with
a) Where Clause
b) creating link
c) using dbo.
d) Both B & C
Q. C++ is similar to that of C in following ways
a) C++ has classes
b) Supports Inheritance
c) File Handling
d) None
Q. Which of the following is not system file.
a) .ini
b) .sys
c) .com
d) None
Q. Following command is used to register any dll or ocx in registry of the system
a) regserver32
b) registersvr
c) regsrv32
d) regsvr32
Q. Which keyword is used to unregister any dll or ocx in registry of the system
a) -u
b) -r
c) -d
d) -x
Q. Which is not the most important & widely used form of Normalization ?
a) Boyce-Codd Normal Form
b) Second Form
c) Third Form
d) Royce-Codd Normal Form
Q. How can the word YES be stored in any array.
a)
array[1] = 'Y'
array[2] = 'E'
array[3] = 'S'
array[4] = '\0'
b)
array[0] = "Y"
array[1] = "E"
array[2] = "S"
array[3] = "\0"
c)
array[1] = "Y"
array[2] = "E"
array[3] = "S"
d)
array[0] = 'Y'
array[1] = 'E'
array[2] = 'S'
array[3] = '\0'
a) go
b) return
c) Begin & End
d) Commit Tran
Q. != is a ---------- operator.
a) relational
b) logical
c) String
d) arithmetic
Q. What was the first name given to Java Programming Language.
a) Oak - Java
b) Small Talk
c) Oak
d) None
Ans.a
Q. The syntax of Java is similar to that of
a) C
b) Small Talk
c) FORTRAN
d) C++
Q. Which of the following statement is true
Table in a database can have
a) One Non-Clustered Index and Many Clustered Indexes.
b) One Clustered Index and Many Non-Clustered Indexes.
c) One Index each of Clustered and Non-Clustered Index.
d) None
Q. Check the error in the following statement
Country[7] = 'CANADA'
a) A string terminator is not added to the string, when declared.
b) Country array should be of six
c) Canada should be specified in double quotes.
d) Country array should have the keyword char to ensure array type.
Q. An application updates table "A",which causes trigger T1 to fire. T1 updates table "B", which in turns fires trigger T2. T2 updates table "A", which causes trigger T1 to fire again. This is an example of
a) Indirect Recursive Trigger
b) direct Recursive Trigger
c) Multiple Trigger
d) Non Recursive Trigger
Q. Linda wants to obtain the nearest integer of a numeric expression for some calculation purpose. Which mathematical function will she use:
a) Round
b) ABS
c) About
d) None
Q. Alphanumeric constants are
a) used for arithmetic calculations
b) Used with double quotas
c) Of integer type or float type
d) Not used for arithmetic calculations
Q. Pseudocode is a
a) set of Instructions to perform a particular task
b) is a formalized graphic representation of program logic.
c) is a algorithm expressed in a simple language
d) Both A & C
Q. A company has closed down its advertisement dept and is now getting all advertisement done by an Ad-Agency. All 20 people working in the dept has quit the job. The dept to which an employee belonged was stored in the "cdept" attribute of "emp" table. Which of the following statement would be used to do the changes in the "emp" table
a) Alter Table
b) Drop Table
c) Delete Table
d) Truncate Table
Q. John wants to retrieve all records from students table who live in any city beginning with WAS . Which of the following statement is to be executed by him
a) Select * from students where city = 'WAS'
b) Select * from students where city = 'WAS%'
c) Select * from students where city in 'WAS'
d) Select * from students where city like 'WAS%'
Q. Why is a Modulo operator used?
a) It is used to determined the remainder, when an integer is divided by another.
b) It is used to calculate the percentage
c) It is used to determine the factorial of a number.
d) It is used as a relational operator.
Q. Consider the following program:
character cName[5] = 'great'
Numeric nNum1,nNum2 =0
For (nNum1 = 0;nNum1=>5;nNum1++)
{
if(cName[nNum1] == 'a'| cName[nNum1] != 'e'| cName[nNum1] = = 'i'| cName[nNum1] != 'o'| cName[nNum1] == 'u'|)
{
nNum2 ++
}
}
display nNum2
What does nNum2 display.
a) 2
b) 1
c) 5
d) 3
ORACLE
1. Three beauty |