You are on page 1of 65

Computer Skills Lab (IT0324)

Test Paper-1 (C Quiz)


1. The C language has been developed by
A. Patrick Naughton
B. Ken Thompson
C. Dennis Ritchie
D. Martin Richards
2. What will be output if you will execute following c code?
#include<stdio.h>
int main () {
int num, a=5;
num= -a--;
printf ( %d %d , num,a);
return 0;
}
A. 5 4
B. -4 4
C. -5 4
D. -4 5
3. What will be output if you will execute following c code?
main()
{
clrscr ();
printf ( Result = %d,2==3 ? 4:5 );
}
A. 10
B. 7
C. 5
D. 3
4. What will be output if you will execute following c code?
main()
{
int a,z,x=10, y=20;
clrscr ();
z=x*y++;
a=x*y;
printf (\n%d %d,z,a);
}
A. 10 20
B. 1000 2000
C. 200 210
D. 2000 2100
5. What will be output if you will execute following C code?
void main ()
{
1

int m,j=3,k;
m=2*j/2;
k=2*(j/2);
clrscr ();
printf (\n m=%d k=%d,m,k);
}
A. m=3 k=2
B. m=3 k=3
C. m=2 k=3
D. m=2 k=2
6. What will be the value of x after the execution of following code?
void main()
{ int x=! 0*10;
}
A. 10
B. 1
C. 0
D. None of these
7. What will be the value of k after the execution of following code?
void main()
{
int k=8;
(k++-k++);
}
A. 10
B. 0
C. -1
D. 9
8. What will be the value of b after the execution of following code?
void main()
{
A.
B.
C.
D.

11
12
7
9

9. What will be the output of the following code?


void main()
{
int y=65;
clrscr ();
printf(%c %d,y,y);
return 0;
}
A. 65
B. 97
C. Error
D. -97
2

10. What will be the output of the following code?


void main()
{
int a=2;
a=4:
printf (%d,a);
}
A. 2
B. 4
C. 6
D. 8
11. What will be the value of x after execution of the following program?
void main()
{
int x,*p;
p=&x;
*p=2;
clrscr ();
printf ( \n Value of x=%d,x);
}
A. 0
B. 2
C. 65504
D. None of these
12. What will be the value of variable a1 and a2 after execution?
void main()
int a1,a2,c=3,*pt;
pt=&c;
a1=3*(c+5);
a2=3*(*pt+5);
}
A. 24 24
B. 12 24
C. 24 12
D. None of these.
13. What will be the output of following codemain ()
{
int a=20, b=35;
a=b++ +a++;
b=++b + ++a;
printf (%d%d\n,a,b);
A.
B.
C.
D.

5432
5794
2435
3456
3

14. What will be the output of following codevoid main()


char arr= NETWORK;
printf(%s, arr);
A.
B.
C.
D.

Network
N
Garbage Value
Complication Error

15. What will be the output of following codevoid main()


char arr= THE AFRICAN QUEEN;
printf(%s, arr);
A.
B.
C.
D.

THE AFRCIAN QUEEN


THE AFRICAN
Error
None

16. What will be the output of following codevoid main()


const int *p;
int a=10;
p=&a;
printf(%d,*p);
return 0;
}
A. 0
B. 10
C. Garbage Value
D. Any memory address

17. What will be the output of following codeint main()


int a=5 , b=10, c;
int *p=&a , *q=&b;
c=p-q;
printf(%d,c);
return 0;
}
A.
B.
C.
D.

1
5
-5
Complication Error

18. What will be the output of following codevoid main()


int a=2, b=7, c=10;
4

c=a==b;
printf(%d,c);
return 0;
}
A. 1
B. 0
C. Garbage value
D. Error
19. What will be the output of following codevoid main()
void (*p)();
int (*q)();
int(*r)();
p=clrscr();
q=getch();
r=puts();
(*p)();
(*r)(cquestionbank.blogspot.com);
(*q)();
return 0;
}
A.
B.
C.
D.

Null
Cquestionbank.blogspot.com
C
Error

20. What will be the output of following codePrintf(%c,65);


Printf(%d,65);
A.
B.
C.
D.

65
0
1
Error

21. What will be the output of following codevoid main()


{
int a=5, b=6, c=11;
clrscr();
printf(%d %d %d);
getch();
}
A. Garbage value garbage value garbage value
B. 5 6 11
C. 6 5 11
D. Compiler error
5

22. What will be the output of following codemain()


{int i=3;
switch(i);
{
Default:printf(zero);
Case 1: printf(one)
Break;
Case 2: printf(two);
Break;
Case 3: printf(three);
}}
A. 0
B. 1
C. 2
D. 3
23. void main()
int i=320;
Char *ptr=(char *) &i;
Printf(%d,*ptr);
}
A. 320
B. 1
C. 64
D. Error
24. Which one Keyword used to calling function back again and again?
A. switch
B. goto
C. go back
D. return

25. #include
main ()
{
int x,y = 10;
x = y * NULL;
printf("%d",x);
}
What is the output of above code?
A. error
B. 0
C. 10
D. garbage value
6

ANSWERS OF TEST PAPER 1

1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
7

C
C
C
C
A
A
C
A
A
B
B
A
B
C
D
C
A
B
B

20.
21.
22.
23.
24.
25.

A
C
D
C
D
B

Computer Skills Lab (IT0324)


Test Paper-2 (C++ Quiz)
1.
A.
B.
C.
D.

Which of the following statements is correct?


Base class pointer cannot point to derived class.
Derived class pointer cannot point to base class.
Pointer to derived class cannot be created.
Pointer to base class cannot be created.

2. Which of the following concepts means determining at runtime what method to


invoke?
A. Data hiding
B. Dynamic Typing
C. Dynamic binding
D. Dynamic loading
3. Which of the following statements is correct?
Once a reference variable has been defined to refer to a particular variable it can
refer to any other variable.
A reference is not a constant pointer.
A. Only 1 is correct.
B. Only 2 is correct.
C. Both 1 and 2 are correct.
D. Both 1 and 2 are incorrect.

4. If a class C is derived from class B, which is derived from class A, all through public
inheritance, then a class C member function can access.
A.
B.
C.
D.

Protected and public data only in C and B.


Protected and public data only in C.
Private data in A and B.
Protected data in A and B.

5. To perform stream I/O with disk files in C++, you should


A.
B.
C.
D.

open and close files as in procedural languages.


use classes derived from ios.
use C language library functions to read and write data.
include the IOSTREAM.H header file
6. What is the output of the following code
char symbol[3]={a,b,c};
for (int index=0; index<3; index++)
cout << symbol [index];
A.
B.
C.
D.

abc
abc
abc
abc

7. If the variable count exceeds 100, a single statement that prints Too many is:
A.
B.
C.
D.

if (count<100) cout << Too many;


if (count>100) cout >> Too many;
if (count>100) cout << Too many;
None of these.

8. In C++, dynamic memory allocation is accomplished with the operator


A.
B.
C.
D.

New
This
malloc( )
delete

9. The keyword friend does not appear in


A.
B.
C.
D.

the class allowing access to another class.


the class desiring access to another class.
the private section of a class.
the public section of a class.

10. Which statement gets affected when i++ is changed to ++i?


A.
B.
C.
D.

i = 20; i++;
for (i = 0; i<20; i++) { }
a = i++;
while (i++ = 20) cout <<i;

11. In multiple inheritance


9

A.
B.
C.
D.

the base classes must have only default constructors


cannot have virtual functions
can include virtual classes
None of the above.

12. The operator << when overloaded in a class


A.
B.
C.
D.

must be a member function


must be a non member function
can be both (A) & (B) above
cannot be overloaded

13. Which of the statements is true in a protected derivation of a derived class from a
base class?
A. Private members of the base class become protected members of the derived class
B. Protected members of the base class become public members of the derived class
C. Public members of the base class become protected members of the derived class
D. Protected derivation does not affect private and protected members of the derived
class.
14. A template class isA.
B.
C.
D.

is designed to be stored in different containers


works with different data types
generates objects which must be identical
generates classes with different numbers of member functions

15. What is the output of given code fragment?


int f=1, i=2;
while(++i<5)
f*=i;
cout<<f;
A. 12
B. 24
C. 6
D. 3
16. The major goal of inheritance in c++ is:
A.
B.
C.
D.

To facilitate the conversion of data types


To help modular programming.
To extend the capabilities of a class.
To hide the details of base class.

17. Consider the following class definitions:


class a
{
};
class b: protected a
{
};
What happens when we try to compile this class?
A. Will not compile because class body of a is not defined.
10

B. Will not compile because class body of b is not defined.


C. Will not compile because class a is not public inherited.
D. Will compile successfully
18. Which of the following statements are true in c++?
A.
B.
C.
D.

Classes can not have data as public members.


Structures can not have functions as members.
Class members are public by default.
None of these.

19. What would be the output of the following program?


int main()
{
int x,y=10,z=10;
x = (y = =z);
cout<<x;
return 0;
}
A. 1
B. 0
C. 10
D. Error
20. What will be the output of following program?
#include<iostream.h>
void main()
{
float x;
x=(float)9/2;
cout<<x;
}
A. 4.5
B. 4.0
C. 4
D. 5

11

12

ANSWERS OF TEST PAPER 2

1. B
2. C
3. D
4. D
5. B
6. C
7. C
8. A
9. C
10. A
11. C
12. C
13. C
14. B
15. A
16. C
17. D
18. B
19. A
20. A

Computer Skills Lab (IT0324)


Test Paper-3 (Aptitude Arithmetic)
1. It was calculated that 75 men could complete a piece of work in 20 days.When work
was scheduled to commence, it was found necessary to send 25 men to another
project. How much longer will it take to complete the work?
A. 20
B. 30
13

C. 40
D. None of these

2. A train 150 m long is running with a speed of 68 kmph. In what time will it pass a
A.
B.
C.
D.

man who is running at 8 kmph in the same direction in which the train is going?
9 sec
13 sec
16 sec
None

3. A person's present age is two-fifth of the age of his mother. After 8 years, he will be
A.
B.
C.
D.

one-half of the age of his mother. How old is the mother at present?
32 years
36 years
40 years
48 years

4. If Rs. 10 be allowed as true discount on a bill of Rs. 110 due at the end of a certain
A.
B.
C.
D.

time, then the discount allowed on the same sum due at the end of double the time is:
Rs. 18.33
Rs. 24.19
Rs. 31.07
None

5. In a regular week, there are 5 working days and for each day, the working hours are 8.
A.
B.
C.
D.

6.
A.
B.
C.
D.

A man gets Rs. 2.40 per hour for regular work and Rs. 3.20 per hours for overtime. If
he earns Rs. 432 in 4 weeks, then how many hours does he work for?
160
175
180
195
January 1, 2005 was Saturday. What day of the week lies on Jan. 1, 2006?
Wednesday
Tuesday
Saturday
Sunday

7. A man has some hens and cows. If the number of heads be 48 and the number of feet
A.
B.
C.
D.

equals 140, then the number of hens will be:


22
23
24
26

8. In an election between two candidates, 75% of the voters cast their votes, out of
A.
B.
C.
D.

which 2% of the votes were declared invalid. A candidate got 9261 votes which were
75% of the total valid votes. Find the total number of votes enrolled in that election.
9000
15680
16800
None

14

9. Two trains 137 meters and 163 meters in length are running towards each other on
A.
B.
C.
D.

parallel lines, one at the rate of 42 kmph and another at 48 kmph. In what time will
they be clear of each other from the moment they meet?
12 sec
13 sec
16 sec
31 sec

10. Rs. 20 is the true discount on Rs. 260 due after a certain time. What will be the true
A.
B.
C.
D.

discount on the same sum due after half of the former time, the rate of interest being
the same?
Rs. 7.19
Rs. 10.40
Rs. 12.07
Rs. 16

11. The sum of ages of 5 children born at the intervals of 3 years each is 50 years. What
A.
B.
C.
D.

is the age of the youngest child?


4 years
8 years
10 years
None

12. Find the greatest possible length which can be used to measure exactly the lengths 4
A.
B.
C.
D.

m 95 cm, 9 m and 16 m 65 cm.


45 cm
57 cm
63 cm
99 cm

13. Two pipes can fill a tank in 10 hours and 12 hours respectively while a third, pipe
A.
B.
C.
D.

empties the full tank in 20 hours. If all the three pipes operate simultaneously, in how
much time will the tank be filled?
4 hr 30 min
7 hr 30 min
8 hr 10 min
None

14. An electric pump can fill a tank in 3 hours. Because of a leak in, the tank it took
A.
B.
C.
D.

3(1/2) hours to fill the tank. If the tank is full, how much time will the leak take to
empty it?
14 hours
16 hours
18 hours
21 hours

15. On Childrens Day sweets were to be equally distributed among 175 children in a
school. Actually on the Childrens Day, 35 children were absent and therefore each
child got 4 sweet extra. Total how many sweets were available for distribution?
A. 2400
B. 2450
C. 2680
15

D. None

16. In a stream running at 2 kmph, a motorboat goes 6 km upstream and back again to the
starting point in 33 minutes. Find the speed of the motorboat in still water.
12 kmph
15 kmph
22 kmph
30 kmph
17. A cube of edge 15 cm is immersed completely in a rectangular vessel containing
water. If the dimensions of the base of vessel are 20 cm x 15 cm, find the rise in water
level.
A. 11.25 cm
B. 13.19 cm
C. 16.21 cm.
D. None
A.
B.
C.
D.

