Interview Preparation Exam  >  Interview Preparation Tests  >  Placement Papers - Technical & HR Questions  >  Amazon Technical Paper 2 - Interview Preparation MCQ

Amazon Technical Paper 2 - Interview Preparation MCQ


Test Description

15 Questions MCQ Test Placement Papers - Technical & HR Questions - Amazon Technical Paper 2

Amazon Technical Paper 2 for Interview Preparation 2024 is part of Placement Papers - Technical & HR Questions preparation. The Amazon Technical Paper 2 questions and answers have been prepared according to the Interview Preparation exam syllabus.The Amazon Technical Paper 2 MCQs are made for Interview Preparation 2024 Exam. Find important definitions, questions, notes, meanings, examples, exercises, MCQs and online tests for Amazon Technical Paper 2 below.
Solutions of Amazon Technical Paper 2 questions in English are available as part of our Placement Papers - Technical & HR Questions for Interview Preparation & Amazon Technical Paper 2 solutions in Hindi for Placement Papers - Technical & HR Questions course. Download more important topics, notes, lectures and mock test series for Interview Preparation Exam by signing up for free. Attempt Amazon Technical Paper 2 | 15 questions in 30 minutes | Mock test for Interview Preparation preparation | Free important questions MCQ to study Placement Papers - Technical & HR Questions for Interview Preparation Exam | Download free PDF with solutions
1 Crore+ students have signed up on EduRev. Have you? Download the App
Amazon Technical Paper 2 - Question 1

In C, if you pass an array as an argument to a function, what actually gets passed?

Amazon Technical Paper 2 - Question 2

What will be the output of the program?

#include

int main()

{

            viod fun( int, int[]);

            int arr[] = {1, 2, 3, 4};

int i;

            fun (4, arr);

for (i=0; i<4; i++)

            printf(%d, arr[i]);

return 0;

}

void fun(int n, int arr[])

{

            int *p=0;

int i=0;

while(i++ < n)

            p = &arr[i];

*p=0;

}

Amazon Technical Paper 2 - Question 3

What will be the output of the program if the array begins 1200 in memory?

#include

int main()

{

Int arr[]={2, 3, 4, 1, 6};

printf(%u, %u, %u , arr, &arr[0], &arr);

return 0;

}

Amazon Technical Paper 2 - Question 4

Which of the following statements are correct about an array?

1: The array int num [26]; can store 26 elements.

2: The expression num [1] designates the very first element in the array.

3: It is necessary to initialize the array at the time of declaration.

4: The declaration num [SIZE] is allowed if SIZE is a macro.

Amazon Technical Paper 2 - Question 5

Which of the following function is used to find the first occurrence of a given string in another string?

Amazon Technical Paper 2 - Question 6

What will be the output of the program in 16-bit platform (Turbo C under DOS)?

#include

Int main()

{

Printf(%d, %d, %d, sizeof(3.0f), sizeof(3)), sizeof(3.0);

Return 0;

}

Amazon Technical Paper 2 - Question 7

Which of the following statements are correct ?

1:A string is a collection of characters terminated by .

2:The format specifier %s is used to print a string.

3: The length of the string can be obtained by strlen().

4:The pointer CANNOT work on string.

Amazon Technical Paper 2 - Question 8

Point out the error in the program?

#incluse

int main()

{

struct emp

{

char name[20];

float sal;

};

struct emp e[10];

int i;

for(i=0; i<=9; i++)

scanf(“%s  %f e[i].name, &e[i].sal);

return 0;

}

Amazon Technical Paper 2 - Question 9

What is the similarity between a structure, union and enumeration?

Amazon Technical Paper 2 - Question 10

What will be the output of the program?

#include

int main()

{

enum days {MON=-1, TUE, WED=6, THU, FRI, SAT};

printf("%d, %d, %d, %d, %d, %d ", MON, TUE, WED, THU, FRI, SAT);

return 0;

}

Amazon Technical Paper 2 - Question 11

What will be the output of the program ?

#include

struct course

{

int courseno;

char coursename[25];

};

int main()

{

struct course c[] = { {102,Java},

{ 103, PHP},

{104, DotNet}           };

printf(%d, c[1].courseno);

printf(%sm, (*(c+2)).coursename);

return 0;

}    

Amazon Technical Paper 2 - Question 12

Point out the error in the program

#include

int main()

{

int I;

#if A

printf(Enter any number:);

scanf(%d, &i);

#elif B

printf( The number is odd);

return 0;

}

Amazon Technical Paper 2 - Question 13

What are the different types of real data type in C?

Amazon Technical Paper 2 - Question 14

What do the following declaration signify?i

nt *ptr[30];

Amazon Technical Paper 2 - Question 15

Which of the following function is correct that finds the length of a string?

85 docs|57 tests
Information about Amazon Technical Paper 2 Page
In this test you can find the Exam questions for Amazon Technical Paper 2 solved & explained in the simplest way possible. Besides giving Questions and answers for Amazon Technical Paper 2, EduRev gives you an ample number of Online tests for practice
Download as PDF
Download the FREE EduRev App
Track your progress, build streaks, highlight & save important lessons and more!