© 2014 Firstsoft Technologies (P) Limited. login
Hi 'Guest'
Home SiteMap Contact Us Disclaimer
enggedu


  Home Placement Paper Kit Technical Questions ► C and C++ ▼

121. Write any small program that will compile in “C” but not in “C++”

122. What is Memory Alignment?

123. What are the access privileges in C++? What is the default access level?

124. What is multiple inheritance(virtual inheritance)? What are its advantages and disadvantages?

125. How do you access the static member of a class?

126. What does extern int func(int *, Foo) accomplish?

127. Why preincrement operator is faster than postincrement?

128. What are the techniques you use for debugging?

129. How to reduce a final size of executable?

130. Give 2 examples of a code optimization.

131. Can we specify variable field width in a scanf()

132. format string? If possible, how?

133.Where may variables be defined in C?

134.What is type checking?

135. Difference between strdup and strcpy?

136. What is recursion?

137. What is a NULL macro? What is the difference between a NULL pointer and a NULL macro?

138.What is the purpose of a function prototype?

139. What does the error ‘Null Pointer Assignment’ means and what causes this error?

140.What is the difference between the & and && operators and the | and || operators?

141. What is near, far and huge pointers? How many bytes

142. are occupied by them?

143. How would you obtain segment and offset addresses from a far address of a memory location?

144.Where may variables be defined in C?

145. Are the expressions arr and &arr same for an array of integers?

146.From the standpoint of programming logic, what is the difference between a loop with the test at the top, and a loop where the test is at the bottom?

147. Does mentioning the array name gives the base address in all the contexts?

148.How is a comment formed in C.

149. How do you find out if a linked-list has an end? (i.e. the list is not a cycle)

150. How do you write a function that can reverse a linked-list?

151. Can a copy constructor accept an object of the same class as parameter, instead of reference of the object?

152. What is a local class?

153. What is a nested class?

154. Explain one method to process an entire string as one unit?

155.Is C case sensitive (ie: does C differentiate between upper and lower case letters)?

156. What is the similarity between a Structure, Union and Enumeration?

157.What is the difference between a statement and a block?

158. Can a Structure contain a Pointer to itself?

159. How can we check whether the contents of two structure variables are same or not?

160.Increment the variable next three different ways.


Page 4

1 2 3 4 5 6 7 8 9 10 11 12 13
SLogix Student Projects

⇓Student Projects⇓
⇑Student Projects⇑
bottom