Tuesday, March 1

HP Interview Questions 2011 - Latest HP Interview Questions - HP Placement Paper



1. HP acquired this company in 2002. Which is the company
a) Compaq b) Dell c) option 3 d) Option4
Ans: a

2. What does 3G denote
a) 3rd generation mobile communication b) 3rd generation computer languages c) option 3 d) option4
Ans: a

3. An application program that is used by the users to get the inofrmation from the backend of some
application like databases:
a) application server b)proxy server c)database server d)option 4
Ans: database server

4. Which of the following is not true about the e-mail
a) It can be accessed by a client program using POP
b) It can be accessed by a client program using imap protocol
c) option 3
d) option 4
Ans: I don't remember the answer but first 2 are true.

5. Some quesion regarding the company and who developed it ( the thing to remember is that Apple
produce Macintosh computers).

c/c++ section: questions on c/c++, programs o/p etc.
1 main( )
{
unsigned int i=3; 
while( i >=0)
printf( "%d", i--);
}
how many times will the printf stmt be executed?
a)0 b)3 c)4 d)infinite
Ans: I think the answer is infinite, b'cos 'i' is an unsigned integer and it will not decrement below '0'
and hence end up in an infinite loop.(yes, i checked and it is getting stuck in an infinite loop)

2. main( )
{
int x,y, z;
x=2;
y=5;
z= x+++y;
printf("%d %d %d", x, y z);
}
a)3 5 7 b)option 2 c)option 3 d)option 4
Ans: a

3 # define swap(a,b) temp=a; a=b; b=temp;
main( )
{ 
int i, j, temp;
i=5;
j=10;
temp=0;
if( i > j)
swap( i, j );
printf( "%d %d %d", i, j, temp);
}
Ans: On compiling i got ans 10, 0, 0. I did not understand the concept. Please expalin this to me.

4. Java section: questions on java related stuff.
1) Java was initially code named as:
a)Oak b)green c)miller d)option4
Ans: Oak

5. What is not true about the following statements about java. 
a) it is compiled using javac compiler
b) the compiled files have .class extension.
c) such files cannot be transfered from one comp to another.
d) they use the java interpreter 
Ans: c

6. Why is the synchronize used?
a) to initialize multiple objects b)to lock an object c)option3 d)option 4
Ans: b (probably)

Section 1
1.Intel's first processor is
1)------2)4004 3) 80804)8086

2) Founder of Microsoft corporation
1) Bill Gates 2) Billgates and --------
3)Bill gates and Paul Allen4) Billgates and -------

3)Oddman out
1)Internet Explorer 2) Alt Vista3) Netscape Navigator 4)Opera

4)Which of the following is not a database
1)PLSQL2)MSSQL 3)MySQL4)Informix

5)Laura C--- (I don't remember exact spelling ) is CEO of
1)Oracle 2)DELL 3) Hp4)Intel
Ans) She is CEO of HP

6)'SUN' Microsystems SUN stands for
1)Simple Unified Network2)Solaris Unified Network3)-------------
4) None of the above.

Section 2

1) IRC stands for ans) Internet Relay chat

2)ICQ stands for ans)--------------------

3)The protocol used to translate Internet address to Network addressis
1)IP2)TCP3)ARP4)RARP

4)In some OS the option that the system provides to communicate with  other process is
1)IPC(Inter Process Communication)2)----3)-----4)-----

5)VPN stands for ans) Virtual private network.

6)The time taken to transfer data from one place to other place or process within specified time is
1)Throughput2)Latency time 3)Response time 4)----------

7)The time complexity for which of the following is O(n log n)
1) Radix sort 2)Quick sort3)Shell sort 4) Bubblesort.

8)Which of the following is used pass the packets between networks
1)--------2)Bridges3)Router4)Gateways


Section 3
1)Which of the following can be used to print % to the screen
1) printf("\%");2)printf("\\%"); 3)----- 4)------

2)how many times the loop is executed
main()
{
int i=3;
while(i>=0)
printf("%d",i--);
return(0);
}
1) 3 2)Infinite 3)0 4)2


3) what is the output
int 1=10;
printf("%d %d %d ",i,++i,i++);

1) 10 11 11 2)11 11 10 3) 10 11 10 4) None of the above

4)
x=2;
y=5;
z=x+++y;
printf("%d %d %d",x,y,z);
1)----------- 2)------- 3)--------- 4)---------

5)In c++,
1)------------------
2)------------------
3)you cannot Overload new operator for a class
4)----------------------

6) Void xyz(char a[10])
{
int i;
i=sizeof(a);
printf("%d",i);
}
1)10 2)can't say 3) 2 4)same as size of pointer.

7) Local Variables is stored in which part of the memory
1) register or heap 2)heap 3)register or stack 4)-----

8) which of the following can be shared by progams
1)Text Code
2)Data segment
3)heap memory
4)--------




1) barron?s GRE: page No. 396 Q:1-4, 12th edition. An office with 6 staffs. Brown, Black,White,Parker etc.
2) Q:37-39. page No.401, 12th edition pitcher, thrower, side arm bowling etc. But here names were changed to charan, hari Etc.

Quantitative :


1) SOME DISCOUNT PROBLEM
ANS:Rs.168.00

Paper 2

1. CBA+CCA=ACD given D=0, find B,C

2. Two cars(A & B)started to from two stations at the same time. Distance b/w the stations is 230 km. After 3 hours distance b/w them is 20 km. The speed of B increases by 10 km for every one hour. What is the ratio of their speeds?

3. There are 100 people.

4. I) Sonali s father knows that her mother s birthday falls after 25th of JAN and before 25th of FEB

   II) Sonali s brother knows that his mother s birthday falls after 23rd FEB and before 28th FEB

To find Sonali s Mother s birthday

a) only I is sufficiant
b) only II
c) both I and II are necessary
d) insufficiant data


Paper Model:

Section I: computer awareness (i.e general things about computer)
Section II: Simple C- language
Section III: On pointers & structures and C++, JAVA

SECTION-I 
1). Piggy backing is a technique for
a) Flow control
b) sequence
c) Acknowledgement
d) retransmition
Ans: c piggy backing

2). The layer in the OST model handles terminal emulation
a) session
b) application
c) presentation
d) transport
Ans: b application

4) Q. In signed magnitude notation what is the minimum value that can be represented with 8 bits
a) -128
b) -255
c) -127
d) 0

Windows system

12) b has to be unique in the sub network

13)Q. there is an employer table with key feilds as employer no.data in every n th row are needed for a simple following queries will get required results.

a) select A employe no. from employe A , where exists 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.grouply employe no.having(count(*) mod n=0 )
c) both a& b
d) none of the above

14) Type duplicates of a row in a table customer with non uniform key field customer no. you can see

a) delete from customer where customer no. exists ( select distinct customer no. from customer having count )
b) delete customer a where customer no. in b rowid
c) delete customer a where customer no. in ( select customer no. from customer a, customer b )  
d) none of the above

SECTION-II

Section II is not covered completely But it is very very easy

2) long int size
a) 4 bytes
b) 2 bytes
c) compiler dependent
d) 8 bytes
Ans: compiler dependent

Note: order of a,b,c,d are doubt but answer is correct.

3) x=2,y=6,z=6

x=y==z; ans:x=1

printf(%d",x) ?

4) if(x>2)?3:4

SECTION-III

1. what does the hexanumber E78 in radix 7.
(a) 12455
(b) 14153
(c) 14256
(d) 13541
(e) 131112
Ans: (d)

2. Q is not equal to zero and k = (Q x n - s)/2 find n?

(a) (2 x k + s)/Q
(b) (2 x s x k)/Q
(c) (2 x k - s)/Q
(d) (2 x k + s x Q)/Q (e) (k + s)/Q


3. If B occurs which must occur

(a) D
(b) D and G
(c) G and H
(d) F and G
(e) J ans: (a)

4. If J occurs which must have occured
a) E
(b) either B or C
(c) both E & F
(d) B
(e) both B & C
Ans: (b)

5. which may occurs as a result of cause not mentioned

(1) D (2) A (3) F

(a) 1 only (b) 2 only (c) 1 & 2 (d) 2 & 3 (e) 1,2,3
Ans: (c)

6. E occurs which one cannot occurs
(a) A
(b) F
(c) D
(d) C
(e) J
Ans: (b) 


Question Paper
There are four sections in the test
1.general ability(12q)
2.computer science(12q)
3.c/c++(12q)
4.java.(12q)
All the questions are mandatory. No negative marking

