Skip to main content

Posts

Showing posts from November, 2014

What is this infamous null pointer, anyway?

Answer: The language definition states that for each pointer type, there is a special value -- the "null pointer" -- which is distinguishable from all other pointer values and which is not the address of any object. That is, the address-of operator & will never yield a null pointer, nor will a successful call to malloc. (malloc returns a null pointer when it fails, and this is a typical use of null pointers: as a "special" pointer value with some other meaning, usually "not allocated" or "not pointing anywhere yet.")

A null pointer is conceptually different from an uninitialized pointer. A null pointer is known not to point to any object; an uninitialized pointer might point anywhere. See also questions 49, 55, and 85.

As mentioned in the definition above, there is a null pointer for each pointer type, and the internal values of null pointers for different types may be different. Although programmers need not know the internal values, the co…

Aptitude Test Practice Questions - With Answers

Question 1. Which of the following is least like the others?
A.    cube
B.    sphere
C.    pyramid
D.    circle

Anwser:
D (because the circle is the only two-dimensional figure)

Question 2. Consider a language which uses the following set of characters:
Small set: { a b c }
Large set: { A B C }
Punctuation set: { x y }
This language must follow the following rules:
  1.    A punctuation character must end all series.
  2.    A series can have up to but no more than 4          characters,including punctuation characters.

Does the following series follow all the rules of the language defined above?
axBy
  A.    Yes
  B.    No

Answer:
A (the series has only four characters and ends in a punctuation character)

Question 3. Consider the following flow chart for a customer:



The person in No.1 is:
    A.   Married, with children
    B.   Married, with at least one son
    C.   Unmarried, with at least one daughter
    D.   Unmarried, with at least one son
    E.   Unmarried, with no children

Answe…

Army Institute of Technology, Pune : Addmition 2015 - Based on JEE

Important Dates:
Last date for submission of completed AIT Application Form:April 30, 2015
Date of JEE (Main)-2014 (offline):  April 4, 2015
Date of JEE (Main)-2014 Online:         April-10 - 11, 2015

Army Institute of Technology, Pune invites application to admission for the year 2015-2016 for the BE Courses commencing in July/August.

AIT admission is based on the merit of JEE. All applicants are therefore required to appear in JEE and also apply to AIT.

Eligibility:

The eligibility criteria for admission to AIT is given in detail in the Prospectus which is available in February every year. Brief outline is as below :-
Candidate must be a ward of one of the following :-  Serving Army Persons. Serving medical officers of IN and IAF who have served in the Army for more than 10 yrs and are members of AOBF. Retired Army pers who in receipt of regular pension, or former Army pers who retired after min service of 10 yrs. Former Army pers who died during service/after retirement and family pe…