TCS Papers: Sample Questions 369 - 371 of 502

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

Question number: 369

» Languages » C & C Plus Plus

Essay Question▾

Describe in Detail

What does the function toupper () do?

Explanation

  • function int toupper (int c) converts lowercase letter to uppercase.

  • Syntax: int toupper (int c);

  • This function returns uppercase equivalent to c, if such value exists, else c remains unchanged.

  • The value is returned as an int value that can be implicitly casted to char.

  • Example:

  1. #include<stdio.h>
  2. #include<ctype.h>
  3. int main()
  4. {
  5.     int i=0;
  6.     char c;
  7.     char str[] = “welcome friends”;
  8.     while(str[i])
  9.     {
  10.         putchar(toupper(str[i]));
  11.         i++;
  12.     }
  13.     return 0;
  14. }
  • Let us compile and run the above program to produce the following result-

WELCOME FRIENDS

Question number: 370

» Basic CS » Networks

Essay Question▾

Describe in Detail

What is wide-mouth frog?

Explanation

  • The Wide Mouth Frog protocol is an authentication protocol designed for insecure networks (the Internet for example).

  • Allows communicators to prove their identity to each other while preventing eavesdropping or replay attacks

  • Provides detection of modification and the prevention of unauthorized reading.

  • It is the simplest known key distribution center (KDC) authentication protocol.

The wide-mouth-frog protocol (WMF)

The Wide-Mouth-Frog Protocol (WMF)

The wide-mouth-frog protocol (WMF)

Question number: 371

» Basic CS » Networks

Essay Question▾

Describe in Detail

Difference between the communication and transmission.

Explanation

Difference between communication and transmission

Difference between communication and transmission

Communication

Transmission

Full exchange of information between two communication media- refers to overall dialogue between the source and destination

Physical movement of information concerned with issues like bit polarity, synchronization, clock etc.

Process of sending and receiving data by means of a data cable connected externally.

Means the transfer of data from the source to the destination.

Two-way interactive process where participants actively share their data.

One way data transfer