Pages

Sunday, June 24, 2012

ZenQA Sample Paper






Total 4 Rounds Aptitude Written and Technical in 'C' Written followed by 2 Technical cum HR rounds
1- round Contains 11-12 aptitude (Fill in d Blanks) questions and 1 essay .

2- round contains 3-6 programs


Few questions:


1.code for "XEROX" is ZGTQA then write the code to"WATER"?

2."in four years" time add five times to dat at i was sixteen years.how old am i?

3.like ABCDEFGH is 6 then solve the DEFGH?

4.a man is going east side 10km and his right side and walk 3km next turn his right walk 3kms n turn his left(to west side) n walk 2kms?
a.then which direction he is walking?

b.how much distance to his starting point?

5.like rita is younger den rani and rani is elder den sham and sham is younger den rita and sham is elder den geetha den who is d younger?

6)Crocodile head,tail=3*head, body=1.5*head, then what is the value of head if total sum=171?

7)18,36,.. number series que

8)Coding-Decoding: abcd written as bcde the que is like this

9)a man with dog moves from home to ground with 4kmph and dog returns from home to ground and vice versa..with 6kmph
 how many km the dog will cover within 1 hr?


10)the clock shows correct time at noon, after that it shows 30 min less with correct time, after 4hr howmuch time we expect
 when the clock stops 5 hrs ago?


11)age problem: man age after 4yrs is equal to 5 times of the ageof 16 years back?


12)Books order? { Question is like physics book is on the top of some other book... bla bla }  
 

13)Pipe fill in 1/6 and 1/4.. the tank empties in 1/12.. the time req to empty the full tank is?
 

14)Hotel=12 , eat=.... [need to find relation in words and find number for the asked word ]
 
Essay 
write an essay about the "problems faced by woman in our society"?

TECHNICAL WRITTEN:
1)find out the trace of matrix: code writing

for(j=0;j<n;j++)
{
 if(i=j)
 sum+=a[i][j];
}


2)findout the whther the pgm is prime (3,5,...)or  perfect no(no is
sum of all divisors till the no.)

3)    1
     12  
    123
find out the error in the pgm

for(j=0;j<=i;j++)
{
 printf("%d",i);
}

4)write code for sorting program in ascending order?

5) find out the errors in the pgm hexa to decimal pgm..

a) hexa declared as char.
b)  in particular code parenthesis is must();

6) one stinr is given some operation is done in program  u find that opertion n output..........

7)write the code for unitary matrix n*n

8) find out the errors in the pgm hexa to decimal pgm..
                a) hexa declared as char.
                b)  in particular code parenthesis is must();

9) write function to sort the array elements

10) Given text is Palindrome are not  with out using String REV method

11) difference between two timings Starting n ending eg starting :10.30AM ending 2.00PM 


12) read the sides of triangle and print  Equilateral if sides r equal, right angle Triangle if H^2=S1^2+S2^2 and Isosceles if none of d sides r equal
TECHNICAL ROUND:

what r Stack n Queues n there real time usage?
what is Virtual Memory
what is muilti Threading , multiProgramming, MuiltiProcessing and MultiTasking?
if i have Only One program Can i do MultiThreading on it and Can i Do Multi Programming on it?????
what is an IP
what r the version n different O/s
what is difference between Different versions of MS-Office
what is Normalization
what is Stored Procedure in SQL
what is Difference b/w 32bit n 64bit O/S
what is anetwork and Some Network Components

. Define semaphore?
. what is testing?
. what is stored oriented procedure?
. what is virtual memory?
. what is os and its features?
. what is timer,counter?
. what is  dead locking system?

Finally SAVE TREES 

Sunday, November 20, 2011

NIC(National Informatics Center)

NIC-2011(National Informatics Center) Question Paper Pattern:


             We have Total 100 questions (Part A :75q of 1 Mark n B:25q of 3 marks) Time 2hrs.


some questions i remembered :


1) Which of the following processor is used in Mobile phones
            a) Pentium                        b) AMD
            c) ARM                          d) None of d Above

2)  Which of the following  is used as Mobile Operating system
             a) Android                        b) Windows7 Mobile
             c) Symbian                       d) All d Above 


3) 8-Queen Problem is solved by using
                      BackTracking Method

4) Peep Hole Optimization is used for  Removing 
             a) Un Reachable Code                b) Multiple Jumps
             c) Redundancy                            d) All d Above 

   Source for Answer :  http://programming4.us/desktop/462.aspx

5) ARP is used in 

6)  Real Time Process Scheduling Based on
              a) SFJ                    b) Priority Based
              c)  FCFS               d) None of d Above

