Time Management for Job Placement Papers
Placement Papers decide your career. They are a very important test of your skills and its all up to them how your career shapes. So you have to dedicate some extra attention to Time Management for placement tests.
There are various parts of the placement paper pattern. The written test consists of multiple choice questions, sometimes theoretical technical questions, fill in the blanks types, technical language programs, opinions, comprehensions, opinion type, etc. When you start planning for your placement paper, you should first see the previous sample test patterns of that company. For example infosys sample placement papers are available are available free of cost online and you can download them for your practise. You must study the pattern and decide how much time you are going to dedicate on each type of question. And you must stick to what you plan.
There are various types of question in the aptitude part. The english language verbal questions do not take time as there is no calculation involved. You can save much time here to devote to other questions like math, quantitative and reasoning. In case of calculation type math questions, you should try to do it in the time you have set for each question and if you havnt done it, just leave it and move on to the next. If you have solved half of it, write the calculations on some rough paper for doing it later if you can save some time in the end.
You will come across many persons who will say that there were many questions which i could do but there was no time. What spoiled their chance in the placement test was their bad time management skills as they spent a lot of time on few questions which they could not actually do and as a result could not spend time on the easy questions they could do. So thats very important. Spend fixed time on each question. If you cant complete it, move on to the next and if you have time in the end, allocate some time to each question and do as many as you can. Attempt all questions if there is no negative marking in multiple choice type questions. Reserve the last few minutes for randomnly tick marking the choices for the remaining questions. You can practise using the time management techniques in your regular college exams and apply them in the recruitment or employment placement papers. You can greatly increase your chances of selection in the written test and getting eligible for the final job interviews.
Time Management Tips for exams
Time Management is very important for your exams whether its a college placement test, school exam or a regular end of the year scheduled academic test. If you are properly prepared for the exam but are not good in time management, you may not have good scores. Bad management of the available time will make you lose out to your rival candidates. So its very important to properly plan how much time you are going to allot ot each question in the exam.
Planning the exposure to each question should be done very quickly. Normally a maximum of five minutes should be devoted at the beginning of the exam to study the questions in the question paper and deciding in your mind how much time you have to allot to each question. The questions of higher marks should get more time alloted while the small theoretical questions should have lesser time devoted to them. You should manage yourself in such a way that you dont spend more than a minute on any question than you decided previously. This would help you maximise your time utilization and prevent the depression arising out of concentrating more on one single tough question when you can do all the other ones easily.
The main purpose of time management is to maximise your output and prevent you from wasting your time and energy on one single tough problem in the exam. Keep in mind the total time of the exam, the number of questions asked, the type of questions and marks alloted to each question. Observe that these things for the initial five minutes and calculate how much time you should allot to each question. The time spent on each questions should not be more than the time alloted to the question by you plus one minute. You must stick to this rule whatever may happen.
When you are finished attempting all the questions you were confident of, you can again quickly see the number of questions pending and allot some time to each one. Then again atleast attempt those questions if there is no negative marking. In job placement test papers or campus recruitment exams, if you have negative marking then you should not attempt the questions you are not confident of. But if there is no negative marking in placement papers or college academic exams, you must attempt all questions whether they are multiple choice type or theoretical type. Its always better to write or tick mark something than leaving the question unattempted.
Thus polishing your time management skills is as important as your regular studies. You can practise in regular monthly tests or Pre-exams and apply the experiences in the final exams. This way you can have better scores and ‘output’ from your knowledge and outscore your ‘hard to beat’ competitors!
Motorola India Placement Paper October 2007 at Trivandrum
Motorola India came for campus placement at Trivandrum College on 7th October 2007.
i am providing the sample test paper and selection procedure for Motorola India Pvt. Ltd. (GSG - Global Software Group)test held at College of Engineering campus.
1. Pre – Placement Talk
They give a ppt or paper presentation during which one can know about the company. You have to listen to it carefully as they sometimes ask questions about the things they tell you in ppt.
2. Motorola Test Question paper
The test was very short. There were 30 questions to be done in 30 minutes. There were separate sets of questions for Electronics ece and Computer Science cse streams.
For computer science students, the questions were from the important degree subjects like OS, Data Structures, C/C++, Networking, Aptitude (Logical and Quantitative). There was no negative marking in the motorola exam.
3. Motorola Technical Interview
After the exam, there was a detailed technical and personal interview. They took a lot of time for every candidate. Asked all types of technical questions and test all your tech skills. What you write in your resume, it matters a lot and they ask questions according to that. You can also be asked about your projects and related questions.
4. Motorola HR Interview
The HR interview was somewhat tough. Some persons could find it hard to answer the questions. But dont worry and stay confident. If you have done well in the tech interview round, then you can do this one easily. good luck for that.. those who passed the interviews were given offer letters. You can prepare and practice using other previous placement exams test question papers here and the technical section problems of other companies tests.
Motorola India Placement Paper Technical Questions
Motorola - Sample Placement Test Technical Interview and Written Paper Practise Questions:
Theory exam paper:
1. Write a C language program code to reverse a string using a recursive function, without swapping or using an extra memory.
2. Write a C language program code to reverse a linked list as above.
3. what will MAX(i++,j),MAX(i,j++) return.
4. Difference between Macro and ordinary definition.
5. Difference between Class and Struct.
6. Give the outputs of a compiler and assembler and loader and linker etc.
7. If a new data structure, suppose a queue is to be added like int, long etc.,where shall the changes be — lex or yacc or where.
8. What is a Real Time OS - operating system?
9. Describe VRTX in few words.
9. How does the scheduler know the time how it should be scheduled.
10. Name some sockets, TLI, streams. and much about project.
11. What is deadlock? How do you avoid it?
12. What is a semaphore? Related common technical questionnaires
13. What exactly happens after each system call in sockets, both at the client and at the server.
14. What is the difference between widget & gadget in XWindows?
15. Tell about strtok & strstr functions.
16. Matricide:Mother:: Homicide:? Ans Human
17. 20%loss;20 % gain Ans 4% loss
18. Calls:Tissus::Atom:? Ans:Molecules
There are more sample technical questionnaires, technical practise tests, free to download question papers for Motorola India and other multinational companies’ employment tests and interviews.
Computer Awareness Sample Practise Questions
Computer Awareness Exam Sample practise job placement test questions:
For Quark India:
1. The device that can transform digital data into analog data is called a
a)transformer
b)network
c)carrier
d)modem
Ans. d
2. Following is true about the IP of a machine
a) It is 48-bit and will always be unique around the world.
b) It is 48-bit and is not necessarily be unique around the world.
c) It is 32-bit and will always be unique around the world.
d) It is 32-bit and is not necessarily be unique around the world.
Ans. c
3. A machine having 64MB memory runs a executable which is 300MB on disk. This is achieved by:
a) Use of FAR pointers
b) Page swapping.
c) Save some variables on another machine on network.
d.) Cannot be run on the machine.
Ans. b
4. Which of the following is true about thread and process startup speed:
a.) The startup of a thread is faster than a process.
b.) The process startup is faster as it is directly controlled by the OS.
c.) They will be equal.
d.) Depends on OS that is used. Faster on Windows98 slower on NT.
Ans. a
5. What causes “Thrashing” of a program :
a.) The constant swapping of program due to page faults.
b.) The inability of a program to get assess to a network resource.
c.) A near overflow / underflow of a variable.
d.) Assessing a memory area not allocated to the process.
Ans. a
6. Turbo-C is a / an
a.) IDE and C compiler/linker.
b) C-compiler/linker
c) C .
d) code generator.
Ans. a
7. The path of creation of an executable is :
a.) coding, linking, compiling, parsing.
b.) coding, parsing, compiling, linking.
c.) coding, compiling, parsing, linking.
d.) coding, compiling, linking, parsing.
Ans. b
8. Memory leak in software is due to
a.) Heavy recursion used in logic.
b.) Using structures of large size
c.) Improper use of the CPU registers.
d.) Improper release of allocated memory .
Ans. d
9. A “stable sort” is different from “sort” in the following way
a) Stable sort handles multiple thread access.
b.) Stable sort maintains the order of equal entities as it was in original sequence.
c.) Stable sort will always sort using the fastest scheme available in the library.
d.) Stable sort can handle exceptional conditions like interrupts in software.
Ans. b
10. The classic way of checking whether a mathematical expression has matched paranthesis will employ the following data structure :
a.) List.
b.) Directed Graph
c.) Threaded Binary tree.
d.) Stack.
Ans. d
11. The fastest sorting algorithm for a Random set of numbers is:
a.) Quick sort
b.) Shell sort
c.) Bubble sort
d.) Double Bubble sort.
Ans. a or b, I don’t know
12. Which of these items is not a form of IPC:
a.) Shared Memory
b.) Pipes.
c.) Message queues.
d.) Semaphores
Ans. b
13. The term “socket” in software refers to:
a.) The software primitive which allows access to the hardware attached to the computer.
b.) The API exposed by drivers to assess a hardware.
c.) End point of connection used to transfer data programmatically.
d.) Th primitive used by OS to get assess to the CPU for process scheduling.
Ans. c
14. Which of these statements is True:
a.) XML is a sub-set of HTML.
b.) XML is a less generic markup language standard derived from SGML.
c.) XML is HTML for Xtended Interfaces like mobile-phones.
d.) XML is a Xtension of HTML which defines new tags.
Ans. d
15. DCOM and CORBA are:
a.) Specifications which enable faster downloads on the net.
b.) Specifications that allow objects to be accessed in a location independent manner.
c.) Parallel implementations of XML by Microsoft and Sun respectively..
d.) Specifications to store objects on disk, for later retrieval.
Ans. b
16. The Process that involves monitoring and improving the software product development is:
(a) Quality Assurance
(b) Quality Control
(c) Quality Improvement
(d) None of the above
Ans.
17. An executable test that verifies a functionality of the software unit with given input and expected output is called:
(a) Test Script
(b) Test Plan
(c) Test Case
(d) All of the above
Ans. maybe c
These are computer hardware and software general basic awareness multiple choice questions asked in job tests, personal, hr and technical interviews of leading companies and for temporary computer operator job interviews also.
18. A Bug in the software is, when there is
(a) Application Crash
(b) Feature Failure
(c) Loss of Data
(d) All of the above
Ans. maybe a, or probably d
19. Testing based on External Specifications without knowledge of how the system is constructed:
(a) Black Box Testing
(b) White Box Testing
(c) Stress Testing
(d) Performance Testing
(e) None of the above
Ans. a
20. Which of the following is false
(a) QA is a process defined to attain Quality Standards
(b) QC is testing of the product during its production workflow
(c) A Test case could contain many Test Plans.
(d) A Test Plan could contain many Test Script & Test Cases
Ans. c
21. A Printing Machine that transfers impressions from Flat Plate to Rubber Cylinder, thence to paper is called
(a) Laser Printer
(b) Press, Offset
(c) Digital Printer
(d) All of the above
Ans. maybe Offset
22. Printing process in which ink is applied to paper or board from raised portions of printing plates or type is called:
(a) Printing, Letterpress
(b) Printing, Flexographic
(c) Printing, Silk screen
(d) None of the above
Ans. maybe letterpress
Also see other exam and placement examination questions with answers and solutions here.
23. Yellow (lemon), Magenta (cold red), Cyan (blue-green) are the three
(a) Process Colors
(b) Monitor Colors
(c) Special Colors
(d) Spot Colors
Ans.
24. Leading specifies:
(a) The space between the lines in a paragraph.
(b) The space between the base of a line to the base of the following line in a paragraph.
(c) The space between the top of the X height and the bottom of the X height of the following line in a paragraph
(d) The space between the beard of the top line and the beard of the bottom-line.
Ans.
25. Which is a typical page layout program out of the following software products:
(a) Adobe Photoshop
(b) Adobe PageMaker
(c) Macromedia FreeHand
(d) Macromedia Director
Ans. B
Related: Sample Computer Awareness Test Questions See other ones too.
Quark Computer Awareness Sample Test Questions
Computer Awareness Sample Questions for placement tests, campus recruitment papers, IT companies exams, other general employment tests and computer operator / executives jobs positions.
1. Leading is…
options includes from msWord
2. Which of the following is not a language?
a. Pascal
b. pl/1
c. findles ans
d. j
3. A question on IPC (inter process communication)
4. Which of the following stores the highest amount of data.
a. floppy
b. cd
c. book
d. none of above
Computer Awareness sample preparation resources for job placement tests or exams.
1 TB=1024GB
Windows NT, NT ?
What is the full form of HTTP ?
Windows Uses — ?
a) Intel
b) Microsoft
c) Dos
d) Macintosh
Operating System Runs in —- and system utilitis run in
a)user and monitor modes
b)monitor mode and user modes
For internet, which of the following is required
a) an ISP provider
b) an Internet Connection
c) A Browser
d) All of the above.
What is Internet?
How can u see the web pages?
Largest capacity of the mobile storage ( CD ROM)
What is the Floppy capacity?
“www” stands for ?
Which is a Netwoking os operating system?
a) microsoft win 98
b) Microsoft win 2000
13. Which is not a language ( Findler or J)
The above questions were from a previous quark india placement test paper. See more similar sample questions here.
Quark India Technical Paper C++ Language questions
Quark software recruitment placement test C++ programs and multiple choice technical section questions:
1. Can there be a static class
2. Dynamic binding is
options
3. Find the output of the following program.
main()
{
int i,j=9999;
char buff[5];
i=sprintf(buff,”%d”,j);
cout< }
a. 9999, 4
b 9999,5 ans
c 4,9999
d 9999,1
4. class ab{};
main()
{
cout< }
a 1
b 0 ans
c 2
d 4
5.
class ab
{
int i;
public:
virtual void fun(){}
}
main()
{
cout< }
a. 4 ans
6. when new fails it
a. send _set_new_handler
b. send excection
c.
d. both a and b
7. #define f(a,b) a+b
#define g(x,y) x*y
main()
{
int i;
=f(4,g(5,6));
cout< }
a. 34 ans
8 #define x(a) ++a + a++ +a++
like this I do not
remember this question ans was 4.
9. polymorphism is
10. mutable is used for
ans--changing the value in the
const functions
Multiple choice / objective type questions and fill in the blanks type test problems
Q. __stdcall calling convention
Ans. stack is cleaned by the callee
Q. mutable key word is used for
Ans. if used with a member variable it can be changes by a function declared as a constant
Q. foo & const ref
Ans. this is not a good practise since references are always constants
Q. private inheritance means
Ans Non private members of a base class become private members of derived class
C++ C plus plus CPP sample programs, programming or coding questions for the Quark placement test.
Q. int I=2;
Int j=3;
Int k=4;
Cout<<(I
Q #defines macro(a) ((a++) + (++a) + (a++))
Main()
{
cout << macro(1);
}
Ans. 4
Q. string s = “abcd”
Char &c=s[1];
String t;
T=s;
c=’z’;
if(T[1]==’z’)
{
cout<<”Quark”;
}
else
{
cout<<”express”;
}
Ans. express
Q. int func(int I)
{
static int k=0;
k++;
if( K>5)
return 1;
else
return func(I-1);
}
int main()
{
cout << func(1);
}
Ans. 1
Q. class base
{
public:
virtual func()
{
cout <<”BASE”;
}
};
class der1: public base
{
public:
virtual func()
{
cout << “DER1”;
}
};
class der2: public base
{
public:
virtual func()
{
cout << “DER2”;
}
};
class der3: public base
{
public:
virtual func1()
{
cout << “DER3”;
}
};
main()
{
base *pb;
pb= new der1;
pb->func();
pb= new der2;
pb->func();
pb= new der3;
pb->func();
}
Ans: DER1DER2BASE
Q Which of following will cause application crash…there are three options
ANS. char * p = new char;
Char *q=p;
Delete p;
Delete q;
Q For typeid to give correct result which condition is must
Ans. Class should be polymorphic
Q Following things are default when class is created
Ans. Default constructor, copy constructor, assignment operator
Q. Which casting is done at run time
Ans. dynamic_cast
More Quark India placement papers and whole test question papers can be found here. Practise fully to avoid any unexpected questions in the actual quark exam.
Quark Systems Paper Analytical and C Test Problems
Quark India Pvt. Ltd. Placement Paper Analytical Problems :
1. A dice is thrown twice ..what is the probability of geting a
number twice …(1/6)
2. 1,2,3,4,5 without repeating , make a no. divisible by 4
,probability
(1/5)
3. A girl walks x distance first day , second day she walks 1 km
more ..
total dist =65 km .time taken 18 hrs ( Ans –3 miles/h)
4. One puzzle about ages (Ans 9,2,2)
5. Some Histogram Questions
6. Some Pie charts Questions
Quark C Language employment test problems:
1.char *str=”quark” “media”
printf(”%s”,str); ( ans quark media )
2.char *str;
str=”hello” “india”
printf(”%s”,str); ( ans hello india )
3.i=0;
z=sizeof(++i + i++)
printf(”%d %d”,z,i);
4.volatile keyword
5.macro XY ##
int main()
{
char *s;
x=XY10;
printf(”%s”,x);
}
6. int y=10;
for (int x=0;x<=10;x++);
y+=x;
printf(”%d”,y);
7.Differece between malloc ad calloc.
8.fun(int a)
{
static int b;
}
what is the storage allocation for both a and b;
9.int *fun(int a)
{
return (&a);
}
int *fun(int a)
{
int *b;
b=&a;
return(b);
}
int *fun(int a )
{
int *b;
b=malloc(sizeof(int));
b=&a;
return (b);
}
which of the following functions are not correct ;
10. int fun(int a,int y)
{
int x;
x=a+y;
return (x);
}
int main()
{
int x,y=1,z=0,c;
z=fun(y,c);
printf(” %d “,x);
}
11. int *x[10]()
what is x?
12. printf(”%d”,++i++); o/p ?
13. a=2;
printf(”%d %d %d”,++a,a++);
14.struct abc
{
char a[10];
int a,b;
};
main(){
struct abc ab={”main”};
printf(”%d %d”,ab.a,ab.c);
See lots more related Quark sample placement papers, whole test question papers and hr technical interview questions here. Good luck.. see you at quark.
Quark Software C Skills technical placement paper
C programming language - technical question paper for Quark Software india pvt. ltd.
Its popular products are QuarkXpress, QuarkCopyDesk, XTensions Software, XPert Tools Pro, etc.
See the following technical exam questions (multiple choice type) for quark publishing software developer job - employment test:
Note : There are 20 questions and no negative marking.
Time allotted is 30 minutes
1. What is the output of the following code
main()
{
printf(”Hello %d”,printf(”QUARK test? “));
}
a. Compile time error.
b. Hello QUARK test?
c. Run time error.
d. None of the above.
e. Quark Test ?Hello.
Ans. d.
This is because the evaluation of the parameters in a function call is done from right to left, becz the parameters were passed via a stack hence the first parameter (the leftmost one) is at the bottom of the stack and the rightmost parameter (if it is an expresseion, it will be evaluated before putting it on the stack) is on the top of the stack, hence while popping the parameters from the stack, the function printf (or any other function) gets them in the reverse order, i.e., from right to left, hence the statement printf(“Quark test? “) gets evaluated first while pushing it as a parameter on to the stack, and then the statement printf(“Hello %d”) is executed. The ‘12’ is the result of the return of printf(“Quark test? “) which returns the number of characters printed.
C language detailed programs for developers job company recruitment test with detailed solutions, answers and explanation for questions.
2.) Output of the following c programming code is
main()
{
int i,j,A;
for (A = -1;A<=1; A++)
printf(”%d\t”,!!A);
}
a. 1 0 1
b. 65534 0 65534
c. -1 0 1
d. -65534 0 65534
e. None of the above
Ans. 1 0 1
3) What is the out put of the following code?
main()
{
int i=255;
printf(”%d\t”,++(i++));
}
a. Compilation error
b. Runtime error
c. 256
d. 0
e. None of the above
Ans. Compile Time Error ‘Lvalue Required
4) What shall be the output of the following code?
main()
{
char i = ‘a’;
printf(”%c \t %c \t”, i ,(++i));
}
a. a b
b. Compile time error
c. b b
d. a a
e. 65 66
Ans. b b
5) What shall be the output of the following code?
main() {
int i,j;
printf(“QUARK %s\n”,main());
}
a. Compilation error.
b. Run-time error
c. Continuous scrolling Quark on the screen.
d. None of the above.
Ans. There is nothing on the screen and prog waits till the memory lasts and then out of memory run time error, so ans is b.
6) What shall be the output of the following code ?
#define f(x) x*x*x
main(){
printf(”\n%d”,f(2+2));
}
a. 8
b. 64
c. 10
d. 12
Ans. f(2+2) will expand to 2+2*2+2*2+2
= 2+4+4+2
= 12
7) What shall be the output of the following code ?
main()
{
void fun1(void *);
char a[] = “quark”;
void *temp;
temp = a;
fun1(temp);}
void fun1(void *temp1 )
{
int t1 = 0;
while(*((char*)temp1+ t1++ )!=’\0′) {
printf(”%c”,*((char*)temp1 + t1));
}
}
a. Compilation error
b. ark
c. quark
d. uark
Ans, uark
8. What will be the out put of the following code?
void main()
{ int x=3;
printf(”%d\t %d”,x>>1, x<<3);
}
a. 1 and 4
b. 1 and 24
c. 1 and 27
d. None of the above
Ans. 1 and 24
This is because 3 in binary is 00000000 00000011 in two bytes (integer). Again, the right to left evaluation rule of parameters is applicable and so x<<3 gets executed first, it means left shift 3 times, but this operator does not change the value of x itself, it simply returns a value, so x retains its value after this operation has been carried out, so we get 00000000 00011000 which is 24, so 24 is pushed onto the stack, and then x>>1, right shift 1, 00000000 00000011, which is 1 in decimal, so 1 is pushed onto the stack, then printf(”%d\t %d”) gets executed displaying 1 24.
9. What will be the result of the following code?
int *x;
x =(int *) 15;
a. Compilation error
b. Compiles but gives a runtime error
c. Absolute location 15 in the memory space shall be assigned to pointer x;
d. Location 15 in the program space is assigned to pointer x;
e. Location 15 contains the address to an integer.
Ans d
10. Which of the following functions cannot be called from another file?
a. const void func(){ ……..}
b. extern void func(){………}
c. void func(){………}
d. static void func(){……….}
Ans. static
Quark Sample Placement Paper Technical C Skills
Quark India Placement Paper sample C programming language multiple choice questions from the Technical Tech Section of the question paper:
1. What will be the out come of the following code?
#include
int * func(){
static int x=0;
x++; return &x;
}
int main()
{
int * y = func();
printf(”%d”,(*y)++);
func();
printf(”%d\n”,*y);
return 0;
}
a. Compilation error.
b. Prints 1 and 3
c. Prints 1 and 3 but it is not good practice.
d. Prints 1 and 1
e. The code will not execute properly because y points to a variable whose life span is limited to execution of the function func();
Ans. Prints 1 and 3 but it is not a good practice
2. Referring to the above code , which of the following would be the correct
implementation for myFunc ?
char *format = “%d”;
int main()
{
int x;
myFunc(scanf,&x);
printf(“%d\n”,x);
return(0);
}
a. void myFunc(int(*y)(const char*,…),int *x) {(*y)(format,&x);}
b. void myFunc(int(*y)(const char*,…),int *x) {(*y)(format,*x);}
c. void myFunc(int*y(const char*,…),int *x) {(*y)(format,&x);}
d. void myFunc(*(int y(const char*,…)),int *x) {(*y)(format,x);}
e. void myFunc(int(*y)(const char*,…),int *x) {(*y)(format,x);}
3. What shall be the output of the following C code?
void main()
{
unsigned int x= -1;
int y =0;
if(y<=x) printf(“A is true\n”);
if (y = =(x = -10)) printf(“B is true\n”);
if ((int) x>=y) printf(“C is true\n”);
}
a. A is true.
b. B is true.
c. C is true.
d. None of the above.
Ans. A is true because x contains –1, i.e., in binary it is ffff, i.e., all 1s, so being unsigned, all 1s are interpreted as the value 65535 and not as –1 (however, all 1s are interpreted as –1 if it is just an int), hence y<=x returns true.
4. In the following code what is the correct way to increment the variable ptr to
point to the next member of the array
union intfloat
{
int intArray[ 5];
float floatArray[ 5];
};
union intfloat arr[20];
void *ptr =arr;
a. ++(int*)ptr;
b. ptr = ptr+5;
c. ptr = ptr +sizeof(*ptr);
d. ptr = ptr+sizeof(intfloat.floatArray);
e. ptr = (void*)((union intfloat*)ptr +1);
Ans. e. ptr = (void*)((union intfloat*)ptr +1);
5.What shall be the output of the following program?
#define PRINTXYZ(x,y,z) printf (#x "=%d\t" #z "=%d\n", x, y)
void main() {
int x, y, z;
x=0; y=1; z=2;
x || ++y ||++z;
PRINTXYZ(x,y,z);
++x || ++y && ++z;
PRINTXYZ(x,y,z);
++x && ++y || ++z;
PRINTXYZ(x,y,z);
}
a. Compilation error.
b. Runtime error.
c.
x=0 z=2
x=1 z=3
x=2 z=4
d.
x=0 z=2
x=1 z=2
x=2 z=3
e. None of the above.
Ans. d.
6. What shall be the output of the following code ?
main()
{
printf(“%d %d”, sizeof(NULL), sizeof(“”));
}
a. 1 and 0.
b. 0 and 1
c. 2 and 1
d. 4 and 1
e. None of the above
Ans. Depends on the machine and compiler. Actually it is the sizeof(int) and sizeof(char) as a string is stored as a char array terminated with 0, so sizeof(“”) gives 1, whereas sizeof(“adsf”) gives 5 (including the terminating 0). So in TurboC we get c as the answer, on VC we get d as the answer, so I guess e is the ans, i.e., None of the above.
7. What shall be the output of the following code?
int *check ( int,int);
void main()
{int c,d;
c = check(11,29);
d= check(20,30);
printf("\nc=%u",c);
}
int * check(int i,int j )
{
int *p, *q;
p=&i;
q=&j;
if(i>=95)
return(q);
else
return(p);
}
a. 11
b. 29
c. Compilation error
d. Runtime error
e. None of the above.
Ans. e. None of the above. the statement c = check(11,29) is assigning an int ptr to an int, so c has an address of an int (which has gone out of scope, since the function returns the address of a variable which had its scope only inside the function, since the parameters were passed by value) so the value printed can be anything. Instead, if the statement was c = *(check(11,29)) then c would have the value stored at the address returned by the function, which would most probably be 11, but it cannot be guaranteed since the variable i has fallen out of scope.
8. What shall be the output of the following code?
void main()
{int a[3][2]={ 1,2,
5,7,
6,8};
printf(”\n%d”,((a+1)-(&a+1)));
}
a. 0
b. -16
c. -2
d. -8
e. None of the above.
Ans. –2. I haven’t been able to figure this one out. a is the address of the 2-d array, here a, &a, *a all give the same value, i.e., address of the array. (a+1) gives the address of the second row, it is the same as a[1]. *(a+1) gives the address of the first cell of the second row. **(a+1) gives the value of the element stored in the first cell in the second row. (*(a+1)+1) gives the address of the second cell of the second row. *(*(a+1)+1) gives the value of the element stored in the second cell in the second row.
9.What shall be the output of the following code?
main()
{
char str1[]=”Hello”;
char str2[]=”Hello”;
if(str1= =str2&& (*(str1+6)= =*(str2+6)))
printf(”\n Equal”);
else
printf(”\n unequal”);
}
a. Equal
b. Unequal
c. Compilation error.
d. Runtime error.
e. None of the above.
Ans. b. Unequal, because the addresses of the two strings are str1 and str2 and they are different.
10. Given that sizeof(int) is 2 , what is the output of the following code
main()
{
int a, b=255,c=127;
a=~b;
c=c^(~a & b|0);\
c=c^(~(~b));
printf(”%d\n”,c);
}
a. Error because of overflow;
b. 255
c. –256
d. 127
e. None of the above
Ans. d. 127
Quark India develops world class software for the publishing industry. Its well known through out the world for its suite of publisher software products. Quark is present in Mohali - Panchkula Punjab, India. Its campus has many engineers from all branches like electronics, computer science and IT working as developers and support executives. It was also recently in the news for developing a new township called Quark City. See related detailed placement exam whole test papers for joint campus recruitment of engineers - electrical, mechanical, cse, ece, etc. and hr technical tech interview questions.
Subscribes
Ads
Most Popular
- you have to install alex king most popular plugin here
Categories
-
- ABB
- Accenture
- Aditi
- Agile
- AIG
- Alcatel
- All Interview Questions
- Aspire
- BHEL
- Birlasoft
- BSNL
- Business News
- Calsoft
- Cdac
- Cisco
- Citi
- Dell
- Distance Education Courses
- Holool
- HP
- I-Flex
- Infineon
- Infosys
- Intergraph
- Microsoft
- NTPC
- Oracle
- Placement Papers
- Robert Bosch
- Samsung
- Satyam Computers
- SSA Global
- Sun
- TCS
- TechMahindra
- Texas Instruments
- Uncategorized
- VSNL
- Wipro
- Xansa
- Yahoo
- Zenith
- ZTE
Tags
- ABB Accenture Aditi Antonyms Aspire BHEL Birlasoft BSNL Cadence Calsoft Cisco Citi Convergys correspondence courses Dell fashion HCL HP I-Flex Infosys law Microsoft NTPC Nucleus Oracle Polaris psychometry Quark Robert Bosch Samsung Satyam Computers Subex Sun Sutherland Synonyms TCS TechMahindra Texas Instruments Verizon VSNL Wipro Xansa Zensar ZTE



