logo

Crowdly

Browser

Add to Chrome

Тестування програмних систем

Looking for Тестування програмних систем test answers and solutions? Browse our comprehensive collection of verified answers for Тестування програмних систем at exam.nuwm.edu.ua.

Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!

Методом наскрізного перегляду коду протестуйте С-програму та визначте, що виконується у фрагменті програми:

struct ok { int number; char name;struct ok *next; };

int i;

struct ok * current, *first, *last;

first=(struct ok*)malloc(sizeof(struct ok));

first->next=NULL;

first->number=0;

gets(first->name);

last=first;

for(i=1;i<100;i++)

{

current=(struct ok*)malloc(sizeof(struct ok));

current->number=i;

gets(current->name);

current ->next=NULL;

last->next=current;

last=last->next;

}

View this question

Методом наскрізного перегляду коду протестуйте програму та визначте, що виконує фрагмент програми

struct spysok * rob=first;

while (rob->next->number!=15 && rob->next!=NULL) rob=rob->next;

if(rob!=NULL) {

struct spysok *current=rob->next;

rob->next=rob->next->next;

free(current);}

else puts(“такого елемента немає”);

View this question

Чек-лист тестування це :

View this question

Протестуйте програму та вкажіть перший рядок, де може бути помилка :

1 struct spysok * rob=first;

2 while (rob.next->number!=5 && rob->next!=NULL) rob=rob->next;

3 if(rob!=NULL) {

4 struct spysok *current=rob->next;

5 rob->next=rob->next->next;

6 free(current);}

7 else puts(“такого елемента немає”);

View this question

Тестове покриття визначається як:

View this question

Вкажіть, у якому операторі допущена помилка. Функція реалізовує бульбашкове сортування масиву :

b(char *s)

{

int i;

int need =0;

while( need ){

need = 0

for(i=0; s[i+1]; i++ )

if( s[i] >s[i+1] ){

swap( &s[i], &s[i+1] ); //обмін

need = 1;

} }}

0%
0%
0%
0%
View this question

План тестування може включати

View this question

Для фінального регресійного тестування відбирають в першу чергу тести, які

View this question

Методом наскрізного перегляду коду протестуйте програму та визначте, що може виконуватись у фрагменті програми

struct spysok* rob=first;

while (rob->number!=0 && rob!=NULL) rob=rob->next;

if(rob!=NULL) puts(rob->name);

else puts(“такого елемента намає”);

View this question

Вкажіть номер рядка в фрагменті коду, де міститься помилка

1 int *p;

2 int a=2;

3 p=a;//р містить адресу змінної а

4 int b;

5 b=p;//b містить значення 2

View this question

Want instant access to all verified answers on exam.nuwm.edu.ua?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome