تم الحل ✓
categoryهندسة الحاسبات
schoolبكالوريوس
event_available2026-07-15
السؤال
Transcribed Image Text:
SOLVE The following all the sub part questions from AtoD
A) Consider the following codes and choose the correct option
CODE I
X=ones (too);
for P=1: length (XC:))
P= pi*x();
end
a) CODEI is most time efficient b)Both
CODE TI
i=1;
x= ones (100);
while ik: length (x(:))
P= pi*x(i);
end
COD ET and CODE IT takes same
time and produces same output
Both CODET and CODE II takes d) CODE II is most time efficient
Same time and produces
different out put]
B) consider the following MATLAB Code:
a=1;
while a<= 6
a= 3* a -1;
end
How many times the loop repeats?
a) 6
c) 3
c) Calculate the value of dicot)
14
dt
TH
b) 5
v(t)
9)8A/S
c) 9 A/S
0) 9.5 Als
d) 8.5 Als
d) calculate short circuit out put admittances.
31
a) 3/4
w
6)-2
2л
62
452
c) ½
d) ½
check_circle الجواب — حل مفصل خطوة بخطوة
hourglass_top
🔒
الحل الكامل متاح للمشتركين
اشترك في أرشيف الأسئلة لعرض هذا الحل وآلاف الحلول المفصلة خطوة بخطوة من معلمين معتمدين.