20240507 QFM013 Machine Intelligence Reading List April 2024.pdf
Paper final
1. WAY TO CONATUS
NOTE: ATTEMPT ALL QUESTIONS. -1 MARK FOR EACH WRONG ANSWER
Aptitude: (2 marks each)
1. In a certain code HOUSE is written as FTVPI, how is
CHAIR written in that code?
(1) DIBJS (2) SBJID
(3) SHBGD (4) SJBID
2. In a row of children facing north Manish is fourth to the
left of Suresh who is tenth from the left end. Nisha is
second to the right of Suresh and eighth from the right end
of the row. Total how many children are there in the row?
(1) 19 (2) 20
(3) 21 (4) 18
3. Four bells will ring at intervals of 18, 24, 32 and 40
seconds. If they begin by ringing together what time will
elapse before they ring together again?
(1) 1000 min (2) 2000 min
(3) 1440 min (4) 1560 min
4. If A + B means A is the mother of B; A x B means A is the
father of B; A $ B means A is the brother of B and A @ B
means A is the sister of B then which of the following
means P is the son of Q?
(1) Q + R @ P @ N (2) Q + R * P @ N
(3) Q x R $ P @ N (4) Q x R $ P $ N
5. Two positions are dice are shown below. How many
points will appear on the opposite to the face containing 5
points?
(1) 3 (2) 1
(3) 2 (4) 4
6. Pointing to a photograph of a boy Suresh said, "He is the
son of the only son of my mother." How is Suresh related
to that boy?
(1) Brother (2) Uncle
(3) Cousin (4) Father
7. What is the next letter of series?
O T T F F S S ….
(1) E (2) N
(3) O (4) T
8. Blueberries cost more than strawberries.
Blueberries cost less than raspberries.
Raspberries cost more than both strawberries and
blueberries.
If the first two statements are true, the third statement is
(1) true (2) false (3) uncertain
9. Choose the alternative which is closely resembles the
mirror image of the given combination.
10. Look at this series: 11, 12, 26, 81, 328, what number
should come next?
(1) 1645 (2) 661
(3) 1317 (4) 991
C Coding: (2 marks each)
1. Is there any difference between following declarations?
1 : extern int fun(); 2 : int fun();
(1) Both are identical
(2) No difference, except extern int fun(); is probably in
another file
(3) int fun(); is overrided with extern int fun();
(4) None of these
2. Turbo C 4.5 is based on which of the following?
(1) DOS (2) UNIX
(3) WINDOWS (4) LINUX
3. In which header file is the NULL macro defined?
1 Recruitment 2011(Common Test)
2. (1) stdio.h (2) stddef.h
(3) stdio.h and stddef.h (4) stdlib.h
4. In which stage the following code
#include<stdio.h>
Gets replaced by the contents of the file stdio.h
(1) During editing (2). During linking
(3) During execution (4) During preprocessing
5. Guess the output, of the following code fragment:
main ()
{
printf("%d",1&2);
}
6. The contents of the file is lost if it is opened in which
mode?
(1) a mode (2) a- mode
(3) w+ mode (4) a+ mode
7. Guess the output, of the following code fragment:
#include<stdio.h>
main ()
{
int a,b,c;
a = b = -2;
c = ++a && ++b ;
printf("a = %d ,b = %d , c = %d",a,b,c);
}
8. In the following code, the P2 is Integer Pointer or
Integer?
typedef int *ptr;
ptr p1, p2;
(1) Integer (2) Integer pointer
(3) Error in declaration (4) None of these
9. What is stderr?
(1) Standard error (2) standard error types
(3) Standard error streams(4) standard error definitions
10. What is the similarity between a structure, union and
enumeration?
(1) All of them let you define new values
(2) All of them let you define new data types
(3) All of them let you define new pointers
(4) All of them let you define new structures
11. What will be the output, as the result of the operation
below :
#define swap(a,b) a=a+b;b=a-b;a=a-b;
void main()
{
int x=5, y=10;
swap (x,y);
printf(“%d %dn”,x,y);
swap2(x,y);
printf(“%d %dn”,x,y);
}
int swap2(int a, int b)
{
int temp;
temp=a;
b=a;
a=temp;
return 0;
}
12. What will be the output, as the result of the operation
below:
main()
{
char *p1=“name”;
char *p2;
p2=(char*)malloc(20);
memset (p2, 0, 20);
while(*p2++ = *p1++);
printf(“%sn”,p2);
}
13. What will be the output, if you will compile and execute
the following C code?
void main()
{
int array[3]={5};
int i;
for(i=0;i<=2;i++)
printf("%d ",array[i]);
}
(1) 5 garbage garbage (2) 5 0 0
(3) 5 null null (4) Compiler error
14. What will be the output, if you will compile and execute
the following C code?
void main()
{
int array[2][2][3]={0,1,2,3,4,5,6,7,8,9,10,11};
printf("%d",array[1][0][2]);
}
(1) 4 (2) 5
(3) 6 (4) 8
15. What will be the output, if you will compile and execute
the following C code?
void main()
{
float f=3.4e39;
printf("%f",f);
}
(1) 3.4e39 (2) 3.40000…
2 Recruitment 2011(Common Test)