1. The robot is initially at (x, y), x > 0 and y < 0. The minimum number of instructions needed to be executed to bring it to the origin (0,0) if you are prohibited from using the GOTO instruction is:





Write Comment

Type in
(Press Ctrl+g to toggle between English and the chosen language)

Comments

Tags
Show Similar Question And Answers
QA->CPU register that holds the address of the instructions to be executed next:....
QA->The mechanism that bring a page into memory only when it is needed is called ?....
QA->Who said ‘Happiness is when what you think; what you say; and what you do are in harmony’?....
QA->Russian Tennis star who has been banned for two years by the International Tennis Federation for using a prohibited drug?....
QA->"Take care to get what you like, or you will be forced to like what you get"....
MCQ-> Directions for the next 2 questions: There are five machines A, B, C, D, and E situated on a straight line at distances of 10 metres, 20 metres, 30 metres, 40 metres and 50 meters respectively from the origin of the line. A robot is stationed at the origin of the line. The robot serves the machines with raw material whenever a machine becomes idle. All the raw material is located at the origin. The robot is in an idle state at the origin at the beginning of a day. As soon as one or more machines become idle, they send messages to the robot- station and the robot starts and serves all the machines from which it received messages. If a message is received at the station while the robot is away from it, the robot takes notice of the message only when it returns to the station. While moving, it serves the machines in the sequence in which they are encountered, and then returns to the origin. If any messages are pending at the station when it returns, it repeats the process again. Otherwise, it remains idle at the origin till the next message (s) is received.Suppose on a certain day, machines A and D have sent the first two messages to the origin at the beginning of the first second, and C has sent a message at the beginning of the 5th second and B at the beginning of the 6th second, and E at the beginning of the 10th second. How much distance in metres has the robot travelled since the beginning of the day, when it notices the message of E? Assume that the speed of movement of the robot is 10 metres per second.
 ....
MCQ-> DIRECTIONS for the following questions:These questions are based on the situation given below: A robot moves on a graph sheet with x and y-axes. The robot is moved by feeding it with a sequence of instructions. The different instructions that can be used in moving it, and their meanings are: Instruction Meaning GOTO(x,y) move to point with coordinates (x, y) no matter where you are currently WALKX(P) Move parallel to the x-axis through a distance of p, in the positive direction if p is positive, and in the negative direction if p is negative WALKY(P) Move parallel to the y-axis through a distance of p, in the positive direction if p is positive, and in the negative direction if p is negative.The robot reaches point (6, 6) when a sequence of three instructions is executed, the first of which is a GOTO(x, y) instruction, the second is WALKX(2) and the third is WALKY(4). What are the values of x and y?
 ....
MCQ->The robot is initially at (x, y), x > 0 and y < 0. The minimum number of instructions needed to be executed to bring it to the origin (0,0) if you are prohibited from using the GOTO instruction is:....
MCQ-> Read the following passage carefully and answer the questions given.Do you ever feel there’s is a greater being inside of you bursting to get out? It is the voice that encourages you to really make something of your life. When you act congruently with that voice, it’s like your are a whole new person. You are bold and courageous. You are strong. You are unstoppable. But, then reality sets in, and soon those moments are history. It is not hard to put youself temporarily into an emotionally motivated state. Just listen to that motivational song for that matter. However, this motivation does not stay forever. Your great ideas seem impractical. How many times have you been temporarily inspired with a idea like, “I want to start my own business.” And then a week later it’s forgotten? You come up with inspiring ideas when you are motivated. But you fail to maintain that motivation through the action phase.The problem we ask ourselves is, why does this happen? You can listen to hundereds of motivational speakers and experience an emotional yo-yo effect, but it does not fast. The problem is that as we are intellectually guided, we try to find logic in emotional motivation and as we fail to find logic eventually phases out. I used to get frustrated when my emotional motivation fizzled out after a while. Eventually, I realised that being guided by intellect, was not such a bad thing after all. I just had to learn to use my mind as an effective motivational tool. I figured that if I was not feeling motivated to go after a particular goal, may be there was a logical reason for it. I noted that when I had strong intellectual reasons for doing something. I usually did not have trouble taking action.But when my mind thinks a goal is wrong on some level. I usually feel blocked. I eventually realised that this was my mind’s way of telling me the goal was a mistake to begin with. Sometimes a goal seem to make sense on one level but when you look further upstream, it becomes clear that the goal is ill advised. Suppose you work in sales, and you get a goal to increase your income by 20% by becoming a more effective salesperson. That seems like a reasonable and intelligent goal. But may be you are surprised to find yourself encountering all sorts of internal blocks when you try to pursue it. You should feel motivated, but you just don’t. The problem may be that on a deeper level your mind knows you don’t want to be working in sales at all. You really want to be a musician. Matter how hard you push yourself in sales career, it will always be a motivational dead end.Further when you set goals, that are too small and too timid, you suffer a perpetual lack of motivation. You just need to summon the courage to acknowledge your true desires. Then you will have to deal with the self-doubt and fear that’s been making you think too small. Ironically, the real key to motivation is to set the goals that scare you. You are letting fears, excuses and limiting beliefs hold you back. Your subconscious mind knows you are strong, so it won’t provide any motivational fuel until. You step up, face your fears, and acknowledge your hearts desire. Once you finally decide to face your tears and drop the excuses, then you will find your motivation turning on full blast.What does the author want to convey when he says, “When you look further upstream, it becomes clear that the goal is ill advised.”?
 ....
MCQ-> In the following questions, you have two passages with 5 questions in each passage. Read the passages carefully and choose the best answer to each question out of the four alternatives. Why don’t I have a telephone? Not because I pretend to be wise or pose as unusual. There are two chief reasons; because I don’t really like the telephone, and because I find I can still work and play, eat, breathe, and sleep without it. Why don’t I like the telephone? Because I think it is a pest and time waster. It may create unnecessary suspense and anxiety, as when you wait for an expected call, that doesn’t come; or irritating delay, as when you keep ringing a number that is always engaged. As for speaking in a public telephone booth, it seems to me really horrible. You would not use it unless you were in a hurry, and because you are in a hurry, you will find other people waiting before you. When you do get into the booth, you are half suffocated by the stale, unventilated air, flavoured with cheap face-powder and chain smoking; and by the time you have begun your conversation your back is chilled by the cold looks of somebody who is moving about restlessly to take your place.If you have a telephone in your house, you will admit that it tends to ring when you least want it to ring: when you are asleep, or in the middle of a meal or a conversation, or when you are just going out, or when you are in your bath. Are you strong minded enough to ignore it, to say to yourself. “Ah well, it will be all the same in hundred years time”. You are not. You think there may be some important news or message for you. Have you never rushed dripping from the bath, of chewing from the table, or dazed from bed, only to be told that you are a wrong number? You were told the truth. In my opinion all telephone numbers are wrong numbers. IL of course, your telephone rings and you decide not to answer it, then you will have to listen to an idiotic bell ringing and ringing in what is supposed to be the privacy of your own home. You might as well buy a bicycle bell and ring it Yourself.The author does not have a telephone because
 ....
Terms And Service:We do not guarantee the accuracy of available data ..We Provide Information On Public Data.. Please consult an expert before using this data for commercial or personal use
DMCA.com Protection Status Powered By:Omega Web Solutions
© 2002-2017 Omega Education PVT LTD...Privacy | Terms And Conditions