Section 1
1.Intel's first processor is
1)------2)4004 3) 80804)8086

2) Founder of Microsoft corporation
1) Bill Gates 2) Billgates and --------
3)Bill gates and Paul Allen4) Billgates and -------

3)Oddman out
1)Internet Explorer 2) Alt Vista3) Netscape Navigator 4)Opera

4)Which of the following is not a database
1)PLSQL2)MSSQL 3)MySQL4)Informix

5)Laura C--- (I don't remember exact spelling ) is CEO of
1)Oracle 2)DELL 3) Hp4)Intel
Ans) She is CEO of HP

6)'SUN' Microsystems SUN stands for
1)Simple Unified Network2)Solaris Unified Network3)-------------
4) None of the above.

Section 2

1) IRC stands for ans) Internet Relay chat

2)ICQ stands for ans)--------------------

3)The protocol used to translate Internet address to Network addressis
1)IP2)TCP3)ARP4)RARP

4)In some OS the option that the system provides to communicate with  other process is
1)IPC(Inter Process Communication)2)----3)-----4)-----

5)VPN stands for ans) Virtual private network.

6)The time taken to transfer data from one place to other place or process within specified time is
1)Throughput2)Latency time 3)Response time 4)----------

7)The time complexity for which of the following is O(n log n)
1) Radix sort 2)Quick sort3)Shell sort 4) Bubblesort.

8)Which of the following is used pass the packets between networks
1)--------2)Bridges3)Router4)Gateways


Section 3
1)Which of the following can be used to print % to the screen
1) printf("\%");2)printf("\\%"); 3)----- 4)------

2)how many times the loop is executed
main()
{
int i=3;
while(i>=0)
printf("%d",i--);
return(0);
}
1) 3 2)Infinite 3)0 4)2

3) what is the output
int 1=10;
printf("%d %d %d ",i,++i,i++);

1) 10 11 11 2)11 11 10 3) 10 11 10 4) None of the above

4)
x=2;
y=5;
z=x+++y;
printf("%d %d %d",x,y,z);
1)----------- 2)------- 3)--------- 4)---------

5)In c++,
1)------------------
2)------------------
3)you cannot Overload new operator for a class
4)----------------------

6) Void xyz(char a[10])
{
int i;
i=sizeof(a);
printf("%d",i);
}
1)10 2)can't say 3) 2 4)same as size of pointer.

7) Local Variables is stored in which part of the memory
1) register or heap 2)heap 3)register or stack 4)-----

8) which of the following can be shared by progams
1)Text Code
2)Data segment
3)heap memory
4)--------


Technical Interview 

1) What is Open System and Closed System in Computer terminology ? 

2) What is meant by Open Source ? Is Java Open Source or not ? 

3) Explain MVC (Model-View-Controller) architecture ? What acts as controller ? How views get updated ? 

4) What are design patterns ? Explain FACADE Design Pattern ? 

5) What s the difference between CMM and CMMI ? 

6) What is Requirements Development in CMMI ? 

7) How do you capture requirements ? Using what method you make sure that requirements are properly captured? 

8) What is UseCase ? What is the template to write UseCases ? 

9) How do you perform testing ? Do you use any automated testing tools ? If so, what are they ? 

10) I have a Web Server, Application Server, Servlet Engine, Database - all located on separate systems behind firewalls. How will you design an application using 3-tier architecture in this case ? 

11) What is 2-Phase Commit and 3-Phase Commit in database terminology ? 

12) Will the View get refreshed immediately when you update a database table. If it doesn t get refreshed immediately, what method you use to refresh it ? 

13) Some websites will have hierarchical display of items. (For eg, on click of a + symbol, all items under this item gets listed.). How do you store such structure in database (Note: You can store as XML object. But how do you store in database tables without using XML) ? 

14) What are interfaces, abstract classes. What is their purpose and differences ? 

15) What is 3 rd level of normalization ? 

16) How do you implement TREE in Java ? How do you implement the same using C or C++ ? 

17) What is the difference between Application and Web servers ? 

Remarks on Technical interview : The questions are mostly analysis and design related rather than coding related. You should have clear idea of analysis & design in J2EE, how various J2EE components fit into various layers. 

Program Manager Interview 

1) Tell about yourself ? 

