3i Infotech Placement: Sample Questions 490 - 491 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 490

Edit

Describe in Detail

Essay▾

What is the output of the following program?

  1. main() {
  2.     charc =‘’, x, convert(z);
  3.     getc(c);
  4.     if((c >= ‘a’) && (c ? ‘z’))
  5.         x =convert(c);
  6.     printf(“ %c” x);
  7. }
  8. convert(z)
  9. {
  10.     returnz -32;
  11. }

Explanation

Compiler error

In the program

Table Shows the Program
char c = ‘’ , x, convert (z) ;Define the char c = blank space, declare x variable and convert (z) function with char return.
getc (c) ;Call getc () function but it՚s format is wrong

The declaration for get () function is int getc (FILE ⚹ stream)

if ( (c >= ‘a’ ) && (c⇐ ‘z’ ) )Define the if condition
x = convert (c) ;Definition of convert does not match declaration.

Question 491

Question

MCQ▾

When do you get a . PLL extension?

Choices

Choice (4)

a.

Save Library file

b.

Generate Library file

c.

Run Library file

d.

None of the above

Answer

a.

Explanation

  • . PLL file is binary library module.
  • Portable and used by system.
  • File with . PLL extension of the library is attached to a form or menu.
  • Define pre-linked libraries in oracle form.
  • Contains source codes from a design, and the compile executable during runtime.
  • Required to look at the source the code in the program.
  • Library file with extension . plx can be compiled from a library file with the . pll file extension.

Developed by: