Join Regular Classroom : Visit ClassroomTech

Infosys Pseudocede & Puzzle Solved – codewindow.in

Set Integer Emp_no=101Set Integer salary=0while (Emp_no=501)
salary=salary+100
display salary
end-while
Set Integer res=0do
--res
display res
res++
while(res>=0)
end do-while
for m = 0 to 4 step 1 dofor n=0 to 4 step 1 do
display '#'end-forif(m==2) then dobreakend-ifend-for
for i=0 to 4 step 1 do
If i==i++ + --i then do
display i
end-ifend-for
Set Character c='7'switch(c)
case '1': display "One"case '7': display "Seven"case '2': display "Two"default: display "Hello"break
end-switch

A car company carried out a survey on the twenty five new cars being sold at a dealer’s showroom in order to check if the cars were installed with air conditioning, music player and power windows. Following are some points that were accumulated over the survey.

a) 15 cars had air conditioning.
b) 2 cars had air conditioning and power windows but no music player.
c) 12 cars had music player
d) 6 cars had air conditioning and music player but no power windows were present
e) 11 cars had power windows
f) 1 car had music player and power windows but no air conditioning
g) 3 cars had all the three things installed

Alpha, Beta, Gamma, Delta, Epsilon and Zeta are friends. Out of them, two are housewives, one lecturer, one architect, one accountant and a lawyer. Two marries couples also exist in the group of friends. The lawyer is married to Delta who is a housewife. None of the ladies of the group is an architect or an accountant. Gamma, the accountant is married to Zeta who is a lecturer. Alpha is married to Delta. Epsilon is not a housewife.

Also Checkout

Recent Posts
Categories
Pages