print a pattern of abcdcba
abc cba
ab ba
a a
ab ba
abc cba
abcdcba



print a pattern of abcdcba abc cba ab ba a a ab ba abc cba abc..

Answer / Mahendra

To print the given pattern, you can use a loop in any programming language. Here's an example in Python:n```pythonnfor i in range(7):n if i % 2 == 0:n print('abc cba'[i//2:]+ ' ba'[(i+1)//2] + ('a a' if i == 3 else ''))n elif i == 6:n print('abcdcba')nelse:n print('ab ba')n```

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Chemical Engineering Interview Questions

At 150 degree Celsius, a mixture of 40 wt % Sn and 60 wt % Pb present, forming phases of alpha and beta. Chemical composition of Sn at each phase : CO (overall) : 40 %, CA (alpha) : 11 %, CB (beta) : 99 %. (a) State 2 reasons for the existences of alpha and beta phases for the mixture of Sn – Pb at 150 degree Celsius. (b) By using Lever Rule, calculate the weight fraction of each phase for alpha, WA = Q / (P Q) and beta, WB = P / (P Q) where Q = CB – CO and P = CO – CA.

1 Answers  


Question 49 - According to rules of thumb in chemical process design, consider the use of an expander for reducing the pressure of a gas when more than 20 horsepowers can be recovered. The theoretical adiabatic horsepower (THp) for expanding a gas could be estimated from the equation : THp = Q [ Ti / (8130a) ] [ 1 - (Po / Pi) ^ a ] where 3 ^ 3 is 3 power 3 or 27, Q is volumetric flowrate in standard cubic feet per minute, Ti is inlet temperature in degree Rankine, a = (k - 1) / k where k = Cp / Cv, Po and Pi are reference and systemic pressures respectively. (a) Assume Cp / Cv = 1.4, Po = 14.7 psia, (temperature in degree Rankine) = [ (temperature in degree Celsius) + 273.15 ] (9 / 5), nitrogen gas at Pi = 90 psia and 25 degree Celsius flowing at Q = 230 standard cubic feet per minute is to be vented to the atmosphere. According to rules of thumb, should an expander or a valve be used? (b) Find the outlet temperature To by using the equation To = Ti (Po / Pi) ^ a.

1 Answers  


How can you prevent bridging in a dilute phase pneumatic conveying system?

1 Answers  


Explain how can one determine if a particular solid can be fluidized as in a fluidized bed?

1 Answers  


sir/mam . I am a fresh student of chemical engineeing. i've somuch fear to face intervies. I become neverse when entered into company. what shall I do? please suggest me some tips to face the interview.

3 Answers  


Question 61 – A biochemical trolley of mass 15 kg is towing a trailer of mass 5 kg along a straight horizontal pathway. The trailer and the trolley are connected by a light inextensible tow-bar. The engine of the trolley exerts a driving force of magnitude 100 N. The trailer and the trolley experience resistances of magnitude 10 N and 30 N respectively. (a) Form 2 equations with unknowns T and a, that represents the equilibrium for the 2 systems of the trolley and trailer. (b) Solve the simultaneous equations from the 2 equations that are obtained in part (a) of this question. T is the tension of the tow-bar and a is the acceleration.

1 Answers  


we have 2 O2/Comb Analyzers Servomex Model 2700 in service for one of the furnaces in our chemical plant. It is giving High Temperature Alarm. Checked Temperature and found it to be 800 Deg C whereas Set Point is 700 Deg c. It is strange why is temperature not at SP. Also response is 23 % with 21 % Inst Air and with N2 reading is not coming down. please clarrify this issuses very urgent

1 Answers  


What is a quick way to calculate frictional pressure drops in carbon steel pipe?

1 Answers  


Define octane number?

1 Answers  


Hallow everybody, we want to know in a NPk fertilizer process plant (Bulk Blender) we are in doubt if use square or rectangular hopper jus to avoid the vault effect durin the flow of of raw material like Phosphorus, Potasium and zeolite..Please any advise will be appresated Isdray

1 Answers  


What does extreme points in VLE curve represents??

4 Answers   Reddy Labs, Reliance,


What is composition of 18/8 stainless steel?

1 Answers  


Categories
  • Civil Engineering Interview Questions Civil Engineering (5086)
  • Mechanical Engineering Interview Questions Mechanical Engineering (4453)
  • Electrical Engineering Interview Questions Electrical Engineering (16638)
  • Electronics Communications Interview Questions Electronics Communications (3918)
  • Chemical Engineering Interview Questions Chemical Engineering (1095)
  • Aeronautical Engineering Interview Questions Aeronautical Engineering (239)
  • Bio Engineering Interview Questions Bio Engineering (96)
  • Metallurgy Interview Questions Metallurgy (361)
  • Industrial Engineering Interview Questions Industrial Engineering (259)
  • Instrumentation Interview Questions Instrumentation (3014)
  • Automobile Engineering Interview Questions Automobile Engineering (332)
  • Mechatronics Engineering Interview Questions Mechatronics Engineering (97)
  • Marine Engineering Interview Questions Marine Engineering (124)
  • Power Plant Engineering Interview Questions Power Plant Engineering (172)
  • Textile Engineering Interview Questions Textile Engineering (575)
  • Production Engineering Interview Questions Production Engineering (25)
  • Satellite Systems Engineering Interview Questions Satellite Systems Engineering (106)
  • Engineering AllOther Interview Questions Engineering AllOther (1379)