3i Infotech Placement: Sample Questions 474 - 476 of 1245

Glide to success with Doorsteptutor material for competitive exams : get questions, notes, tests, video lectures and more- for all subjects of your exam.

Question 474

Edit

Write in Short

Short Answer▾

What is the output of the following program?

  1. main ()
  2. {
  3.     intk =1;
  4.     printf(“%d==1is” “%s” k, k == 1? “TRUE” :“FALSE”);
  5. }

Explanation

1 == 1 is TRUE

In a program

Table Shows the Program
int k = 1;Given the integer variable k = 1
printf ( “% d == 1 is” “% s” k, k == 1? “TRUE” : “FALSE” ) ;Two strings are placed together.

They are concatenated (this is called as “stringization operation” ) .

So the string is interpreted as “% d == 1 is % s” .

The conditional operator (? :) evaluates to “TRUE” .

Question 475

Write in Short

Short Answer▾

A person walking of his usual rate is 40 minutes late. What is his usual time?

Explanation

Person is walking of his usual speed.

So, he will take of time his usual time.

Let, usual time of person is x hours.

So,

x = 3 hours 20 minutes

So, usual time of person is 3 hours and 20 minutes.

Question 476

Edit

Write in Short

Short Answer▾

What is meant by Proactive, Retroactive and Simultaneous Update.

Explanation

  • Proactive Update:
    • Applied to database before it becomes effective in real world.
  • Retroactive Update:
    • Applied to database after it becomes effective in real world.
  • Simultaneous Update:
    • Applied to database at the same time when it becomes effective in real world.

Developed by: