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


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

81. How can I access memory located at a certain address?

82. What is a C array and illustrate the how is it different from a list.

83. What is the time and space complexities of merge sort and when is it preferred over quick sort?

84. Write a function which takes as parameters one regular expression(only ? and * are the special characters) and a string and returns whether the string matched the regular expression.

85. Given n red balls and m blue balls and some containers, how would you distribute those balls among the containers such that the probability of picking a red ball is maximized, assuming that the user randomly chooses a container and then randomly picks a ball from that.

86. Find the second largest element in an array with minimum no of comparisons and give the minimum no of comparisons needed on an array of size N to do the same.

87. Given an array of size n, containing every element from 1 to n+1, except one. Find the missing element.

88. How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same

89. How can I allocate arrays or structures bigger than 64K?

90. How can I find out how much memory is available?

91. How can I read a directory in a C program?

92. How can I increase the allowable number of simultaneously open files?

93. What’s wrong with the call fopen(”c:\newdir\file.dat”, “r”)?

94. Talk sometiming about profiling?

95. How many lines of code you have written for a single program?

96. What is "strstream" ?

97. How to write Multithreaded applications using C++?

98. Explain "passing by value", "passing by pointer" and "passing by reference"

99. Write any small program that will compile in "C" but not in "C++"

100. Have you heard of "mutable" keyword?

101. What is a "RTTI"?

102. Is there something that I can do in C and not in C++?

103. Why preincrement operator is faster than postincrement?

104. What is the difference between "calloc" and "malloc"?

105. What will happen if I allocate memory using "new" and free it using "free" or allocate sing "calloc" and free it using "delete"?

106. Where does global, static, local, register variables, free memory and C program instructions get stored?

107.Difference between "printf" and "sprintf".

108.Why preincrement operator is faster than postincrement?

109.Difference between arrays and linked list?

110. What are enumerations?

111. Describe about storage allocation and scope of global, extern, static, local and register variables?

112.How to write a program such that it will delete itself after exectution?

113. What are register variables? What are the advantages of using it?

114.How to write Multithreaded applications using C++?

115. What is the use of typedef?

116. Talk sometiming about profiling?

117. How many lines of code you have written for a single program?

118. How to write Multithreaded applications using C++?

119. What is the output of printf(“%d”)?

120.How to reduce a final size of executable?


Page 3

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

 

SLogix Student Projects

⇓Student Projects⇓
⇑Student Projects⇑
bottom