Skip to main content

Some Questions from amdocs placement paper

  1. All birds are animals. All animals are four legged. Implications
    a. All animals which are four legged are birds.
    b. All birds are four legged
    c. Some birds are four legged
    d. Some birds are animals but not four legged.
    1. a and b 2. b and c 3. only b 4. only d
  2. All fat people are not dancers, food loving people are all fat .Find the contradictory statement?
  3. The day before yesterday was WEDNESDAY then the day after 2morrow is? 3. A goes to the party if B goes
    B goes to the party if C goes
    C goes to the party if D goes
    Totally how many will go to the party?
  4. Mary's father's brother is Andrews Andrews daughter's son is Sunil Brothers name is Sam Who is Sam to Sunil?
  5. If A>B,A<C,B>D,B<DFind the Shortest?
  6. There are A,B techers and C,D doctors.Find the possible no of combinations that should not be repeated more than once?
  7. There are 3 males and 2 females,find the possible no of orders that can be made by making the arrangement as in between two males one women is allowed to sit? 8.
    Computer checking:

    Unix Test
  8. The syntax of command statement in UNIX 10. If the permission for a file is 000,then the file can be accessed by whom?
  9. Where we can run two same programs on a UNIX console at the same time?
  10. Which is the Shell of UNIX?
  11. What is the number of the masked code ee@?
  12. If we are terminated at the middle of the program execution in UNIX,what will happen to the program,it will (i) continue running
    (ii) terminate
    (iii)the o/p will be send to ur mail?
  13. what is the command to connecto to remote terminals
  14. what is the command to fetch first 10 records in a file
  15. unix has the following features
    a. multithreading
    b. multitasking
    c. ..
    SQL
  16. We are UPDATING a field in SQL and ALTER the row also.After giving the COMMIT command the system is crashed.What will happen to the commands given,whether it will UPDATE and ALTER the table or not?
  17. How will add additional conditions in SQL?
    C Test
  18. How will u print TATA alone from TATA POWER using string copy and concate commands in C?
  19. If switch(n)
    case 1:printf("CASE !");
    case(2):printf("default");
    break;
    What will be printed?
  20. How will u divide two numbers in a MACRO?

Popular posts from this blog

CIVIL SERVICES' (I.A.S.) EXAMINATION

The Union Public Service Commission (U.P.S.C.)  conducts Civil Services' Examination once a year in two stages. The Preliminary Examination (Objective Type) for selection of candidates for the Main Examination is held in the month of May. The Civil Services Main Examination  is held in the months of October/November. Blank application forms and other particulars are published in the Employment News, generally in the month of December. The last date for the submission of applications to the Secretary, Union Public Service Commission, Dholpur House, Shahjahan Road, NewDelhi-11001 1 is usually the last week of January of the year of examination. The Combined Civil Services Examination is conducted for Recruitment to the following Services/Posts: 1. Indian Administrative Service. 2. Indian Foreign Service. 3. Indian Police Service. 4. Indian P & T Accounts & Finance Service, Group 'A'. 5. Indian Audit and Accounts Service, Group 'A'. 6. Indian Customs and Centr...

Predict the output or error(s) for the following:

1 . void main(){ int const * p=5; printf("%d",++(*p)); } Answer: Compiler error: Cannot modify a constant value. Explanation: p is a pointer to a "constant integer". But we tried tochange the value of the "constant integer". 2. 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]); } Answer: mmmm aaaa nnnn Explanation: s[i], *(i+s), *(s+i), i[s] are all different ways of expressing the same idea. Generally array name is the base address for that array. Here s is the base address. i is the index number/displacement from the base address. So, indirecting it with * is same as s[i]. i[s] may be surprising. But in the case of C it is same as s[i]. 3 . main(){  float me = 1.1;  double you = 1.1;  if(me==you) printf("I love U"); else printf("I hate U"); } Answer: I hate U Explanation : For floating point numbers (float, double, long double) ...

How do I "get" a null pointer in my programs?

Answer : According to the language definition, a constant 0 in a pointer context is converted into a null pointer at compile time. That is, in an initialization, assignment, or comparison when one side is a variable or expression of pointer type, the compiler can tell that a constant 0 on the other side requests a null pointer, and generate the correctly-typed null pointer value. Therefore, the following fragments are perfectly legal: char *p = 0; if(p != 0) However, an argument being passed to a function is not necessarily recognizable as a pointer context, and the compiler may not be able to tell that an unadorned 0 "means" a null pointer. For instance, the Unix system call "execl" takes a variable-length, null-pointer-terminated list of character pointer arguments. To generate a null pointer in a function call context, an explicit cast is typically required: execl("/bin/sh", "sh", "-c", "ls", (char *)0); If the (c...