Exam Flashcards

1
Q

Two C Unit libraries.

A

include <CUnit/CUnit.h>

#include <CUnit/Basic.h>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Syntax for run all tests function.

A

CU_initialize_registry();

CU_pSuite average_suite = CU_add_suite(“average_suite”, 0, 0);
CU_add_test(average_suite, “elements_dif_testcase”, elements_dif_testcase);//all elements are different

CU_pSuite maximum_suite = CU_add_suite(“maximum_suite”, 0, 0);
CU_add_test(maximum_suite, “elements_dif_testcase_max”, elements_dif_testcase_max);//all elements are different

CU_basic_run_tests();
CU_cleanup_registry();

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Syntax for individual test case.

A

CU_ASSERT_EQUAL( function(parameters), expected answer);

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

MyRound function.

A

double my_round(double x, unsigned int digits) {
if (digits > 0) {
return my_round(x*10.0, digits-1)/10.0;
}
else {
return round(x);
}
}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

LoadBoard From File Function

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

SaveBoard To File Function

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

EditName of List Function

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Add List Function

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Delete List Function

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

EditName of item function

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Add item function

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Delete item function

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Print list function

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Display Gantt function.

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Test Gantt function.

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Input Gantt function

A
17
Q

Add Task function.

A
18
Q

Delete Task function.

A
19
Q

Edit Task function.

A
20
Q

Inputs songs and artists function.

A
21
Q

Print songs and artists function.

A
22
Q

Sort Artists Function.

A
23
Q

Sort Songs Function.

A
24
Q

Shuffle Songs Function.

A