New ! Computer Science MCQ Practise Tests



12th Standard English Medium Computer Science Subject Creative 5 Mark Questions with Solution Part -II

12th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Science

Time : 01:00:00 Hrs
Total Marks : 125
    Multiple Choice Question
    * * *
  1. The small sections of code that are used to perform a particular task is called

    (a)

    Subroutines

    (b)

    Files

    (c)

    Pseudo code

    (d)

    Modules

  2. Which of the following is a unit of code that is often defined within a greater code structure?

    (a)

    Subroutines

    (b)

    Function

    (c)

    Files

    (d)

    Modules

  3. Which of the following is a distinct syntactic block?

    (a)

    Subroutines

    (b)

    Function

    (c)

    Definition

    (d)

    Modules

  4. The variables in a function definition are called as

    (a)

    Subroutines

    (b)

    Function

    (c)

    Definition

    (d)

    Parameters

  5. The values which are passed to a function definition are called

    (a)

    Arguments

    (b)

    Subroutines

    (c)

    Function

    (d)

    Definition

  6. Which of the following are mandatory to write the type annotations in the function definition?

    (a)

    Curly braces

    (b)

    Parentheses

    (c)

    Square brackets

    (d)

    indentations

  7. Which of the following defines what an object can do?

    (a)

    Operating System

    (b)

    Compiler

    (c)

    Interface

    (d)

    Interpreter

  8. Which of the following carries out the instructions defined in the interface?

    (a)

    Operating System

    (b)

    Compiler

    (c)

    Implementation

    (d)

    Interpreter

  9. The functions which will give exact result when same arguments are passed are called

    (a)

    Impure functions

    (b)

    Partial Functions

    (c)

    Dynamic Functions

    (d)

    Pure functions

  10. The functions which cause side effects to the arguments passed are called

    (a)

    impure function

    (b)

    Partial Functions

    (c)

    Dynamic Functions

    (d)

    Pure functions

  11. Which of the following are expressed using statements of a programming language?

    (a)

    Functions

    (b)

    Algorithm

    (c)

    Interface

    (d)

    Implementation

  12. What must the used when a bulk of statements to be repeated for many number of times?

    (a)

    Algorithm

    (b)

    Program

    (c)

    Subroutines

    (d)

    Parameters

  13. Which of the following contains a set a code that works an many kinds of input and produces a concrete output?

    (a)

    Function

    (b)

    Algorithm

    (c)

    Arguments

    (d)

    Language

  14. Which of the following are the values which are passed to a function definition?

    (a)

    Parameters

    (b)

    Algorithm

    (c)

    Data types

    (d)

    Arguments

  15. The function definition is introduced by the keyword

    (a)

    def

    (b)

    rec

    (c)

    let

    (d)

    infer

  16. The recursive function is defined using the keyword

    (a)

    let

    (b)

    let rec

    (c)

    name

    (d)

    infer

  17. A function definition which call itself is called

    (a)

    user defined function

    (b)

    built-in function

    (c)

    derived function

    (d)

    recursive function

  18. Which of the following is a description of all functions in object oriented programming language?

    (a)

    Implementation

    (b)

    parameter

    (c)

    Interface

    (d)

    Arugument

  19. Which of the following is an instance created from the class?

    (a)

    parameter

    (b)

    function

    (c)

    subroutines

    (d)

    object

  20. Which of the following is an example of impure function?

    (a)

    Strlent( )

    (b)

    randomt( )

    (c)

    sqrfi( )

    (d)

    puref( )

  21. In which type of function the return type is solely depends on its argument passed?

    (a)

    pure

    (b)

    impure

    (c)

    parameterized

    (d)

    monochromatize

  22. In which type of function the return type does not solely depends on its argument passed?

    (a)

    Pure

    (b)

    Parameterized

    (c)

    Impure

    (d)

    Monochromatize

  23. Subroutines are called as________

    (a)

    Algorithm

    (b)

    Interface

    (c)

    Parameters

    (d)

    Function

  24. _______are the variables in a function definition.

    (a)

    Arguments

    (b)

    Parameters

    (c)

    Identifiers

    (d)

    Operators

  25. Explicitly_________the types can help with debugging.

    (a)

    defining

    (b)

    annotating

    (c)

    informing

    (d)

    computing

  26. In object oriented programs, how the object is processed and executed is__________

    (a)

    Implementation

    (b)

    Interface

    (c)

    recursion

    (d)

    function

  27. Strlen is an example________function.

    (a)

    user defined

    (b)

    impure

    (c)

    pure

    (d)

    recursive

  28. Evaluation of__________ functions does not cause any side effects to its output?

    (a)

    Impure

    (b)

    pure

    (c)

    Recursive

    (d)

    built-in

  29. __________ as the basic building blocks of computer programs.

    (a)

    Function

    (b)

    Algorithm

    (c)

    Subroutines

    (d)

    None of these

  30. ________ bind values to names.

    (a)

    Subroutine

    (b)

    Algorithm

    (c)

    Statement

    (d)

    Definitions

  31. _____ are not treated as definitions.

    (a)

    Subroutine

    (b)

    Expression

    (c)

    Statement

    (d)

    Algorithm

  32. The mathematical function Sin (0) always results _______.

    (a)

    1

    (b)

    0

    (c)

    -1

    (d)

    1/2

  33. _______ function remove the redundant extra calls.

    (a)

    Pure

    (b)

    Impure

    (c)

    Friend

    (d)

    None of the above

  34. _______ function does not take any arguments and it does not return any value.

    (a)

    Friend

    (b)

    Pure

    (c)

    Impure

    (d)

    let

  35. Impure functions with the same set of arguments get the ______ return value.

    (a)

    Same

    (b)

    Different

    (c)

    Zero

    (d)

    None of the above

  36. ___________ function may modify the arguments which are passed to them.

    (a)

    Friend

    (b)

    pure

    (c)

    Impure

    (d)

    None of these

  37. 5 Marks

    25 x 5 = 125
  38. Explain the concept access control.

  39. Explain complexity of an algorithm.

  40. Differentiate Algorithm and program

  41. Explain Jump statement in python.

  42. Write a program in python to display he following output.
    1
    2 2
    3 3 3
    4 4 4 4
    5 5 5 5 5

  43. Explain different types arguments used in python with an example.

  44. Write a python program to find Fibonacci series of n terms using recursion.

  45. Write a python program to print the following pattern
    *
    **
    ***
    ****
    *****

  46. How will access all elements of a list? Write the execution table example.

  47. Write a program to create a list of numbers in the range 1 to 10. Then delete all the odd numbers from the list and print the final list.

  48. Explain the detail about some important list function with an example.
    (i) copy ()
    (ii) count ()
    (iii) index ()
    (iv) reverse ()

  49. Write a python program to read prices of 5 items in a list and then display sum of all the prices, product of all the prices and find the average.

  50. Write a program to create a list of numbers in the range 1 to 10. Then delete all the even numbers from the list and print the final list.

  51. Explain with an example how will you return multiple values in tuples.

  52. Write a program that has a list of positive and negative numbers. Create a new tuple that has only positive numbers from the list.

  53. Write a program that generate a set of prime numbers and another set of even numbers. Demonstrate the result of union. intersection. difference and symmetric difference operations.

  54. Write a program to store product and its cost price. Display all the available products and prompt to enter quantity of all the products. Finally generate a bill which displays the total amount to be paid.

  55. Write the processing skills of SQL.

  56. Write a program to read the CSV file through python using reader ( ) method.

  57. Write a program to read the CSV file with user defined delimiter.

  58. How will you sort more than one column in a CSV file? Explain with an example.

  59. Write a program to read CSV file with a line Terminator.

  60. Explain the commands for wrapping C++ code.

  61. Write a python program to execute the following C++ program.
    Transpose of a matrix(2 D array) C++ program:
    #include < iostream >
    using namespace std;
    int main ( )
    {
    int a[3][3], i, j;
    for(i=0; i< 3; i++)
    {
    for(j=0; j<3; j++)
    {cout<< "enter the value for
    array["<< i+ 1<< "]"<< " ["<< j+ 1<< "] :";
    cin >>a[i][j];
      }
    }
    system ("cIs");
    cout<< "\n\nOriginal Array\n";
    for(i=0; i<3; i++) {
    for(j=0; j<3; j++ )
    cout<< a[i][j]«' ';
    cout<< endl; }
    cout<< "\n\n The Transpose of Matrix\n";
    for (int i = 0; i < 3; i++)

      for (int j = 0; j < 3; j++)
    cout<< a[j][i]<< ' ';
    cout<< endl;

    return 0;
    }
    // Save this file as trans_cpp.cpp

  62. Write a python program to execute the following C++ program
    To implement Multilevel Inheritance:
    // C++ program to implement Multilevel Inheritance
    // Now select File ⟶New in Notepad and type the C++ program
    c++ Program.
    #include < iostream >
    using namespace std;
    // base class
    class Vehicle
    {
    public:
    Vehicle ( )
    {
    cout<< "This is a Vehicle" << endl;
    }
    };
    class threeWheeler: public Vehicle
    { public:
    three Wheeler ( )
    {
    cout << "Objects with 3 wheels are vehicles" << endl;
      }
    };
    // sub class derived from two base classes
    class Auto: public threeWheeler{
    public: 
    Auto ( )

    cout<< "Auto has 3 Wheels"<< endl;
    };
    // main function
    int main ( )
    {
    //creating object of sub class will invoke the constructor of base classes
    Auto obj;
    return 0;
    }
    // Save this file as inheri_cpp.cpp

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

Reviews & Comments about 12th Standard English Medium Computer Science Subject Creative 5 Mark Questions with Solution Part -II updated Creative Questions

Write your Comment