Languages-C & C Plus Plus [TCS Placement]: Sample Questions 23 - 24 of 119

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 23

C & C Plus Plus
Edit

Describe in Detail

Essay▾

What does the format % 10.2 mean when included in a printf statement?

Explanation

  • This format is used for two things:
    • Set the number of spaces allotted for the output number
    • Set the number of decimal places
  • The number before the decimal point is for the allotted space, in this case it would allot 10 spaces for the output number.
  • If the number of space occupied by the output number is less than 10, addition space characters will be inserted before the actual output number.
  • The number after the decimal point sets the number of decimal places, in this case, its 2 decimal spaces.
Given the Image is Define the Format % 10.2 Mean when Included in a Printf Statement

Question 24

C & C Plus Plus
Edit

Describe in Detail

Essay▾

What is . NET Framework?

Explanation

  • . NET Framework is windows environment where developers can develop, run, and deploy the following applications:
    • Console applications
    • Windows Forms applications
    • Windows Presentation Foundation (WPF) applications
    • Web applications (ASP. NET applications)
    • Web services
    • Windows servicesService-oriented applications using Windows Communication Foundation (WCF)
    • Workflow-enabled applications using Windows Workflow Foundation (WF)
  • . NET Framework enables developer to create sharable components used in distributed computing architecture.
  • . NET Framework supports the object-oriented programming- Visual Basic, Visual C#, and Visual C ++ in a manner that allows language interoperability.
  • This implies that each language can use the code written in some other language.
Given the Image is Define the . NET Framework Architecture

Developed by: