TCS Placement: Sample Questions 432 - 434 of 502

Get unlimited access to the best preparation resource for competitive exams : get questions, notes, tests, video lectures and more- for all subjects of your exam.

Question 432

Describe in Detail Essay▾

Which function in C can be used to append a string to another string?

Edit

Explanation

  • The strcat () function- takes two parameters, the source string and the string value to be appended to the source string.
  • A copy of the second string is tacked onto the end of the first, and this combined version becomes the new first string.
  • The second string is not altered.
  • It returns the value in its first argument.
  • Example:
  1. #include<stdio.h>
  2. #include<string.h>
  3. int main()
  4. {
  5. char src[50], dest[50];
  6. strcpy(src, “ Goenka”);
  7. strcpy(dest, “Kartik”);
  8. strcat(dest,src);
  9. printf(“My name :%s ”,dest);
  10. return 0;
  11. }

Output:

My name: Kartik Goenka

Question 433

Describe in Detail Essay▾

List the new features added in . NET Framework 4.0.

Edit

Explanation

  • The following are the new features of . NET Framework 4.0:
  • Improved Application Compatibility and Deployment Support
  • Dynamic Language Runtime
  • Managed Extensibility Framework
  • Parallel Programming framework
  • Improved Security Model
  • Networking Improvements
  • Improved Core ASP. NET Services
  • Improvements in WPF 4
  • Improved Entity Framework (EF)
  • Integration between WCF and WF

Question 434

Question MCQ▾

According to the stock policy of a company, each employee in the technical division is given 15 shares of the company and each employee in the recruitment division is given 10 shares. Employees belonging to both committees get 25 shares each. There are 20 employees in the company, and each one belongs to at least one division. The cost of each share is $ 10. If the technical division has 15 employees and the recruitment division has 10 employees, then what is the total cost of the shares given by the company?

Choices

Choice (4)

a.

3150

b.

3250

c.

2750

d.

3120

Edit

Answer

c.

Explanation

  • We already know that,

  • So, there are total 5 employees common between technical and recruitment division.
  • Employee of technical division is given 10 shares of the company.
  • The cost of each share is $ 10.
  • So, total cost of technical shares
  • Employee of recruitment division is given 5 shares of the company.
  • The cost of each share is $ 10.
  • So, total cost of recruitment shares
  • There are 5 employees՚ common between both technical and recruitment division.
  • Share given to Technical as well as recruitment people is 25
  • So, total cost of recruitment as well as technical people
  • Total shares .
  • Total cost of shares