Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

SAP Placement Questions

  • Difficulty Level : Medium
  • Last Updated : 17 May, 2021

L: Means turn Right . 
R: Means turn Left. 
Numbers represent the distance traveled in a particular direction in meters. 
( If Alice is initially facing north, and is given the instruction, 
3L4L5R2L3R3R2R4R3L1L3R4R2R3R), which direction would she face and how much distance would she cover?
ans : 42m,north
—————————————————————————————————————-
2. JavaScript syntax for is not equal? 
ans: operator is : !
!! – not not
—————————————————————————————————————-
3.. 
 

C




#include<stio.h>
#define TRUE 0
 
void main()
{
   int i = 0;
   while (TRUE){
     printf("%d\n",i);
     i++;
   }
   printf("%d\n",i);
   i++;
}


output: 0 
—————————————————————————————————————–
If you like GeeksforGeeks and would like to contribute, you can also write an article using write.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
 

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!