<< Prev Showing: 131-135 of 348 Next >>
· 106-110 · 111-115 · 116-120 · 121-125 · 126-130 · 131-135 · 136-140 · 141-145 · 146-150 · 151-155 · 156-160 ·You have functions that you wish to call for various individual year values, as well as ranges of years, and you are deciding on whether to use an if statement or a switch statement. The ranges and functions are: o 1900 to 1969 functionA() o 1969 to 2000 functionB() o 2001 functionC() o 2002, 2003 functionD() o 2004 and beyond functionE() Do you think it would be better to set this up as an if statement, a switch statement, or a combination? Write the code if it helps to explain your answer.
Subject:
Computer Science
Topic:
Software Tools and Systems Programming.
Posting ID:
100333
OTA ID:
104597
What does this tell you about setting up conditional expressions in the C language?
What will be printed by the following code? int a = 3; if (a <= 5) if (a < 2) printf(a is less than 2n); else printf(a is greater than 5n); printf(done); Why does this occur? What if the initial value assigned to a is 13, not 3? What happens with this code and why does this occur? What does this tell you about setting up conditional expressions in the C language?
Subject:
Computer Science
Topic:
Software Tools and Systems Programming.
Posting ID:
100334
OTA ID:
103644
Do you think that the following C code will compile?
Do you think that the following C code will compile? Why or why not? What will be printed by it? char c; c = '1'; switch (c) { case 1 : printf("It is 1n"); break; case 2 : printf("It is 2n"); break; case 49: printf("It is 49n"); }
Subject:
Computer Science
Topic:
Software Tools and Systems Programming.
Posting ID:
100335
OTA ID:
104597
Why would recursion be considered a valuable technique?
Recursion means a function calling itself. For example: int f1() { f1(); } Why would recursion be considered a valuable technique? Can you see any dangers associated with recursion?
Subject:
Computer Science
Topic:
Software Tools and Systems Programming.
Posting ID:
100336
OTA ID:
103644
As you are writing a program, you will begin to conduct testing on your code as it becomes completed and operational. This is generally called unit testing. Describe how you feel unit testing should be conducted for a program with lots of conditional expressions.
Subject:
Computer Science
Topic:
Software Tools and Systems Programming.
Posting ID:
100337
OTA ID:
103644
<< Prev Showing: 131-135 of 348 Next >>
· 1-5 · 6-10 · 11-15 · 16-20 · 21-25 · 26-30 · 31-35 · 36-40 · 41-45 · 46-50 · 51-55 · 56-60 · 61-65 · 66-70 · 71-75 · 76-80 · 81-85 · 86-90 · 91-95 · 96-100 · 101-105 · 106-110 · 111-115 · 116-120 · 121-125 · 126-130 · 131-135 · 136-140 · 141-145 · 146-150 · 151-155 · 156-160 · 161-165 · 166-170 · 171-175 · 176-180 · 181-185 · 186-190 · 191-195 · 196-200 · 201-205 · 206-210 · 211-215 · 216-220 · 221-225 · 226-230 · 231-235 · 236-240 · 241-245 · 246-250 · 251-255 · 256-260 · 261-265 · 266-270 · 271-275 · 276-280 · 281-285 · 286-290 · 291-295 · 296-300 · 301-305 · 306-310 · 311-315 · 316-320 · 321-325 · 326-330 · 331-335 · 336-340 · 341-345 · 346-348 ·Page generated in 0.0958 seconds