Wipro Placement Paper |   15663

Wipro Placement Paper

 

TECHNICAL QUESTIONS:

C Program

1          What is the output of the following code - What is the output of the following code int i=7;printf("%d", i++ * i++);
Latest Answer: the answer is:56 ...
2          What is the difference between Switch and Hub ?
Latest Answer: The basic difference is HUB would broadcast all the ingress packets on all the ports where as the Switch will not as it has intelligence to build a MAC-PORT table. ...

3          What is the difference between C and ANSI C?
Latest Answer: c refers to traditional c developed by dennis ritchie at bell laboratories around 1972 or so, he did it for unix ofcource.then later problems occured wen c was transplanted to other oses and also ther occured a need to stansardize c ,so the standardizing ...
 

4          What is RSTP & MSTP?
Latest Answer: RSTP : Rapid Spanning Tree ProtocolMSTP: Multiple Spanning Tree ProtocolMSTP is a superset of RSTP where multiple instances of RSTP can run on a single port given different VLAN groups

 

5          Which polarity will you prefer for SMAW & why?
Latest Answer: Always positive i.e. reverse polarity will be preferred because more current will flow only in positive direction.since in smaw electrode is to melt so it need more current thus always reverse polarity will be given to electrode and straight polarity will ...
 

6          Why java does not support multiple inheritence?2.what is the difference b/w structures and classes?

Assuming you have the environment variable ENV=.kshrc set, what is the entry in ur .kshrc or .profile that will save up to ur last 200 commands in a history list?A) HISTSIZE=200 B) set history 200 C) HISTORY=200 D) setenv history 200
 

7          What is the part of compiler that keeps track of names and their attributes? A) Compile Table B)Symbol Table C)Table D) Logical Table

8          Which constructor is invalid for class cat?A) void cat :: cat(){feet=4;}B)cat::cat(int f){feet=f;}C) cat::cat(void){feet=8;}D) cat::cat(int f){this->feet=f;}

9          Which of the following operators cannot be overloaded in C++? A) ?: B)[] C) - D) None of These

Add 79H and 86H and tell the contents of flag
Latest Answer: the flag would be 0 as 79 + 86 = FF ...

10         #What will be the Outputvoid main(){clrscr(); printf("yogesh""bansal");}
 

Is QTP Supports Sunsolaries and Sybase?
Latest Answer: yes ...
 

11         What is the output of the program? int n=f,m; n==m++; m==++n; printf(n, m);
Latest Answer: Hello..I feel the answer is that this will not work.f is undefined.printf statement should be rectified.c ya. ...

12         What is the method of connecting two physically separate LAN by using internet
Latest Answer: Virtual Private Network (VPN). Using Virtual Private Network it is possble to connect two physically separated LAN from different Locations over the Internet. VPN using Protocols IPSec, PPTP and L2TP to make the traffic from source to Destination ...
 

13         Which is layer 3 connection less protocol? A. IP B. ARP C. TCP D. UDP
Latest Answer: tcp ...
 

14         How is data send by IP layer? A. as frames B. as packets C. as datagrams D. none of these
Latest Answer: Hi,The data that is sent by the application layer to transport layer is in the form of data at the transport layer this data is divided into the packets and then itese packets will send to the internet layer,So the ans. Packets ...
 

15         TCP is A. connection oriented B. connection less C. god only knows D. none of these
Latest Answer: A.Connection Oriented TCP(Transmission Control Protocol) which resides on the Transport Layer of OSI Network Model. It is a Connection Oriented Protocol. Before send and receive data the connection should be estalished between client(source) ...
 

16         What is the function of shell? A. Interpreter B. command interpreter C. interface D. none of these

int num[5]; num[5]= ; The 5 in the first and the second statements denotes
Latest Answer: the first line 5 indicates the array sizethe second line merely looking it would denote the sixth element of the array but there arrises an exception that it exceeds the array size so it would be err .

..
17         What is the output of the program? int *p, i==4; p==&I (*p)++ printf("%d",p);
Latest Answer: The compiler will give an error "undefined symbol I". ...
 

18         Register variables can hold A. Garbage values B. Arrays C. Double values D. All of the above
Latest Answer: Register variables can hold A. Garbage valuesB. ArraysC. Double valuesD. All of the aboveo/p: These r can hold garbage values only. its size is only 2 bytes. It cann,t take double. ...
 

