11th Standard EM - Computer Applications - T2 - JavaScript Functions

Buy 11th Computer Applications MCQ Online Test Practice test pack

Question - 1

The parameters work as

  • A Local variable
  • B Global Variable
  • C File variable
  • D block variable

Question - 2

Predefined functions are also called as

  • A Library functions
  • B storage functions
  • C instructions
  • D commands

Question - 3

Larger programs are divided into smaller are called

  • A modules
  • B block
  • C sets
  • D Group

Question - 4

Which of the following is used to enhance reusability and program clarity.

  • A functions
  • B modules
  • C sets
  • D instructions

Question - 5

Which of the following allow the programmer to modularize a program

  • A Library functions
  • B user defined functions
  • C Normal functions
  • D Ordinary functions

Question - 6

Which of the following is defined once but invoked any number of times in JavaScdpt?

  • A Branch
  • B Loop
  • C Function
  • D Script

Question - 7

Which of the following are used to encapsulate code that performs a specific task?

  • A Loops
  • B Functions
  • C Conditional statements
  • D Tokens

Question - 8

How many types of functions in JavaScript supports?

  • A 2
  • B 3
  • C 4
  • D many

Question - 9

Which of the following statement is false?
(i) JavaScript function is defined once and executed once.
(ii) Pre-defined functions are not called library functions.
(iii) A parametered function definition may include a list ofidentifiers.

  • A only (i)
  • B both (i) and (iii)
  • C only (iii)
  • D both (i) and (ii)

Question - 10

Function invocations provide value for the function's

  • A body
  • B execution
  • C parameters
  • D expression