18. During one year, the population of town increased by 5% . If the total population is
A.
B.
C.
D.

9975 at the end of the second year, then what was the population size in the beginning
of the first year?
8000
9700
10000
None

19. A man sitting in a train which is traveling at 50 kmph observes that a goods train,
A.
B.
C.
D.

traveling in opposite direction, takes 9 seconds to pass him. If the goods train is 280
m long, find its speed?
42 kmph
53 kmph
62 kmph
77 kmph

20. Two trains running in opposite directions cross a man standing on the platform in 27
A.
B.
C.
D.

seconds and 17 seconds respectively and they cross each other in 23 seconds. The
ratio of their speeds is:
1:3
3:2
3:4
None

21. A metallic sheet is of rectangular shape with dimensions 48 m x 36 m. From each of


A.
B.
C.
D.

its corners, a square is cut off so as to make an open box. If the length of the square is
8 m, the volume of the box (in m3) is:
4830
5120
6420
8960

22. If a boat goes 7 km upstream in 42 minutes and the speed of the stream is 3 kmph,
then the speed of the boat in still water is:
A. 4.2 km/hr
B. 9 km/hr
16

C. 13 km/hr
D. 21 km/hr

23. A and B together can do a piece of work in 30 days. A having worked for 16 days, B
A.
B.
C.
D.

finishes the remaining work alone in 44 days. In how many days shall B finish the
whole work alone?
30 days
40 days
60 days
70 days

24. Two pipes A and B can fill a tank in 20 and 30 minutes respectively. If both the pipes
A.
B.
C.
D.

are used together, then how long will it take to fill the tank?
12 min
15 min
25 min
50 min

25. If the numerator of a fraction is increased by 15% and its denominator be diminished
A.
B.
C.
D.

by 8%, the value of the fraction is 15/16. Find the original fraction.
5/4
7/2
8/3
None

17

18

ANSWERS OF TEST PAPER 3


1. B
2. A
3. C
4. A
5. B
6. D
7. D
8. C
9. A
10. B
11. A
12. A
13. B
14. D
15. D
16. C
17. A
18. C
19. C
20. B
21. B
22. C
23. C
24. A
25. D

Computer Skills Lab (IT0324)


Test Paper-4 (C Quiz)

1. void main()
{
int a = 36, b = 9;
printf("%d",a>>a/b-2);
}
19

What is the output of above code?


A. 9
B. 7
C. 5
D. none of these
2. What does fp point to in the program?
int main ()
{
FILE *fp;
fp=open (trial, r);
return 0;
}
A. The first character in the file
B. A structure which contains a char pointer which points to the first character of
a file
C. The name of the file.
D. The last character in the file.
3. To print out a and b given below, which of the following printf() statement will
you use?
float a=3.14;
double float b=3.14;
A. printf("%f %lf", a, b);
B. printf("%Lf %f", a, b);
C. printf("%Lf %Lf", a, b);
D. printf("%f %Lf", a, b);
4. In the following code, the p2 is Integer Pointer or Integer?
typedef int *ptr;
ptr p1, p2;
A. Integer
B. Integer pointer
C. Error in declaration
D. None of the above
5. Why we use the exit () method in c?
A. for change the method
B. for stop the execution
C. for stop compilation
D.
none
6. In which order do the following gets evaluated?
1. Relational
2. Arithmetic
3. Logical
4. Assignment
A. 2134
B. 1234
20

C. 4321
D. 3214
7. What is the similarity between structures, union?
A. All of them let you define new values
B. All of them let you define new data types
C. All of them let you define new pointers
D. All of them let you define new structures
8. What will be the output of the following statement?
int a=10; printf("%d &i",a,10);
A.
B.
C.
D.

Error
10
10 10
None of theses

9. void main()
{
int const * p=5;
printf("%d",++(*p));
}
A.
B.
C.
D.

6
Compiler Error
5
Syntax error

10. main()
{
char s[ ]="man";
int i;
for(i=0;s[ i ];i++)
printf("\n%c%c%c%c",s[i],*(s+i),*(i+s),i[s]);
}
A. mmmm
aaaa
nnnn
B. Syntax error
C. manm
amna
namn
D. Declaration error
11. main()
{
float me = 1.1;
double you = 1.1;
if(me==you)
printf("I love U");
else
21

printf("I hate U");


}
A.
B.
C.
D.

I love U
Syntax error
Compiler Error
I hate U

12. main()
{
static int var = 5;
printf("%d ",var--);
if(var)
main();
}
A.
B.
C.
D.

54321
Syntax Error
Main cannot be defined like this
Type declaration error

13. main()
{
int c[ ]={2.8,3.4,4,6.7,5};
int j,*p=c,*q=c;
for(j=0;j<5;j++) {
printf(" %d ",*c);
++q;
}
for(j=0;j<5;j++){
printf(" %d ",*p);
++p;
}
}
A. Integer variable cannot contain floating values.
B. 2 2 2 2 2 2 3 4 6 5
C. 2.8 3.4 4 6.7 52.8 3.4 4 6.7 5 2.8 3.4 4 6.7 5 2.8 3.4 4 6.7 5 2.8 3.4 4 6.7 5
D.2 3 4 6 5 2 3 4 6 5 2 3 4 6 5 2 3 4 6 5 2 3 4 6
14. main()
{
int i=-1,j=-1,k=0,l=2,m;
m=i++&&j++&&k++||l++;
printf("%d %d %d %d %d",i,j,k,l,m);
}
A.1 3 1 0 0
B.1 1 1 0 0
C.0 0 1 1 1
D.0 0 1 3 1
15. main()
{
char *p;
printf("%d %d ",sizeof(*p),sizeof(p));
22

}
A.1 2
B.1 1
C.2 1
D.Error
16. main()
{
printf("%x",-1<<4);
}
A.Syntax Error
B.0
C.fff0
D.1
17. main()
{
char string[]="Hello World";
display(string);
}
void display(char *string)
{
printf("%s",string);
}
A.Syntax error
B.Compiler error
C.Hello World
D.Linker Error
18. main()
{
int c=- -2;
printf("c=%d",c);
}
A.Declaration Error
B.Compiler Error
C.c=1
D.c=2
19. #define int char
main()
{
int i=65;
printf("sizeof(i)=%d",sizeof(i));
}
A.Declaration Error
23

B.sizeof(i)=1
C.Compiler Error
D.65
20. main()
{
int i=10;
i=!i>14;
Printf ("i=%d",i);
}
A.i=0
B.i=1
C.Syntax Error
D.Compiler Error
21. main()
{
printf("\nab");
printf("\bsi");
printf("\rha");
}
A.absiha
B.hai
C.abiha
D.siha
22. #include <stdio.h>
#define a 10
main()
{
#define a 50
printf("%d",a);
}
A.10
B.Syntax error
C.Declaration error
D.50
23. main()
{
char *p;
p="Hello";
printf("%c\n",*&*p);
}
A.H
B.Hello
C.Syntax Error
D.Declaration Error
24

24. main()
{static char names[5][20]={"pascal","ada","cobol","fortran","perl"};
int i;
char *t;
t=names[3];
names[3]=names[4];
names[4]=t;
for (i=0;i<=4;i++)
printf("%s",names[i]);
}
A.Declaration error
B.Logical Error
C.Syntax Error
D.Compiler error

25

ANSWERS OF TEST PAPER 4

1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.

A
B
A
B
B
A
B
D
B
A
D
A
B
D
A
C
B
D
B
C
B
D
A
D

COMPUTER SKILLS LAB (IT0324)


TEST PAPER- 5 (Technical Interview Questions)
26

1. What if the main method is declared as private?


The program compiles properly but at runtime it will give "Main method not
public." Message.
2. What is meant by pass by reference and pass by value in Java?
Pass by reference means, passing the address itself rather than passing the
value. Pass by value means passing a copy of the value.
3. What gives java its write once and run anywhere nature?
All Java programs are compiled into class files that contain bytecodes. These
byte codes can be run in any platform and hence java is said to be platform
independent.
4. What is final, finalize () and finally?
final - declare constant
finally - handles exception
finalize - helps in garbage collection
5. What is the Java API?
The Java API is a large collection of ready-made software components that
provide many useful capabilities, such as graphical user interface (GUI)
widgets.
6. Why there are no global variables in Java?
Global variables are globally accessible. Java does not support globally
accessible variables due to following reasons:
* The global variables break the referential transparency
* Global variables create collisions in namespace.
7. What are Encapsulation, Inheritance and Polymorphism
Polymorphism in simple terms means one name many forms. Polymorphism
enables one entity to be used as a general category for different types of
actions. The specific action is determined by the exact nature of the situation.
Polymorphism exists in three distinct forms in Java:
Method overloading
Method overriding through inheritance
Method overriding through the Java interface
27

8. What are different types of access modifiers?


Access specifiers are keywords that determine the type of access to the
member of a class. These keywords are for allowing privileges to parts of a
program such as functions and variables. These are:
Public: accessible to all classes
Protected: accessible to the classes within the same package and any
subclasses.
Private: accessible only to the class to which they belong
Default: accessible to the class to which they belong and to subclasses within
the same package
9. What is the difference between declaring a variable and defining a
variable?
In declaration we only mention the type of the variable and its name without
initializing it. Defining means declaration + initialization. E.g. String s; is just
a declaration while String s = new String ("bob"); Or String s = "bob"; are
both definitions.
10. What gives java its write once and run anywhere nature?
All Java programs are compiled into class files that contain bytecodes. This
byte codes can be run in any platform and hence java is said to be platform
independent.
11. Expain the reason for each keyword of public static void main (String
args[])?
public- main (..) is the first method called by java environment when a
program is executed so it has to accessible from java environment. Hence the
access specifier has to be public.
static: Java environment should be able to call this method without creating
an instance of the class , so this method must be declared as static.
Void: main does not return anything so the return type must be void
The argument String indicates the argument type which is given at the
command line and arg is an array for string given during command line.
12. What is the difference between a while statement and a do statement?
A while statement (pre test) checks at the beginning of a loop to see whether
the next loop iteration should occur. A do while statement (post test) checks at
the end of a loop to see whether the next iteration of a loop should occur. The
do statement will always execute the loop body at least once.
13. Explain the Inheritance principle.
28

Inheritance is the process by which one object acquires the properties of


another object. Inheritance allows well-tested procedures to be reused and
enables changes to make once and have effect in all relevant places.
14. What is implicit casting?
Implicit casting is the process of simply assigning one entity to another
without any transformation guidance to the compiler. This type of casting is
not permitted in all kinds of transformations and may not work for all
scenarios.
15. Name primitive Java types
The 8 primitive types are byte, char, short, int, long, float, double and
Boolean.
16. What is the difference between the boolean & operator and the &&
operator?
If an expression involving the Boolean & operator is evaluated, both operands
are evaluated, whereas the && operator is a short cut operator. When an
expression involving the && operator is evaluated, the first operand is
evaluated. If the first operand returns a value of true then the second operand
is evaluated. If the first operand evaluates to false, the evaluation of the second
operand is skipped.
17. How does Java handle integer overflows and underflows?
It uses those low order bytes of the result that can fit into the size of the type
allowed by the operation.
18. What type of parameter passing does Java support?
In Java the arguments (primitives and objects) are always passed by value.
With objects, the object reference itself is passed by value and so both the
original reference and parameter copy both refer to the same object.

Computer Skills Lab (IT0324)


Test Paper-6 (Java Programming)
29

1.
A.
B.
C.
D.

The method setLabel can be used with what type of Object?


String
Int
Text Field
Double Field

2.
A.
B.
C.
D.
E.
F.

Which two cause a compiler error?


Float[ ] = new float(3);
Float f2[ ] = new float [ ];
Float [ ] f1=new float [3];
Float f3 [ ]= new float [3];
Float f5 [ ]={1.0f, 2.0f, 2.0f};
Float f4 [ ]= new float [ ] {1.0f, 2.0f, 3.0f};

3. Which of the following statements about finalize methods is true?


A. The purpose of a finalize method is to recover system resources other than
memory.
B. The purpose of a finalize method is to recover memory and other system
resources.
C. You should always write a finalize method for every class.
D. The order in which objects are created controls the order in which their
finalize methods are called.
4. What is final, finalize () and finally?
5. Which of the following statements are true?
A.
B.
C.
D.
E.

A final objects data cannot be changed.


A final class can be subclassed.
A final method cannot be overloaded.
A final object cannot be reassigned a new address in memory.
None of the above.

6. What will be the result of compiling and running the given program?
public class exception
{
public static void main(String args[ ])
{
system.out.printlm(A);
Try
{
30

system.out.println(B);
system.exit(0);
}
catch (Exception e)
{
system.out.println(C);
}
finally
{
system.out.println(D);
}
}
A.
B.
C.
D.

Program compiles correctly and prints "A" when executed.


Program compiles correctly and prints "A" and "B" when executed.
Program compiles correctly and prints "A" and "C" when executed.
Program compiles correctly and prints "A","B" and "C" when executed.

7.
A.
B.
C.
D.

What can cause a thread to stop executing?


The program exits via a call to System.exit(0);
Another thread is given a higher priority.
A call to the thread's stop method.
A call to the halt method of the Thread class

8.
A.
B.
C.
D.

How many copies of a JSP page can be in memory at a time?


One
Two
Three
Unlimited

9.
A.
B.
C.
D.
E.

Which one of the following is a valid declaration of an applet?


Public class MyApplet extends java.applet.Applet {
Public Applet MyApplet {
Public class MyApplet extends applet implements Runnable {
Abstract class MyApplet extends java.applet.Applet {
Class MyApplet implements Applet {

10. What is not true of a Java bean?


A. There are no public instance variables.
B. All persistent values are accessed using getxxx and setxxx methods.
31

C. It may have many constructors as necessary.


D. All of the above are true of a Java bean.
11. What will be the result of compiling and running the given program?
Class strings
{
Public static void main(String arg[ ])
{
If(String.indexOf(S,-10)==0)
{
System.out.println(Equal);
}
Else
{
System.out.println(NotEqual);
}
}
A.
B.
C.
D.

Compile time error as we passed negative value in indexOf () method.


Run time error as we passed negative value in indexOf () method.
Program compiles and prints equal when executed.
Program compiles and prints Not Equal when executed.

12. What keyword is used to prevent an object from being serialized?


A. Private
B. Volatile
C. Protected
D. Transient
13. What is the difference between Reader/Writer and InputStream/Output?
A.
B.
C.
D.

14. Which of the following statements are true?


An inner class may be defined as static.
There are NO circumstances where an inner class may be defined as private.
An anonymous class may have only one constructor.
An inner class may extend another class.
15. What will be the result of compiling and running the given program?
32

public class Q4
public static void main(String[] args)
{
boolean t1 = true, t2 = false, t3 = t1;
boolean t = false;
t &&= (t1 || ( t2 && t3));
System.out.println(t);
}
A.
B.
C.
D.

Program compiles correctly and prints true when executed.


Program compiles correctly and prints false when executed.
Compile time error.
Run time error.

33

ANSWERS OF TEST PAPER 6

1. (D)
2. (A) (B)
3. (C)
4. final: final keyword can be used for class, method and variables. A final class
cannot be subclassed and it prevents other programmers from subclassing a
secure class to invoke insecure methods. A final method cant be overridden.
finalize () : finalize() method is used just before an object is destroyed and can
be called just prior to garbage collection.
finally: finally, a key word used in exception handling, creates a block of code
that will be executed after a try/catch block has completed and before the code
following the try/catch block.
5. (D)
6. (B)
7. (A) (B) (C)
8. (A)
9. (C)
10. (C)
11. (C)
12. (D)
13. The Reader/Writer class is character-oriented and the
InputStream/OutputStream class is byte-oriented.
14. (A) (D)
15. (C)

COMPUTER SKILLS LAB (IT0324)


Test Paper-7 ((Data Structures)
34

1. What is data structure?


A data structure is a way of organizing data that considers not only the items stored,
but also their relationship to each other. Advance knowledge about the relationship
between data items allows designing of efficient algorithms for the manipulation of
data.
2. List out the areas in which data structures are applied extensively?
1. Compiler Design,
2. Operating System,
3. Database Management System,
4. Statistical analysis package,
5. Numerical Analysis,
6. Graphics,
7. Artificial Intelligence,
8. Simulation
3. What are the major data structures used in the following areas : RDBMS,
Network data model and Hierarchical data model.
1. RDBMS = Array (i.e. Array of structures)
2. Network data model = Graph
3. Hierarchical data model = Trees
4. If you are using C language to implement the heterogeneous linked list, what
pointer type will you use?
The heterogeneous linked list contains different data types in its nodes and we need a
link, pointer to connect them. It is not possible to use ordinary pointers for this. So we
go for void pointer. Void pointer is capable of storing pointer to any type as it is a
generic pointer type.
5. Minimum number of queues needed to implement the priority queue?
Two. One queue is used for actual storing of data and another for storing priorities.
6. What is the data structures used to perform recursion?
35

Stack. Because of its LIFO (Last In First Out) property it remembers its 'caller' so
knows whom to return when the function has to return. Recursion makes use of
system stack for storing the return addresses of the function calls.
Every recursive function has its equivalent iterative (non-recursive) function. Even
when such equivalent iterative procedures are written, explicit stack is to be used.
7. What are the notations used in Evaluation of Arithmetic Expressions using
prefix and postfix forms?
Polish and Reverse Polish notations.
8. Convert the expression ((A + B) * C - (D - E) ^ (F + G)) to equivalent Prefix
and Postfix notations.
1. Prefix Notation: - * +ABC ^ - DE + FG
2. Postfix Notation: AB + C * DE - FG + ^ 9. Sorting is not possible by using which of the following methods? (Insertion,
Selection, Exchange, Deletion)
Sorting is not possible in Deletion. Using insertion we can perform insertion sort,
using selection we can perform selection sort, using exchange we can perform the
bubble sort (and other similar sorting methods). But no sorting method can be done
just using deletion.
10. What are the methods available in storing sequential files?
1. Straight merging,
2. Natural merging,
3. Polyphase sort,
4. Distribution of Initial runs.
11. List out few of the Application of tree data-structure?
1. The manipulation of Arithmetic expression,
2. Symbol Table construction,
3. Syntax analysis.
12. List out few of the applications that make use of Multilinked Structures?
1. Sparse matrix,
2. Index generation.
36

13. In tree construction which is the suitable efficient data structure? (Array,
Linked list, Stack, Queue)
Linked list is the suitable efficient data structure.
14. What is the type of the algorithm used in solving the 8 Queens problem?
Backtracking.
15. In an AVL tree, at what condition the balancing is to be done?
If the 'pivotal value' (or the 'Height factor') is greater than 1 or less than -1.
16. What is the bucket size, when the overlapping and collision occur at same
time?
One. If there is only one entry possible in the bucket, when the collision occurs, there
is no way to accommodate the colliding value. This results in the overlapping of
values.
17. Classify the Hashing Functions based on the various methods by which the
key value is found.
1. Direct method,
2. Subtraction method,
3. Modulo-Division method,
4. Digit-Extraction method,
5. Mid-Square method,
6. Folding method,
7. Pseudo-random method.
18. What are the types of Collision Resolution Techniques and the methods used
in each of the type?
1. Open addressing (closed hashing), The methods used include: Overflow
block.
2. Closed addressing (open hashing), The methods used include: Linked list,
Binary tree.
19. In RDBMS, what is the efficient data structure used in the internal storage
representation?
37

B+ tree. Because in B+ tree, all the data is stored only in leaf nodes, that makes
searching easier. This corresponds to the records that shall be stored in leaf nodes.
20. What is a spanning Tree?
A spanning tree is a tree associated with a network. All the nodes of the graph appear
on the tree once. A minimum spanning tree is a spanning tree organized so that the
total edge weight between nodes is minimized.
.

COMPUTER SKILLS LAB (IT0324)


Test Paper-8 (C++ Programming)
1. What is a size of empty class in c++?
A. 4 bytes
B. 2 bytes
C. 0 bytes
D. 1 bytes
2. In c++ object of the class is also called?
A. Constants
B. Tag
C. Instance
D. Data collection
3. In object oriented programming, by wrapping up characteristics and behavior
into one unit, we achieve
A. Data Abstraction
38

B. Data Encapsulation
C. Data Hiding
D. All of these
4. Which of the following mode declaration is used in C++ to open a file for
input?
A. ios :: app
B. in :: ios
C. ios :: in
D. ios :: file
5. The mechanism that binds code and data together and keeps them secure from
outside world is known as
A. Abstraction
B. Encapsulation
C. Inheritance
D. Polymorphism
6. The parameter list in function overloading must differ by?
A. Number of functions
B. Function Size
C. Function Name
D. Number of argument
7. Data members is also called?
A. Attribute
B. Method
C. Class
D. Object
8. In how many ways is polymorphism achieved in C++?
39

A. 2
B. 3
C. 1
D. 4
9. The Object is not declared for which class?
A. Parent
B. Base
C. Abstract
D. Derived
10. The constructor without parameter is called?
A. Method Constructor
B. Default Constructor
C. Operator Constructor
D. Function Constructor
11. The static member variable is initialized to?
A. 0
B. 1
C. 2
D. -1
12. Which of the following is user defined data type?
A. Public
B. Private
C. Class
D. A & B Both

40

13. A __________ is a special method used to initialize the instance variable of a


class.
A. Member function
B. Destructor
C. Constructor
D. Structure
14. Member of a class specified as _______ are accessible only to method of the
class.
A. private
B. public
C. protected
D. derive
15. What features make C++ so powerful?
A. Easy implementation
B. Code reusability
C. Easy memory management
D. All the above
16. Local Variables can be access?
A. Code block enclosed in braces { }.
B. Code block enclosed in bracket ().
C. Code block enclosed in square bracket [].
D. None of the above
17. In C++ every statement end with?
A. Colon (:)
B. Comma (,)
C. Dot (.)
41

D. None of the above


18. What is pointer?
A. The variable that stores the reference to another variable
B. The variable that stores reference of garbage variable
C. The variable that stores the memory address of another variable
D. A & C Both
19. If class A inherits from more than one class, ie. A inherits from B1, B2,... is
called
A. Single Inheritance
B. Multilevel Inheritance
C. Multiple Inheritance
D. None of the above
20. If class A inherits from class B, then B is called _______ of A. A is called
________ of B.
A. Super class, Sub class
B. Subclass, Super class
C. Abstract class, Base Class
D. Child class, Sub Class
21. ________ is the mechanism which allows a class A to inherit properties of a
class B.
A. Data abstraction
B. Encapsulation
C. Inheritance
D. Polymorphism
22. Which of the following statements is correct?
A. First time method of a class is called, the constructor method is called.
B. Every time method of a class is called, the constructor method is called.
42

C. Every time an instance of a class is created, the constructor method is called.


D. None of the above
23. Who is father of C++ Language?
A. Dr. E.F. Codd
B. James A. Gosling
C. Bjarne Stroustrup
D. Dennis Ritchie
24. ________ is a default access specifier for members of class in C++.
A. protected
B. public
C. private
D. default
25. Which diagram provides a formal graphic notation for modelling objects,
classes and their relationships to one another?
A. Object Diagram
B. Analysis Diagram
C. Instance Diagram
D. Class Diagram

43

ANSWERS OF TEST PAPER 8

1. D
2. C
3. B
4. C
5. B
6. D
7. A
8. B
9. C
10. B
11. A
12. C
13. C
14. A
15. D
16. A
17. D
18. D
19. C
20. A
21. C
22. C
23. C
24. C
25. A

COMPUTER SKILLS LAB (IT0324)


Test Paper-9 (Programming)

44

1. To override a method in Java, we need to define a method in sub class with the
A. same name, same number of arguments having the same data types as a
method in the super class
B. different name, same number of arguments having the same data type as a
method in the super class
C. same name but different number of arguments as a method in the super class
D. same name, same number of arguments but different data types as a method in
the super class
2. A constructor that is automatically generated in the absence of explicit
constructors called?
A. Default Constructor
B. Nullary Constructor
C. Empty Constructor
D. All the above
3. Overloaded methods are differentiated by
A. Number of arguments
B. Data type of arguments
C. Number and the Data type of the arguments
D. None of the above
4. Which keyword is used to inherit class?
A. inherit
B. extends
C. inheritance
D. extend
5. Which method of System class is used to copy array?
A. copyArray
B. arrayCopy
45

C. arraycopy
D. arrCopy
6. Which is right way to creating an array of integer?
A. javaArray = new int[10];
B. javaArray new = myArray[10];
C. int[] javaArray = new int[10];
D. A and C Both
7. Which is right way to declare Array?
A. int[] myArray;
B. int myArray[];
C. int []myArray;
D. A and B Both
8. Choose best option that describes Constructor.
A. Have no return type
B. Use name of the class and have no return type
C. Use name of the class
D. None of the above
9. How integer literal can expressed binary data?
A. int binaryData = b11010;
B. int binaryData = bx11010;
C. int binaryData = 0b11010;
D. int binaryData = xb11010;
10. If you access an uninitialized local variable will result?
A. Syntax Error
B. Compile Time Error
46

C. Run Time Error


D. No Error
11. How many type of Primitive Data Types exist in Java?
A. 5
B. 7
C. 8
D. 10
12. A collection of methods with no implementation is called an ________.
A. Polymorphism
B. Inheritance
C. Interface
D. Data Binding
13. What is the correct signature of the main method?
A. public static void main(String[] args)
B. static public void main(String[] args)
C. public void main(String[] args)
D. A and B Both
14. Which is not a valid comment style in Java
A. /* comment */
B. /* comment
C. /** comment */
D. // comment
15. The Java programming language is a ________?
A. Machine Level Language
B. High Level Language
47

C. Assembly Level Language


D. None of the above
16. Which is not a valid keyword in java?
A. null
B. transient
C. synchronized
D. native
17. What is default storage class of variables in C language?
A. extern
B. local
C. auto
D. global
18. Representation of data structure in memory is known as
A. Recursive
B. Abstract data type
C. Storage structure
D. File structure
19. Which of the following search algorithm requires a sorted array?
A. Linear search
B. Hash search
C. Binary search
D. All of these
20. The largest element of an array index is called its
A. Lower bound
B. Upper bound
48

C. Range
D. All of the above
21. Which of the following is a Compound assignment operators?
A. +=
B. *=
C. /=
D. All the above
22. What is %f, %d, %s and %c?
A. Number Specifier
B. Format Specifier
C. Access Specifier
D. None of the above
23. Which of the following is correct set of keywords?
A. unsigned, external, typedef, signed
B. unsigned, volatile, typedef, every
C. unsigned, volatile, typedef, sizeof
D. None of the above
24. Every C Program must have one function called?
A. switch()
B. main()
C. struct()
D. for()
25. Which is the correct syntax to declare constant pointer?
A. int *const constPtr;
B. *int constant constPtr;
49

C. const int *constPtr;


D. A and C both

50

ANSWERS OF TEST PAPER 9

1. A
2. D
3. C
4. B
5. C
6. D
7. D
8. B
9. C
10. B
11. C
12. C
13. D
14. B
15. B
16. A
17. C
18. B
19. C
20. B
21. D
22. B
23. C
24. B
25. D

COMPUTER SKILLS LAB (IT0324)


TEST PAPER - 10 (VERBAL REASONING)
51

In each of the following questions find out the alternative which will replace the
question mark.
1. CUP: LIP: :BIRD : ?
A. BUSH
B. GRASS
C. FOREST
D. BEAK
2. GRAIN : STOCK : : STICK : ?
A. Heap
B. Bundle
C. Collection
D. String
3. If A + B means A is the mother of B; A - B means A is the brother B; A % B
means A is the father of B and A x B means A is the sister of B, which of the
following shows that P is the maternal uncle of Q?
A. Q-N+M*P
B. P+S*N-Q
C. P-M+N*Q
D. Q-S%P
4.
A.
B.
C.
D.

Find the odd one out


Snore
Slumber
Dream
Yawn

5. Rahul put his timepiece on the table in such a way that at 6 P.M. hour hand
points to North. In which direction the minute hand will point at 9.15 P.M.?
A. South-East
B. South
C. North
D. West
6. Yesterday I saw an ice cube which had already melted due to heat of a nearby
furnace.
A. Always
B. Never
C. Often
D. Sometimes
7. In certain code, TOGETHER is written as RQEGRJCT. In the same code
PAROLE will be written as
A. NCPQJG
B. NCQPJG
C. RCPQJK
D. RCTQNG
52

8. There are 8 houses in a line and in each house only one boy lives with the
conditions as given below:
Jack is not the neighbour Siman.
Harry is just next to the left of Larry.
There is at least one to the left of Larry.
Paul lives in one of the two houses in the middle.
Mike lives in between Paul and Larry.
If at least one lives to the right of Robert and Harry is not between Taud and
Larry, then which one of the following statement is not correct?
A.
B.
C.
D.

Robert is not at the left end.


Robert is in between Simon and Taud.
Taud is in between Paul and Jack.
There are three persons to the right of Paul.

9. Introducing a boy, a girl said, "He is the son of the daughter of the father of
my uncle." How is the boy related to the girl?
A. Brother
B. Nephew
C. Uncle
D. Son-in-law
Each of these questions given below contains three elements. These elements
may or may not have some inter linkage. Each group of elements may fit into
one of these diagrams at (A), (B), (C), (D) and/or (E). You have to indicate the
group of elements which correctly fits into the diagrams.
10. Which of the following diagrams indicates the best relation between Travelers,
Train and Bus?
A.

B.
C.

D.
Choose the correct alternative that will continue the same pattern and replace
the question mark in the given series.
11. 3, 10, 101, ?
A. 10101
B. 10201
53

C. 10202
D. 11012
12. In the series 2, 6, 18, 54, ...... what will be the 8th term ?
A. 4370
B. 4374
C. 7443
D. 7434
13. Which one will replace the question mark ?

A. 1
B. 4
C. 3
D. 6
14. Which one will replace the question mark ?

A. 25
B. 37
C. 41
D. 47
In each of the questions below consists of a question and two statements
numbered I and II given below it. You have to decide whether the data provided
in the statements are sufficient to answer the question. Read both the statements
15. Question: What will be the total weight of 10 poles, each of the same weight?
54

Statements:

A.
B.
C.
D.
E.

One-fourth of the weight of each pole is 5 kg.


The total weight of three poles is 20 kilograms more than the total
weight of two poles
I alone is sufficient while II alone is not sufficient
II alone is sufficient while I alone is not sufficient
Either I or II is sufficient
Neither I nor II is sufficient
Both I and II are sufficient

16. Question: How many children does M have?


Statements:
H is the only daughter of X who is wife of M.
K and J are brothers of M.
A. I alone is sufficient while II alone is not sufficient
B. II alone is sufficient while I alone is not sufficient
C. Either I or II is sufficient
D. Neither I nor II is sufficient
E. Both I and II are sufficient
17. Rasik walked 20 m towards north. Then he turned right and walks 30 m. Then
he turns right and walks 35 m. Then he turns left and walks 15 m. Finally he
turns left and walks 15 m. In which direction and how many metres is he from
the starting position?
A. 15 m west
B. 30 m east
C. 30 m west
D. 45 m west
P, Q, R, S, T, U, V and W are sitting round the circle and are facing the centre:

P is second to the right of T who is the neighbour of R and V.


S is not the neighbour of P.
V is the neighbour of U.
Q is not between S and W. W is not between U and S.

18. Which two of the following are not neighbours?


A. RV
B. UV
C. RP
D. QW
19. Which one is immediate right to the V?
A. P
B. U
C. R
D. T
20. Which of the following is correct?
A. P is to the immediate right of Q
55

B. R is between U and V
C. Q is to the immediate left of W
D. U is between W and S
21. What is the position of S?
A. Between U and V
B. Second to the right of P
C. To the immediate right of W
D. Data inadequate.

56

ANSWERS OF TEST PAPER 10


1. D
2. B
3. C
4. D
5. D
6. B
7. A
8. C
9. A
10. C
11. B
12. B
13. D
14. C
15. C
16. D
17. D
18. A
19. D
20. C
21. C

COMPUTER SKILLS LAB (IT0324)


TEST PAPER - 11 (APTITUDE)
1. A family I know has several children. Each boy in this family has as many sisters as
brothers but each girl has twice as many brothers as sisters. How many brothers and
sisters are there?
57

A. 4 boys & 3 girls


B. 2 boys & 2 girls
C. 3 boys & 4 girls
D. 4 boys & 2 girls
2. In a soap company soap is manufactured with 11 parts. For making one soap you
will get 1 part as scrap. At the end of the day u have 251 such scraps. From that how
much soap can be manufactured?
A. 22
B. 25
C. 15
D. 40
3. There is a 5 digit no. 3 pairs of sum is eleven each. Last digit is 3 times the first
one. 3 rd digit is 3 less than the second.4 th digit is 4 more than the second one. Find
the digit.
A. 25296
B. 34512
C. 24438
D. 25456
4. Every day a cyclist meets a train at a particular crossing. The road is straight before
the crossing and both are traveling in the same direction. The cyclist travels with a
speed of 10 Kmph. One day the cyclist comes late by 25 min. and meets the train 5km
before the crossing. What is the speed of the train?
A. 20kmph
B. 40kmph
C. 60kmph
D. 55kmph
5. Find the value of ( 0.75 * 0.75 * 0.75 - 0.001 ) / ( 0.75 * 0.75 - 0.075 + 0.01)
(a) 0.845
(b) 1.908
(c) 2.312
(d) 0.001
6 Salay walked 10 m towards West from his house. Then he walked 5 m turning to his
left. After this he walked 10 m turning to his left and in the end he walked 10 m
turning to his left. In what direction is he now from his starting point?
(A) South
(B) North
(C) East
(D) West
58

7. Manish goes 7 km towards South-East from his house, then he goes 14 km turning
to West. After this he goes 7 km towards North West and in the end he goes 9 km
towards East. How far is he from his house?
A) 5 km
B) 7 km
C) 2 km
D) 14 km
8. Laxman went 15 kms from my house, then turned left and walked 20 kms. He then
turned east and walked 25 kms and finally turning left covered 20kms. How far was
he from his house?
A) 5 kms
B) 10 kms
C) 40 kms
D) 80 kms
9. The door of Aditya's house faces the east. From the back side of his house, he
walks straight 50 metres, then turns to the right and walks 50 metres, then turns
towards left and stops after walking 25 metres. Now Aditya is in which direction from
the starting point?
A) South-East
B) North-East
C) South- West
D) North-West
10. A man walks 30 metres towards South. Then, turning to his right, he walks 30
metres. Then turning to his left, he walks 20 metres. Again he turns to his left and
walks 30 metres. How far is he from his initial position?
A) 20 metres
B) 30 metres
C) 60 metres
D) None of these
11. (38 x 142) (4096) =?
A) 337.25
B) 269.8
C) 490
D) 84.3125
12. 3 + 33.3 + 3.03 + 333 =?
59

A) 666
B) 636.33
C) 372.33
D) 672.66
13.

(17.52)2 =?

A) 280.9504
B) 290.5904
C) 306.9504
D) 280.5904
14.

(37% of 2370) (41% of 2105) =?

A) 13.85
B) 12.56
C) 13.10
D) 12.15

15. A person travels 12 km in the southward direction and then travels 5km to the
right and then travels 15km toward the right and finally travels 5km towards the east,
how far is he from his starting place?
A) 5.5 kms
B) 3 km
C) 13 km
D) 6.4 km
16. Find the next number in the series 1, 3, 7, 13, 21, 31
A) 43
B) 33
C) 41
D) 45
17. A person travels 6km towards west, then travels 5km towards north, then finally
travels
6km towards west. Where is he with respect to his starting position?
A) 13km east
B) 13km northeast
C) 13km northwest
D) 13km west

60

18. If A speaks the truth 80% of the times, B speaks the truth 60% of the times. What
is the probability that they tell the truth at the same time?
A) 0.8
B) 0.48
C) 0.6
D) 0.14
19. Susan can type 10 pages in 5 minutes. Mary can type 5 pages in 10 minutes.
Working together, how many pages can they type in 30 minutes?
A.
B.
C.
D.

15
20
25
75

20. Six bells commence tolling together and toll at intervals 2, 4, 6,8,10 and 12
seconds respectively. In 30 minutes how many times they toll together.
A) 4
B) 10
C) 15
D) 16

61

ANSWERS OF TEST PAPER 11


1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.

A
B
A
C
A
B
A
D
D
D
A
B
C
D
B
A
C
B
D
D

COMPUTER SKILLS LAB (IT0324)


TEST PAPER- 12 (NETWORKING)
1. Define Network?

62

A network is a set of devices connected by physical media links. A network is


recursively is a connection of two or more nodes by a physical link or two or more
networks connected by one or more nodes.
2. What is a Link?
At the lowest level, a network can consist of two or more computers directly
connected by some physical medium such as coaxial cable or optical fiber. Such a
physical medium is called as Link.
3. What is a node?
A network can consist of two or more computers directly connected by some physical
medium such as coaxial cable or optical fiber. Such a physical medium is called as
Links and the computer it connects is called as Nodes.
4. What is a gateway or Router?
A node that is connected to two or more networks is commonly called as router or
Gateway. It generally forwards message from one network to another.
5. What is point-point link?
If the physical links are limited to a pair of nodes it is said to be point-point link.
6. What is Multiple Access?
If the physical links are shared by more than two nodes, it is said to be Multiple
Access.
7. What are the advantages of Distributed Processing?
a. Security/Encapsulation
b. Distributed database
c. Faster Problem solving
d. Security through redundancy
e. Collaborative Processing
8. What are the criteria necessary for an effective and efficient network?
a. Performance
It can be measured in many ways, including transmit time and response time.
b. Reliability
It is measured by frequency of failure, the time it takes a link to recover from a
63

failure, and the network's robustness.


c. Security
Security issues include protecting data from unauthorized access and viruses.
9. Name the factors that affect the performance of the network?
a. Number of Users
b. Type of transmission medium
c. Hardware
d. Software
10. Name the factors that affect the reliability of the network?
a. Frequency of failure
b. Recovery time of a network after a failure
11. Name the factors that affect the security of the network?
a. Unauthorized Access
b. Viruses
12. What is Protocol?
A protocol is a set of rules that govern all aspects of information communication.
13. What are the key elements of protocols?
The key elements of protocols are
a. Syntax
It refers to the structure or format of the data, that is the order in which they are
presented.
b. Semantics
It refers to the meaning of each section of bits.
c. Timing
Timing refers to two characteristics: When data should be sent and how fast they
can be sent.
14. What are the key design issues of a computer Network?
a. Connectivity
b. Cost-effective Resource Sharing
c. Support for common Services
d. Performance
15. Define Bandwidth and Latency?
64

Network performance is measured in Bandwidth (throughput) and Latency (Delay).


Bandwidth of a network is given by the number of bits that can be transmitted over
the network in a certain period of time. Latency corresponds to how long it t5akes a
message to travel from one end off a network to the other. It is strictly measured in
terms of time.
16. Define Routing?
The process of determining systematically hoe to forward messages toward the
destination nodes based on its address is called routing.
17. What is a peer-peer process?
The processes on each machine that communicate at a given layer are called peer-peer
process.
18. When a switch is said to be congested?
It is possible that a switch receives packets faster than the shared link can
accommodate and stores in its memory, for an extended period of time, then the
switch will eventually run out of buffer space, and some packets will have to be
dropped and in this state is said to congested state.
19. What is semantic gap?
Defining a useful channel involves both understanding the applications requirements
and recognizing the limitations of the underlying technology. The gap between what
applications expects and what the underlying technology can provide is called
semantic gap.
20. What is Round Trip Time?
The duration of time it takes to send a message from one end of a network to the other
and back, is called RTT.
.

65

You might also like