Showing posts with label Deshaw interview question and answers. Show all posts
Showing posts with label Deshaw interview question and answers. Show all posts

Deshaw Fresher Interview Questions Hyderabad

 Deshaw Fresher Interview Questions
1)Give difference between structure and union and demonstrate union uses with examples.
2)Given a triangle, how do you divide it into 5 triangles of equal area?
3)Given a linked list,find whether a loop exists in it or not,if yes then return a pointer to the start node of the loop?
4)Give a pseudo code to reverse a linked list using recursion.
5)Give a data structure using stack to implement push,pop,min as O(1) operations.
6)Given an array of integers, for each element report the corresponding nearest element greater than it and to the right side of it or a -1 if there exists no such element.
Sample: input: 4 6 2 7 5 4 6 2 output: 6 7 7 -1 6 6 -1 -1
7) Implement a stack using a queue.
8)Throw some light on TCP Handshaking.
9)Throw some light on Denial of service.
10)Give differences between HTTP and HTTPs

DESHAW Interview Written test Question and answers

DESHAW Written test Question and answers
1)What is the number of zeros of the product of the first 100 numbers ?
2)A report has 20 sheets each of 55 lines and each line consists of 65 characters. If this report is to be retyped with each sheet having 65 lines and each line of 75 characters wht will be the reduction percent in the pages ?
(a) 22.5 % (b) 35 (c) 25 (d)none
Ans: 25
3)A man driving the car at twice the speed of auto oneday he was driven car for 10 min. and car is failed. he left the car and took auto to goto the office .he spent 30 min. in the auto. what will be the time take by car to go office?
(a) 25 (b) 30 (c) 35 (d) none
Ans: 25
4)Write code for initializing one dimentional and two dimentional array in a C Program?
Ans: I am sure you know this!
5)What is the difference between AWT & Swing?
Ans: Swing is written in Pure Java
AWT components use native code and controls has OS specific look and feel
6)If a number is choosen between 100 and 999 including these numberrs what is the provbabilty that the number selected does not contain a 7 is?
Ans: 18/25 (Check once!)
7)What command is used for knowing our own computer's IP address
Ans: ifconfig - for MAC and LINUX
ipconfig for windows
8)How many no of 4x1 muxes are required for making a 16x1 mux?
Ans: Five
9)Minimum number of IP addresses requiered for a router?
Ans: Two

DESHAW PROGRAMMING INTERVIEW Questions

DESHAW PROGRAMMING INTERVIEW QUESTIONS
1. To display the contents of a executable file the following
command can be used
(a) cat (b) od (c) vi (d) ed ans : b
2. Assume the current directory contains 10 files and does'nt
contain 'temp'. What will be the output of the follwing
commands?
$ls > temp
$wc -l temp
(a) 9 (b) 10 (c) 11 (d) undefined. ans : b *c
3. If one wants the output of one command( command1) to be
printed inthe printer as well as to be added to another file
(outfile) which one of the following is a currect command
he can give?
(a) $command1 >>outfile|tee lpr
(b) $tee -a command1 | lpr
(c) $ command1 | tee outfile | lpr
(d) $ command | tee -a outfile |lpr ans : d
(4) In the shell program set -x will cause
A. Execution of the commands in the background
B. Execution of the commands in verbose mode
C. Exit from the shell program.
D. Exit from the shell program after executing the next command
ans:b
(5) ACL in UNIX refers to
A. Acces Control List
B. Action Control List
C. Application Command Language
D. Advanced C lanuage
ans a:
(6) The command echo*
A. will print * on the screen
B. will print contents of all the files in the current
directory
C. will list the files in the current directory
D. will print the contents of all shell variables
ans c:
(7) ls || date will
A. print the name of the files in the current directory
B. print today's date and time
C. (A) followed by (B)
D. none of the above
ans : a
(8) The built-in shell variable $$ refers to
A. printing numbers in dollar format
B. proces id_ of last command
C. proces id_ of last background command issued
D. proces-id of current shell
ans :d
(9) dd is mainly used for
A. dealing with raw, unformated data, whatever the source
B. dealing with data dictionary
C. deleting a directory
D. none of the above
ans :d
(10) vis in UNIX is
A. a command that takes only one input
B. a command for deleting strange or unwanted charectors that
may have crept into files.
C. points non-printable characters in understandable format
D. all of the above
(11) Which of the following is true regarding the UNIX
(i) Multiuser Operating System
(ii)Multitasking Operating System
(iii) Real timing Operating System
A. i only B. i and ii only C. i and ii and iii only
D. i and ii
ans : a
(12) ln command is used to
A. link object codes into a executable code
B. give two names to the same file
C. set line numbers for the file
D. none of the above
ans : b
(13) nohup command is used for
A. protecting the execution of programmes from aborting when
hangup signal is received
B. changing the execution priority of the programes
C. not hanging up of the modem
D. disconnecting a node from the system
ans : a
(14) SCCS is a
A. Tool for maintaining large programmes in a production
environment
B. Communication Protocol
C. Shell Programming Language
D. String processing utility
ans : a
(15) Which one of the following is true as long as UNIX is
concerned
A. One can do programming in C only
B. It can support terminals capable of printing only uppercase
characters
C. The text files are sorted as it is in MS-DOS
D. None of the above
ans: d
(16) Inside vi editor to replace the string 10/$$/92 with
10/$$/92 globally the following command can be used
A. :1,$ s/\/10\/\$\/94/10\/\$\$\/92/g
B. :1,$ s/\/10\/\$\/94/10\/\$\/$92/
C. :s10/$$/92/10/$$/92/g
D. :1,$ s/\/10\/$\/94/10\/$$\/92/g
**** ans : d
(17) The ed command without any argument
A. will print the current working directory
B. will make the home directory as current directory
C. will ask for the directory to be used as the current
directory
D. will go to the previous directory
(18) nice command is used
A. to increase/decrease execution priority of a command
B. to compress a file
C. to run a programme at latter time
D. to set the key board responce slower
ans : a
(19) What will be the output of the following command sequence
$ x='I am x'
$sh
$echo $x
A. I am x B. Blank line C. x D. None of the above
ans :b
(20) The command tr a-z 0-9 < x
A. converts all the digits to lowercase alphabets
B. converts all the lowercase alphabets to digits
C. will give syntax error
D. none of the above
ans :d

