Our website is made possible by displaying online advertisements to our visitors.Please consider supporting us by disabling your ad blocker.
Drop Down MenusCSS Drop Down MenuPure CSS Dropdown Menu
Drop Down MenusCSS Drop Down MenuPure CSS Dropdown Menu

Translate it in your own Language

Print this Job Post

Print Friendly and PDF

Thursday, June 19, 2014

ZS Associates Technical-Paper 1

1. What will be the result of the following program?
main()
{
int i, j;
scanf(“%d %d”+scanf(“%d %d”, &i, &j));
printf(“%d %d”, i, j);
}
A. Runtime error
B. 0,0
C. Compile error
D. the first two values entered by the user

Answer:two values entered, 3rd will be null pointer assignment

2. What will be the result of the following program?
main()
{
char *p = “hello world”;
p[0] = ‘H’;
printf(“%s”, p);
}
A. Runtime error
B. “Hello world”
C. Compile error
D. “hello world”

Answer:B

3. What will be the result of the following program?
main()
{
char * strA;
char * strB = I am OK;
memcpy( strA, strB, 6);
}
A. Runtime error
B. I am OK
C. Compile error
D. I am O

Answer:C

4. How will you print % character?
A. printf(“\%”)
B. printf(“\\%”)
C. printf(“%%”)
D. printf(“\%%”)

Answer:C

5. What will be the result of the following program?
const int perplexed = 2;
#define perplexed 3
main()
{
#ifdef perplexed
#undef perplexed
#define perplexed 4
#endif
printf(“%d”,perplexed);
}
A. 0
B. 2
C. 4
D. none of the above

Answer:C

6. What is the Output?
struct Foo
{
char *pName;
};
main()
{
struct Foo *obj = malloc(sizeof(struct Foo));
clrscr();
strcpy(obj->pName,”Your Name”);
printf(“%s”, obj->pName);
}
A. Your Name
B. compile error
C. Name
D. Runtime error

Answer:A

7. Identify the recording mode, by which you can record the non-standard object in QTP?
A. Standard recording
B. Analog recording
C. Low level recording
D. None

Answer:B

8. By default, how many number of tables would be there in a script?
A. One
B. Two
C. Three
D. Four

Answer:B

9. The file extension of Shared object repository file is?
A. .MTR
B. .TSR
C. .QRS
D. None

Answer:B

10. To invoke the function which does not return any value, we can use?
A. call function name
B. function name
C. Both A & B
D. None

Answer:A

More Details About CrackMNC

Follow Our Google+ Page

Copyright @ CrackMNC 2014-2024
Divas Nikhra Theme by Crack MNC