# Software Companies Placement Papers With Answers-CGI -Free Download

##

**
**

Q. A man leaves office daily at 7pm A driver with car comes from his
home to pick him from office and bring back home One day he gets free
at 5:30 and instead of waiting for driver he starts walking towards
home. In the way he meets the car and returns home on car He reaches
home 20 minutes earlier than usual. In how much time does the man reach
home usually??

Ans. 1hr 20min

Q.The following truth table is given What is Y equal to??

A B C Y 0 0 0 1 0 0 1 1 0 1 0 0 0 1 1 0 1 0 0 0 1 0 1 0 1 1 0 1 1 1 1 1

Ans. (A')(B')(AB) , where ' stands for complement.

Q. A works thrice as much as B. If A takes 60 days less than B to do a
work then find the number of days it would take to complete the work if
both work together?

Ans. 22˝days

Q. How many 1's are there in the binary form of 8*1024 + 3*64 + 3

Ans. 4

Q. In a digital circuit which was to implement (A B) + (A)XOR(B), the
designer implements (A B) (A)XOR(B) What is the probability of error in
it ?

Q. A boy has Rs 2. He wins or loses Re 1 at a time If he wins he gets
Re 1 and if he loses the game he loses Re 1.He can loose only 5 times.
He is out of the game if he earns Rs 5. Find the number of ways in
which this is possible?

Ans. 16

Q. If there are 1024*1280 pixels on a screen and each pixel can have
around 16 million colors Find the memory required for this?

Ans. 4MB

Q. On a particular day A and B decide that they would either speak the
truth or will lie. C asks A whether he is speaking truth or lying? He
answers and B listens to what he said. C then asks B what A has said B
says "A says that he is a liar"What is B speaking ?

(a) Truth

(b) Lie

(c) Truth when A lies

(d) Cannot be determined

Ans. (b)

Q. What is the angle between the two hands of a clock when time is 8:30

Ans. 75(approx)

Q. A student is ranked 13th from right and 8th from left. How many
students are there in totality ?

Q. A man walks east and turns right and then from there to his left and
then 45degrees to his right.In which direction did he go

Ans. North west

Q. A student gets 70% in one subject, 80% in the other. To get an
overall of 75% how much should get in third subject.

Q. A man shows his friend a woman sitting in a park and says that she
the daughter of my grandmother's only son. What is the relation between
the two

Ans. Daughter

** **

**
1. Why we use Treeview Control?
**

To list the hierarchial list of the node objects. Such of files and
Directories.

**
2. Why we need OLE-Automation? Advantages?
**

Enables an application to exposes objects and methods to other
Applications. No need to reserve memory. No need to write functions.

Object library that simplify programming tasks. i.e., No need to Object
library. (OLB, TLB).

**
3. What is the diff between the Create Object and Get object?
**

Create Object - To create an instance of an object.

Get Object ? To get the reference to an existing object.

**
4. Have you create Properties and Methods for your own Controls?
**

Properties ? Public variable of a Class

Method ? Public procedure of a classWhat is Collection Objects?

Similarly to arrays but is preferred over an array because of the
following reasons.

1. A collection objects uses less Memory than an array.

2. It provides methods to add and delete members.

3. It does not required reason statement when objects are added or
deleted.

4. It does not have boundary limitations.

5. What is Static Variable?

Its Scope will be available through out the life time.

Private Dim x as integer. Is it true?

No. Private cannot be used in front of DIM.

6. What is Implicit?

Instance of specific copy of a class with its own settings for the
properties defined in that class. Note: The implicity defined variable
is never equal to nothing.

7. What are the scope of the class?

Public , private, Friend

Can we able to set Instancing properties like Singleuse,
GlobalSingleuse to ActiveXDll?

No.

In project properties if we set Unattended what is it mean?

This cannot have user interface. This can be used for the COM
creation.What are the Style Properties of Combo Box?

Simple, Dropdown list ? We can type and select.

Dropdown Combo ? Only Drop Down.

**
8. What are the Style properties of List Box?
**

Simple ?Single Select , Extended. ? Multiple Select.

**
9. What are the different types of Dialog Box?
**

Predefined, Custom, User Defined.

10. What is Parser Bug?

It is difficult to use database objects declared in a module from
within a form.

**
11. What is the Dll required for running the VB?
**

Vbrun300.dllCan We create CGI scripts in VB?

Yes.

12. How to change the Mouse Pointer?

Screen. Mouse Pointer = VBHourGlass/VBNormal.

13. How to check the condition in Msgbox?

