COMPUTER SCIENCE
cycle test-vi
vol 2: 1 and 12 lessons
TIME : 03:00 hr STD: XII B AND C MARK : 150
I. Choose the correct answer: 75 X1 =75
1.Which amongst the following called “address of operators” in c++?
a):: b)size c)& d)*
2. 5846E1 represents
a)5.864 b)0.05864 c)58.64 d)0.5864
3.In the array, int sales[2][4]; the first row and second column is
a)sales [1][2] b)sales [2][1] c)sales [0][1] d)sales [1][0]
4.Data type can be classified into how many types in c++?
a)2 b)3 c)4 d)5
5.In c++, the destructor start has tilled symbol sub fixed by
a)# b)
c)* d)class name
6.How many destructors can be class contain?
a)1 b)2 c)3 d)4
7.Elecronic pet is
a)kara –oke b)Root c)E-pet d)Robot
8.Which of the following is starting point for the execution of a program
a)main() b)function c)void() d)# include
9.When the first object of the class created. what value is initialized to static member variable?
a)1 b)0 c)-1 d)Null
10. Members of class are accessed using which operator
a) colon b)dot c)scope resolution d)semicolon
11.Which is the process of creating new class from the existing or base class?
a)Inheritance b)Encapsulation c)Polymorphism d)Constructor
12.The constructor without parameter is called
a)Method constructor b)Operator constructor c)default constructor
d)function constructor
13.Which enable data storage and management ?
a)Emotion containers b)memo frame c)Data monitors d)Archive unit
14.The base class is called as ___ class
a)base with b)main c)parent d)child
15.There are ____ access specifies
a)2 b)3 c)4 d)6
16.____ keyword is used to define the name of the derived class
a)class b)abstracts c)sub d)user defined
17.The word polymorphism means many ____
a)shapes b)forms c)Reports d)Many data
18.Operator function must be either member function or _____
a)main function b)sum function c)sub function d)friend function
19._____ is achieved through function overloading and operators overloading in c++.
a)Function b)class c)polymorphism d)Inheritance
20.____ are called as attribute
a)Data objects b)member function c)member file d)Data members
21.Class comprise of ____
a)variable b)data type c)member d) function
22.____ is a member of standard output stream
a)writer b) strcmp() c)wait d)cin
23.A first indexes of the 2-D array refers to ____
a)column b)Rows c)0 d)1
24.A black of code begin with
a) { } b){ c) } d) ( )
25.If statement are implemented in ___ forms
a)2 b)4 c)3 d)5
26.The letter ____ is used to represent the floating point constant exponent form
a)e b)f c)E d)Both (a) & (c)
27.Escape sequence are represented using characters prefixed with a
a)Forward slash b)back slash c) /
d)\
28. ## are used by the ____
a)per processor b)double processor c)pre processor d)operator
29.____ are also called an variable
a)Pointer b)Variable c)Identified d)Token
30.A sequence of digits staring with _____ is treated as octal constant
a) 0 b)1 c)2 d) -1
31. There are _________ types of overloading
a) 2 b) 3 c) 4 d) 5
31. An ________ function refers to a function having more than one distinct meaning
a) instance b) overloaded c) inline d) None of these
32. The ability of the function to process the message or data in more than one form is called as __________
a) Data overloading b) Function overloading c) Variable overloading d) Constant overloading
33. The _________ function definitions are permitted for user defined data type.
a) instance b) overloaded c) inline d) None of these
34. The operator function operator(), should be declared in the _____ part of the class.
a) public b) private c) protected d) None of these
35. The functionality of _________ operator can be extended to strings through operator overloading.
a) + b) - c) & d) ,
36. _________ strategy is adapted by the compiler when functions invoked in function overloading.
a) Right Match b) Right c) Best Match d) Best
37. Which of the following is a membership operator.
a) . b) :: c) & d) !
38. The _______ function is used to concatenate two strings.
a) strcmp() b) strcat() c) strcpy() d) None of these
39. When an instance of a class comes to scope ______ gets exeuted.
a) Constructor b) destructor c) overloading d) None of these
40.The _____ benefits the long time preservation of the documents.
a)E-Governance b)Data Management c)Medical Transcription d)Digitization
41._____ service comprise punching data from manually filled forms, images.
a)Data processing b)digitization c)call enter d)e-Governance
42.Word processors, Spread sheets and Database have ensured that many _ services are IT enabled.
A) Traditional b) novel c) unique d) none of these
43.The sound is digitized and send to the ____ provider in medical Transcription.
a)Internet b)ITES c)Hub d)None of these
44.Making and using duplicate hardware and software is called ____
a)piracy b)cracking c)breaking d)None of these
45._____ law prevents computer crimes in India.
a)computer b)Cyber c)crime d)civil
46.A __is a self -replication program that can cause damage to data an files stored on your computer
a)virus b)Password c)ID d)crime
47.How many virus programs are in existence?
a)37,000 b)47,000 c)57,000 d)67,000
48.The ____ security is protecting data and computer system.
a)physical b)personal c)personnel d)None of these
49._____ percentage of crimes happen within the company.
a)40 % b)60% c)80% d)None of these
50._____ security refers to the protection of hardware, facilities, magnetic disks and other items.
a) physical b)personal c)personnel d)None of these
51.User IDS and _____ are common tools that permit only authorized access to the system.
a)Password b)user name c)login id d)Network id
52.The idle computer time of an organization can be stolen illegally known as theft of _____
a)cyber time b)computer time c)net d)None of these
53.In ____ a variety of materials as diverse as maps, manuscripts, moving images and sound may be digitized
a)Call centre b)data management c)Medical transcription d)Digitization
54.Over._____ of all computer crimes go unreported.
a)40 % b)60% c)80% d)None of these
55.____ refers to protecting data and computer system against dishonesty.
a) physical b)personal c)personnel d)None of these
56.____ is developing all over the Globe
a)TV b) IT c) news paper d) application
57. ______ thus has the potential to take the power of IT to users who do not know IT.
a)Internet b)ITES c)Hub d)None of these
58.Word processors, spreadsheets and Databases have ensured that many ____ services are IT enabled.
a)traditional b)novel c)unique d)None of these
59.____ are called as methods.
a)Data functions b)Member functions c) data members d)Instances functions
60.In the class by default the members will be treated as_____
a)public b)private c)global d)protected
61.The most important feature of C++ is the ____
a)object b)instantiation c)class d)function
62.A class specification has ____ parts
a)1 b)2 c)3 d)4
63.The body of class is terminated by a ___
a). b); c): d)#
64.The body of a class is enclosed within a_____
a)[] b){} c)() d)<>
65.How many copy of the member variable is created if it is a static?
a)1 b)2 c)3 d)4
66. ---- induce the reusability of code. a) main( ) b) Functions c) C++ d) Program
67. A function can be called from another function by using its ---- a) name b) arguments c) parameters d) expression
68. The calling function parameters are called as ____
a)formal parameters b) dummy parameters c) duplicate d) actual parameters
69. A ---- variable is shared by all the objects of a same class.
a) static member b) scope c) local d) dot
70. Which of the following error message will appear, when we try to access the private members of a class, from outside of the class ? a) Unexpected Error b) Not Accessible c) Invalid Statement d) Invalid Access
71. A member function can call another member function without using dot operator, this is called as ---
a) Nesting of Member Functions b) Nested Loops c) Function Call d) Static Function
72. Identify the scope of the variables I, K in the program segment
#include < iostream.h >
int I = 10 ;
void identify( )
{
. . .
while ( ! ch )
{
int K;
. . .
}
}
void main( )
{
. . .
}
a) local , function b) function , file c) class , file d) file , local
73. The memory allotted for the array “int stud[5] ;” is ---- bytes a) 5 b) 10 c) 20 d) 40
74. Write the output. int arr[5] = {10, 20, 30, 40, 50}, x=2 ; cout < < arr[++x] ;
a) 10 b) 20 c) 30 d) 40
75. Write the array reference for the highlighted elements in array called ‘num’
8
|
-10
|
5
|
6
|
108
|
1
|
87
|
63
|
45
|
8
|
9745
|
46
|
892
|
1204
|
456
|
-778
|
a) num [2][3] b) num [3][2] c) num[1][2] d) [2][1]
II. Answer any twenty of the following: 20 x 2 =40
1.List any two advantages of OOP,
2. Write a note on assignment operators.
3.List out user defined data types.
4.What are pointer variables?
5.Write a note on size of operator.
6.Write the syntax of nested if statement.
7.What are the various sections of a c++ program?
8. Write the advanges of using functions?
9.What are the main purpose of function prototype?
10.What is the purpose of strlen() function?
11. What is 2D array? How will you declare two dimensional array?
12.Write a note on array of objects.
13.explain the access specifiers of a class.
14. What are Data members and member function of a class?
15.What are the different types of inheritance.
16. What are the advantages of inheritance.
17.What is memo frame?
18. What is e-governance?
19.What is computer crime? Write any two common crime.
20.What is meant by theft o computer time?
21. What is the used of call centers?
22.What are the functions invoked in function overloading?
23.List the types of scope of a variables in c++.
24.Write a brief note on break and continue statements.
III. Answer any seven of the following: 7 x 5 = 35
1.What is loop? Explain the different types of loops.
2. Explain selection with suitable example.
3. Explain inline functions with an example.
4. Explain call by value method with suitable example.
5. What are the various rules while overloading operators in c++.
6.Explain the different types of inheritance.
7.What is function overloading with example?
8. Explain the different scopes of a variable in c++.
9.Explain selection with suitable example.
10.Explain if and if… else statements with suitable example.
No comments:
Post a Comment