Telco Infotech Previous Years Solved Sample Placement Papers
-
Which file you should write for the connection string so that you can access it in all the web pages for the same application?
A: In App_Data folder
B: In Web.config file
C: In MasterPage file
D: None of the above
Ans: B -
You need to allow users to choose their own themes. In which page event will you write the user-selected theme?
A: Page_Load
B: Page_Render
C: Page_PreInit
D: Page_PreRender
Ans: C -
Which of the following is not an ASP.NET page event?
A: Init
B: Load
C: Import
D: Message
Ans: C -
To implement a specified .NET Framework interface which directive is used?
A: @Register
B: @Control
C: @Reference
D: @Implements
Ans: D -
In ASP.NET application DLL files are stored in which folder?
A: App_Code
B: App_Data
C: Bin
D: App_LocalResources
Ans: C -
Which of the following function is used to find the first occurrence of a given string in another string?
A: strchr()
B: strrchr()
C: strstr()
D: strnset()
Ans: C -
Which of the following function is correct that finds the length of a string?
Ans: A -
What will be the output of the program in 16-bit platform (Turbo C under DOS)?
A: 8, 1, 4
B: 4, 2, 8
C: 4, 2, 4
D: 10, 3, 4
Ans: B -
Which of the following statements are correct?
1: A string is a collection of characters terminated by '\0'.
2: The format specifier %s is used to print a string.
3: The length of the string can be obtained by strlen().
4: The pointer CANNOT work on string.
A: A, B
B: A, B, C
C: B, D
D: C, D
Ans: B -
Point out the error in the program?
A: Error: invalid structure member
B: Error: Floating point formats not linked
C: No error
D: None of above
Ans: B -
What is the similarity between a structure, union and enumeration?
A: All of them let you define new values
B: All of them let you define new data types
C: All of them let you define new pointers
D: All of them let you define new structures
Ans: B -
What will be the output of the program?
#include <stdio.h> int main() { enum days {MON=-1, TUE, WED=6, THU, FRI, SAT}; printf("%d, %d, %d, %d, %d, %d\n", MON, TUE, WED, THU, FRI, SAT); return 0; }
A: -1, 0, 1, 2, 3, 4
B: -1, 2, 6, 3, 4, 5
C: -1, 0, 6, 2, 3, 4
D: -1, 0, 6, 7, 8, 9
Ans: D