База ответов ИНТУИТ

Introduction to performance optimization using Intel SW tools

<<- Назад к вопросам

Choose code fragments which are good for optimizing

(Ответ считается верным, если отмечены все правильные варианты ответов.)

Варианты ответа
for(i=0;i<U;i++) {a[j]=b[i];  j+=c*i; }
(Верный ответ)
for(i=0;i<U;i++)    a[i]=b[i];
(Верный ответ)
i=0;                                              do {a[i]=b[i];                                                 i++; } while(i<U);
(Верный ответ)
for(i=0;i<n;i++) {a[i]=i;    if(i<t)   break;      }
Похожие вопросы
Choose the correct statements for the code:
DO I=1,N  S1 A(I) = B(I) + 1   S2 B(I+1) = A(I) – 5END DO
Choose the code resulting to the loop peeling for:
p = 10; for (i=0; i<10; ++i) {     y[i] = x[i] + x[p];   p = i;} 
Choose the correct statements for this code:
S1 PI = 3.14S2 R  = 5S3 AREA = PI*R **2
What of the following could be considered as a good style of programming?
Choose the correct statement
Choose the scalar optimization:
Choose the correct statement(s)
Choose the correct statement(s)
Choose the correct statements
Choose the correct statements