If (Msgbox("Do you want to delete this Record",VbYesNo)=VbYes)Then End
if

14. What is difference between datagrid and flexgrid?

Datagrid ? Editable.

Flexigrid ? Non-Editable. (Generally used for Read only purpose.)

15. What is ADO? What are its objects ?

ActiveX Data Object. ADO can access data from both flat files as well
as the databases. I.e., It is encapsulation of DAO, RDO, and OLE that
is why we call it as OLE-DB Technology. Objects are Connection, Record
Set, Command, Parameter, field, Error, Property.

16. What is Dataware Control?

Any control bound to Data Control.

Ex:- Textbox, Check Box, Picture Box, Image Control, Label, List box,
Combo Box, DB Combo, What are two validate with Data Control?

Data_Validate, Data_Error.

Record set types and Number available in VB?

3. 1- Dynaset, 0 ? Table, 2 ? Snap Shot.

Referential Integrity (Take care By jet database Engine).

Cascade Delete, Cascade Update ? is done setting property of
Attributes.

Db Relation Delete Cascade,

Db Relation Update Cascade.

**
17. What are the locks available in Visual Basic?
**

Locking is the process by which a DBMS restricts access to a row in a
multi-user environment

4 types of locks. They are

1.Batch Optimistic

2.Optimistic

3.Pessimistic

4.ReadOnly

**
18. What is the diff between RDO and ADO?
**

RDO is Hierarchy model where as ADO is Object model. ADO can access
data from both flat files as well as the data bases. I.e., It is

encapsulation of DAO, RDO , OLE that is why we call it as OLE-DB
Technology.

19. How can we call Stored procedure of Back End in RDO and ADO ?

In RDO ? We can call using RDO Query Objects.

In ADO ? We can call using Command Objects.

**
20. What is the different between Microsoft ODBC Driver and Oracle OBDC
Driver?
**

Microsoft ODBC driver will support all the methods and properties of
Visual Basic. Where as the Oracle not.

**
21. What are the Technologies for Accessing Database from Visual Basic?
**

DAO, Data Control, RDO, ODBCDIRECT, ADO, ODBC API.

Calling Stored Procedures in VB?

1. Calling Simply the Procedure with out Arguments "Call Procedure
Name}"

If it is with Arguments Means then

Declare the Query Def qy

Set Qy as New Query def

Qy.SQL = "{Call ProcedureName(?,?,?)}"

qy(0)=val(Txt1.Text)

qy(1)=val(Txt2.Text)

qy(2)=val(Txt3.Text)

Set Rs = Qy.OpenresultSet

Txt(1)=Rs.RdoColumns(0)

** **

**
**

Q. Every day a driver comes to pick up a man at his office at 6pm. One
day the man gets free early and rather than waiting for the driver, he
starts walking for home at 4:30pm. The man meets the driver on the way
and then reaches home 30minutes earlier than usual. What is the usual
time that man takes to reach home from the office?

Q. What is the distance travelled by a ball that falls from a height of
8 mts and each time it bounces half the distance back?

Q. What is the height of the cone of diameter 12 cm that is formed
after melting a sphere of 6 cm diameter?

Q. A can work three times as B can work. If A takes 60 days less than B
to complete the same task, calculate the number of days when both A and
B start working together on the same day.

a) 25 days

b) 20 days

c) 22 and 1/2 days

d) 24 days

Q. A boy has Rs 3 in total. If he wins, he gains 1 Rupee and if he
looses, he has to loose 1 Rupee. The boy may lose only 5 times in the
game and if he earns 5 Rs, he has to quit the game. Find the number of
ways of the possibilities.

Q. A and B decide to speak truth or lie on a day. Another person asks A
if he is saying truth or lie. B listens to A whatever he answers. Now
the person asks B what A had told. B replies as “ A has told that he is
a liar”. What does B say?

a) Truth

b) Truth when A lies

c) Lie

d) Cannot be determined

Q. What is the angle between the two hands of the clock when it shows
10:10?

Q. In a queue, a man is standing at the position 10th from the front
and 15th from behind. How many persons are standing in the queue?

Q. A man runs towards the east direction and then takes his right. Then
he takes a left and again 50 degrees to his right. What is the
direction in which he is moving now?

a) North west

b) North east

c) East

d) West

Q. In an exam, a girl scores 85% in one subject and 88 % in another
subject. What percentage does she score in the third subject to get an
average of 88% marks?

a) 90

b) 91

c) 89

d) 87

Q. A boy asks the relation of two people walking along the street. One
of them says that the lady walking with him is the daughter of his
mother’s only son. What is the relation between the two people?