2) What is the most challenging situation faced in your professional life ? How you faced it ? 

3) What are the reasons you are leaving your current company ? 

4) Do you have any objection for working completely at off-shore or working in a different technology ? 

5) Any questions about HP ? 

HR Interview 

1) How do your collegues describe you ? 

2) What is your current and expected salary ? 

3) What are the reasons you are leaving your current company ? 

4) What do you know about HP ?



1) Which of the following is not associated with operating systems
a) Swapper                 b) device drivers                 c) file system                 d) process mgmt

2) What is the size of virtual memory that must be associated
a) Must be same as physical memory
b)must be > physical memory
c) Can be of any size
d)it must be small enough to allocate process

3) Which of following is true
a) Time sharing is also multi programming
b) Multi programming is also time sharing

4) Global variables are stored at
a) Heap             b) Stack             c) Data             d) Code

Computer Organization:

1) 32 registers are there.an instructuion can hold upto 3 registers . the opcode is of 4 bits. what is minimum size of instruction.
Ans: the minimum sizeof instruction has nothing to do with number of registers

2) Some bit on pipelineling

3)some bit related to SIMD,MIMD,MISD,SISID

4) Minimum no of nand gates require to implement xor gate
Ans : 4 gates(check out)

Unix:

1) Two way communication is possible by means of means of which of the following
Ans: unix_socket

2) wc -l x>x prints out
Ans: wc command prints 0

3) The background process that continusly run
Ans: deamon process

Networks:

1) Fragmented packet is reunited at
a) Destination
b)at next gateway
c)at highest MTU gateway
d)at the next router

2) The following address 93.58.5.0
a) Class A             b) class B             c) class C             d) class D

3) Network to host protocal is
Ans: RARP

Data Structures:

1)given a doubly linked list .you are given with a node n and a pointer p associated with it. what are the operarions that to be performed to delete that node.

2)swapping the elements of left child of a tree with that of right child .

revswap(node*)
{
node* tree;
if(tree!=null)
swap(tree->left,tree->right)
revswap(tree->left);
revswap(tree->right);
}
if given tree is
1
2 3
4 5 6 7

What is the output for about function applied? 
Ans:
1
3 2
7 6 5 4

3)t(n)=4+t(n/2) ,t(0)=1. what is the complexity

4) In hashing each element can be found with complexity of
Ans: 1

5) In a program all the addresses that are to be binded to the caller function are done by
a)compiler             b) linker             c) loader             d) run time allocator


6) s->v[integer]
interger->interger,integer/termial
Ans: a[2,3,5]

7) char 1 byte , short of 2 bytes , integer of 4 byte,
stuct
{
char a;
char b;
int a[2];
short d;
int e;
char i;
} name;
sizeof(naame)
Ans:16

Note: consider c compiler unde unix for all c questions

C Questions:
1)main()
{

int i=1;
swith(i)
{
i++;
case 1: printf("case1");
break;
case 2: printf("case 2");
break;
default: printf("default");
}

Ans: when we compile we get warning that unreachable code and if we execute we get "case 1"  will be printed.

2) Questions related to funtcital pointers
3) Some question on const char*p , char* const p;

Interview Details:

i gone through 3 interviews, two technical and one hr  first is on project,os, unix, networks, micro processor, c, software engineering  second on micro processor,c, software engineering and some general  hr is just for formal to give offer letter.

First Interview

first question is as usual, tell me about yourself. They observe your expressions and way of your delivary and your confidence. Friends be confident while you are telling, my suggesstion is prepare beforegoing there on paper and practice yourself before mirror.

Then they ask about your project. They sometimes going in detail and ask you, while doing  your project , in which areas you feel tough and how would you overcome yourself. They made me  to write some important functions related to my project and i have been explained their prototypes. Be thorough in your project.

in my project socket progrmming is there and they asked me in depth in inter process communications like semaphores, shared memory. i am unable to answer most of questions. The questions i remembered are ,

which is fastest ipc and why. semaphores.for reason please go through some books like Unix system programming by batch. a program is given with 100 lines of code and another program also with 100 lines of code, both have to executed and first program with 50 lines first then second has to be started and after second finishses it s 50 lines first process has to be started. which inter process communication you use?

Ans: Semaphore with wait and signal operations

Some questions on operating systems like cpu scheduling, what are types of scheduling  in priority scheduling , how can we increase priority of a process
Ans: using nice command in unix we can

