3i Infotech Papers: Sample Questions 112 - 114 of 1245

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

Question number: 112

» Languages » C & C Plus Plus

Essay Question▾

Describe in Detail

Find the output for the following C program

  1. main ()
  2. {
  3.     char * ptr = “Ramco Systems”;
  4.     *ptr ++;
  5.     printf ( “%s ”, ptr);
  6.     ptr++;
  7.     printf ( “%s ”, ptr);
  8. }

Explanation

  • In the program

Table showing the program

Table showing the program

char * ptr = “Ramco Systems”;

  • define the character pointer ptr= “Ramco Systems”

*ptr ++;

  • Increment the pointer ptr value

printf (“%s ”, ptr);

  • printf prints the ptr value

  • ptr thus points to “amco Systems”

ptr++;

  • ptr value is amco Systems than increment the ptr values

  • Now ptr value is “mco Systems”

printf (“%s ”, ptr);

  • printf prints the ptr value

  • ptr now is “mco Systems”

Question number: 113

» Basic CS » Networks

Short Answer Question▾

Write in Short

What is the difference between TFTP and FTP application layer protocols?

Explanation

Difference between TFTP and FTP

Difference between TFTP and FTP

TFTP

FTP

Not connection oriented

Connection oriented.

Does not use error checking.

Uses error checking and flow control

Uses UDP as transport protocol.

Uses TCP as transport protocol

Authentication is not needed.

Authentication is mandatory

Getting and putting application main concern

Provides more control and data connection aspects.

Question number: 114

» Database » MySQL

Essay Question▾

Describe in Detail

Which system tables contain information on privileges granted and privileges obtained?

Explanation

  • USER_TAB_PRIVS_MADE and USER_TAB_PRIVS_RECD are system tables containing information on privileges granted and privileges obtained.

  • USER_TAB_PRIVS_MADE:

    • Describe the object for which the current user is the object owner.

    • Columns are the same as those in ALL_TAB_PRIVS_MADE.

      Select privileges granted to others on tables in our schema

      SQL > SELECT * FROM USER_TAB_PRIVS_MADE;

  • USER_TAB_PRIVS_RECD:

    • Describe object grants for which the current user is the grantee.

    • Its columns are the same as those in ALL_TAB_PRIVS_RECD.

Types of grants:

  • Object grants for which the current user is the grantee.

  • Object grants for enabled role or PUBLIC is the grantee.