• Skip to primary navigation
  • Skip to content
  • Skip to primary sidebar
  • Skip to secondary sidebar

GoHired

Interview Questions asked in Google, Microsoft, Amazon

Join WeekEnd Online Batch from 4-April-2020 on How to Crack Coding Interview in Just 10 Weeks : Fees just 20,000 INR

  • Home
  • Best Java Books
  • Algorithm
  • Internship
  • Certificates
  • About Us
  • Contact Us
  • Privacy Policy
  • Array
  • Stack
  • Queue
  • LinkedList
  • DP
  • Strings
  • Tree
  • Mathametical
  • Puzzles
  • Graph

SAP Off Campus Hiring_ March 2015 Computer Skills

March 1, 2015 by Dhaval Dave

Q)What will be the output of the given code?

#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int a[5] = {1,2,3,4,5};
for(int i = 0; i< 5;i+2)
printf(“%d” ,i++[a]);
printf(“,%d”,i);
getch();
}
2 4 6 ,6
1 4 ,6
1 2 3 4 5 ,5
Compiler Error
None of these

Q)A contents of a file are “I love computerrn”. The file is read using fgets() and the result is stored in array buff.
What does buff contain?

“I love computer”
“I love computern”
“I love computerr”
“I love computerrn”

Q)If the description of function is “input the quantity, validate that the quantity is greater than 1, subtract 1 from the quantity, and print the quantity,” the function is:

sequentially cohesive
logically cohesive
communicationally cohesive
functionally cohesive

Q)In which statements, does a ‘continue’ statement cause the control to go directly to the test condition and then continue the looping process?

for’ and ‘while’
while’ and ‘if-else’
do-while’ and ‘if-else’
while’ and ‘do-while’
None of the above

Q)The complexity of binary search algorithm is:

O(n 2)
O(n log n)
O(n)
O(log n)
Clear Response

Q)Which of the following is correct way of establishing self referencing foreign key in a table EMP where Manager column is a foreign key referring Epcode column ?

Create table emp
( Epcode number(4) ,
manager number(4) references epcode,
);

Create table emp
( Epcode number(4) primary key ,
manager number(4) references epcode,
);

Create table emp
( Epcode number(4) primary key ,
manager number(4) references emp,
);

Create table emp
( Epcode number(4) ,
manager number(4) references emp,
);

Q8) Below relation conforms to which of the following normal forms

1
SALES TABLE
2

3
P_CODE | S_CODE |     DATE     | STATUS
4
———————————————–
5
1                     3               01-01-14        P
6
2                     3               07-02-14        P
7
3                     1               22-01-14        S
8
4                     2               15-01-14        P

9
Consider (P_CODE, S_CODE) forms the composite key for sales relation.

1NF
2NF
3NF
None of these

Q9)Consider W-Timestamp(Q) and R-Timestamp(Q) are the maximum timestamps of any transaction that executed Write and Read on Q respectively.
Suppose a Transaction T issues Read(Q)
if Timestamp(T) <= W-timestamp(Q) then which of the following is true in timestamp based protocol ?

Read operation is rejected
Read operation is executed
Depends on R-Timestamp(Q)
Deadlock will occur

Q10)Identify the invalid value for a primary key field?

Blank
134689
JoeSmith44
All of the above

Similar Articles

Filed Under: Interview Experience, Uncategorized

Reader Interactions

Primary Sidebar

Join WeekEnd Online/Offline Batch from 4-April-2020 on How to Crack Coding Interview in Just 10 Weeks : Fees just 20,000 INR

Join WeekEnd Online/Offline Batch from 4-April-2020

WhatsApp us

Secondary Sidebar

Custom Search

  • How I cracked AMAZON
  • LeetCode
  • Adobe
  • Amazon
  • Facebook
  • Microsoft
  • Hacker Earth
  • CSE Interview

Top Rated Questions

Introduction To Number Theory ( Part 1 )

robot standing at first cell of an M*N matrix. It can move only in two directions, right and down. In how many ways, it can reach to the last cell i.e. (M, N) Code it

Find the kth number with prime factors 3, 5 and 7

Code Chef PRGIFT Solution

C Program for TAIL command of UNIX

Word Break Problem

Maximum occurred Smallest integer in n ranges

Given a sorted array and a number x, find the pair in array whose sum is closest to x

Printing Longest Common Subsequence

Implement a generic binary search algorithm for Integer Double String etc

The greedy coins game Dynamic Programming

Maximum difference between two elements s.t larger element appears after the smaller number

flattens 2 D linked list to a single sorted link list

Sort an array according to the order defined by another array

How Radix sort works

Sort Stack in place

Serialise Deserialise N-ary Tree

Rectangular chocolate bar Create at least one piece which consists of exactly nTiles tiles

Given array of 0’s and 1’s. All 0’s are coming first followed by 1’s. find the position of first 1

Find loop in Singly linked list

Amazon Interview Experience – SDE Chennai

Naurki.com Security Breach

Urban Ladder Written Test.

Find the element that appears once others appears thrice

Find min element in Sorted Rotated Array (With Duplicates)

Find the number ABCD such that when multipled by 4 gives DCBA.

SAP Interview Questions

CodeChef’ RRCOPY

Possible sizes of bus to carry n groups of friends

VMWare SDEII Interview

Copyright © 2025 · Genesis Framework · WordPress · Log in