C Lab Programs

c-techaravind


                                              To compile and execute the program, copy the code into a text file. Save the text file with the extinction .c (ex. program.c). Save your file in turboc2 or borland (it may your othe c-compiler). Now open you IDE (tc.exe) , goto file->pick file. Your source file will be loaded into IDE. Now you can compile and run the file easily.





1)Write a program to swap two numbers.







2)write a program to print digits triangles.







3)print the series upto  'n' terms:  1   4   27  256.......





4)Find roots of a given quadratic equation.





5)Print Sin series







6)Print Cos series







7)Write a menu driven program to do simple arithmetic operations.





8)write a program to add,multiplay and find transposte of two given matrices.





9)Convert the given string to uppercase without using string handling function.


10)Write a program to swap contents of two variables using pointers.




11)Write a program to do array of structures maintenance.







12)write a program to do complex number operations using structures.







13)Write a program to copy 2 files whose names are given as command line arguments.







14)Write a program to concatenate 2 files whose names are given as command line arguments.





15)Write a program to sort given numbers using Quick Sort.





16)Write a program to sort given numbers using Bubble Sort.





17)Write a program to sort given numbers using Merge Sort.





18)Write a program to sort given numbers using Insertion Sort.







19)Binary searching.







20)Linear searching.





21)Factorial By Recursion.





22)Find reverse of number using recursion method.







23)Find the nth Fibbinoic series.







24)Menu driven program for simple string operation.





25)Heap Sort

OOPS (Through Java)

MCA II Semester [R09] Regular Examinations June 2010
                                 OOPS (Through Java)

Time: 3 Hours                                                       Max Marks: 60

Answer any FIVE questions All questions carry EQUAL marks



1. a) Compare procedural programming and object oriented programming.

b) Explain the following OOPs concepts:

i) Encapsulation ii) Inheritance iii) Polymorphism



2. a) Explain constructor overloading with an example.

b) Explain i) this keyword ii) Garbage collection



3. a) Explain dynamic method dispatch with an example.

b) Explain the uses of super keyword with an example.



4. a) Explain defining, creation and accessing a package with an example each.

b) Write the differences between classes and interfaces.



5. a) Explain the creation and usage of your own exception with an example.

b) Explain the thread synchronization with an example.



6. a) Describe delegation event model.

b) Explain the handling of keyboard events with an example.



7. a) Explain the life cycle of an applet.

b) Write an applet program to display a pentagon.



8. a) Write the limitations of AWT components.

b) What is a scroll pane? Explain the usage of JScrollPane class with an example.







MCA II Semester [NR] Supplementary Examinations, June 2010
                             Programming in java

Time: 3 Hours                                                    Max Marks: 60

Answer any FIVE questions All questions carry EQUAL marks



1. a) Explain the following OOPS concepts:

    i) Encapsulation ii) Polymorphism iii) Inheritance

   b) What are the jump statements in Java? Explain them.



2. a) Explain the use of the following statements.

     i) static ii) final

     b) Explain parameter passing techniques in Java with an example each.



3. a) Explain method overloading with an example.

    b) Explain defining, creating and accessing a package with suitable example.



4. a) Write the differences between classes and interfaces.

    b) Explain the usage of try, catch and finally keywords with an example.



5. a) Explain the creation of thread with Runnable interface with an example.

    b) Explain Inter Thread Communication with an example.



6. a) Write a java program illustrating Action Event.

    b) Write a java program to display an ovel inside a rectangle.



7. a) Explain the border and Grid layout managers with an example each.

    b) Explain Applet Life Cycle methods.



8. a) What is URL? Write a java program to parse the URL.

   b) List and explain the string comparison methods available in String class

Business Data Processing

MCA II Semester [R09] Regular Examinations June 2010
                    Business Data Processing

Time: 3 Hours                                             Max Marks: 60



Answer any FIVE questions All questions carry EQUAL marks



1. a) How many divisions are there in a COBOL source program? Indicate whether

    all the divisions are necessary or not.

    b) Define data name. How is it different from a literal?



2. a) Give an account of the entries in various sections of environment division.

    b) Explain the usage of Special names paragraph.



3. a) What is the purpose of PICTURE clause?

     b) Explain different code characters used in PICTURE clause with suitable

         examples.



4. a) Explain the following verbs:

     i) Accept ii) Display iii)Move

     b) Explain the use of ROUNDED & ON SIZE ERROR clauses with examples.



5. Describe IF and EVALUATE statements with your own examples along with

    various types of conditions.



6. a) List the differences among a subscript, an index and an index data item.

    b) A bulb table represents the quantity of 5 brands and 4 different Wattages. Define

    the table in DATA DIVISION. Write the procedure division entries to

            - read the table

            - find the bulbs in stock of all brands and wattages.



7. a) Briefly explain various file characteristics.

    b) Explain sorting concept on files with examples.



8. With suitable examples explain the role of USE statement

    a) When used in connection with input / output statements

    b) When used in the report-writer feature.





MCA II Semester [R06] Supplementary Examinations June 2010
                              Business Data Processing

Time: 3 Hours                                                   Max Marks: 60



Answer any FIVE questions All questions carry EQUAL marks



1. Enumerate four divisions of COBOL. Briefly describe the functions of each of the

    divisions which of the four divisions are machine dependent.



2. a) Summarize the differences between group items and elementary items with

     examples.

    b) Explain the format of Object computer paragraph.



3. a) What is a USAGE clause? What are the options available with usage clause?

      Give the syntax?

    b) Explain the use of level numbers 01-47, 77, 66 and 88 giving suitable example.



4. a) Describe various arithmetic statements of COBOL

     b) Is there any data transfer verb available in COBOL? Explain with suitable

      example.



5. a) Give the general format of the IF statement along the rules governing the

     statement.

    b) What is the function of class condition? Write the structure of a class condition

     and write various rules of class condition. Illustrate through examples



6. a) Describe occurs clause. Explain how an occurs clause can be used for table

    handling-with an example.

    b) Explain he string handling verbs supported by COBOL.



7. a) Explain the role of master file and transaction file in COBOL.

    b) Write a COBOL program that will distribute records from 1 master file to

       several data files based on the class of students.



8. Briefly explain COBOL subroutines. Distinguish call by address and call by

content with suitable examples.




MCA II Semester [NR] Supplementary Examinations June 2009
                   Data Processing Through COBOL

Time: 3 Hours                                                Max Marks: 60



Answer any FIVE questions All questions carry EQUAL marks



1. a) Give the basic structure of a COBOL program.

    b) Write the rules of literals and identifiers in COBOL. Give examples for each.



2. a) Describe the format of procedure division.

    b) The data names FV and R contain the face value of equity share and the rate of

    dividend respectively. Write a COBOL program to calculate the gross dividend

     using the formula: G = (FV*R)/100.



3. What is the role of REDEFINES and RENAMES clause in COBOL? Describe

with the help of an example



4. Give the formats of various arithmetic verbs available in COBOL. What are the

options that are available with arithmetic verbs? Explain the compute and

evaluate statements



5. a) What is the purpose of EVALUATE statement? Give an example

    b) What is the difference between a GOTO statement and a PERFORM statement



6. a) Differentiate between EXAMIME and INSPECT statements with necessary

     examples.

    b) Write a COBOL program for Binary search.



7. a) Distinguish FILE-CONTROL and FILES SECTION entries for all the three

     Organizations.

    b) Describe different ways of accessing records in relative files.



8. a) Explain the role and syntax of LINKAGE SECTION in COBOL .

    b) How will you call a subroutine? Explain with suitable example.

Organizational Structures and Personal Management

MCA II Semester [R09] Regular Examinations June 2010
    Organizational Structures and Personal Management

Time: 3 Hours                                               Max Marks: 60



Answer any FIVE questions All questions carry EQUAL marks



1. Examine the assumptions and criticism against the classical theory of organization.



2. What is morale? How do you measure morale?



3. Write short notes on:

   (a) Authority.

   (b) Responsibility

   (c) Accountability, and

   (d) Organizational design.



4. What are the principal methods that can be used to analyze jobs? What are the methods

would you use? Why?



5. What are the problems in career planning and development? Suggest the measures for

effective career planning and development.



6. Discuss the concept of capability of organizational learning.

.

7. Comment on the contributions of MIS and information technology to the organizational

communication.



8. Discuss the importance of strategic management



MCA II Semester [R06] Supplementary Examinations June 2010
              Organizational Structure & Personal Management

Time: 3 Hours                                                    Max Marks: 60



Answer any FIVE questions All questions carry EQUAL marks



1. What is functional approach to organization? Discuss the advantages and disadvantages

of functional organization?



2. What is system approach? Explain the features of a system.



3. What is personnel policy? Describe the important personnel policies that affect the job of

a personnel manager.



4. What is manpower planning? What factors do you consider while forecasting manpower

needs of an organization?



5. Explain the following terms:

 (a) Job Design

 (b) Job Rotation

 (c) Job Enlargement

 (d) Job enrichment.



6. What is job rotation? How does it help in acquiring new skills and knowledge?



7. What is strategic management? What is strategy? Discuss the criteria for effective

strategy.



8. What is listening? Explain the role of effective listening in the communication

process







MCA II Semester [NR] Supplementary Examinations June 2009
            Organizational Structure & Personal Management

Time: 3 Hours                                                Max Marks: 60



Answer any FIVE questions All questions carry EQUAL marks



1. What are the classical theories of organization?



2. What is committee? What are the merits of committees?



3. What is decision-making? Explain the importance of decision-making in an organization.



4. “Personnel administration is a line responsibility but a staff function” Discuss.



5. What are the different methods of interview techniques? Explain them in detail.



6. Distinguish between training and education? Are you trained or educated in your college.



7. Explain the concept of core competence.



8. Discuss the communication skills necessary for managing conflicts

 
Etutos © 2010-2011