PGDCA C++,Java& Data Structure Using C++ Previous Questions
KERALA STATE RUTRONIX
C++, Java & Data Structures using C++
(PGDCA)
Question Code. : C4
Time. : 2 hours
Maximum Marks. : 100
(Note: Write the answers for Questions from 1 to 30 in the MCQ answer sheet)
Time. : 2 hours
Maximum Marks. : 100
(Note: Write the answers for Questions from 1 to 30 in the MCQ answer sheet)
Part - I Choose the most appropriate answer
(10 X 1 Mark 10 Marks)
(10 X 1 Mark 10 Marks)
1 How many times Hi will be printed on screen for(int i=0;i<14;1++);count<<"Hi\n";
a) 13
b) 14
c) 15
d) 1
a) 13
b) 14
c) 15
d) 1
2) Which among the following is not a keyword in Java?
a) implements
b) synchronized
c) NULL
d) extends
3) Which of the following is not a primitive data type?
a) short
b) enum
c) int
d) byte
4) The situation in a linked list when START = NULL is ............
a) Underflow
b) Houseful
c) Overtlow
d) Saturated
5) Which of the following data structure is linear data structure?
a) Trees
b) Graphs
c) Arrays
d) None of these
6) Which of the following features is not supported by Java?
a) inheritance
b) template
c) Pointer
d) None of these
7) When Java program tries to execute a division by zero, it generates a ............ error.
a) syntax
b) compile time
c) run time
d) logical
8) The operation of processing each element in the list is known as .............
a) Inserting
b) Merging
c) Sorting
d) Traversal
a) Inserting
b) Merging
c) Sorting
d) Traversal
9) Which operator is also known as dereferencing operator?
a) *
b) +
c) &
d) %
10) ............. is not a wrapper class in Java.
a) String
b) Integer
c) Boolean
d) Character
Part - II Fill in the Blanks
(10 X 1 Mark 10 Marks)
(10 X 1 Mark 10 Marks)
11) The Boolean operation AND is performed using the operator ...............
12) Exception handling is used to handle .............. error
13) An applet must be a subclass of the ................ class.
14) The mathematical function used to find the square root of a number is .................
15) Insertion operation in stack is known as ..............
167 The value of a after execution of the line a=5+7%2 is .............
17) AWT stands for ...........
18) The ........... feature frees the memory used by an object that is no longer referenced.
19) .............. statement allows to make an absolute jump to another point in the program
20) ............... punctuation is used to signal the beginning and end of code blocks.
Part - III State whether True or False
(10 X 1 Mark 10 Marks)
(10 X 1 Mark 10 Marks)
21) Two functions cannot have the same name.
22) A class cannot extend another class while implementing interfaces.
23) Applets can communicate with other servers on the network.
24) A variable declared inside the for loop control can be referenced outside the loop.
25) Iteration structures are also called looping statements.
26) Java supports destructor.
27) first-num is a valid variable name.
28) real is a variable data type in C++.
29) Array is a collection of elements of different data types.
30) The modulus operator (%) can be used only with integer operands.
Part - IV Answer the following (Any Eight)
(8 X 5 Marks 40 Marks)
(8 X 5 Marks 40 Marks)
31) Explain five predefined mathematical functions.
32) Write a C++/Java program to reverse a number.
33) Write a C++/Java program to print a right angle triangle.
34) Difference between Conventional structured programming Object Oriented programming
35) Different types of Tokens
36) Write short notes on
a) flow chart
b) recursion
c) packages
d) inline function
37) What are the three visibility moditiers? Explain.
38) Difference between Stack and Queue.
39) Branching statements in Java.
40) Types of literal in Java.
41) What is recursion? Write a program using recursive function.
42) Explain any five string library functions.
Part - V Answer the following (Any Three)
(3 X 10 Marks 30 Marks)
(3 X 10 Marks 30 Marks)
43) What is a data structure? What are the types of data structures?
44) Write short notes on:
a) Pointer
b) Token
c) Keywords
d) Algorithm
e) Strings
45) Explain life cycle of an Applet.
46) Differentiate function overloading and operator overloading with examples.
47) Explain Lists in data structure using C++.
48) Explain try, catch and finally blocks with a simple program.
Comments
Post a Comment