#1. Write a Program to determine perfect number in Java.Perfect number is a positive integer which is equal to the sum of its proper positive divisor.
For example:proper divisor of 6 are 1,2,3 sum of its proper divisor=1+2+3=6
#2. What is the output of the Program?
#include<stdio.h>
int main() {
int i=-3, j=2, k=0, m;
m = ++i || ++j && ++k;
printf(“%d, %d, %d, %d\n”, i, j, k, m); return 0;
}
[ad id=’5490′]
#3. Output of following Java program?
class Base {
public void Print() {
System.out.println(“Base”);
}
}
class Derived extends Base {
public void Print() {
System.out.println(“Derived”);
}
}
class Main{
public static void DoPrint( Base o ) {
o.Print();
}
public static void main(String[] args) {
Base x = new Base();
Base y = new Derived();
Derived z = new Derived();
DoPrint(x);
DoPrint(y);
DoPrint(z);
}
}
[ad id=’5492′]
#4. C++ Base Class Derived Class input cin>>x; in Base Class output cout<<x; (something like that)
#5. Write a C++ code to access protected data -> friend class
#6. Difference Between Flip-Flop and Latch.
#7. Difference between DNS server and DNS Cache.What is the importance of DNS cache in world wide web ?
#8.What is Synchronous? Describe Synchronous Sequential circuit .
#9. Pattern print in Java
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5
[ad id=’5493′]
#10. What is non repudiation in network security?
#11. Find subnet mask and maximum ip addres of Network Address of 192.168.0.38/8 (something like that)
#12. C++ Class A Class B output print.
#13. Java string toLowerCase()
#14. OSI Model.Describe Which layer is responsible for Data transfer and user iteraction Routing?
#15. Why Binary Logic is important and why most of the digital systems use it?
#16.Write a Java program for 2D array and simple program to convert string into camel case display camel case string.
[ad id=’5490′]