New ! Computer Applications MCQ Practise Tests



11th Standard Computer Applications JavaScript Functions English Medium Free Online Test One Mark Questions with Answer Key 2020 - 2021

11th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Applications

Time : 00:20:00 Hrs
Total Marks : 20

    Answer all the questions

    20 x 1 = 20
  1. Predefined functions are also called as

    (a)

    Library functions

    (b)

    storage functions

    (c)

    instructions

    (d)

    commands

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

    (a)

    functions

    (b)

    modules

    (c)

    sets

    (d)

    instructions

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

    (a)

    Loops

    (b)

    Functions

    (c)

    Conditional statements

    (d)

    Tokens

  4. 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 of identifiers.

    (a)

    only (i)

    (b)

    both (i) and (iii)

    (c)

    only (iii)

    (d)

    both (i) and (ii)

  5. Which of the following is not a library function?

    (a)

    prompt()

    (b)

    script()

    (c)

    write()

    (d)

    is NaN()

  6. The result of parseInt("5.68") is __________.

    (a)

    5

    (b)

    5.68

    (c)

    5.6

    (d)

    error

  7. Match the following

    (i) 7 (1) tolower Case()
    (ii) 74.36 (2) to uppercases()
    (iii) java (3) parseInt()
    (iv) JAVA (4) parsefloat()
    (a)
    i) ii) iii) iv)
    3 4 2 1
    (b)
    i) ii) iii) iv)
    3 4 1 2
    (c)
    i) ii) iii) iv)
    3 1 4 2
    (d)
    i) ii) iii) iv)
    4 3 1 2
  8. The punctuator used to identify the function is _______.

    (a)

    { }

    (b)

    < >

    (c)

    ( )

    (d)

    [ ]

  9. Which of the following statement is not true?
    (i) The function name is any valid identifier
    (ii) The function parameter list contians only one valid variable name.
    (iii) The function parameter lists parameters are seperated by

    (a)

    only (ii)

    (b)

    only (iii)

    (c)

    only (i)

    (d)

    both (ii) and (iii)

  10. The function is NaN ("A") returns _______.

    (a)

    0

    (b)

    1

    (c)

    true

    (d)

    false

  11. Which of the following statement is true?
    (i) In JavaScript, there are 3 types of functions
    (ii) User-defined functions allow the programme to modularize the program.
    (iii) Larger programs divided into smaller are called modules.
    (iv) The function isNAN( ) checks whether the given value is valid number or not.

    (a)

    only (iv)

    (b)

    only (ii) and (iii)

    (c)

    only (i)

    (d)

    both (ii), (iii) and (iv)

  12. ______are used to encapsulate code that performs a specific task.

    (a)

    Loop

    (b)

    Function

    (c)

    Control structures

    (d)

    None of these

  13. _______are used to keep code that performs a particular job in one place in order to enhance reusability and program clarity.

    (a)

    Function

    (b)

    Loop

    (c)

    Control structures

    (d)

    None of these

  14. A ____________function definition may include a list of identifiers

    (a)

    Parameterized

    (b)

    Non-parameterized

    (c)

    Either A or B

    (d)

    None of these

  15. Identify the correct statement from the following with respect to function.

    (a)

    Function invocations provide values or arguments for the function's parameters

    (b)

    Functions often use their argument values to compute a return value that becomes the value of the function invocation expression.

    (c)

    Sometimes functions are defined for commonly required tasks to avoid the repetition entailed in typing the same statements over and over.

    (d)

    All the above

  16. JavaScript supports_________ function.

    (a)

    Pre-defined

    (b)

    Library

    (c)

    User-defined

    (d)

    All the above

  17. _________is library function.

    (a)

    isNaN( )

    (b)

    to UpperCase ( )

    (c)

    to Lower Case ( )

    (d)

    All the above

  18. __________is a pre-defined function

    (a)

    toUpperCase( )

    (b)

    toLowerCase( )

    (c)

    alert( )

    (d)

    All the above

  19. _______function is used to convert given string into uppercase.

    (a)

    toUpperCase( )

    (b)

    toLowerCase( )

    (c)

    alert( )

    (d)

    All the above

  20. _______function is used to find the length of the given string.

    (a)

    parselnt( )

    (b)

    parseFloat( )

    (c)

    length( )

    (d)

    All the above

*****************************************

Reviews & Comments about 11th Standard Computer Applications JavaScript Functions English Medium Free Online Test One Mark Questions with Answer Key 2020 - 2021

Write your Comment