0% found this document useful (0 votes)
315 views

Computer Skills Lab (IT0324) Test Paper-1 (C Quiz) : 1. The C Language Has Been Developed by

The document contains a quiz with 25 multiple choice questions related to C++ programming. It covers topics like classes, inheritance, pointers, references, I/O streams, operator overloading, templates and more. The answers to the quiz questions are provided at the end.

Uploaded by

Afroz
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
315 views

Computer Skills Lab (IT0324) Test Paper-1 (C Quiz) : 1. The C Language Has Been Developed by

The document contains a quiz with 25 multiple choice questions related to C++ programming. It covers topics like classes, inheritance, pointers, references, I/O streams, operator overloading, templates and more. The answers to the quiz questions are provided at the end.

Uploaded by

Afroz
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 61

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

1
D. 2000 2100

5. What will be output if you will execute following C code?


void main ()
{
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. 11
B. 12
C. 7
D. 9

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


void main()
{

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

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.

3
13. What will be the output of following code-
main ()
{
int a=20, b=35;
a=b++ +a++;
b=++b + ++a;
printf (“%d%d\n”,a,b);

A. 5432
B. 5794
C. 2435
D. 3456

14. What will be the output of following code-


void main()
char arr= “NETWORK”;
printf(“%s”, arr);

A. Network
B. N
C. Garbage Value
D. Complication Error

15. What will be the output of following code-


void main()
char arr= “THE AFRICAN QUEEN”;

printf(“%s”, arr);

A. THE AFRCIAN QUEEN


B. THE AFRICAN
C. Error
D. None

16. What will be the output of following code-


void 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

4
17. What will be the output of following code-
int main()
int a=5 , b=10, c;
int *p=&a , *q=&b;
c=p-q;
printf(“%d”,c);
return 0;
}

A. 1
B. 5
C. -5
D. Complication Error

18. What will be the output of following code-


void main()
int a=2, b=7, c=10;
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 code-


void main()
void (*p)();
int (*q)();
int(*r)();
p=clrscr();
q=getch();
r=puts();
(*p)();
(*r)(“cquestionbank.blogspot.com”);
(*q)();
return 0;
}

A. Null
B. Cquestionbank.blogspot.com
C. C
D. Error

20. What will be the output of following code-


5
Printf(“%c”,65);

Printf(“%d”,65);

A. 65
B. 0
C. 1
D. Error

21. What will be the output of following code-


void 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

22. What will be the output of following code-


main()
{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
6
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

7
ANSWERS OF TEST PAPER 1

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

8
Computer Skills Lab (IT0324)

Test Paper-2 (C++ Quiz)

1. Which of the following statements is correct?


A. Base class pointer cannot point to derived class.
B. Derived class pointer cannot point to base class.
C. Pointer to derived class cannot be created.
D. 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. Protected and public data only in C and B.


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

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

A. open and close files as in procedural languages.


B. use classes derived from ios.
C. use C language library functions to read and write data.
D. 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. abc
B. “abc”
C. abc
D. ‘abc’
9
7. If the variable count exceeds 100, a single statement that prints “Too many” is:

A. if (count<100) cout << “Too many”;


B. if (count>100) cout >> “Too many”;
C. if (count>100) cout << “Too many”;
D. None of these.

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

A. New
B. This
C. malloc( )
D. delete

9. The keyword friend does not appear in

A. the class allowing access to another class.


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

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

A. i = 20; i++;
B. for (i = 0; i<20; i++) { }
C. a = i++;
D. while (i++ = 20) cout <<i;

11. In multiple inheritance

A. the base classes must have only default constructors


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

12. The operator << when overloaded in a class

A. must be a member function


B. must be a non member function
C. can be both (A) & (B) above
D. 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 is-

A. is designed to be stored in different containers


10
B. works with different data types
C. generates objects which must be identical
D. 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. To facilitate the conversion of data types


B. To help modular programming.
C. To extend the capabilities of a class.
D. 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.
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. Classes can not have data as public members.


B. Structures can not have functions as members.
C. Class members are public by default.
D. 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;
11
}
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

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

13
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
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
man who is running at 8 kmph in the same direction in which the train is going?
A. 9 sec
B. 13 sec
C. 16 sec
D. None

3. A person's present age is two-fifth of the age of his mother. After 8 years, he will be
one-half of the age of his mother. How old is the mother at present?
A. 32 years
B. 36 years
C. 40 years
D. 48 years

4. If Rs. 10 be allowed as true discount on a bill of Rs. 110 due at the end of a certain
time, then the discount allowed on the same sum due at the end of double the time is:
A. Rs. 18.33
B. Rs. 24.19
C. Rs. 31.07
D. None

5. In a regular week, there are 5 working days and for each day, the working hours are
8. 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?
A. 160
B. 175
C. 180
D. 195
6. January 1, 2005 was Saturday. What day of the week lies on Jan. 1, 2006?
A. Wednesday
B. Tuesday
C. Saturday
D. Sunday

14
7. A man has some hens and cows. If the number of heads be 48 and the number of feet
equals 140, then the number of hens will be:
A. 22
B. 23
C. 24
D. 26

8. In an election between two candidates, 75% of the voters cast their votes, out of
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.
A. 9000
B. 15680
C. 16800
D. None

9. Two trains 137 meters and 163 meters in length are running towards each other on
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?
A. 12 sec
B. 13 sec
C. 16 sec
D. 31 sec

10. Rs. 20 is the true discount on Rs. 260 due after a certain time. What will be the true
discount on the same sum due after half of the former time, the rate of interest being
the same?
A. Rs. 7.19
B. Rs. 10.40
C. Rs. 12.07
D. Rs. 16

11. The sum of ages of 5 children born at the intervals of 3 years each is 50 years. What
is the age of the youngest child?
A. 4 years
B. 8 years
C. 10 years
D. None

12. Find the greatest possible length which can be used to measure exactly the lengths 4
m 95 cm, 9 m and 16 m 65 cm.
A. 45 cm
B. 57 cm
C. 63 cm
D. 99 cm

15
13. Two pipes can fill a tank in 10 hours and 12 hours respectively while a third, pipe
empties the full tank in 20 hours. If all the three pipes operate simultaneously, in how
much time will the tank be filled?
A. 4 hr 30 min
B. 7 hr 30 min
C. 8 hr 10 min
D. None

14. An electric pump can fill a tank in 3 hours. Because of a leak in, the tank it took
3(1/2) hours to fill the tank. If the tank is full, how much time will the leak take to
empty it?
A. 14 hours
B. 16 hours
C. 18 hours
D. 21 hours

15. On Children’s Day sweets were to be equally distributed among 175 children in a
school. Actually on the Children’s 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
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.
A. 12 kmph
B. 15 kmph
C. 22 kmph
D. 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

18. During one year, the population of town increased by 5% . If the total population is
9975 at the end of the second year, then what was the population size in the beginning
of the first year?
A. 8000
B. 9700
C. 10000
D. None

16
19. A man sitting in a train which is traveling at 50 kmph observes that a goods train,
traveling in opposite direction, takes 9 seconds to pass him. If the goods train is 280
m long, find its speed?
A. 42 kmph
B. 53 kmph
C. 62 kmph
D. 77 kmph

20. Two trains running in opposite directions cross a man standing on the platform in 27
seconds and 17 seconds respectively and they cross each other in 23 seconds. The
ratio of their speeds is:
A. 1:3
B. 3:2
C. 3:4
D. None

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


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:
A. 4830
B. 5120
C. 6420
D. 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
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
finishes the remaining work alone in 44 days. In how many days shall B finish the
whole work alone?
A. 30 days
B. 40 days
C. 60 days
D. 70 days

24. Two pipes A and B can fill a tank in 20 and 30 minutes respectively. If both the pipes
are used together, then how long will it take to fill the tank?
A. 12 min
B. 15 min
C. 25 min
D. 50 min

17
25. If the numerator of a fraction is increased by 15% and its denominator be diminished
by 8%, the value of the fraction is 15/16. Find the original fraction.
A. 5/4
B. 7/2
C. 8/3
D. None

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

19
Computer Skills Lab (IT0324)

Test Paper-4 (C Quiz)

1. void main()
{
int a = 36, b = 9;
printf("%d",a>>a/b-2);
}
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

20
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
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. Error
B. 10
C. 10 10
D. None of theses

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

A. 6
B. Compiler Error
C. 5
D. 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]);
}

21
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
printf("I hate U");
}

A. I love U
B. Syntax error
C. Compiler Error
D. I hate U

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

A. 5 4 3 2 1
B. Syntax Error
C. Main cannot be defined like this
D. 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.


22
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));
}

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

23
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
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

24
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. 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. A
2. B
3. A
4. B
5. B
6. A
7. B
8. D
9. B
10. A
11. D
12. A
13. B
14. D
15. A
16. C
17. B
18. D
19. B
20. C
21. B
22. D
23. A
24. D

26
COMPUTER SKILLS LAB (IT0324)

TEST PAPER- 5 (Technical Interview Questions)

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 it’s “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:

27
• Method overloading

• Method overriding through inheritance

• Method overriding through the Java interface

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 it’s “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?

28
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.

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.

29
Computer Skills Lab (IT0324)

Test Paper-6 (Java Programming)

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


A. String
B. Int
C. Text Field
D. Double Field

2. Which two cause a compiler error?


A. Float[ ] = new float(3);
B. Float f2[ ] = new float [ ];
C. Float [ ] f1=new float [3];
D. Float f3 [ ]= new float [3];
E. Float f5 [ ]={1.0f, 2.0f, 2.0f};
F. 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. A final object’s data cannot be changed.


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

6. What will be the result of compiling and running the given program?

public class exception

30
public static void main(String args[ ])

system.out.printlm(“A”);

Try

system.out.println(“B”);

system.exit(0);

catch (Exception e)

system.out.println(“C”);

finally

system.out.println(“D”);

A. Program compiles correctly and prints "A" when executed.


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

7. What can cause a thread to stop executing?


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

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


A. One
B. Two
C. Three
D. Unlimited
31
9. Which one of the following is a valid declaration of an applet?
A. Public class MyApplet extends java.applet.Applet {
B. Public Applet MyApplet {
C. Public class MyApplet extends applet implements Runnable {
D. Abstract class MyApplet extends java.applet.Applet {
E. 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.
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. Compile time error as we passed negative value in indexOf () method.


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

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


A. Private
32
B. Volatile
C. Protected
D. Transient

13. What is the difference between Reader/Writer and InputStream/Output?

14. Which of the following statements are true?


A. An inner class may be defined as static.
B. There are NO circumstances where an inner class may be defined as private.
C. An anonymous class may have only one constructor.
D. An inner class may extend another class.

15. What will be the result of compiling and running the given program?

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. Program compiles correctly and prints true when executed.


B. Program compiles correctly and prints false when executed.
C. Compile time error.
D. 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 can’t 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)

34
COMPUTER SKILLS LAB (IT0324)

Test Paper-7 ((Data Structures)

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?

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.

35
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.

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?


36
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?

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.

37
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
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
38
7. Data members is also called?

A. Attribute
B. Method
C. Class
D. Object

8. In how many ways is polymorphism achieved in C++?

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

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


class.

A. Member function
B. Destructor
C. Constructor
39
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 (.)
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


40
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.
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

41
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

42
COMPUTER SKILLS LAB (IT0324)

Test Paper-9 (Programming)

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
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
43
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
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


44
A. /* comment */
B. /* comment
C. /** comment */
D. // comment

15. The Java programming language is a ________?

A. Machine Level Language


B. High Level Language
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
C. Range
D. All of the above

21. Which of the following is a Compound assignment operators?

A. +=
45
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;
C. const int *constPtr;
D. A and C both

46
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

47
COMPUTER SKILLS LAB (IT0324)

TEST PAPER - 10 (VERBAL REASONING)

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. Find the odd one out


A. Snore
B. Slumber
C. Dream
D. 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

48
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

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. Robert is not at the left end.


B. Robert is in between Simon and Taud.
C. Taud is in between Paul and Jack.
D. 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.

49
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
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 ?

50
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?

Statements:

 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
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

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:
51
 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
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.

52
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

53
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?

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

54
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

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) =?


55
A) 337.25
B) 269.8
C) 490
D) 84.3125

12. 3 + 33.3 + 3.03 + 333 =?

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?
56
A) 13km east
B) 13km northeast
C) 13km northwest
D) 13km west

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.   15
B.   20
C.   25
D.   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

57
ANSWERS OF TEST PAPER 11

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

58
COMPUTER SKILLS LAB (IT0324)

TEST PAPER- 12 (NETWORKING)

1. Define Network?

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.
59
b. Reliability
   It is measured by frequency of failure, the time it takes a link to recover from a
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?

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
60
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.

61

You might also like