a) Brother and sister

b) Father and daughter

c) Husband and wife

d) Man and his aunt

Q. A sum of Rs 312 is divided among 100 boys and girls such that every
boy gets an amount of Rs 3.60 and every girl gets 2.40 Rs. Calculate
the number of girls in the group.

a) 45

b) 60

c) 40

d) 30

Q. A job may be completed in 12 days, working for 8 hours a day if 20
men or 24 women or 40 boys perform the task. If a task four times as
big as this is done for 5 hours a day for 12 days, how many men will be
required to join 6 women and 2 boys to complete the task?

a) 12

b) 2

c) 22

d) 20

Q. In a class of 60 students, a student of weight 45 Kg leaves the
class. The average weight of the class is then increased by 200 gms.
What is the average weight of the remaining 59 students in the class?

a) 55

b) 57

c) 59

d) 51

Q. In a triangle, the average of the two angles is 56 degrees where as
their difference is 24 degrees. What is the measurement of the biggest
angle of the triangle?

a) 62

b) 66

c) 56

d) 68

Q. If all the natural numbers from 256 to 400 are written side by side
to each other, a large natural number is obtained. How many times 6
appears in this large natural number?

Q. If each of the numbers A, B and C are divisible by 2, then A*B*C
must be divisible by

a) 16

b) 8

c) 9

d) 12

Q. A batsman scored 120 runs including 16 fours and 2 sixes. What
percentage of his total score did he make by running between the
wickets?

a) 33%

b) 36.7%

c) 35%

d) 45%

Q. A boy scores 9 marks more than his friend in an exam and has 56%
marks of the total of their marks. Calculate the marks scored by each
of them.

a) 42, 33

b) 46, 37

c) 39, 30

d) 54, 45

Q. What would be the rank of the word LABOUR in the dictionary if all
the possible permutations of the alphabets of LABOUR are done?

a) 240

b) 242

c) 258

d) 265

Q. In a class photograph, 5 girls are sitting in the front where as 20
boys are standing behind them. The corner two positions are reserved
for the tallest boys of the class. What are the number of ways the
students may be arranged?

a) 18! * 2! * 1440

b) 18! * 1440

c) 6! * 1440

d) 6! * 18!

Q. In a show, ticket numbers from 101 to 350 are made to sit
consecutively. What is the probability that the number of the ticket,
selected at random, will be a hundredth digit of 2?

a) 99/250

b) 100/250

c) 0.40

d) 0.254

Q. The numbers A, B and C make a sum of 98. If the ratio A:B is 2:3 and
that B:C is 5:8, the third number would be

a) 44

b) 48

c) 30

d) 58

Q. Ajay and Vijay ave their salaries in the ratio of 2:3. If each of
their salaries are increased by Rs 4000, the new ration comes to be
40:57. How much is the present salary of Vijay?

a) 34,000

b) 38,000

c) 28,000

d) 40,000

Q. What is the total distance covered by Sachin if he covers 2/3 rd of
the distance at 4 kmph and the remaining distance at 5 kmph in 1hr
24min?

a) 8

b) 10

c) 6

d) 4

Q. A man drives at a speed of 40 miles/hr while his friend drives at a
speed of 50 miles/hr. If the friend leaves 30 minutes after the man,
when are they going to meet?

a) 3 hrs

b) 1 hr

c) 1.5 hrs

d) 2hrs

Q. A man walks around a rectangle. The time taken by him in travelling
the length is twice as taken in travelling the breadth of the
rectangle. If the perimeter of the rectangle is 300 mts, what is the
area of the rectangle?

a) 3500 sqmt

b) 5000sqmt

c) 4000sqmt

d) 4500sqmt

Q. If 8 men are required to complete a work in 6 days, how many men
will be required to complete the same work in ˝ day?

a) 94

b) 96

c) 69

d) 99

Q. There are 1, 40, 00, 000 pencils of lengths ranging from 3 to 6
inches and are put up straight. The average length of 80% of pencils is
5 inches. Calculate the total length spanned by the pencils.

Q. If a worker gets late for his work he has to pay a fine of Rs 200 on
the first day and the fine increases by 25 Rs per day. If he pays a
total amount of Rs 9450, for how many days did he pay for?

a) 20

b) 21

c) 22

d) 23

** **

## Source: Contents are provided by Technicalsymposium Google Group Members.

Disclaimer: All the above contents are provided by technicalsymposium.com Google Group members.

Further, this content is not intended to be used for commercial purpose. Technicalsymposium.com is not liable/responsible for any copyright issues.