7)  Port Address is used for
              a) Physical                                    b) Network
              c)  Application/Process               d) None of d Above

8)  Maximum Height of AVL tree with 10 Nodes

9)  Code Snippet 
          #include<stdio.h>
            void main()
              {
                
                       printf("%d",printf("COMPUTER SCIENCE"));
                
              }

                      a)16COMPUTER SCIENCE   b) COMPUTER SCIENCE16
                     c) Compiler Error                       d) None of d Above


Because First Inside Printf completes Printing later , Since %d is for Integer Format specifier it Count the Characters including Space and Print 16. 

10) Code snippet 
     
            fun (n)
               {
                      if (n==1)
                        return(1);
                    else
                       return(fun(n-1)+fun(n-1));

                 }

      void main()
      {
     fun(some value);
       }
           Here n>1 then what is the Time Complexity 

                               a) O(n)                     b) O(n+1)
                               c) O(n^2)                 c) None of d above

11)  Maximum Effort in Project Development is at
                       a) Testing                b) Coding
                       c) Maintenance     d) Analysis


Proof




12) #init 6 will do

    
Init is a Linux Command to Change Runlevel and Init 6 is Used to Restart The System

13) Which command is used to Change the Table

                    a) Create                b) Update
                    c) Select                  d) ALTER    


14) which is not Java Keyword 
                 a) transient                                          b) native
                 c) virtual  (C++ keyword)                 d) Serializable 

15) what is the Data Structure that RDBMS uses 
              may be Array 



16)String Satisfies :  aa*+aba*b*
          In RE + means at least once
                    * means 0 r more Times

so starting with 'a' and another a optional and since + is there that a must appear one r more times , after that in string ab must and every thing else is optional

          so string should be    :  ....a...ab.....       

17 Average waiting time of the Process  (3marks)
entry time at 0 ms

p0-----10
p1-----25
p2-----03
p3-----09
p4-----05
p5-----11


18) Scope of Java Bean Object using with Jsp
             a)application         b) request
             c) session             d) Response

19) Cookies are stored at : Client side Browser

20)  Ad-Hoc Network is
          a) Fly Free             b) Infrastructure Free
          c) All d above  d) Microwave  

21) main()
       {
          char a[]= world
for(i=0,j=5; i<j ; a[i++]=a[j--])
  {
     Printf("%s",a); 
 }

       rldrld 
 her i n j  are Post Increments so first Shuffle              


                         













Sunday, September 18, 2011

English


Question 1
Value of currency started increasing which ultimately kick started __ (a. deflation / b. depreciation / c. disinflation) in economy.
Answer : a. deflation
Reason :Deflation is the term used to denote a fall in prices of goods indicating currency value rise.
Though disinflation could appear close in context, it actually means a slow rise in inflation rather than an exact opposite of inflation.

Question 2
The introduction of number zero to mathematics is considered to be one of the greatest __ (a. innovations / b. inventions / c. discoveries) of all times.
Answer: a. innovations
Reason : Innovation means a change that could be considered to have brought a great positive change in some field.
Hence innovation fits the context well. However, invention means to invent something new and discovery means to find something unknown.

Question 3
__ (a. incentives / b. bonuses /c. gifts) generally motivate people to carry out tasks in an efficient manner.
Answer: a. Incentives
Reason : Incentive means a motivating factor that encourages people to carry out their tasks efficiently.
Though bonuses and gifts closely suit the context, they generally mean only monetary benefits whereas incentive can mean even non monetary benefits like appreciation.

Question 4
___ (a. Idiom / b. Connotation /c. Paradox) refers to words implying different meaning than the actual literal meaning.
Answer : b. Connotation
Reason : Connotation is where words actually mean something but their implied meaning would be different. For example think of the words 'warm reception'.

Wednesday, June 1, 2011

Basic Technical questions


1)Find the output of the code snippet
   int i ;
   int v = scanf("%d",&i); // Lets say the input is 23
   printf("%d",v);

a)23
b)1
c)Junk

Anwer:
Output  = 1;
This is because, scanf reads and input and returns the number of items read.
 Hence 23 would be stored in i and 1 would be stored in v

2) Find the output of the code snippet
   char *S1 = "ABCD";
   char S2[ ] = "ABC";
   printf("%d,%d",sizeof(S1), sizeof(S2));
a) 3,4
b) 4,4
c) 3,3
Output: 4,4
S1 is a character pointer giving the size of the pointer variable.
 Second one is a character array with size 4. (Including the terminating character '\0' i.e Null Character ).

3) Consider there are two programs written respectively using two algorithms A and B. Say A has a complexity of n^2 and the other has a complexity of n/2. Given the same number of inputs which would take longer time to run.
Ans: 
First program written using algorithm A will take longer time. Higher the order of complexity, longer the time taken for execution.

