The Marketing Blog

My Blog List

Technical questions


1. How are devices represented in UNIX?

All devices are represented by files called special files that are located in/dev directory. Thus, device files and other files are named and accessed in the same way. A 'regular file' is just an ordinary data file in the disk. A 'block special file' represents a device with characteristics similar to a disk (data transfer in terms of blocks). A 'character special file' represents a device with characteristics similar to a keyboard (data transfer is by stream of bits in sequential order).

2. What is 'inode'?

All UNIX files have its description stored in a structure called 'inode'. The inode contains info about the file-size, its location, time of last access, time of last modification, permission and so on. Directories are also represented as files and have an associated inode. In addition to descriptions about the file, the inode contains pointers to the data blocks of the file. If the file is large, inode has indirect pointer to a block of pointers to additional data blocks (this further aggregates for larger files). A block is typically 8k.

Inode consists of the following fields:

Ø File owner identifier

Ø File type

Ø File access permissions

Ø File access times

Ø Number of links

Ø File size

Ø Location of the file data

3. Brief about the directory representation in UNIX

A Unix directory is a file containing a correspondence between filenames and inodes. A directory is a special file that the kernel maintains. Only kernel modifies directories, but processes can read directories. The contents of a directory are a list of filename and inode number pairs. When new directories are created, kernel makes two entries named '.' (refers to the directory itself) and '..' (refers to parent directory).

System call for creating directory is mkdir (pathname, mode).

4. What are the Unix system calls for I/O?

Ø open(pathname,flag,mode) - open file

Ø creat(pathname,mode) - create file

Ø close(filedes) - close an open file

Ø read(filedes,buffer,bytes) - read data from an open file

Ø write(filedes,buffer,bytes) - write data to an open file

Ø lseek(filedes,offset,from) - position an open file

Ø dup(filedes) - duplicate an existing file descriptor

Ø dup2(oldfd,newfd) - duplicate to a desired file descriptor

Ø fcntl(filedes,cmd,arg) - change properties of an open file

Ø ioctl(filedes,request,arg) - change the behaviour of an open file

The difference between fcntl anf ioctl is that the former is intended for any open file, while the latter is for device-specific operations.

5. How do you change File Access Permissions?

Every file has following attributes:

Ø owner's user ID ( 16 bit integer )

Ø owner's group ID ( 16 bit integer )

Ø File access mode word

'r w x -r w x- r w x'

(user permission-group permission-others permission)

r-read, w-write, x-execute

To change the access mode, we use chmod(filename,mode).

Example 1:

To change mode of myfile to 'rw-rw-r--' (ie. read, write permission for user - read,write permission for group - only read permission for others) we give the args as:

chmod(myfile,0664) .

Each operation is represented by discrete values

'r' is 4

'w' is 2

'x' is 1

Therefore, for 'rw' the value is 6(4+2).

Example 2:

To change mode of myfile to 'rwxr--r--' we give the args as:

chmod(myfile,0744).

6. What are links and symbolic links in UNIX file system?

A link is a second name (not a file) for a file. Links can be used to assign more than one name to a file, but cannot be used to assign a directory more than one name or link filenames on different computers.

Symbolic link 'is' a file that only contains the name of another file.Operation on the symbolic link is directed to the file pointed by the it.Both the limitations of links are eliminated in symbolic links.

Commands for linking files are:

Link ln filename1 filename2

Symbolic link ln -s filename1 filename2

7. What is a FIFO?

FIFO are otherwise called as 'named pipes'. FIFO (first-in-first-out) is a special file which is said to be data transient. Once data is read from named pipe, it cannot be read again. Also, data can be read only in the order written. It is used in interprocess communication where a process writes to one end of the pipe (producer) and the other reads from the other end (consumer).

8. How do you create special files like named pipes and device files?

The system call mknod creates special files in the following sequence.

1. kernel assigns new inode,

2. sets the file type to indicate that the file is a pipe, directory or special file,

3. If it is a device file, it makes the other entries like major, minor device numbers.

For example:

If the device is a disk, major device number refers to the disk controller and minor device number is the disk.

9. Discuss the mount and unmount system calls

The privileged mount system call is used to attach a file system to a directory of another file system; the unmount system call detaches a file system. When you mount another file system on to your directory, you are essentially splicing one directory tree onto a branch in another directory tree. The first argument to mount call is the mount point, that is , a directory in the current file naming system. The second argument is the file system to mount to that point. When you insert a cdrom to your unix system's drive, the file system in the cdrom automatically mounts to /dev/cdrom in your system.

10. How does the inode map to data block of a file?

Inode has 13 block addresses. The first 10 are direct block addresses of the first 10 data blocks in the file. The 11th address points to a one-level index block. The 12th address points to a two-level (double in-direction) index block. The 13th address points to a three-level(triple in-direction)index block. This provides a very large maximum file size with efficient access to large files, but also small files are accessed directly in one disk read.




For more questions on Unix,C ,Data Structures,Networking...
Click here

Read more...

Do's & Dont's

Interview DOs

1. Dress appropriately for the industry; err on the side of being conservative to show you take the interview seriously. Your personal grooming and cleanliness should be impeccable.

2. Know the exact time and location of your interview; know how long it takes to get there, park, find a rest room to freshen up, etc.

3. Arrive early; 10 minutes prior to the interview start time.

4. Treat other people you encounter with courtesy and respect. Their opinions of you might be solicited during hiring decisions.

5. Offer a firm handshake, make eye contact, and have a friendly expression when you are greeted by your interviewer.

6. Listen to be sure you understand your interviewer's name and the correct pronunciation.

7. Even when your interviewer gives you a first and last name, address your interviewer by title (Ms., Mr., Dr.) and last name,until invited to do otherwise.

8. Maintain good eye contact during the interview.

9. Sit still in your seat; avoid fidgeting and slouching.

10. Respond to questions and back up your statements about yourself with specific examples whenever possible.

11. Ask for clarification if you don't understand a question.

12. Be thorough in your responses, while being concise in your wording.

13. Be honest and be yourself. Dishonesty gets discovered and is grounds for withdrawing job offers and for firing. You want a good match between yourself and your employer. If you get hired by acting like someone other than yourself, you and your employer will both be unhappy.

14. Treat the interview seriously and as though you are truly interested in the employer and the opportunity presented.

15. Exhibit a positive attitude. The interviewer is evaluating you as a potential co-worker. Behave like someone you would want to work with.

16. Have intelligent questions prepared to ask the interviewer. Having done your research about the employer in advance, ask questions which you did not find answered in your research.

17. When the interviewer concludes the interview, offer a firm handshake and make eye contact. Depart gracefully.



Interview DON'Ts

1 Don't make excuses. Take responsibility for your decisions and your actions.

2 Don't make negative comments about previous employers or professors (or others).

3 Don't falsify application materials or answers to interview questions.

4 Don't treat the interview casually, as if you are just shopping around or doing the interview for practice. This is an insult to the interviewer and to the organization.

5 Don't give the impression that you are only interested in an organization because of its geographic location.

6 Don't give the impression you are only interested in salary; don't ask about salary and benefits issues until the subject is brought up by your interviewer.

7 Don't act as though you would take any job or are desperate for employment.

8 Don't make the interviewer guess what type of work you are interested in; it is not the interviewer's job to act as a career advisor to you.

9 Don't be unprepared for typical interview questions. You may not be asked all of them in every interview, but being unprepared looks foolish.

10 A job search can be hard work and involve frustrations; don't exhibit frustrations or a negative attitude in an interview.

11 Don't go to extremes with your posture; don't slouch, and don't sit rigidly on the edge of your chair.

12 Don't assume that a female interviewer is "Mrs." or "Miss." Address her as "Ms." unless told otherwise. Her marital status is irrelevant to the purpose of the interview.

13 Don't chew gum or smell like smoke.

14 Don't allow your cell phone to sound during the interview. (If it does, apologize quickly and ignore it.) Don't take a cell phone call.

15 Don't take your parents, your pet (an assistance animal is not a pet in this circumstance), spouse, fiance, friends or enemies to an interview. If you are not grown up and independent enough to attend an interview alone, you're insufficiently grown up and independent for a job. (They can certainly visit your new city, at their own expense, but cannot attend your interview.)

Read more...

Cognizant

PROFILE
Founded in 1994 as a division of Dun & Bradstreet Corporation, Cognizant Technology Solutions began doing large-scale full life cycle software projects. CTS works in fields related e-business and application management. CTS is also engaged in offshore development and provide services in other fields like wireless, data warehousing and euro-compliance. They also service varied industries like healthcare, finance, information services, retail and restaurant and telecom.


CTS PAPER ON 12th MAY AT AHMEDABAD

The written test had d following format. The paper was from Merit Trac
SECTION - I
English (20 mins)
- 2 Reading Comprehension
- Find the incorrect sentences
- Find the correct sentences
- Jumbled sentences which u have to arrange in an order SECTION - II (30 mins)
-5 ques on Binary nos
( if 1 is replaced by $ and 0 by * so how is lcm of 56,45 represented as ? )
-Problem on Cubes
-3 sums on maths
-Statement and Assumptions
-a problem on Venn Diagram
-Puzzle (arrangements problems) SECTION - III (20 mins)
-Statement - Conclusion
-find the decision sentence from d given sentence much like statement conclusion but u got to read n interpret instead of drawing venn diagrams
-Pick the odd one out
- Fig coming next in d series
- one puzzle again

The written test was preceded by filling up d ans sheet wid some details. v ver told der was no negative marking and der was sectional cutoff. the time is very less for each section esp for english so pls speed up n attempt those ques first that u know n leave d ques u dnt know for some last min wild guesses. in eng do RC in d end only else u vl lose a lot of time in dat.

here r some conversations I remember from d intervw.

Interviewer : So u have written here @ ssc n hsc percentage rite? u have done BCA?
Me : yes sir
Interviewer : So purvi , Tell me something @ urself
Me : I spoke academics, family background, strength weakness, hobbies
Interviewr:Have u done any proj in bca ?
Me: yes a minor proj
Interviewr:tell me @ data proj.explain
Me : I explained d whole thing... blah blah
Interviewr:whose idea was there behind d proj?
Me : mine initially
Interviewr:Have u done any proj in MCA?
Me : yes n explained d whole thing
he was not much convinced so asked me more @ d proj n a ill bit technical details @ d proj.I explained well again.
Interviewr:Are u ready to travel in ne part of India?
Me : initially yes sir .I don't have any problem in wherever ur company sends me Interviewr:Why CTS?
Me: It has been my dream co since d first day of my college.whn my senrs told data dey r placed in cogni on orientation day I was inclined to know more abt it. I also explained a lil bit abt my fav subject on compilers n all. He also asked me about having A.Cs in classrooms n all n appreciated d environment of our college
Interviewr:What d u know abt cognizant
Me : I have heard a lot of positive feedbacks from my sends n work satisfaction n all.... Interviewr:How d u keep urself updated wid latest technology
Me : I said I read technology magazines in my college library n get newsletters on technology.dnt rely much on internet for it. magazines r a good medium for me I spoke a lot abt d company as it being my dream co.
Interviewr:Do u have ne questions to ask?
Me : Yes sir, I wud like to know abt@ training prog in ur co.. n if our duration of training can b shortened based on our performance evaluation.
He explained me why its not posb in their co. n also told me dat v get to learn from employees of their co who have 5-11 yrs of work exp.
Me : May I knw ur name sir?
He told me his name
Interviewr:All the best Purvi!
Me : Thank u sir

They selected 60 students out of 146!!!




CTS PAPER ON 15th APRIL AT JADAVPUR UNIVERSITY

Cognizant paper consists of three sections they are
1)verbal 25 questions 20 minutes
2)analytical 25 questions 30 minutes
3)attention 20 questions 20 minutes

verbal consists of
choose the correct sentences among given sentences
choose the incorrect sentences among given sentences (I cant remember the questions but they give mostly on articles,prepositions etc.Know Differences between affect effect like des words.) Jumbled sentences
two reading comprehension passages(global warming really tough one n about whales and hunters this was easy) time is the major factor .I could not have time for rc.

Analytical section:
in a class there are 150 people who speak english n 125 people who speak hindi.55 speak both languages n atleast one student speaks one language
1)-how many students speak atleast one language?(220)
2)how many people speak only one language?(165)

in a class every one will play atleast one sport viz table tennis,cricket n badminton.73 students play table tennis,79 play badminton,75 play cricket and 25 students play both tt n badminton,24 play both tt n cricket 30 play badminton n cricket n16 students play all d sports
3)how many students r der in d class(161)
4)how many students play only cricket.(37)

der is another question related to venn diagram...it is same as first one....

In a certain language * represents 0 n $ represents 1.
Answer the follewing questions
5) 389+91($$$$*****)
6)lcm of($*$*,$*$**,$*$*$) (420)
7) avg of (10,20,21) ($***$)
8)420 ($$*$**$**)
9)9+7-3*6+4-12/6(*)

A is the son of B A+B A is the father of B A-B A is the brother of B A*B

10)P*Q-R
a)P is the Uncle of R like this 4 options ll b given.U should choose d correct one

11)P*Q+R 12)P+Q-R

A cube is cut into 216 parts.the 2nd 4th n 6th layers of the front face r removed n den painted black.Now answer d following questions
13)How many cubes r painted on only one side?
14)how many cubes r painted on only 2 sides?
15)how many cubes r painted on onlly 3 sides?
16)how many cubes r painted on only 4 sides?
17)how many cubes r painted 0 sides?

Data sufficency questions
c)only condition 1 is required to solve
d)only condition 2 is required to solve
e)both r required
f)both r not sufficent

18)find whether X is odd
1) 2*X is even
2) x^2 is odd
A)c B)d C)e D)f

19)how many seconds does a minute hand takes to rotate 360 degrees
1)minute hand revolves round the cloch 5 times in a minute
2)minute hand is 5 times greater thar short hand some other quest ions similar to d above

20)der r 4 cities A,B,C,D.Der r 4 Routes 4m A 2 B,3 routes 4m B 2 C,n 2 routes 4m C 2 D.den in how many different ways can A go 2 D
A)12
B)24
C)32
D)48

Attention Section Choose the correct option base on the following statement If tendukkar plays till end india will win d match
a)tendulkar plays till end
b)India wins the match
c)Tendulkar falls cheaply
d)India loses d match
A)ab B)ab n cd C)b D)d

If X travels without a ticket he will b fined 50 bucks
a)X buys d ticket
b)X w2as not fined
c)X doesn't buy a ticket
d)x was fined)
A)ab B)cd C)ab n cd D)none

Some questions like
1)all A's r B's
2)All B's r C's then choose d correct option based on the above statements

1)all tables r chairs
2)some tables r desks

1)no mammels r animals
2)some animals r goats find the odd figure out

8 people A,B,C,D,E,F,G n H,lives in 4 storyed building which contains 2 flats each.flats number 7 n 8 belongs to 4th floor from left to right.flats 3 n 4 are second floor from the bottom and are numbered right to left.so r 5 n 6 which lies on second floor from the top.1st and 2nd are the first floors numbered left to right.A n E stays on the second floor from the bottom.F lies one floor above B,which is one floor above C. three question were asked based on the given problem.




CTS PAPER ON 9th APRIL AT TAMILNADU

Before giving the pattern pls note these imp points.u have to fill up some questions before the test.
1.ur sem marks
2.whats ur expectation from cts
3.wats ur long term and short term goals
4.mention some points that u think nedd to be a good software engineer
5.software orientation
6.ur strengths and weakness
7.hobbies and extra curricular activities

They will surely ask questions from above when u go to interview.so pls be prepared for the answers.

Pattern
1.Verbal
2.Analytical
3.Nonverbal

1.Verbal(25Q 25min)
5 correct sentence,5 incorrect sentence,jumbled sentence,2 passages
my advice is not to do the reading passage first.do the correct incorrect sentence. then come to passage.u will have no time to read the passage.

2.Analytical(25Q 30min)
venn diagram(5) its simple u can do it .FIRST DO VENN DIAGRAM decimal to binary conversion(5).the ques will be like this.0 replaced with * and 1 replaced with $.PLS DONT GET CONFUSED BY READING REST OF THE QUES.just do DEC TO BIN CONVERSION and replace by symbols.thats all.
eg: avg(70,170,270).just do the average and then convert to binary
similarly lcm(20,40,80) just do lcm and convert to binary data sufficiency (5Q) pls refer RS aggarval
cubes(5Q)
puzzles(5Q)

3.Non verbal
odd figure(5),next figure(5),Logical deduction(5),puzzle.
for logical deduction pls refer rs agarval its enough.study the nine rules given for syllogisms.odd fig and next fig out is very easy.

212 candidates appeared for test.102 cleared the test.48 cleared the interview.,


INTERVIEW IS SIMPLE, BE CONFIDENT WITH UR ANSWERS. THATS ALL



CTS PAPER PATTERN ON 17th MARCH AT KOCHI

The test was very simple...it consisted of 3 sections...
1) Verbal 20 questions 25 minutes This section was very easy ...just average knowledge of english is enough
2) Quantitative 25 questions 30 minuites easy section-questions from R.S.Agarwal Verbal And Non Verbal.
3) Analysis questions 25 questions 20 minuites easy section-questions from R.S.Agarwal Verbal And Non Verbal. this section requires a lot of concentratrion to successfully overcome the figure problems...

411 wer selected for interview scheduled on 18th march 2007

Technical/HR interview...

ME: gud mornin
HR: Good Mornin
HR: introduce ur self
ME: :Bla Bla..
HR: Diff b/w Mallloc and Calloc..
ME : Said...
HR: What is Faraday's law...
ME: :Don't kno...
HR: Wats the workin or tube light..
ME: I said ....
HR: Talk abt step wave form
ME: said..
HR: Your fav subject....
ME: Data stru...
HR: why
ME: becoz its our core paper...and ultimate core programmin...contains locgical storages..etc bla bla...
HR: Explain Stack and Q
ME: answed..
HR: Why CTS
ME: Bla bla...
HR: Whas ur strenght and Weakness..
ME: said...while answerin weakness make weakness a positive one...
HR:If there is any quarrel in ur team how would u handle it...
ME: said...
HR: write a program to print fibanocii series...
ME: wrote it.... to get noticed u can make ur own algorithm....in C/C++/JAVA...i did it in JAVA
HR:how do u overlook ur self in 3years..
ME: said...

Read more...

WANT ANYTHING???
JUST REQUEST FOR IT IN THE SHOUTBOX...



ALL THE BEST!!
Add to Technorati Favorites

Read more...

Freescale

SOME QUESTIONS ASKED IN FREESCALE WRITTEN EXAM AND INTERVIEWS

1. the 2's complement number of 110010 is
ans; none of those

2.Truth table of a logic function
ans: displays all its input output possibilities

3.The process of varying one signal according to the pattern provided by another signal is
ans:modulation

4.The octal equivalant of hexa number 123 is
ans:443

Determine how many times the given loop is executed

5.m=3 while (m<18) do {m=m+2;m=m-1}
ans:15

6.m=1;a=30;while (m<>1) do {m=m+1;a=a-1;}

7.m=1;a=30;while (e*m-5<a) do {m=m+1;a=a-2}
ans:9
in questions 8 to 12 find the values of a and b at the end of the execution of the program
segment

8.a=2;
b=1;
x=1;
while(x<=4)
do {a=a+b;x=x+1}
ans:(5,1)

9.a=1;
b=2;x=1
while (x<=5)
do {b=a+b;x=x+1;}
ans:(1,6)

10.a=0;
b=0;
x=1;
while (x<=4)
{a=a+x;
b=b-x;
x=x+1;}
ans:(10,-10)

11.The complexity of bublle sort is0(a),then k equals
ans:2

12.In BCD,the decimal number 516 is
ans:10101110

13. RS 232 is standards for
ans:physical layer

14. which of the following is not true of a DBMS
ans:maintain integrity

15.the method of access used for obtaining a record from a tape is
ans:sequential

16.Whichof the following is an universal gate
ans:nor

17.an ASCII text file containing 500 characters will have size approximately
ans:500bytes

18.which of the following is a vector
ans;force

19.The lowest attainable temperature
ans 0k

20.viscosity is most similar to
ans:friciton

21.The elapsed time between the submission of the job and getting the output is
ans:seek time

22.the earliest calculating device still in use is
ans: abacus

23.Qunatities used to bring fields to standards sixe are
ans:pixels

24.the base of a number system is called as
ans:radix

25.An 8kb computer will bave addresses -----
ans:8191

26.Arranging data in a specific form is called
ans: sorting

27.A translator which reads an entire programme written in a high level language and converts
it into machine language code is
ans: interpreter

28.a data hierarchy in assending order is
ans:bit-byte -field-record-file-database

29.a computer generated output that lets programmer follow the execution
of the program line by line is

30.data items grouped togother for storage form a

31. the most dangerous aspect of computer virusesis their ability to
ans: change system memory

32.a distributed data processing configuration in which all activities must pass through an
centrally located computer is called a
ans: ring network

33.communication circuite that transmit data inboth directions but not at the same time
are operating in

34.which of the following is not an application software
ans:unix

35.For which of the folowing computer application is real time processing not essential

36.a data structure with one to many relationship is a
ans:tree

37. which of the following hardware components is most important to operation of a database
management system
ans:high speed,large capacity disk

38. computer viruses can spread from one system to another by means of
ans:all the above

39. afront end processor is ususally used in
ans: multi processing

40.a radioactive material of mass 16 grms in 10 years due to radiation. how many years will it
take for the material to attain a mass f1 gm
ans:30

41.a block of ice floats on water in a beaker, as the ice melts,the water level in the beaker will
ans:remain same

42.if va,vn,vs are velocities of sound in air,water, and steel then,
ans:vs>vn>va

43.in usual computer arthemetic, the value of the integer expression
22/5*2+8*2/6
ans:10

44.an acronym for the organisation that publishes programming langauge standards is
ans:ANSI

Read more...

  © Blogger templates ProBlogger Template by Ourblogtemplates.com 2008 | Gorgeous Beaches of Goa

Back to TOP