Deshaw Interview Questions and Answers: Data Structure and algorithm Interview

Deshaw Interview Questions and Answers: Data Structure and algorithm Interview
1)What is the number of zeros of the product of the first 100 numbers ?
2)A report has 20 sheets each of 55 lines and each line consists of 65 characters. If this report is to be retyped with each sheet having 65 lines and each line of 75 characters wht will be the reduction percent in the pages ?
(a) 22.5 % (b) 35 (c) 25 (d)none
Ans: 25
3)A man driving the car at twice the speed of auto oneday he was driven car for 10 min. and car is failed. he left the car and took auto to goto the office .he spent 30 min. in the auto. what will be the time take by car to go office?
(a) 25 (b) 30 (c) 35 (d) none
Ans: 25
4)Write code for initializing one dimentional and two dimentional array in a C Program?
Ans: I am sure you know this!
5)What is the difference between AWT & Swing?
Ans: Swing is written in Pure Java
AWT components use native code and controls has OS specific look and feel

6)If a number is choosen between 100 and 999 including these numberrs what is the provbabilty that the number selected does not contain a 7 is?
Ans: 18/25 (Check once!)
7)What command is used for knowing our own computer's IP address
Ans: ifconfig - for MAC and LINUX
ipconfig for windows

8)How many no of 4x1 muxes are required for making a 16x1 mux?
Ans: Five
9)Minimum number of IP addresses requiered for a router?
Ans: Two

Deshaw Interview Questions

Deshaw Interview Questions
Question1: Differentiate HTTP and HTTPS
Question2: Discuss ACID properties of a database system.
Question3: Given a table Employee with only one field: Names, report all names with multiple entries.
Question4:Given two sequences s1,s2 and another sequence s3, find if s3 is formed by interleaving s1 and s2.[Example: s1:abcd s2:bcaa s3:abbccdaa].
Question5: If a class B is inherited from a class A, B has a function foo which is also in A, how do you call foo function in A??
Question6: If a class B is inherited public from a class A, what all the variables that can be accesses and those that cannot be.
Question7: List out the additional features of C++ over C when the latter is already available as a good programming language?
Question8: Can classes,protected variables or other features in C++ be implemented using C?
Question9: Define Deadlock
Question20:Given a multi-threaded program How can you make it run on a system that supports only a single thread execution?
Question11:What are the Differences between a const char * and char const *?
Question12:What are the Differences between a reference variable and pointer variable in C++?
Question13:What is a register variable and what are the limitations on it? What is an automatic variable?
Question14:What are the Differences in memory allocation in array and pointer(stack and heap)?
Question15:Find the missing element in a sorted array in most optimum running time (O(log n))