4)What is the name of the type of constructor used to construct an object from another object where the desired parent class is same ?
ans:
Copy Constructor

5)Tell how function overloading saves programmer's efforts ?
Ans :
Function overloading, where different functions exist with the same name but different signatures plays its part in redundant function names when there more than one function performing logically the same operation but with different number and types of parameters as per the requirement. Hence the readability of the code is significantly improved.

6)Can you say few differences between Unicode character encoding and that of ASCII.
Ans:
Unicode uses 16 bits to encode characters and symbols whereas ASCII uses only 8 bits. Unicode has become a universal standard due to the fact that they can represent far great letters than ASCII. Unicode can be used hassle free to encode several regional languages other than English.

7)Differences between shared and exclusive locks ?
Ans:
Multiple transactions use shared locks during database read operations (SELECT Queries) as no data modification is involved. However if a transaction wants to change value of column/columns in single or multiple rows, it acquires an exclusive lock which will not be open to other transactions simultaneously.

8)In the context of memory management schemes, can you tell a primary difference between swapping and paging?
Ans:
Paging refers to writing and reading individual pages (fixed size) of a program to secondary memory (during program execution). Swapping refers to swap an entire program with another in secondary memory during heavy resource utilization.


9)Can you tell the primary difference between applets and conventional web applications ?
Ans:
Applet is a program that would be downloaded to browser and run on local CPU whereas web applications get executed on server.

Thursday, March 10, 2011

Some Data Base Questions

1)Which of the following products was an early implementation of the relational model developed by E.F. Codd of IBM?

a) IDMS            b) DB2                C) dBase-II              D)R-Base



2) The following are components of a database except ________ .
A.user data
B.metadata
C.reports
D.indexes          
3)
The following are functions of a DBMS except ________ .
A.creating and processing forms
B.creating databases
C.processing data
D.administrating databases
4)Helping people keep track of things is the purpose of a(n) ________ .
A.databaseB.table
C.instanceD.relationship



Monday, March 7, 2011

Quantitative Aptitude......

Important Things to know for solving Problems on Time and Work:



1. If A can do a piece of work in n days, then A’s 1 day work = 1/n


2. If A’s 1 day’s work = 1/n, then A can finish the work in n days.


Example: If A can do a piece of work in 4 days,then A’s 1 day’s work = 1/4. If A’s 1 day’s work = 1/5, then A can finish the work in 5 days


3. If A is thrice as good workman as B,then: Ratio of work done by A and B = 3:1. Ratio of time taken by A and B to finish a work = 1:3


4. Definition of Variation: The change in two different variables follow some definite rule. It said that the two variables vary directly or inversely. Its notation is X/Y = k, where k is called constant. This variation is called direct variation. XY = k. This variation is called inverse variation.


5. Some Pairs of Variables:

  1. Number of workers and their wages. If the number of workers increases, their total wages increase. If the number of days reduced, there will be less work. If the number of days is increased, there will be more work. Therefore, here we have direct proportion or direct variation.
  2. Number workers and days required to do a certain work is an example of inverse variation. If more men are employed, they will require fewer days and if there are less number of workers, more days are required.
  3. There is an inverse proportion between the daily hours of a work and the days required. If the number of hours is increased, less number of days are required and if the number of hours is reduced, more days are required.

6. Some Important Tips:


More Men - Less Days and Conversely More Day - Less Men.


More Men - More Work and Conversely More Work - More Men.


More Days - More Work and Conversely More Work - More Days.


Number of days required to complete the given work = Total work/One day’s work.


Since the total work is assumed to be one(unit), the number of days required to complete the given work would be the reciprocal of one day’s work. Sometimes, the problems on time and work can be solved using the proportional rule ((man*days*hours)/work) in another situation.


7. If men is fixed,work is proportional to time. If work is fixed, then time is inversely proportional to men therefore,


(M1*T1/W1) = (M2*T2/W2)

Fundamentals Of Java....:-P


1) Which four options describe the correct default values for array elements of the types indicated ?


  1. int -> 0
  2. String -> "null"
  3. Dog -> null
  4. char -> '\u0000'
  5. float -> 0.0f
  6. boolean -> true

    

A.
1, 2, 3, 4
     
B.1, 3, 4, 5
C.
2, 4, 5, 6
D.3, 4, 5,6 




2) Which one of these lists contains only Java programming language keywords?
A.class, if, void, long, Int, continue
B.
goto, instanceof, native, finally, default, throws
C.try, virtual, throw, final, volatile, transient
D.strictfp, constant, super, implements, do
E.byte, break, assert, switch, include