Aptitude [iSoft Placement]: Sample Questions 4 - 6 of 10

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

Question 4

Aptitude
Edit

Appeared in Year: 2004

Write in Short

Short Answer▾

When an array is passed it is by

Explanation

  • An array is passed by pointer
  • Formal parameter list can either specify the parameter as array or a pointer.
  • Function working on array needs to know where to start and stop.
  • Function can alter the value of the pointer itself, making it point to each array element in turn without affecting the value in calling function (thus pointer itself is passed by value) .

Question 5

Aptitude

Appeared in Year: 2004

Write in Short

Short Answer▾

Brace is used in C for?

Explanation

  • Brace in C is used for convention to create a body.
  • Opening brace indicates the start of a segment and closing brace indicates the end segment.

Question 6

Aptitude
Edit

Appeared in Year: 2004

Write in Short

Short Answer▾

Which can՚t be passed to subroutine?

Explanation

  • Pre-processor directive cannot be passed into a subroutine.
  • A subroutine is a sequence of program instructions the perform a specific task, packaged as a unit. This unit is used in programs where particular task should be performed.
  • They are defined within programs, or in libraries used across multiple programs.
  • Preprocessor directives are processed by pre-processor- process is called preprocessing.
  • Commands used in preprocessor are called preprocessor directives and they begin with “#” symbol.

Developed by: