By QB365 on 13 May, 2022
QB365 provides detailed and simple solution for every Creative Questions in class 12 Computer Science Subject. It will helps to get more idea about question pattern in every Creative questions with solution.
latest Creative Questions12th Standard
Computer Science
The small sections of code that are used to perform a particular task is called
Subroutines
Files
Pseudo code
Modules
Which of the following is a unit of code that is often defined within a greater code structure?
Subroutines
Function
Files
Modules
Which of the following is a distinct syntactic block?
Subroutines
Function
Definition
Modules
The variables in a function definition are called as
Subroutines
Function
Definition
Parameters
The values which are passed to a function definition are called
Arguments
Subroutines
Function
Definition
Which of the following are mandatory to write the type annotations in the function definition?
{ }
( )
[ ]
< >
Which of the following defines what an object can do?
Operating System
Compiler
Interface
Interpreter
Which of the following carries out the instructions defined in the interface?
Operating System
Compiler
Implementation
Interpreter
The functions which will give exact result when same arguments are passed are called
Impure functions
Partial Functions
Dynamic Functions
Pure functions
The functions which cause side effects to the arguments passed are called
Impure function
Partial Functions
Dynamic Functions
Pure functions
Which of the following are expressed using statements of a programming language?
Functions
Algorithm
Interface
Implementation
What must the used when a bulk of statements to be repeated for many number of times?
Algorithm
Program
Subroutines
Parameters
Which of the following contains a set a code that works an many kinds of input and produces a concrete output?
Function
Algorithm
Arguments
Language
Which of the following are the values which are passed to a function definition?
Parameters
Algorithm
Data types
Arguments
The function definition is introduced by the keyword
def
rec
let
infer
The recursive function is defined using the keyword
let
let rec
name
infer
A function definition which call itself is called
user defined function
built-in function
derived function
recursive function
Which of the following is a description of all functions in object oriented programming language?
Implementation
parameter
Interface
Arugument
Which of the following is an instance created from the class?
parameter
function
subroutines
object
Which of the following is an example of impure function?
Strlent( )
randomt( )
sqrfi( )
puref( )
In which type of function the return type is solely depends on its argument passed?
pure
impure
parameterized
monochromatize
In which type of function the return type does not solely depends on its argument passed?
Pure
Parameterized
Impure
Monochromatize
Subroutines are called as________
Algorithm
Interface
Parameters
Function
_______are the variables in a function definition.
Arguments
Parameters
Identifiers
Operators
Explicitly_________the types can help with debugging.
defining
annotating
informing
computing
In object oriented programs, how the object is processed and executed is__________
Implementation
Interface
recursion
function
Strlen is an example________function.
user defined
impure
pure
recursive
Evaluation of__________ functions does not cause any side effects to its output?
Impure
pure
Recursive
built-in
__________ as the basic building blocks of computer programs.
Function
Algorithm
Subroutines
None of these
________ bind values to names.
Subroutine
Algorithm
Statement
Definitions
_____ are not treated as definitions.
Subroutine
Expression
Statement
Algorithm
The mathematical function Sin (0) always results _______.
1
0
-1
1/2
_______ function remove the redundant extra calls.
Pure
Impure
Friend
None of the above
_______ function does not take any arguments and it does not return any value.
Friend
Pure
Impure
let
Impure functions with the same set of arguments get the ______ return value.
Same
Different
Zero
None of the above
___________ function may modify the arguments which are passed to them.
Friend
pure
Impure
None of these
5 Marks
Explain the concept access control.
Explain complexity of an algorithm.
Differentiate Algorithm and program
Explain Jump statement in python.
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
Explain different types arguments used in python with an example.
Write a python program to find Fibonacci series of n terms using recursion.
Write a python program to print the following pattern
*
**
***
****
*****
How will access all elements of a list? Write the execution table example.
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.
Explain the detail about some important list function with an example.
(i) copy ()
(ii) count ()
(iii) index ()
(iv) reverse ()
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.
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.
Explain with an example how will you return multiple values in tuples.
Write a program that has a list of positive and negative numbers. Create a new tuple that has only positive numbers from the list.
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.
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.
Write the processing skills of SQL.
Write a program to read the CSV file through python using reader ( ) method.
Write a program to read the CSV file with user defined delimiter.
How will you sort more than one column in a CSV file? Explain with an example.
Write a program to read CSV file with a line Terminator.
Explain the commands for wrapping C++ code.
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
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