Sunday, October 5, 2014

OOPM Question Bank

Q1. each question is of 2 marks

1. Justify that java is platform independent language.
2. Define Data Encapsulation and Data abstraction with respect to OOP.
3. Define inheritance and list it advantages.
4. Define Interface and explain its need
5. Define Exception and  explain any four types of exception
6. Explain the syntax of exception handling in java.
7. Difference between throw and throws in java.
8.Difference between String and StringBuffer class in java.
9.Difference between  arrays and vectors.
10 Define Multithreading.
11 Explain the different method of achieving multithreading in java.
12. what is a vector and explain any four methods of class Vector.

Q2: Each question of five marks

1. what is interface write a program to implement multiple inheritance using interfaces.
2. Explain the keyword try,  catch, finally and throws with respect to exception handling in java.
3.what is method overriding and how it differs with method overloading .write a program to illustrate      method overriding
4. Define the keyword throw and its use  with a program.

Q3 . Each question of five marks

1. Program on Vectors
2. program to illustrate different methods of Thread class.
3. program on Strings.
4. what are priority constants of class Thread write a program to illustrate them.

In exam  any five will be selected from Q 1 and two from Q2 and two from Q3.

Thursday, February 20, 2014



QUESTION BANK FOR SPA

Q.1
02 Marks Questions.

a)    
List any 4 Escape sequence characterwith their meaning.

b)    
Explain following format specifiers.
%d, %f, %c, %ld

c)     
Write an Algorithm for addition of two numbers.

d)    
Explain features/properties of flowchart.

e)    
What is flowchart? List out symbols used in flowchart.

f)     
What is Type Casting? Give example.

g)    
Explain any 4 relational operators.

h)    
Explain any 4 logical operators.

i)      
Explain the following Library functions.
i)            floor()     
ii)           ceil()

j)     
Which are the following are valid/invalid identifiers? Give reason.
i)            _7number
ii)           Basic  Salary

k)    
Explain any 4 short hand (Compound assignment) operators.

l)      
int a=5, b=6, c=7,k;
K=a+b>c-b&&a-b<c;
Give preference and associativity for the above operators.
Q.2
05 Marks Questions.

a)    
Explain data types in ‘C’.

b)    
Explain the following operator.
i)     &&
ii)   &
iii)  Sizeof
iv)  ++
v)   ?:

c)     
Find the output.
#include<stdio.h>
void main()
{
int x=10,y,z;
z=y=x;
y-=--x;
z-=x--;
x-=--x-x--;
printf(“x=%d y=%d z=%d”, x,y,z);
getch();
}


d)    
Find the roots of Quadratic equation.
Is the above problem definition complete? If not, make this problem definition complete.
Q.3
05 Marks Questions.

a)    
Write a program in ‘C’ to find out Largest of 3 numbers using ternary operator.

b)    
Write a program in ‘C’ for swapping of 2 numbers without using temporary variable.

c)     
Write a program in ‘C’ to accept 3 digitsnumber and display its reverse number.

d)    
Explain the following unformatted I/O functions.
i)     getchar()
ii)   getch()
iii)  putchar()
iv)  getche()


Sunday, May 26, 2013


Fibonacci series program in c using recursion






# include <stdio.h>
int fib(int);

main()
{
   int n, i = 0, c;
  printf("how many fibbonaci numbes to be printed");

   scanf("%d",&n);

   printf("Fibonacci series\n");

   for ( c = 1 ; c <= n ; c++ )
   {
      printf("%d\n", fib(i));
      i++;
   }

   return 0;
}

int fib(int n)
{
   if ( n == 0 )
      return 0;
   else if ( n == 1 )
      return 1;
   else
      return ( fib(n-1) + fib(n-2) );
}

Characters in SPA blue print


C -  Core Question
K- Knowledge based Question
A- Application based question

Thursday, April 4, 2013

Download LET US C ebook


click on the Link below to download the pdf version of  LET US C  by Yashwant Kanetkar 

LET US C by Yashwant kanetkar

Difference between Recursion and Iteration

RECURSION
ITERATIONS
Recursive function – is a function that is partially defined by itself
Iterative Instructions –are loop based repetitions of a process
Recursion Uses selection structure
Iteration uses repetition structure
Infinite recursion occurs if the recursion step does not reduce the problem in a manner that converges on some condition.(base case)
An infinite loop occurs with iteration if the loop-condition test never becomes false
Recursion terminates when a base case is recognized
Iteration terminates when the loop-condition fails
Recursion is usually slower then iteration due to overhead of maintaining stack
Iteration does not use stack so it's faster than recursion
Recursion uses more memory than iteration
Iteration consume less memory
 Infinite recursion can crash the system
infinite looping uses CPU
cycles repeatedly
Recursion makes code smaller
Iteration makes code longer

Monday, April 1, 2013

S P A Question Bank

1.      Explain function & its types.
2.      Explain iterative instructions and its uses
3.      Explain function & its advantages
4.      Differentiate between if-else-if  & switch-case
5.      Expalin syntax of if else Ladder & list its drawback.
6.      Explain & compare while & do while
7.      Compare break & continue statement.
8.      Write syntax for nested for loop with example.
9.      Differentiate between iteration  & recursion
10.  Explain unconditional control instruction (goto, continue & break)
11.  WAP to display.
A                                
B      A
C      B      A
D      C      B    A

12.                  1
           2    1
     3    2    1
4   3    2    1

13.            *
     ***
    *****

14.  WAP to find GCD of a number using function
15.  WAP to check whether a no is prime.
16.  WAP to find nth Fibonacci no.
17.  WAP to find factorial of a no with function
18.  WAP to find factorial of a no using recursion
19.  Write a menu driven program to implement calculator
20 Find the value of x   where x=1/2+2/3+3/4+4/5+---------+n/n+1
21.    X=  12 + 22  + 32 ---------------n2
22.  WAP  to check whether no is Armstrong or not (eg input = 153).

ECCF Question Describe the Block diagram of Operational Amplifier Draw the pin diagram of  µA 741 op-amp Draw the schematic diagram o...