Coming to Networks

TCP/IP reference model they asked me then at which layer which device would be there.
Ans: internet layer router

Transport layer host host to network layer switches, repeters. then they asked me where would be bridges i said they on datalink layer and is part of host to network layer. then question is, is bridge is software or hardware i said of both then question is , can we have bridge with only software then i said, i am not sure, but now days bridges are almost absent and routers are doing the functionality of them. then they asked me some questions on ip addressing

Size of IPV4 address 4 bytes
Sizeof Ipv6 address 16 bytes
Size of mac address 48 bit

Then they shifted to C and questions are below

What happens if malloc falis to allocate memory
Would program continue or abort
Ans: i tell we can check it s return value by malloc, if it fails returs null and we can do our required action.

//program on sizeof operator
void main()
{
char *s[10]={"welcome","to","india"};
printf("%d",sizeof(s));
}
ans:10*sizeof(char*)
it is 10*4=40 under unix
it is 10*2=20 under turbo c++ compiler

//program that analyses about constant

void main()
{
const int i=10;
int *p;
p=&i;
(*p)++;
printf("\n %d",i);
return;
}
would it execute
Ans: it is going to be and we get 11.






2) what does 3G denote 


a) 3rd generation mobile communication 

b) 3rd generation computer languages 

c) option 3 

d) option4 

Ans: a 




3)an application program that is used by the users to get the inofrmation
from the backend of some application like databases: 

a) application server 

b)proxy server 

c)database server 

d)option 4 

Ans: database server 




4) which of the following is not true about the e-mail 

a) it can be accessed by a client program using POP 

b) it can be accessed by a client program using imap protocol 

c) option 3 

d) option 4 

Ans: I don t remember the answer but first 2 are
true. 




5) Some quesion regarding the company and who developed it ( the thing to
remember is that Apple produce Macintosh computers). 



6) What is X.25? 

a) option
1             b)
option 2            
c) option
3             d)
option 4 

Ans: find out??:-) 




3. C/C++ Section : Questions on C/C++,
Programs O/P Etc. 





1) main( ) 



unsigned int i=3; 

while( i .=0) 

printf( "%d", i--); 



how many times will the printf stmt be executed? 

a)0            
b)3            
c)4             d)
infinite 

Ans: I think the answer is infinite, b cos i is an
unsigned integer and it will not decrement below 0 and hence end up in an
infinite loop.(yes, i checked and it is getting stuck in an infinite loop) 




2) main( ) 



int x,y, z; 

x=2; 

y=5; 

z= x+++y; 

printf("%d %d %d", x, y z); 



a) 3 5 7            
b) option
2                
c) option
3             d)
option 4 

Ans: a 




3) # define swap(a,b) temp=a; a=b; b=temp; 

main( ) 



int i, j, temp; 

i=5; 

j=10; 

temp=0; 

if( i . j) 

swap( i, j ); 

printf( "%d %d %d", i, j, temp); 



Ans: On compiling i got ans 10, 0, 0. I did not
understand the concept. Please expalin this to me. 




4. Java Section: Questions On Java Related
stuff. 




1) Java was initially code named as: 

a)
Oak                
b)
green                
c)
miller                
d) option4 

Ans: Oak 




2) What is not true about the following statements about java. 

a) It is compiled using javac compiler 

b) The compiled files have .class extension. 

c) Such files cannot be transfered from one comp to another. 

d) They use the java interpreter 

Ans: c 




3) Why is the synchronize used? 

a) To initialize multiple
objects             

b) O lock an object 

c) Option3 

d) Option 4 

Ans: b (probably) 

Q : What is not a part of OS ? 
Op. : swapper, compiler, device driver, file system. 
A : compiler. 

Q : what is the condition called when the CPU is busy swapping in and out pages of  memory without doing any useful work ? 
Op. Dining philosopher s problem, thrashing, race around, option d 
A: thrashing. 

Q : How are the pages got into main memory from secondary memory? 
DMA, Interrupts,option3, option 4 
A : as far as i know its Interrupts --by raising a page fault exception. 

Q : What is the use of Indexing ? 
Op. fast linear access, fast random access, sorting of records , option 4 
A : find out.... 

Q : in terms of both space and time which sorting is effecient.(The question is  rephrased .) 
Op. merge sort, bubble sort, quick sort, option 4 
A : find out 

Which case statement will be executed in the following code ? 

main() 

int i =1; 
switch(i) 

i++; 
case 1 : printf (""); 
break; 

case 2 : printf(""); 
break; 
default : printf(""); 
break; 


Answer : Case1 will only be executed. 

Q : In the given structure how do you initialize the day feild? 
struct time { 

char * day ; 
int * mon ; 
int * year ; 
} * times; 

Options : *(times).day, *(times-.day), *times-.*day. 
Answer : *(times-.day) -- after the execution of this statement compiler generates  error.i didn t understand why.can anybody explain. 

Q: The char has 1 byte boundary , short has 2 byte boundary, int has 4 byte boundary. What is the total no. of bytes consumed by the following structure: 
struct st { 
char a ; 
char b; 
short c ; 
int z[2] ; 
char d ; 
short f; 
int q ; 

Options are given. 
Answer : its very easy 20 and not 19 . 

he test comprises of 4 sections:

Section A. ------50qns(general appitude,english etc):
Section B. ------ 10 Questions on Computer concepts.
Section C. ------ 30 Questions on C

1. WAP find and replace a character in a string.
2. WA function to perform the substraction of two .Eg:char N1="123",N2="478",N3=-355(N1-N2).
3. WAP dynamically intialize a 2 dimentional array Eg:5x20,accept strings and check for vowels and display the no.finally free the space allocated .
4. WAP read a line from file from location N1 to N2 using command line agruments Eg:exe 10 20 a.c
5. WAP find the largest of 4 no using macros.




1 General section : computer science general knowledge
2. Computer science general: simple questions

1. HP acquired this company in 2002. Which is the company
a) Compaq             b) Dell             c) option 3             d) Option4
Ans: a

2. What does 3G denote
a) 3rd generation mobile communication b) 3rd generation computer languages c) option 3 d) option4
Ans: a

3. An application program that is used by the users to get the inofrmation from the backend of some application like databases:
a) application server             b)proxy server             c)database server             d)option 4
Ans: database server

4. Which of the following is not true about the e-mail
a) It can be accessed by a client program using POP
b) It can be accessed by a client program using imap protocol
c) option 3
d) option 4
Ans: I don t remember the answer but first 2 are true.

5. Some quesion regarding the company and who developed it ( the thing to remember is that Apple produce Macintosh computers).



1 main( )
{
unsigned int i=3;
while( i >=0)
printf( "%d", i--);
}
how many times will the printf stmt be executed?
a)0 b)3 c)4 d)infinite
Ans: I think the answer is infinite, b cos i is an unsigned integer and it will not decrement below 0  and hence end up in an infinite loop.(yes, i checked and it is getting stuck in an infinite loop)

2. main( )
{
int x,y, z;
x=2;
y=5;
z= x+++y;
printf("%d %d %d", x, y z);
}
a)3 5 7             b)option 2             c)option 3             d)option 4
Ans: a

3 # define swap(a,b) temp=a; a=b; b=temp;
main( )
{
int i, j, temp;
i=5;
j=10;
temp=0;
if( i > j)
swap( i, j );
printf( "%d %d %d", i, j, temp);
}
Ans: On compiling i got ans 10, 0, 0. I did not understand the concept. Please expalin this to me.

4. Java section: questions on java related stuff.
1) Java was initially code named as:
a)Oak b)green c)miller d)option4
Ans: Oak

5. What is not true about the following statements about java.
a) it is compiled using javac compiler
b) the compiled files have .class extension.
c) such files cannot be transfered from one comp to another.
d) they use the java interpreter
Ans: c

6. Why is the synchronize used?
a) to initialize multiple objects
b) to lock an object
c) option3
d) option 4
Ans: b (probably)



2 comments:

  1. for c c++ 3rd qn, swap macro is expanded, if condition is failed so only the first line of the swap macro will not be executed the other lines will be executed , hence i=10 j=0 and temp=0

    ReplyDelete
  2. about swap macro function qns:
    macro function will be substituted in the place where they r called..so after sub, since no curly brace for if loop only temp=a doesnt work bcoz of false condi(5>10) but remaining a=b and b=temp will b executed so v get a=10.. b=0..temp=0...

    ReplyDelete