Zensar Tech
Zensar Tech
Zensar Tech
1. Which command will delete all data from a table and will not write to the rollback segment?
(A) DROP
(B) DELETE
(C) CASCADE
(D) TRUNCATE
https://www.freshersnow.com/
(A) Column
(B) 1966_Invoices
(C) Catch_#22
(D) #Invoices
3. Which character function can be used to return a specified portion of a character string?
https://www.freshersnow.com/
(A) INSTR
(B) SUBSTRING
(C) SUBSTR
(D) POS
main()
https://www.freshersnow.com/
int i,j=2;
if(i%j !=0)
j=5;
printf(?%d?,j);
a)when i is even
b)odd
c)prime
d) for all
https://www.freshersnow.com/
6. which sorting also will use to sort {1,2,3,4,5} ?
Main()
Printf(?%c%c%c%c?,p[i],i[p],(*p+1),*(p+1));
https://www.freshersnow.com/
9. Find the output?
printf(?%C?,++(p[4]));
char k=?a?;
p[1]=k;
printf(?%s?,p);
https://www.freshersnow.com/
11. What is the output of the program?
main(){
extern int i;
i=5;
printf(?%d?,i);
https://www.freshersnow.com/
12. What is the output of the program
#include<stdio.h>
#include<conio.h>
void main()
int i=1*4/3-27%3^2+100*0.5-(4>3?1:2);
clrscr();
printf("%d",i);
getch();
A. 49
B. compile error
https://www.freshersnow.com/
C. 51
D. 48
Ans: B
main()
int x=5, y;
y= x*x++ * ++x ;
// print x and y
https://www.freshersnow.com/
14.what will be output of the above programme?
.int a=1.1
float b=1.1
if (a==b)
else
https://www.freshersnow.com/
15.what is the priority level of (),++,/,(),/,++ 2.++.(),/
ans-1
c. no reference to class
https://www.freshersnow.com/
d. ??
{ friend class b }
https://www.freshersnow.com/
#include
main()
a. compile error
b. 4
c. 1
d. 0
https://www.freshersnow.com/
21. #define FILENAME(extension) test_##extension, how will it print FILENAME(back)
a. test_back
b. test_#back
c. test_##back
d. ??
a. Hello world
https://www.freshersnow.com/
b. hello world
c. H
d. compile error
A) FTP
B)TELNET
C)TCP
https://www.freshersnow.com/
21. Find the output ?
main(){
x= x++ + y++;
y = ++x + ++y;
printf(?%d %d?,x,y);
a. NULL
https://www.freshersnow.com/
b. 0
c. 1
d. 0 or 1
23. calculating the no of bits required for the error detection & the error correction for the given
codeword set.
codeword a:
A)0000
B)0001
D)0011
C)1111
codeword b:
101111
https://www.freshersnow.com/
.
110101
a ) C++
b) Java
c) Eiffel
Ans: D
https://www.freshersnow.com/
25.Which of the following is/are storage class
a) Automatic
b) Static
c) Allocated
D) All of above
Ans: D
https://www.freshersnow.com/