TCS Placement: Sample Questions 432 - 433 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

Edit

Describe in Detail

Essay▾

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

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. intmain()
  4. {
  5.     charsrc[50], dest[50];
  6.     strcpy(src, “ Goenka”);
  7.     strcpy(dest, “Kartik”);
  8.     strcat(dest,src);
  9.     printf(“Myname :%s ”,dest);
  10.     return0;
  11. }

Output:

My name: Kartik Goenka

Question 433

Edit

Describe in Detail

Essay▾

List the new features added in . NET Framework 4.0.

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

Developed by: