· pdf file12.11.2017 · 7. what is operator, ... stardraw file exit www ... step...

22
Volume-II Object Oriented Programming-C++ N. Mohan., MCA., B.Ed Two marks & Five Marks Mobile: +91- 9677635246 E-Mail: [email protected] TWO MARKS 1. What is polymorphism? 2. What is Encapsulation? 3. What is Object? What is Significance of an object? 4. What is class? 5. What is Inheritance? 6. What is token and its classification? 7. What is Operator, Character Constant, Integer Constant, Floating point Constant? 8. What is Relational Operator? Give example. 9. What is Logical or Boolean Operator? Give example. 10. What is Conditional Operator? Give example. 11. What are data types? 12. What is typedef? 13. What is storage class? What are the types? 14. What is the function of Void Data type? 15. What is Pointer Variable and how it is differ from ordinary variable? 16. What are the uses of operators which is related to a pointer variable? 17. What is Variable? 18. What is Modifier? 19. What are the impacts of modifiers? 20. What is Implicit Conversion? Give Example. 21. What is use of “Size of” operator? 22. What is TypeCast? Give Example. 23. What is cascading operator (Cascading of Extraction and Cascading of Insertion Operator)? 24. What are the sections of C++ Program? 25. What is Assignment Statement? 26. What is Control Structures? 27. Define If…Else Statement. 28. Define Switch Statement. 29. Define Simple If Statement. www.Padasalai.Net www.TrbTnpsc.com http://www.trbtnpsc.com/2013/07/latest-12th-study-materials-2013.html www.Padasalai.Net

Upload: truongkien

Post on 08-Mar-2018

222 views

Category:

Documents


6 download

TRANSCRIPT

Volume-II Object Oriented Programming-C++ N. Mohan., MCA., B.Ed

Two marks & Five Marks

Mobile: +91- 9677635246 E-Mail: [email protected]

TWO MARKS 1. What is polymorphism?

2. What is Encapsulation?

3. What is Object? What is Significance of an object?

4. What is class?

5. What is Inheritance?

6. What is token and its classification?

7. What is Operator, Character Constant, Integer Constant, Floating point Constant?

8. What is Relational Operator? Give example.

9. What is Logical or Boolean Operator? Give example.

10. What is Conditional Operator? Give example.

11. What are data types?

12. What is typedef?

13. What is storage class? What are the types?

14. What is the function of Void Data type?

15. What is Pointer Variable and how it is differ from ordinary variable?

16. What are the uses of operators which is related to a pointer variable?

17. What is Variable?

18. What is Modifier?

19. What are the impacts of modifiers?

20. What is Implicit Conversion? Give Example.

21. What is use of “Size of” operator?

22. What is TypeCast? Give Example.

23. What is cascading operator (Cascading of Extraction and Cascading of Insertion Operator)?

24. What are the sections of C++ Program?

25. What is Assignment Statement?

26. What is Control Structures?

27. Define If…Else Statement.

28. Define Switch Statement.

29. Define Simple If Statement.

www.Padasalai.Net www.TrbTnpsc.com

http://www.trbtnpsc.com/2013/07/latest-12th-study-materials-2013.html

www.Padasalai.Net

Volume-II Object Oriented Programming-C++ N. Mohan., MCA., B.Ed

Two marks & Five Marks

Mobile: +91- 9677635246 E-Mail: [email protected]

27. Define Nested if Statement.

28. Define For… loop.

29. Define While…. loop.

30. Define do…while loop.

31. What is Loop?

32. Write the differences between Continue and Break statement.

33. What is Nested Loop?

34. What are rules formation of Nested loop?

35. What is function? List its advantages.

36. Give syntax for Function Prototype.

37. What is Parameter?

38. Write the differences between Call by Value and Call by reference.

39. What is Inline Functions?

40. Write the rules for Actual Parameters.

41. What is default arguments?

42. What are Scopes of Variable?

43. What is Array? List its types.

44. What is Strings?

45. What is the use of write( ) function? Or What are the methods to display the contents of the string?

46. What are string manipulation functions available explain it.

47. Define Array Memory Representation.

48. What is Matrix?

49. What is Array of String?

50. What is Class?

51. What are the Class specifications?

52. What is Data Abstraction?

53. What is Data Hiding?

54. What is Friend Function?

55. Define Data Member and Member function.

56. How to access a class member in a class?

57. What is Static Data Members?

www.Padasalai.Net www.TrbTnpsc.com

http://www.trbtnpsc.com/2013/07/latest-12th-study-materials-2013.html

www.Padasalai.Net

Volume-II Object Oriented Programming-C++ N. Mohan., MCA., B.Ed

Two marks & Five Marks

Mobile: +91- 9677635246 E-Mail: [email protected]

58. What is Array of Objects?

59. What is Function Overloading?

60. How functions are invoked in function overloading?

61. Define Integral Promotions.

62. What is Constructor? List its rules. What is Destructor? List its rules.

63. What is Copy constructor? When it is executed?

64. What are the advantages of Inheritance?

65. What is Accessibility?

66. What are the types of Inheritance?

67. What are 3 Technical Elements?

68. What is E-Banking?

69. What is E-Learning?

70. What is E-Shopping?

71. List some IT Enables Services.

72. What is E-Governance?

73. What is Call Centers?

74. What is Data Management?

75. What is Digitization?

76. List some Website Services.

77. What is Data Security? List its types.

78. What is Physical Security?

79. What is Personnel Security?

80. What is Personal Security?

81. What is Piracy?

82. What is cracking?

83. What is Theft of Computer Time?

www.Padasalai.Net www.TrbTnpsc.com

http://www.trbtnpsc.com/2013/07/latest-12th-study-materials-2013.html

www.Padasalai.Net

Volume-II Object Oriented Programming-C++ N. Mohan., MCA., B.Ed

Two marks & Five Marks

Mobile: +91- 9677635246 E-Mail: [email protected]

FIVE MARKS 1. Explain Entry Check loop for and while?

2. Explain Exit Check loop do…..while?

3. Explain if….else with an example.

4. Explain Switch statement with an example.

5. Explain Nested… if statement with an example.

6. Explain Call by Value with an example.

7. Explain Call by Reference with an example

8. What is Inline function? Explain with an example.

9. What are scopes of variable?

10. What is Operator overloading explain with program? List Operator Overloading rules.

11. What is Function overloading explain with program? List Function Overloading rules.

12. Explain different types of inheritance.

13. Explain Constructor & Destructor definition and rules.

14. What are the points to be observed while deriving a class.

15. What is accessibility? Explain in detail.

www.Padasalai.Net www.TrbTnpsc.com

http://www.trbtnpsc.com/2013/07/latest-12th-study-materials-2013.html

www.Padasalai.Net

Star Office & Object Oriented Programming-C++ N. Mohan., MCA., B.Ed

Important Keys

Mobile: +91- 9677635246 E-Mail: [email protected]

1.Write some Word Processors & Spreadsheet Packages

S.No Word Processors Spreadsheet Packages

1 MS Word MS Excel (Microsoft)

2 Lotus Amipro Quattro Pro (Borland International)

3 Word Perfect Improve

4 Word Star StarOffice Calc-Sun Mircro System

5 Word Pro

2. Windows screen

Top of the window Menu Bar

Below Menu Bar Mail Tool bar

Below Main Tool bar Function Bar and Object Bar

[These bar have shortcut icons for frequent done tasks]

Below Function & Object Bars

Formula bars

At the Extreme Bottom Status bars and Scroll bars

3. Hard Formatting Enter Key [Used for making new line & Creating a Paragraph]

4. Soft FormattingLine Breaks

5. Multiple documents: Window Menu & Document button at task bar

6. Remove HighlightingNo Fill

7. Correcting Mistakes in two ways:

While Typing [Auto spellcheck] After Typing [Spell check]

ON/OFF->Red Squiggly lines F7

Backspace Tools->Spelling->Check

Right Click->Select with alternate spellings

8. Auto correct:

It is used to correct some commonly misspelled words automatically.

9. Auto correct Dialog box: Only One Check Box

10. Printing

Star Writer Star Calc

File->Page Preview [To see the changes]

File->PageView [This is normally like Print Without

Grid Lines]

Format->Page [PageStyle dialog box will open]

Select Sheet Tab Grid check should be

checked then print with grid lines.

11. In Header Tab 4 Spin Boxes are Available

12. Closing:

To Close a documents alone

Use this command: FileClose

To Quitting From StarOffice

Like StarWriter /StarCalc /Star Impress / Starbase /

Stardraw

FileExit

www.Padasalai.Net www.TrbTnpsc.com

http://www.trbtnpsc.com/2013/07/latest-12th-study-materials-2013.html

www.Padasalai.Net

Star Office & Object Oriented Programming-C++ N. Mohan., MCA., B.Ed

Important Keys

Mobile: +91- 9677635246 E-Mail: [email protected]

13. Operator Precedence:

14. Range:

Continuous group of cell in a worksheet is called range.

For ex: =sum(c1:c7)

15. Format Menu is used to Format cell.

16. Default Formatting (like a Templates)

StarWriter StarCalc

Style Autoformat Sheet

Default set of formatting for text Predefined styles and colors

17. To Change the column width: Format Column Width

18. To Draw-> Calc will provide some facilities line/square/ellipse/rectangle Show draw functions icon.

19. Printing Worksheets:

Normal format for printing worksheets FilePrint

Range to be printed FormatPrint RangesEdit

To Remove print range setting FormatPrint RangesDelete

Databases

19. To make up a database components:

File or Table Entire Collection of related data in one table

Record (Row) Each row represents Record

Field (Column) Each column Represents Fields,

(Which groups each piece or item among the

records into a specific categories of types of data)

20.Multiple users to access and share data in the same database by way of networked computer system->DBMS

21. Table Design Dialog box:

It contains 3 Columns

1. 1st Columns representsField Name

2. 2nd

Columns represents Field Type

3. 3rd

Column representsDescription

Field Properties:

Entry Required User Should always enter a value for that field

Length Specify the maximum character

Default Value Specify a default value

Format Example Specify the number format and alignment of the text or number

Field Type / Number

/ Length

Field Properties

1 Exponentiation ^

2 Negation -

3 Multiplication & Division * /

4 Addition & Subtraction + -

www.Padasalai.Net www.TrbTnpsc.com

http://www.trbtnpsc.com/2013/07/latest-12th-study-materials-2013.html

www.Padasalai.Net

Star Office & Object Oriented Programming-C++ N. Mohan., MCA., B.Ed

Important Keys

Mobile: +91- 9677635246 E-Mail: [email protected]

22. Record Pointer is a small triangle on the left most column of the table.

23. Star Writer will wrap the text to the next line and expand the cell making it taller not a wider.

24. List a subset of records Querying a database

25. Filter:

26. Insert a calc cell range into a document:

1. EditCopy

2. EditPaste special

3. Paste special Dialog boxDDE Link

4. Click Ok

27. In the text document that contains the outline, FileSendSend Outline to Presentation

To Transfer each heading with its accompanying

paragraph.,

FileSendAuto Abstract to Presentation

Multimedia

1. A High-End Extension of these games the Flight Stimulator that is used to train pilots.

2. Animated Movies:

1. Finding Nemo

2. Polar Express

3. Ice Age

4. Sindbad

5. Pandavas

6. Hanuman (Both Adults & Child)

3. Multimedia simulations are very effective in explaining difficult concepts and factsLearning more and

effective.

4. Interactive Multimedia:

Multimedia Application that allows user to actively participate instead of just sitting as passive

recipients of information are called “Interactive Multimedia”.

5. Virtula Reality:

The Various multimedia components are co-ordinates with a technique is called Virtual Reality. (Similar to

reality like as Flight simulator)

6.

1

Gif (Perfect reproduction of original images) 8 Bit Pallette

2 Photographs are typical examples of Static Images

3 Vector Graphics Helps rendering the image effectively on the screen

4 Special Hardware Vector Graphics Card

Auto Filter Display only records

Standard Filter Filter used with a condtion

www.Padasalai.Net www.TrbTnpsc.com

http://www.trbtnpsc.com/2013/07/latest-12th-study-materials-2013.html

www.Padasalai.Net

Star Office & Object Oriented Programming-C++ N. Mohan., MCA., B.Ed

Important Keys

Mobile: +91- 9677635246 E-Mail: [email protected]

7. Sound

2 Attributes of Sound

1. Amplitude

2. Frequency

The Volume is the height of the each crest in the wave

Frequency is also called as Pitch

8. Sound Forge

Add Special Effects Such as Fade in / Fade Out/ Echo Sound Editing Programs

9. Animations:

Animations are used to illustrate and demonstrate an idea or a concept.

10. Animations

2D Animation 3D Animation

1. Cell Based Animation

2. Object Based Animation 1.Modelling

2. Animating

3. Rendering

11. Morphing: Blending two or more image to form a new image

Warping: Distorting a single image to represent something else.

Staroffice Impress

1. Presentation Wizard

Step 1: Type o Empty Presentation

o From Template

o Open Existing Presentation

Step 2: Slide Design Presentation Backgrounds

Step 3: Slide Transition Effects & Speed

2.Show LogoPause between each presentation

3. Templates: File->New->Templates and Documents

Shift + Ctrl + N

4. Status BarNumber of Slides

5. There are 5 Tabs (Views) available in Presentation wizard

Normal View Create & Edit

Outline View Re-Order /Edit & Titles

Handout View Several slides fit into a page

Notes View Add notes to the slide

Slide Sorter Miniature of all the slides

6. Master Page:

Specify basic background information that needs to be included in all the slides

www.Padasalai.Net www.TrbTnpsc.com

http://www.trbtnpsc.com/2013/07/latest-12th-study-materials-2013.html

www.Padasalai.Net

Star Office & Object Oriented Programming-C++ N. Mohan., MCA., B.Ed

Important Keys

Mobile: +91- 9677635246 E-Mail: [email protected]

7. Custom Animation:

Various Options to Add or Modify Animation Effects

8. By default documents will be saved as

. Ods StarCalc

.Odt StarWriter

.Odp Star Impress

9. Start a Presentation: 3 ways to start a presenation

1. F5 2. Slide Show Icon 3. Slide show->Slide Show

10. Presentation Setting: Slide ShowSlide Show Settings

11. To open a Media Player: ToolsMediaPlayer

12. To change the background: FormatPageBackground

Background Fill Options

1. Color 2. Gradient 3. Hatching 4. Bitmap Image

13. Apply new Design:

1. FormatSlide Design

2. To Apply the slide design to all of the slides in the presentation: Exchange Background Page

3. To Apply the current slide only : Clear the Exchange background Page

14. F11 key or command FormatStyles and Formatting

15. Total number of Outline views 9

16. FileExport (To Export different formats)

17. EditNavigator or Icon Move Slide to slide quickly

Notes:

S.

No

Software

Package

Developed by Year Rows&

Columns

Uses

1 VisiCalc Micro Computer 1979 1 To 254

&

A to BK

Financial Analysis

Program

2 Lotus 1-2-3 Lotus Development

Corporation

1982 1 To 254

&

A to BK

Database

Management graphics

3 MS Excel Microsoft 1982

Later

1 to 32000

A To AZ

Account Statement

4 Quattro Pro Borland International 1982

Later

1 to 32,000

A To AZ

Invoices

5 Improve Lotus Development

Corporation

1982

Later

1 to 32000

A To AZ

Invoices

6 StarOffice Calc Sun Mirco Systems 1982

Later

1 to 32000

A To AZ

Payment tax, Income tax,

Invoices, inventory

control

www.Padasalai.Net www.TrbTnpsc.com

http://www.trbtnpsc.com/2013/07/latest-12th-study-materials-2013.html

www.Padasalai.Net

Star Office & Object Oriented Programming-C++ N. Mohan., MCA., B.Ed

Important Keys

Mobile: +91- 9677635246 E-Mail: [email protected]

II-Volume

C++ Object Oriented Programming

Important Keys

1. Objects communicates with one another by sending data as inputs.

2. Thinking about functions and object behavior in the key factor object-oriented programming.

3. 5.864 E1 58.64

5864E-2 58.64

0.5864E2 58.64

4. E or e- Represent floating constant exponent form.

5. Differences

Character constant Enclosed with in single quotes For ex: „a‟ „b‟ „c‟

String literal Enclosed with in Double quotes For ex: “Testing”

6. Based on the operand- 3 Operator will be classified

1. Unary [Requires One Operand]

2. Binary [Requires Two Operand]

3. Ternary [Requires Three Operand]

7. Operators are executed in the order of precedence

8. Grouped in specific logic way for evaluation, this logical grouping is called “Association”.

9. 5 + 6 / 3

= 5 + 2 (Here Division is executes first as the order of operator precedence)

Ans: = 7

10. 5 * 6 / 3

= 30 / 3 (Here Multiplication is executes first as the order of operator precedence)

Ans: = 10

11. The Complier may use the proper internal representation for each data type.

12. Class Student improves the Credibility and Readability of the program by combining the data requirement

of the program.

13. Enumeration: List of Values

14. Const Qualifier specify the value of variable will not change during the run time.

For ex: const float pi=3.14; [Const is a keyword, which should be prefixed before declaring a variable]

www.Padasalai.Net www.TrbTnpsc.com

http://www.trbtnpsc.com/2013/07/latest-12th-study-materials-2013.html

www.Padasalai.Net

Star Office & Object Oriented Programming-C++ N. Mohan., MCA., B.Ed

Important Keys

Mobile: +91- 9677635246 E-Mail: [email protected]

15. Qualifier or Modifier: It is used to alter a Length and Range of values.

16. Cascading of Insertion Operator:

Facilitates sending of multiple output via single statement.

For ex: cout<<”Roll number is=”<<r_no;

17. Pointer Variable:

Defined only memory is fetched to store data

18. “Definition”

If a declaration also sets aside memory for the variable

19. Nested if:

Statement of sequence if….or …..else may contain another if statement.

20. Nested loop:

It is possible to construct inside the body of another.

Rules: 1. Outerloop & Inner loop cannot have same control variable, it will lead to logical error

2. Inner Loop Completely nested inside the body of outer loop.

21. Looping Block: It consist of two segments

1.Body of the loop

2. Control Statement

22. Program Development:

1. Programs are written in high level language.

2. High Level Language is called Source.

3. Source Code has to be converted to Machine Readable Form.

4. Machine readable form of a program is called Object File.

5. Compiler creates a machines readable program from the source code.

6. Compiler checks the grammar [Syntax]of a language

7. An Object file is linked with the essential libraries to generate an executable file.

8. An Object file is created from an error free source code.

www.Padasalai.Net www.TrbTnpsc.com

http://www.trbtnpsc.com/2013/07/latest-12th-study-materials-2013.html

www.Padasalai.Net

Star Office & Object Oriented Programming-C++ N. Mohan., MCA., B.Ed

Important Keys

Mobile: +91- 9677635246 E-Mail: [email protected]

Functions

1. Declaration of a function is made through “Function Prototype”

Syntax: < Datatype> <Function Identifier> <Arguments>

For ex: int add (int a, int b)

2. Function Prototype will help the compiler to check the data requirements of a programs.

3. Template is always used when declaring and defining a function

4. Compiler uses a template to ensure proper arguments are passed.

5. Types of argument:

Arguments Examples Description

Normal Argument int add(int a, int b) Declared as normal variable

Dummy Argument int add(int, int) Declared without variable name

Default Argument int add(int a, int b=10) Assigned 10 for the variable b

6. Parameters:

Parameters are the channels through which data flows from call to statement to function and vice versa

(Function to Call Statement)

7. Call Statement communicates with the function through Arguments or parameters.

8. Actual Parameters Associates with Call statement

Formal ParametersAssociates with Function Header

9. Default Arguments:

In C++, One can assign default values to the formal parameters of a function prototype.

10. The default value is given in the form of variable initialization.

11. The default arguments facilitate the function call statement with partial or no arguments.

12. The default values can be included in the function prototype from right to left [Ending]

13. We cannot have a default value for an argument in between the argument list.

√Correct form for declaring a default value X-Wrong form for declaring a default value

int add (int a, int c, int b=10) int add (int a, int b=10, int c)

.

14. A function returning a reference can appear on left-hand side of an assignment.

15. FORCES COMPILER TO maintain overheads like STACKS that would save certain special

instructions pertaining to function call.

16. Scope Variables:

Reveals the hidden scope of variables. : : Scope Resolution Operator-Refers declared at file level.

17. One dimensional – Finite homogeneous elements

www.Padasalai.Net www.TrbTnpsc.com

http://www.trbtnpsc.com/2013/07/latest-12th-study-materials-2013.html

www.Padasalai.Net

Star Office & Object Oriented Programming-C++ N. Mohan., MCA., B.Ed

Important Keys

Mobile: +91- 9677635246 E-Mail: [email protected]

Two dimensional – Comprising elements, Each of which is itself a one dimensional array.

18. Strings:

Literals- Treated as Single Dimensional Array. For ex: char name [10];

19. Array is starts from zero [0] and ends up with “\0”.

20. Instance Cin Treats White Space or Carriage return.

21. write ( ) Function: Required 2 parameters

cout.write(name, i); 1st Parameters “name” refers the name of the string.

2nd

Parameters “i” refers the length of the string

22. String Manipulations:

Strings are defined with the header file # include<string.h>

1 strlen( ) Find the length of the string stored in an array.

2 strcmp( ) Compares the two given strings

3 strcat( ) Join/Combine 2 strings

4 strcpy( ) Copies source string to target string

23. String can be manipulated element by element like Char Array.

24. Arrays can be passed on Arguments to functions.

25. Actual Parameters is passed only by the identifiers.

26. Array Parameters:

By Default behave like reference parameters.

27. Only Array Identifiers represents the base address of an array.

28. Class Specification:

1. Class Declaration

2. Class Function Definition. (Data Members & Member function)

Syntax for Class Declaration:

class class-name

{

public:

data members;

member functions;

private:

data members;

member functions;

protected:

data members;

member functions;

};

29. Class Members:

Class Members Comprises both

1. Data Members [Attributes] - Features or Properties of a class

2. Member function [Methods] - Perform for a specific task.

30. Instance / Object / Variable => Same mean for all the 3 words.

www.Padasalai.Net www.TrbTnpsc.com

http://www.trbtnpsc.com/2013/07/latest-12th-study-materials-2013.html

www.Padasalai.Net

Star Office & Object Oriented Programming-C++ N. Mohan., MCA., B.Ed

Important Keys

Mobile: +91- 9677635246 E-Mail: [email protected]

31. Several different classes can use the same function name.

32. Private:

Member function can access the private properties, non-member function cannot do so.

33. Member function can call another member directly without using dot operator- Nesting of Member

function.

34. Member functions can be of static type

35. Objects can also be passed as arguments.

36. Return type of a member function can be of object type.

37. Static Variable Count is initialized to zero only once.

38. The Initial value to a static members variable is done outside the class.

39. Operator functions must be either member functions or friend function.

40. The Function void operator – ( ) Simply Negates the data members of the class.

41. char, float, double parameters can be matched with int type due to implicit conversions.

42. Copy Constructor :

When an object is passed as parameter to any of the member function.

43. Destructor is executed automatically when the control reaches the end of the scope.

44. The constructor of the base class are not inherited but are executed first when an instance of the derived

class is created.

45. Abstract Class:

Abstract classes used only for deriving other classes.

Objects for these classes are not created or declared.

46. Constructor – Executed in the order of inherited classes [Base to Derived]

Destructor – Executed in the Reverse order [Derived to Base]

Base Class

Derivied Class Inherited as

Private Private Are not inherited continue to

exist

Private Public -Not Inherited

Private Protected -Not Inherited

Public Private Private

Public Public Public

Public Protected Protected

Protected Private Private

Protected Public Protected

Protected Protected Protected

www.Padasalai.Net www.TrbTnpsc.com

http://www.trbtnpsc.com/2013/07/latest-12th-study-materials-2013.html

www.Padasalai.Net

Star Office & Object Oriented Programming-C++ N. Mohan., MCA., B.Ed

Important Keys

Mobile: +91- 9677635246 E-Mail: [email protected]

Notes :

Letters ASCII Value Number ASCII Value

A 65 0 48

B 66 1 49

C 67 2 50

D 68 3 51

E 68 4 52

X 88 5 53

Y 89 6 54

Z 90 7 55

a 97 8 56

b 98 9 57

c 99

d 100

x 120

y 121

z 122

www.Padasalai.Net www.TrbTnpsc.com

http://www.trbtnpsc.com/2013/07/latest-12th-study-materials-2013.html

www.Padasalai.Net

Volume-II Object Oriented Programming-C N. Mohan., MCA., B.Ed

Important Programs & Ouputs

Mobile: +91- 9677635246 E-Mail: [email protected]

1. int a,b,c; a=6 ; b=7;

c=(a++) - (--b)

cout<<c;

c=6-6

a) 0 b) 9 c) 11 d) Error

Answer: a) 0

2. If a=5; b=4; What is the value of expression?

a+b/2*6;

=5+4/2*6

=5+2*6

=5+12

=17

a) 15 b) 16 c) 17 d) 18

Answer: c) 17

3. Find the output of the following:

x=5; f=6;

c=x++ + ++f

c=5+7

Answer: c=12

4. Find the value of “c” in the following snippet:

x=10; f=20;

c=x++ + ++f

Answer is: c=31

5. if (a>b);

cout<<”Greater”;

else

cout<<”Lesser”;

Answer is: Misplaced Else

6. if x=10, f=20 c=x++ + ++f;

What is value stored in the variable is C=31 x=10, f=21

7. float x;

int a=7, b=3;

x=a/(float) b;

a) Error b) 2.33 c) 2.0 d) 3.0

Answer is: b) 2.33

8. Find the output:

int n1=10, n2=&n1;

n2++;

cout<<n1;

Answer is: 11

9. int x=3; y=4, ctr=2, rex=x;

while (ctr<=y)

{

res*=x;

ctr+=1; }

1. Identify the control variable is used? Answer: ctr

2. How many time the loop will be executed? Answer: 3

www.Padasalai.Net www.TrbTnpsc.com

http://www.trbtnpsc.com/2013/07/latest-12th-study-materials-2013.html

www.Padasalai.Net

Volume-II Object Oriented Programming-C N. Mohan., MCA., B.Ed

Important Programs & Ouputs

Mobile: +91- 9677635246 E-Mail: [email protected]

10. What is Value of this expression:

1+pow(3,2)

a) 7 b) 6 c) 10 d) 13

Answer: C) 10

11. 1 + pow ( 3,2 ) * (3 + 2) - (8-7) + 2 )

= 5 - 1

= 4 + 2

= 9 * 6

= 1 + 54

= 55

Anwer is: 55

12. f=0.5 if x=30 otherwise f=5;

f=(x==30)?0.5:5

13. fn=0.9, if x>=60 otherwise 0.7

fn=(x>=60) ? 0.9 : 0.7

14. if a=5; and b=8 What is the value of the expression?

a+b/2*4

=5+8/2*4

=5+4*4

=5+16

=21

Answer is: 21

15. int a,b,c;

a=8; b=3;

c=a/b; c=8/3 // (2.33 since “C” is an integer type 2.33 becomes 2)

c=++c; // ( 2 Will be pre-incremented by 1 so, 2 becomes 3).

Answer: C=3

16. if b=10>20; // Condition here is false-So it will be moved to else block.

if(b)

{

cout<<”True Block”

}

else

{

cout<<”Else Block”;

}

a) Else block b) True Block c) True Block Else Block d) Else Block True Block

Answer is: a) Else Block

17. if(1) {

cout<<”Action block -1”; }

else

{

cout<<”Action block 2”;

}

Answer: Any Positive Integer indicates True states.

[if the value of the expression is evaluated to >0 (greater than zero) 1 is executed otherwise action 2 is executed]

www.Padasalai.Net www.TrbTnpsc.com

http://www.trbtnpsc.com/2013/07/latest-12th-study-materials-2013.html

www.Padasalai.Net

Volume-II Object Oriented Programming-C N. Mohan., MCA., B.Ed

Important Programs & Ouputs

Mobile: +91- 9677635246 E-Mail: [email protected]

18. Negating Count:

int count=1;

if(count>0)

{

cout<<”Negating count…”;

count*=-1;

}

else

cout<<”\n Resetting count…”;

count*=1;

}

getch();

}

Output: Negating Count…

[Why do you think associated with else option executed since count was multiplied by -1

19. cout<<5+10;

a) 5+10 b) 510 c) 15 d) 50

Answer is: c) 15

19. int a=1;

for(; a<5;a++)

cout<<a;

a) 1234 b) 4321 c) 1111 d) 4444

Answer is: a) 1234

20. int x, y, z;

x=9; y=10;

z=(x++)+(--y)

z=9+9

z=18

Answer is: z=18

21. void main()

{

int x=10;

do {

cout<<”\n”<<x;

x--;

} while (x>1)

How many times the above loop will be executed? a) 10 b) 9 c) 8 d) 11

Answer is: b) 9

www.Padasalai.Net www.TrbTnpsc.com

http://www.trbtnpsc.com/2013/07/latest-12th-study-materials-2013.html

www.Padasalai.Net

Volume-II Object Oriented Programming-C N. Mohan., MCA., B.Ed

Important Programs & Ouputs

Mobile: +91- 9677635246 E-Mail: [email protected]

22. a=10, b=10

x = (a > b) ? a * a : b % a;

a) 100 b) 0 c) 10 d) 10*10

Answer is : b) 0

23. Identify the valid variable name:

a) 4a-b b) balance $ c) INCLUDES d) #ONE

Answer is: c) INCLUDES

24. Find the Output of the following:

void main ( )

{

int i=20;

cout<<i<<i++<<++i;

getch();

}

Answer is: 222121 or 22 21 21

25. a=5, c=a++, c=?

Answer is: C=5

26. How many times the loop will be executed? for(m=0;m<6;m++) (mar.2017)

a) 6 b) 7 c) 5 d) 4

Answer is: a) 6

27. void add::display() in this example what is the name of the class? (mar.2017)

a) void b) add c) add: : display() d) display()

Answer is: b) add

Expressions:

28. a=5; b=6; c=7;

a+=b*c

a=a+b*c;

a=5+6*7

a=5+42

a=47

Answer is: a=47

29. a=5; b=6; c=7;

c*=a+a/b;

c=c*a+a/b;

c=7*5+5/6

c=35+0

c=35 Answer is: C=35

30. a=5; b=6; c=7;

b=b+a%2*c

b=6+5%2*7

b=6+1*7

b=6+7

b=13

Answer is: C=35

www.Padasalai.Net www.TrbTnpsc.com

http://www.trbtnpsc.com/2013/07/latest-12th-study-materials-2013.html

www.Padasalai.Net

Volume-1 Star Office N. Mohan., MCA., B.Ed

Two marks & Five Marks

Mobile: +91- 9677635246 E-Mail: [email protected]

TWO MARKS 1. How to create bulleted list in a star writer?

2. How to create header and footer and what is the purpose of it?

3. Write difference between Absolute and relative cell addressing.

4. What is date arithmetic?

5. How to make rows and columns equal size?

6. What is Primary key?

7. Define Autoformat sheet?

8. Write difference between Copying text and Moving Text.

9. How does star writer check spelling while typing?

10. How does star writer check spelling after typing?

11. How can you change the data present in a cell? If so how?

12. Write popular spreadsheet packages and word processors.

13. What is database?

14. What is DBMS?

15. What is Compression?

16. What are categories of 2D and 3D animations?

17. How to change slide background?

18. What is filter?

19. What is forms?

20. What is reports?

21. What is query?

22. What is file or table?

23. How will you customize the presentation?

24. What is custom animation?

25. What is handout?

26. What is Slide Transition?

27. Write DBMS tasks?

28. What are the Components are there to make up a database?

29. Write some spreadsheet applications?

www.Padasalai.Net www.TrbTnpsc.com

http://www.trbtnpsc.com/2013/07/latest-12th-study-materials-2013.html

www.Padasalai.Net

Volume-1 Star Office N. Mohan., MCA., B.Ed

Two marks & Five Marks

Mobile: +91- 9677635246 E-Mail: [email protected]

30. What are views available in presentation (or 5-tabs in presentation wizared like,Normal,Outline, Notes,

Handouts, Slide sorter)?

31. Write difference between Data and Information.

32. What is page orientation? Explain it.

33. What is text editing?

34. What is word processor?

35. What are alignments available to format a paragraph?

36. What is Multiple Sorting?

37. What is Multimedia?

38. What is rehearsing timings?

39. How will you insert Table /rows /columns?

40. What is Electronic Spreadsheets?

41. What is Warping & Morphing?

42. How will you rename and delete a slide?

43. How to change the column width?

44. What is range? Give example.

45. Explain all the operators Arithmetic / Comparative / Reference / Text.

46. What is a function? How will you use it?

47. How will you work with multiple documents?

48. What is inline sound / video?

49. What is line spacing? How to change the line spacing?What are the line spacing options available?

50. How to delete an entire table in starwriter?

51. What is helper application or Plug In?

52. What is the difference between Type Over mode and Insert mode? And how will you switch over?

53. How will you insert a page number in the footer area?

54. What is Hanging Indent?

55. Write short on AVI / MIDI / Shock Wave / MPEG / Qucik Time Format.

56. What is Master Page?

57. Define SQL.

58. Write the advantages of Computerized Data Processing.

59. Write the steps for Data Processing.

60. What is sampling or Digital sampling?

www.Padasalai.Net www.TrbTnpsc.com

http://www.trbtnpsc.com/2013/07/latest-12th-study-materials-2013.html

www.Padasalai.Net

Volume-1 Star Office N. Mohan., MCA., B.Ed

Two marks & Five Marks

Mobile: +91- 9677635246 E-Mail: [email protected]

61. What is interactive multimedia?

62. How to hide or show a slide?

63. How to start a Presentation?

64. What is cell and Cell pointer?

65. How will you save a document?

66. How will you close a document?

67. How will you Quit from star office package?

68. What is master slide?

FIVE MARKS 1. How will you select the text with mouse/ keyboard/shortcuts?

2. Explain Find & Replace.

3. What is Bulletts and Numbering?

4. Explain spell check-after typing.

5. How will you indent a paragraph?

6. Explain Table Formatting Tool bar.

7. How will you change the margin?

8. How to create Header and footer? How will you insert a page number in the footer area?

9. Write the advantages of spreadsheet.

10. How will you format the Spreadsheet?

11. How will you insert an object in to the worksheet?

12. Explain the types of database.

13. Write advantages of computerized data processing.

14. Write the dis-advantages of manual data processing.

15. Write the database manipulation steps.

16. How will you insert a chart?

17. Explain Fill command.

18. How will you generate a series?

www.Padasalai.Net www.TrbTnpsc.com

http://www.trbtnpsc.com/2013/07/latest-12th-study-materials-2013.html

www.Padasalai.Net