19         ACL stands for A. access central limit B. access control limit C. access control list D. Both A and B
 

20         Operation of queue A. FIFO B. LIFO C. FILO D. none of these
Latest Answer: a is the ans Queue implements FIFO(First In First Out) and Stack implemnts LIFO(Last In First Out) ...

main(){printf("%c","abcdef"[4]); }what is the output? A. abcdef B. d C. e D. ERROR
 

21         When an array is passed to a function what exactly is passed. A. The values of the array B. The address of the starting variable in the array. C. The addresses of the elements in the array D. None
 

22         Write a query to find the minimum age of an employee?
Latest Answer: select * form table_name where age=(select min(age) form table_name) ...
 

23         Full form of URL? A. universal resource locator B. uniform resource locator C. none of these D. unidentified

If the angle of incidence is less than angle of critical angle then there is loss in cladding due to A.
24         If the angle of incidence is less than angle of critical angle then there is loss in cladding due to A. Rayleigh,s scattering B. scattering C. absorption D. bending
 

25         Which is a type of primary memory? A. RAM and ROM B. HDD C. CDROM D. none of these

Latest Answer: Answer is DBcoz ROM is not the primary memory ...

26         CDROM access is A. RANDOM B. SEMI RANDOM C. SEQUENTIAL D. none of these
Latest Answer: CDROM cannot be a Random Access Memory.. ROM ...

27         What is the output of the program? main(){char a=,123, printf ("%c n",a); return 0; }A. ASCII value of 121 B. 1 C. 3 D. none of these
 

28         Which key in any windows screen is used to invoke file menu? Alt+F
Latest Answer: file menu can be accssd by F10 OR ALT+F ...
 

29         Which is the latest OS? A. XP B. NT C. 98 D. 2000
Latest Answer: Obviously XP.XP is one of the latest of 98,2000 and NT by Microsoft. XP was released in 2002. And the latest by Windows now a days is Windows Server 2003. Also Windows Vista is coming up. And there is also 64 bit version available of Windows.- By Ronak ...
 

30         Stacks and queues are A. primitive data structures B. non-primitive data structures C. non-linear data structures.... D. data types
 

31         For mobile communication A. downlink freq > uplink freq B. uplink > downlink C. none D. equal
Latest Answer: A ...
 

32         Which is linear model? A. water fall model B. classical C. chaos model
Latest Answer: A waterfall model is linear model because it performs the operations step by step Once it completes the analysis phase then it will enter into design phase Such as it performs each  opertions step by step Once we enter one phase it can,t be revert ...


33         In queue where do you insert a data? A. front B. rear C. middle C program code int zap(int n){if(n<=1) then zap=1; else zap=zap(n-3)+zap(n-1); }then the call zap(6) gives the values of zap A. 8 B. 9 C. 6 D. 12 E. 15


34Virtual memory size depends on A. address lines B. data bus C. disc space D. both A and B E. none of these

35 The little Indian representation of 84 will be A. 00001000 00000100 B. 00010000 00000100 C. 00001000 00000010 D. none of these
 

36         The standard for HTML is A. HTML B. STML C. CGI D. DHTML
Latest Answer: html is the answer ...
 

37         The standard for exchanging mails and communication in files is A. SMTP B. FTP C. HTTP D. ISP
Latest Answer: ita a ...

38         The equivalent of NAND gate is A. NAD with NOT B. OR with NOT C. NOT with OR
Latest Answer: for NAND gate 0 0 -> 10 1 -> 11 0 -> 11 1 -> 0for OR gate 0 0 -> 00 1 -> 11 0 -> 11 1 -> 1for NOT WITH OR gate 0 0 -> 10 1 -> 11 0 -> 11 1 -> 0SO ...
 

39         The operation to be performed on a stack using a linked list can be realized using the function A. delete front, insert rear B. insert front, delete rear C. delete front, insert front D. delete rear, insert rear

40         The binary equivalent of 188 is
Latest Answer: 10111100 ...
 

41         What worldwide network connects the largest number of servers and computers? A. WWW B. HTTP C. ARPANET D. INTERNET

42         The network connecting all the networks are called A. INTERNET B. INTRANET C. ETHERNET D. none of these

43         The layer not present in TCP/IP model is: A. security layer B. presentation layer C. both A and B D. none of these
44         Tree is a type of data structure A. primitive data structure B. non-primitive data structure C. none of these

45         Unix is a _______ type of OS tree is a type of data structure A. multiuser B. multitasking time sharing C. single user D. none of these
 

46         The protocol used to transfer web pages A. HTTP B. FTP C.TCP/IP
Latest Answer: The protocol used to transfer web pages is HTTP ...

47         Mode of operation of stack ______ A. LIFO B. FIFO C. FCFS D. none of these
Latest Answer: LIFO ( Last In First

 

48What is ROM? read only memory
Latest Answer: Read Only Memory- By Ronak J ThakrarIIIT, Pune (India) ...


49         Which is the language for queries used in RDBMS?
Latest Answer: sql ...
 

50         Fastest growing OS for Intel PC
Linux
51         In database what is validity of the stored data A. data integrity B. mining C. processing D. independence
 

52         Which is true for cellular mobile communication regarding uplink and downlink frequency
Latest Answer: in case of cellular communication, downlink frequency should always be greater than uplink frequency for successful and secure communication. ...
 

53         What is the output? int i=7 printf("%dn",i++*i++);
Latest Answer: The answer is 56 because the compiler will use right to left associtavity here.. and when it gets i++ then for the value of i, nothing happens.. then it gets *, it puts it in stack.. then gets another i++ by this time the 1st ++ is executed ...
 

54         If function t is called what is printed void r(int x ,int y, int &z){cout <<"r:x="<<<"Y=",,Y span void< }z="y+x;" x="x+1;" <<"z=,",,z,,endl;,>


55         Assume a particular CPU works properly with 100 MHz clock. What happens if clock is increased to1000 MHz?

56         What does USB stands for? universal serial bus
Latest Answer: USB STands of Universal Serial Bus . There are two types of USB now available in the market. The Primitive type is the USB 1 and now we have USB 2. USB 2 has a faster data transfer rate. ...

57         What does ISDN stand for? integrated services devices network
Latest Answer: no u r wrong its actually-INTEGRATED SERVICE DIGITAL NETWORK ...
 

58         In windows file menu can be invoked by? Alt+F keys
Latest Answer: Also, F10 is used to invoke file menu ...


int lion(int x) // x is positive int { while (x!=10 && x%2==0) x+=2; return x; }int tiger (int x){do { x+=2;}while (x!=10 && x%2==0); return x; }for which values of x is it true that lion(x) equals tiger(x)
for all even integers less than 10


59         What are the three components of OS?
Latest Answer: 1. Essential components of s/w.2. Managements information system.3. GUI (Graphical User Interface)Â Based. ...

60         What is boot PROM?
Latest Answer: Programmable Read Only Memory ...

61         Which is the Database used in IBM mainframes? db2

62         Testing used to test internal logic  white box

63         Extension file not executable A. exe B. com C. bat D. obj D
Latest Answer: .obj file is not executable..you need a linker to make it .exe and executable ...

64         Java key word? A. final B. extend C. abstract D. long
Latest Answer: it shud b (B)extendsbecos all remaining options tell the type of class or data....whereas extends implies extracting property of superclass ...

65         Which variable can be accessed by all the functions of a program? global
Latest Answer: global variables ...

66         Which of the following is a nonlinear data structure? A. stack B. queue C. linked list D. tree D
Latest Answer: (d) tree ...
67         Which blocks an access to the server or a computer from an outside computer? firewall

68         Which of the following is not a .net compatible? A. vb.net B. asp.net C. c# D. cobol.net D
Latest Answer: The answer is cobol.net because other options are compatible with Dot Net framework. ...

69         printf("%c","abcdef",4[]); What is the output of above program?
Latest Answer: errorsince 4[] cannot be declared as a variable ...

70         What happens when an array pointed out by temp is freed using free()?
Latest Answer: according to me..nothing will happen..the temp will point to the same location..although that location is included as a free space ..that memory ralocated for some other variable..we may get the same values..aur we may get garbage/junk value ...

71         If a linked list has to act as a stack which operations are to be performed?
deletion @front,insertion@front
Latest Answer: Insertion & Deletion can be performed at front end only ...
 

72         If a shortcut for closing a program is given as Ctrl+x and is placed in the file menu of the window what would happen? A. shortcut is placed in the file menu B. no action C. Ctrl+x is placed at close D. x is underlined with Ctrl placed at the close

73         Which of the following is correct? A. cladding is covered by core B. core is covered by cladding B
Latest Answer: core is covered by cladding...(optical cables) ...

74         Internet explorer defaultly supports which script? A. java script B. jscript C. xml A
View Question


75         What is the output of the following code? main(){char str[20]; printf("Enter a string: "); scanf("%[^a]",str); printf("%[^a]",str); }
compilation error

76         In ASP code we can include A. COM component B. HTML C. Active X components D. all of the above D


77         The standardization used in voice and data communication in phones is: A. X.25 B. Frame relay C. ISDN




78         What are mechanical, wireless, opticals types called? A. Mouse B. Trackball C. none of these
Latest Answer: (A)mouse ...

79         The ________is used to detect flaws in a program A. bug B. linker C. compiler D. error
Latest Answer: it is c-compiler ...

80         The Y2K problem is_____________ A. software bug B. hardware malfunctioning C. data error D. communication error

81         main(){int a[2]={4,5}; a[0,1]=45; printf("%d%d",a[0],a[1]); }A. 4 45 B. 4 C. 45 D. None

82         _________ maps logical addresses to physical addresses at context switching time A. Compiler B. Linker C

83         In cellular and mobile communication A. Upper link frequency > Download frequency B. Upperlink frequency < Download frequency C. Upperlink frequency = Download frequency D. None

84         What are universal gates?
Latest Answer: NAND and NOR gates ...

85         What are towers of honai problem?
Latest Answer: Let call the three pegs Src (Source),Aux (Auxiliary) and Dst (Destination).For a given number N of disks, the problem appears to be solved if we know how to accomplish the following tasks:1.Move the top N-1 disks from Src to Aux (using Dst as an intermediary ...

86         What is recursive programming?
Latest Answer: the function can call itself ...

87         Write a shell script on date of births?

The binary equivalent of 188 is
Latest Answer: 10111100 ...

88         What worldwide network connects the largest number of servers and computers? A. WWW B. HTTP C. ARPANET D.


89         What worldwide network connects the largest number of servers and computers? A. WWW B. HTTP C. ARPANET D. INTERNET

90         The network connecting all the networks are called A. INTERNET B. INTRANET C. ETHERNET D. none of these


91         The layer not present in TCP/IP model is: A. security layer B. presentation layer C. both A and B D. none of these

92         Tree is a type of data structure A. primitive data structure B. non-primitive data structure C. none

93         Unix is a _______ type of OS tree is a type of data structure A. multiuser B. multitasking time sharing C. single user D. none of these
_
94         The protocol used to transfer web pages A. HTTP B. FTP C.TCP/IP
Latest Answer: The protocol used to transfer web pages is HTTP ...

95         Mode of operation of stack ______ A. LIFO B. FIFO C. FCFS D. none of these
Latest Answer: LIFO ( Last In First Out ) ...
 

96         What is ROM? read only memory
Latest Answer: Read Only Memory- By Ronak J ThakrarIIIT, Pune (India) ...

97         Which is the language for queries used in RDBMS?
Latest Answer: sql ...


98         Fastest growing OS for Intel PC
Linux

99         In database what is validity of the stored data A. data integrity B. mining C. processing D. independence
 

100       Which is true for cellular mobile communication regarding uplink and downlink frequency
Latest Answer: in case of cellular communication, downlink frequency should always be greater than uplink frequency for successful and secure communication. ...

101       What is the output? int i=7 printf("%dn",i++*i++);
Latest Answer: The answer is 56 because the compiler will use right to left associtavity here.. and when it gets i++ then for the value of i, nothing happens.. then it gets *, it puts it in stack.. then gets another i++ by this time the 1st ++ is executed ...
 

102       If function t is called what is printed void r(int x ,int y, int &z){cout <<"r:x="<<<"Y=",,Y span void< }z="y+x;" x="x+1;" <<"z=,",,z,,endl;,>
If function t is called what is printed void r(int x ,int y, int &z){cout <<"r:x="<<<"Y=",,Y span }z="y+x;" x="x+1;" <<"z=,",,z,,endl;, < <<"x=,"<<<<"t:a"<<<"b=,"<

103       Assume a particular CPU works properly with 100 MHz clock. What happens if clock is increased to1000 MHz?

104       What does USB stands for? universal serial bus
Latest Answer: USB STands of Universal Serial Bus . There are two types of USB now available in the market. The Primitive type is the USB 1 and now we have USB 2. USB 2 has a faster data transfer rate. ...

105       What does ISDN stand for? integrated services devices network
Latest Answer: no u r wrong its actually-INTEGRATED SERVICE DIGITAL NETWORK ...

106       In windows file menu can be invoked by? Alt+F keys
Latest Answer: Also, F10 is used to invoke file menu ...


107       int lion(int x) // x is positive int { while (x!=10 && x%2==0) x+=2; return x; }int tiger (int x){do { x+=2;}while (x!=10 && x%2==0); return x; }for which values of x is it true that lion(x) equals tiger(x)
for all even integers less than 10


108       What are the three components of OS?
Latest Answer: 1. Essential components of s/w.2. Managements information system.3. GUI (Graphical User Interface)Â Based. ...

109       What is boot PROM?
Latest Answer: Programmable Read Only Memory ...
Which is the Database used in IBM mainframes? db2

110       Testing used to test internal logic
white box

111       Extension file not executable A. exe B. com C. bat D. obj D
Latest Answer: .obj file is not executable..you need a linker to make it .exe and executable ...

112       Java key word? A. final B. extend C. abstract D. long
Latest Answer: it shud b (B)extendsbecos all remaining options tell the type of class or data....whereas extends implies extracting property of superclass ...
113       Which variable can be accessed by all the functions of a program?  global
Latest Answer: global variables ...
114       Which of the following is a nonlinear data structure? A. stack B. queue C. linked list D. tree D
Latest Answer: (d) tree ...


115       Which blocks an access to the server or a computer from an outside computer?
firewall

116       Which of the following is not a .net compatible? A. vb.net B. asp.net C. c# D. cobol.net  D
Latest Answer: The answer is cobol.net because other options are compatible with Dot Net framework.

printf("%c","abcdef",4[]); What is the output of above program?
Latest Answer: errorsince 4[] cannot be declared as a variable ...

117       What happens when an array pointed out by temp is freed using free()?
Latest Answer: according to me..nothing will happen..the temp will point to the same location..although that location is included as a free space ..that memory ralocated for some other variable..we may get the same values..aur we may get garbage/junk value ...

118       If a linked list has to act as a stack which operations are to be performed?
deletion @front,insertion@front
Latest Answer: Insertion & Deletion can be performed at front end only ...
 


119       If a shortcut for closing a program is given as Ctrl+x and is placed in the file menu of the window what would happen? A. shortcut is placed in the file menu B. no action C. Ctrl+x is placed at close D. x is underlined with Ctrl placed at the close
 

120       Which of the following is correct? A. cladding is covered by core B. core is covered by cladding B
Latest Answer: core is covered by cladding...(optical cables) ...
 

121       Internet explorer defaultly supports which script? A. java script B. jscript C. xml

122       What is the output of the following code? main(){char str[20]; printf("Enter a string: "); scanf("%[^a]",str); printf("%[^a]",str); }compilation error


123       ASP code we can include A. COM component B. HTML C. Active X components D. all of the above

124       The standardization used in voice and data communication in phones is: A. X.25 B. Frame relay C. ISDN
 

125       are mechanical, wireless, opticals types called? A. Mouse B. Trackball C. none of these
Latest Answer: (A)mouse ...


126 ________is used to detect flaws in a program A. bug B. linker C. compiler D. error
Latest Answer: it is c-compiler ...


127       The Y2K problem is_____________ A. software bug B. hardware malfunctioning C. data error D. communication

128       main(){int a[2]={4,5}; a[0,1]=45; printf("%d%d",a[0],a[1]); }A. 4 45 B. 4 C. 45 D. None
129       _________ maps logical addresses to physical addresses at context switching time A. Compiler B. Linker
130       In cellular and mobile communication A. Upper link frequency > Download frequency B. Upperlink frequency

131       What are universal gates?
Latest Answer: NAND and NOR gates ...

132       What are towers of honai problem?
Latest Answer: Let call the three pegs Src (Source),Aux (Auxiliary) and Dst (Destination).For a given number N of disks, the problem appears to be solved if we know how to accomplish the following tasks:1.Move the top N-1 disks from Src to Aux (using Dst as an intermediary ...

133       is recursive programming?
Latest Answer: the function can call itself ...

134       Write a shell script on date of births?

feedback