GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Placement Papers  >  Integra  >  Aptitude
Go To First  |  Previous Question  |  Next Question 
 Aptitude  |  Question 2 of 21    Print  
Optimize the below for time:
int i;
if i=0 then i:=1;
if i=1 then i:=0;
(given that i can take only two values (1,0))


  
Total Answers and Comments: 1 Last Update: March 17, 2006   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
March 17, 2006 04:25:40   #1  
Inicko        

RE: Optimize the below for time:int i;if ...
i 1-i
 
Is this answer useful? Yes | No

 Related Questions

Latest Answer : Optimize the below for time:int i;if i=0 then i:=1;if i=1 then i:it is the question i want to know the answer. ...

Optimize the below for time: int i; if i=0 then i:=1; if i=1 then i:=0; (given that i can take only two values (1,0))

Optimize the below for time: int i; if i=0 then i:=1; else if i=1 then i:=0; (given that i can take only two values (1,0))

In the following question answer A, B, C, D depending on when the errors are detected? Array overbound A. if no error is detected B. if semantic and syntactic checking C. if during Code generation & Symbol allocation D. run time

In the following question answer A, B, C, D depending on when the errors are detected? Undeclared identifier A. if no error is detected B. if semantic and syntactic checking C. if during Code generation & Symbol allocation D. run time

In the following question answer A, B, C, D depending on when the errors are detected? Stack underflow A. if no error is detected B. if semantic and syntactic checking C. if during Code generation & Symbol allocation D. run time

In the following question answer A, B, C, D depending on when the errors are detected? Accessing an illegal memory location A. if no error is detected B. if semantic and syntactic checking C. if during Code generation & Symbol allocation D. run time

What is the essential requirement for a real-time systems A.  pre-emption B.  virtual memory C.  paging etc


 Sponsored Links

 
Related Articles

What is Data Collection Time

Modern Relational Database Management Systems can be configured to collect data at certain events.  In a business, some of the events are sale, order, deposit, pay, request and many more. Events are really business activities in a company.  Big companies, in order to gain competiti
 

Assign values during declaration

How to assign values during declaration of variables Declaring variables tells the compiler the data type the variable is assigned and no storage area is allocated during this stage. It is possible to assign values during declaration itself. For example, consider the following program: main() {
 

The Right Time To Make A Career Change

Changing careers is one of the most crucial stages in one’s career life. There are employees who get into the career change phase earlier than other employees. But no matter how an employee enjoys his or her current career, there would come a time that an employee would think of shifting c
 

Supply Chain Management : Just In Time

Supply Chain  Management Just In Time Introduction In the realm of supply chain management Just in time” refers to an inventory strategy that it used to improve a business’ s return on investment through a reduction of in process inventory and all related costs Just in
 

Passing values to JavaScript Function

Passing values to JavaScript Function In this JavaScript Tutorial you will learn about how to pass values to and also how to return values from a JavaScript function mosgoogle center Passing Values to function Values can be passed to a function as parameters The general syntax for passing values to
 

The Connection of the 80/20 Principle With Time Management

The Connection of the 80 20 Principle With Time Management In the early part of the 20th century an economist named Vilfredo Pareto came up with a mathematical system that explained the unequal share of wealth in society He determined that in most societies eighty percent of the wealth is almost alw
 

The Connection Between Time and Money

The Connection Between Time and Money You have probably heard people use the statement time is money" many times While it sounds like a simple statement it is much more complex then you may think There are certain connections that time has with money but there are also some notable differ
 

The Importance Of Scheduling For Time Management

The Importance Of Scheduling For Time Management Once you have set goals to achieve something you will need to begin properly managing your time in order to work towards these goals After you have created a To Do list you will next need to create a schedule which will allow you to complete all the i
 

Activity Logs Are An Important Tool For Time Management

Activity Logs Are An Important Tool For Time Management In addition to schedules and To Do lists activity logs are very useful in helping you manage your time They allow you to systematically study the way you spend your time When most people view their information on an activity log for the first t
 

How To Use Business Planning To Manage Your Time

How To Use Business Planning To Manage Your Time Just as it is important for you to eat a good breakfast before you start work each day it is also important for you to practice business planning in order to become skilled at time management mosgoogle Business planning will give you the energy you ne
 

Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape