TCS Papers: Sample Questions 177 - 180 of 502

Examrace Placement Series prepares you for the toughest placement exams to top companies.

Question number: 177

» Languages » C & C Plus Plus

Essay Question▾

Describe in Detail

Can the curly brackets {} be used to enclose a single line of code?

Explanation

  • While curly brackets are mainly used to group several lines of codes, it will still work without error if you used it for a single line.

  • This method organizes codes to make it look clearer, especially in conditional statements.

The main uses of curly braces

The Main Uses of Curly Braces

Given the image define the main uses of curly braces are listed in the examples

Question number: 178

» Languages » C & C Plus Plus

Short Answer Question▾

Write in Short

In C programming, how do you insert quote characters (‘and’) into the output screen?

Explanation

  • This is a problem because quotes are normally part of a printf statement.

  • To insert the quote character as part of the output, use the format specifiers ' (for single quote), and " (for double quote).

Question number: 179

» Languages » C & C Plus Plus

Short Answer Question▾

Write in Short

What is c++?

Explanation

  • Released in 1985, C++ is an object-oriented programming language created by Bjarne Stroustrup.

  • Similar to C- simplifying memory management and adding features - including a new datatype known as a class - to allow object-oriented programming.

  • C++ allows for low-level memory access but also gives the programmer tools to simplify memory management.

  • Is used to make CGI scripts or console-only DOS programs.

Question number: 180

» Basic CS » Networks

Essay Question▾

Describe in Detail

What is project 802?

Explanation

  • Project started by IEEE to set standards for intercommunication between equipment from a variety of manufacturers.

  • Specifies functions of the physical layer, the data link layer, and to some extent the network layer for interconnectivity of major LAN protocols.

  • It consists of:

    • 802.1 is an internetworking standard for compatibility of different LANs and MANs across protocols.

    • 802.2 Logical link control (LLC) is the upper sublayer of the data link layer. It is non-architecture-specific- remains the same for all IEEE-defined LANs.

    • Media access control (MAC) is the lower sublayer of the data link layer containing distinct modules each carrying proprietary information specific to the LAN product being used. The modules are Ethernet LAN (802.3), token ring LAN (802.4), token bus LAN (802.5).

    • 802.6 is distributed queue dual bus (DQDB) designed to be used in MANs.

Image of the project 802

Image of the Project 802

Given the image is define the project 802