1. Piggy backing is a technique for
a) Flow control
b) Sequence
c) Acknowledgement
d) retransmition
Ans. (c)
2. In OSI, terminal emulation is done in
(a) sessions layer
(b) application layer
(c) presentation layer
(d) transport layer
Ans: (b)
3.Bit parity check,when performed on a byte ,can
catch
a)odd number of errors
b)even number of errors
c)any number of errors
d)none of the above
Ans: (a)
4. In signed magnitude notation what is the minimum
value that can be represented with 8 bits
(a) -128
(b) -255
(c) -127
(d) 0
Ans: (c)
5. For 1 MB memory, the number of address lines
required,
(a)11
(b)16
(c)20
(d) 24
Ans. (c)
6.For a 25MHz processor , what is the time taken by
the instruction which needs 3 clock cycles,
(a)120 nano secs
(b)120 micro secs
(c)75 nano secs
(d)75 micro secs
Ans: (a)
7. Semaphore is used for
(a) synchronization
(b) dead-lock avoidence
(c) both a and b
(d) none
Ans. (c)
8. Which of the following involves context switch,
(a) system call
(b) priviliged instruction
(c) floating poitnt exception
(d) all the above
(e) none of the above
Ans: (a)
9.Virtual address are translated to physical
address by
(a)the process
(b)operating system
(c)MMU
(d)All of the above
(e) None of the above
10.convert the hexadecimal number 0xFEDB to the
octal
(a) 177333
ans: (a)
11. OLE is a mechanism
a)in UNIX for network communication
b)in INTERNET for communication between nodes
c)for communication between processes in a NT system
d)used as a network layer protocol in NT & Windows
systems
12. an internet IP address of a node
a)has to be unique only for the domain of the node
b)has to be unique in the node’s sub-network
c)has to be unique in the country in which the node
is present
d)none of the above
13. There is an employee table with key feilds as
employer no.data in every n’th row are needed for a
sample. Which of the following queries will get
required results.
a) select A employe no. from employe A , where
exists (select (max (emp_no)))from employe B
where A employe no. >= B employe having (count(*)
mod
n)=0
b) select employe no. from employe A, employe B
where A.employe no.>=B employ no.group by employe
no.having(count(*) mod n)=0 )
c) both a& b
d)none of the above
ans: (d)
14. Type duplicates of a row in a table customer
with
non unique key feild customer no. can use
a) delete from costomer where customer no. exists(
select distinct customer no. from customer having
count )
b) delete customer a where customer no. in (select
cust_no from customer b where a.cust_no=b.cust_no)
and
a.rowid>b.rowid
c) delete customer a where custermor no. in ( select
customer no. from customer a, customer b group by
a.cust_no
having (count(*)>1) and a.rowid>b.rowid);
d) none of the above
15.which of the following is a feature of the ANSI C
language and not present in Java?
a)forward referencing
b)variable length argument lists
c)volatile modifier
d)none of the above
ans: (b)
section 2 – C Programming
1.which of the following about the following two
declarations is true
i) int *F();
ii)int (*F)();
a)Both are identical
b)the first is a correct declaration and second is
wrong
c) the first declaration is a function returning a
pointer to an integer and the second is a pointer
to
a
function returning int
d)Both are different ways of declaring pointer to a
function
ans : (c)
2.what are the values printed by the following
program?
#define dprintf(expr) printf(#expr=%d\n”,expr)
main()
{
int x=7;
int y=3;
dprintf(x/y);
}
a)#2=2 b)expr=2 c)x/y=2 d)none
ans ( c)
3.which of the following is true of the following
program
main()
{
char *c;
int *ip;
c=(char *)malloc(100);
ip=(int *)c;
free(ip);
}
a)the code functions properly by releasing all the
memory allocated
b)results in compilation error as a pointer of
various
types cannot be equated
c)the program ties to free more memory than
allocated
and results in run time error
d) works well except when the machine runs low on
memory and malloc is unabel to allocate the memory
ans : (d)
4.output
main()
{
int I;
char *p;
i=0×89;
p=(char *)i;p++;
printf(“%x\n”p);
}
a)0×8c b)0×4566788A c)0×8A d)0×8B e)none
5.which of the following is not an ANSI c language
keyword?
a)volatile b)function c)default d)const e)void
ans; (b)
6.when an array is passed as parameter to a function
,which of the following statement is correct
a)the function can change values in the original
array
b)in c parameters are passed by value . the function
cannot change the original value in the array
c)it results in compilation error.Array cannot be
passed as a parameter to a function
d)results in runtime error when the function tries
to
access the elements in the array
7.the type of the controlling expression of a switch
statement cannot be of the type
a)int b)char c)short d)float e)none
ans (d)
8.value of (3^6)+(a ^a)=?
Ans :value=5
9. x= b>8?b<<3:b>4?b>>1:b;
ans: x=3
10.output:
main()
{
int n=2;
printf(“%d %d\n”++n,n*n);
}
a)3,6 b)3,4 c)2,4 d)cannot determine
Related posts:
