亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? ssd6-choice.txt

?? ssd6 exam 選擇題的答案
?? TXT
?? 第 1 頁 / 共 5 頁
字號:
Analyze the source code to find programming errors. 
Decode machine code generated by a compiler. 
Stop execution of a program. 
 
 

  (a) I and III only
 (b) II and III only
 (c) III only
 (d) I, II, and III.  

 Correct answer is  (b)  

 Your score on this question is: 0.00  

 Feedback: 
   See section 1.1.3 of the course notes.  
 

--------------------------------------------------------------------------------

 2. 
 Consider the following fragment of C++ source code. 
String msg; unsigned int x; int y;
cin >> msg >> x >> y;
cout << x + y;

Which of the following is (are) true regarding execution of the segment? 
The input statement will always take the same amount of time to execute. 
The output statement will always be executed immediately after the input statement. 
If x and y are both positive, an integer greater than both will be printed. 
 
 

  (a) I and II only
 (b) none
 (c) II and III only
 (d) II only  

 Correct answer is  (b)  

 Your score on this question is: 7.14  

 Feedback: 
   See section 1.1.1 of the course notes.  
 

--------------------------------------------------------------------------------

 3. 
 When using a debugger to find the cause of a program's incorrect behavior,  
 

  (a) the program is usually executed to the point at which the behavior occurs and then executed backwards to find the cause
 (b) the faulty code fragment must first be identified
 (c) it is fastest to start by stopping the debugger long before the behavior appears
 (d) it is often necessary to start the program multiple times under the debugger  

 Correct answer is  (d)  

 Your score on this question is: 0.00  

 Feedback: 
   See section 1.2.4 of the course notes.  
 

--------------------------------------------------------------------------------

 4. 
 When debugging using Visual C++, which of the following are possible through the Watch window? 
The program's execution can be stopped. 
The value of an arbitrary C expression can be calculated. 
The value of a program variable can be set. 
 
 

  (a) II only
 (b) III only
 (c) I, II, and III.
 (d) II and III only  

 Correct answer is  (d)  

 Your score on this question is: 0.00  

 Feedback: 
   See section 1.2.3 of the course notes.  
 

--------------------------------------------------------------------------------

 5. 
 Activation records are organized in stacks because  
 

  (a) they are seldom needed during program execution.
 (b) stacks are simple enough for the hardware to manage.
 (c) stacks allow activation records to be pushed and popped in any order.
 (d) functions need to access all the variables of the functions that call them.  

 Correct answer is  (b)  

 Your score on this question is: 0.00  

 Feedback: 
   See section 1.4.2 of the course notes.  
 

--------------------------------------------------------------------------------

 6. 
 Consider the following program. 
int square(int * arg) {
    int n = * arg;
    return n * n;
}
int main (int argc, char * argv[]) {
    int arg = strtol(argv[1], NULL, 0);
    return square(arg);
}

When it is executed with the argument 5, the variable n is allocated to  
 

  (a) many addresses chosen by the compiler.
 (b) exactly one address chosen by the compiler.
 (c) exactly one address not known to the compiler.
 (d) many addresses neither of which are known to the compiler.  

 Correct answer is  (c)  

 Your score on this question is: 0.00  

 Feedback: 
   See section 1.4.1 of the course notes.  
 

--------------------------------------------------------------------------------

 7. 
 Consider the following program. 
int i;
int j = 1;
int callee(int number) {
    int plusone;
    plusone = number + 1;
    return plusone;
}
int main (int argc, char *argv[]) {
    if (j == 1) return callee(i);
    return j;
}

Which of the following are allocated in the activation record immediately after the function callee() is invoked?  
 

  (a) plusone only.
 (b) i, j and number only.
 (c) i only.
 (d) plusone and number only.  

 Correct answer is  (d)  

 Your score on this question is: 0.00  

 Feedback: 
   See section 1.4.2 of the course notes.  
 

--------------------------------------------------------------------------------

 8. 
 What does the following program print? 
int callee(int * count) {
    count++;
    return *count;
}
int main (int argc, char *argv[]) {
    int count = 4;
    int retval;
    retval = callee(&count);
    printf("%d", retval);
    return 0;
}

 
 

  (a) 8
 (b) 5
 (c) cannot be determined from the information given.
 (d) 4  

 Correct answer is  (c)  

 Your score on this question is: 7.14  

 Feedback: 
   See section 1.4.1 of the course notes.  
 

--------------------------------------------------------------------------------

 9. 
 In a computer in which both addresses and integers are 32 bits wide, how many bytes of memory will the compiler allocate as a result of the following pointer declaration? 
int * pointer;  
 

  (a) 4
 (b) 8
 (c) 0
 (d) 64  

 Correct answer is  (a)  

 Your score on this question is: 7.14  

 Feedback: 
   See section 1.3.2 of the course notes.  
 

--------------------------------------------------------------------------------

 10. 
 Consider the following code fragment. 
int a;
int b;
int main(int argc, char *argv[]) {
   int c;
   int d;
   ...
   /* some code */
}

Which of the following must be true?  
 

  (a) The value of *d is closer to the value of *c than to the value of *a.
 (b) The values of *a and *b are closer to each other than the values of *c and *d.
 (c) The value of &d is closer to the value of &c than to the value of &a.
 (d) The values of &a and &b are closer to each other than the values of &c and &d.  

 Correct answer is  (c)  

 Your score on this question is: 7.14  

 Feedback: 
   See section 1.3.1 of the course notes.  
 

--------------------------------------------------------------------------------

 11. 
 Which of the following is a good reason (are good reasons) to equip the CPU with small amounts of fast memory? 
To make the design of the compiler simpler 
To make some CPU instructions smaller 
To make some CPU instructions faster 
 
 

  (a) III only
 (b) I, II, and III
 (c) II only
 (d) II and III only  

 Correct answer is  (d)  

 Your score on this question is: 0.00  

 Feedback: 
   See section 1.5.3 of the course notes.  
 

--------------------------------------------------------------------------------

 12. 
 Programs compiled for an Intel Pentium processor do not execute properly on a SPARC processor from Sun Microsystems because  
 

  (a) the assembly mnemonics for the same "opcode" are different in the two processors
 (b) copyrights regarding code cannot be violated
 (c) the operation codes understood by the two processors are different
 (d) the memory of a SPARC CPU is numbered from top to bottom  

 Correct answer is  (c)  

 Your score on this question is: 0.00  

 Feedback: 
   See section 1.5.1 of the course notes.
   (a) The assembly mnemonics can be different and yet assemble into the same opcodes  
 

--------------------------------------------------------------------------------

 13. 
 Immediately after the CPU executes an instruction that is neither a branch nor a jump instruction, the program counter  
 

  (a) has a value that cannot be determined without further information
 (b) is incremented to point to the following instruction
 (c) remains unchanged
 (d) is incremented by one  

 Correct answer is  (b)  

 Your score on this question is: 0.00  

 Feedback: 
   See section 1.5.2 of the course notes.  
 

--------------------------------------------------------------------------------

 14. 
 A branch instruction  
 

  (a) sets the program counter to one of two possible values
 (b) sets the program counter to one of many possible values
 (c) increases the program counter by a fixed amount
 (d) unconditionally sets the program counter to its operand  

 Correct answer is  (a)  

 Your score on this question is: 0.00  

 Feedback: 
   See section 1.5.2 of the course notes.  
 

--------------------------------------------------------------------------------

 Go to top of assessment.  

 Total score: 28.57 

 ? Copyright 2005 iCarnegie, Inc. All rights reserved.  
View Assessment Result: Multiple-Choice Quiz 1


 

 Your performance was as follows:  

 1. 
 Compared to a sequence of machine code instructions, a fragment of C code  
 

  (a) may describe the same algorithm
 (b) describes the actions of the computer, not just of the CPU
 (c) is the native way to program most computers
 (d) does not engage any transistors during its execution  

 Correct answer is  (a)  

 Your score on this question is: 7.14  

 Feedback: 
   See section 1.1.2 of the course notes.  
 

--------------------------------------------------------------------------------

 2. 
 Which of the following does a debugger do? 
Analyze the source code to find programming errors. 
Decode machine code generated by a compiler. 
Stop execution of a program. 
 
 

  (a) I and III only
 (b) III only
 (c) I, II, and III.
 (d) II and III only  

 Correct answer is  (d)  

 Your score on this question is: 7.14  

 Feedback: 
   See section 1.1.3 of the course notes.  
 

--------------------------------------------------------------------------------

 3. 
 In Visual C++, a Win32 Console Application is  
 

  (a) the simplest type of application Visual C++ can generate
 (b) the status window of the Visual C++ environment
 (c) built by using sophisticated "Application Wizards"
 (d) a program that is able to control the operating system of a windows computer  

 Correct answer is  (a)  

 Your score on this question is: 0.00  

 Feedback: 
   See section 1.2.1 of the course notes.  
 

--------------------------------------------------------------------------------

 4. 
 When debugging using Visual C++, which of the following are possible through the Watch window? 
The program's execution can be stopped. 
The value of an arbitrary C expression can be calculated. 
The value of a program variable can be set. 
 
 

  (a) II only
 (b) III only
 (c) I, II, and III.
 (d) II and III only  

 Correct answer is  (d)  

 Your score on this question is: 7.14  

 Feedback: 
   See section 1.2.3 of the course notes.  
 

--------------------------------------------------------------------------------

 5. 
 Consider the function factorial() defined as follows. 
int factorial(int n) {
    if (n == 1) return n;
    return n * factorial(n - 1);
}

How many activation records of factorial are allocated by invocation of the expression factorial(4)?  
 

  (a) 5
 (b) 4
 (c) 0
 (d) 1  

 Correct answer is  (b)  

 Your score on this question is: 7.14  

 Feedback: 
   See section 1.4.2 of the course notes.  
 

--------------------------------------------------------------------------------

 6. 
 When executing a function callee(), which of the following are true regarding the value of the frame pointer? 
It marks the top of the stack frame of the function that invoked callee(). 
It marks the bottom of the stack frame of callee() 
It is the top of the stack. 
 
 

  (a) I and II only
 (b) III only
 (c) II only
 (d) I only  

 Correct answer is  (a)  

 Your score on this question is: 7.14  

 Feedback: 
   See section 1.4.2 of the course notes.  
 

--------------------------------------------------------------------------------

 7. 
 At which of the following times is an activation record created? 
When a program starts executing. 
Every time a function is invoked. 
When a variable is declared. 
 
 

  (a) III only
 (b) I and II only
 (c) II and III only
 (d) II only  

 Correct answer is  (b)  

 Your score on this question is: 7.14  

 Feedback: 
   See section 1.4.2 of the course notes.
   (b) The program starts executing by calling the function main().  
 

--------------------------------------------------------------------------------

 8. 
 What does the following program print? 
void callee(int * count) {
    count++;
}
int main (int argc, char *argv[]) {
    int count = 4;
    callee(&count);
    printf("%d", count);
    return 0;
}

 
 

  (a) 5
 (b) 8
 (c) cannot be determined from the information given.
 (d) 4  

 Correct answer is  (d)  

 Your score on this question is: 0.00  

 Feedback: 
   See section 1.4.1 of the course notes.  
 

--------------------------------------------------------------------------------

 9. 
 Consider the following segment of a C program. 
int i = 99;
int a[100];
i = a[i + 1];

Which of the following is true of the segment?  
 

  (a) When executed, the program will be prematurely terminated by the operating system because of an illegal memory access.
 (b) i will have the value of the last element of the array a at the end of any execution of the segment.
 (c) i will have the value 99 at the end of any execution of the segment.
 (d) Execution will fail because a has the wrong size.  

 Correct answer is  (c)  

 Your score on this question is: 7.14  

 Feedback: 
   See section 1.3.5 of the course notes.  
 

--------------------------------------------------------------------------------

 10. 
 In one computer, the bytes with addresses A, A+1, A+2 and A+3 contain the integer 256, and the variable declared with int * a; has the value A. In a different computer, the bytes with addresses B, B+1, B+2 and B+3 also contain the integer 256, and the variable declared with int * b has the value B. Which of the following are necessarily true? 
The contents of A+1 are equal to the contents of B+1. 
The contents of A+1 are equal to the contents of B+2. 
*a == *b 

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久久久99精品国产片| 亚洲综合丝袜美腿| 亚洲综合图片区| 国产丶欧美丶日本不卡视频| 91成人免费电影| 国产性做久久久久久| 三级亚洲高清视频| 日本久久一区二区| 中文字幕av一区二区三区高| 天天av天天翘天天综合网色鬼国产| 国产激情视频一区二区在线观看| 制服丝袜日韩国产| 亚洲一线二线三线久久久| 成人午夜视频福利| 久久久久久久综合| 久久超碰97中文字幕| 欧美精品丝袜久久久中文字幕| 亚洲天堂精品视频| 99久久99精品久久久久久| 久久色视频免费观看| 另类小说色综合网站| 91.com在线观看| 午夜视频在线观看一区二区三区| 一本到高清视频免费精品| 国产精品成人在线观看| 成人av电影免费在线播放| 久久久久久免费| 国产高清一区日本| 国产精品伦一区二区三级视频| 国产麻豆精品一区二区| 久久久久久免费网| 高清成人在线观看| 国产精品理伦片| 99国产精品国产精品毛片| 亚洲天堂成人在线观看| 欧美性猛交xxxx乱大交退制版| 一区二区三区免费在线观看| 91麻豆精东视频| 亚洲精品视频一区二区| 91福利在线播放| 天堂久久一区二区三区| 欧美一区二区三级| 美女久久久精品| 久久中文娱乐网| 国产精华液一区二区三区| 国产精品网站在线观看| 91网页版在线| 亚洲影院在线观看| 91精品国产麻豆| 精品无人码麻豆乱码1区2区| 久久久久国产免费免费| av中文字幕亚洲| 亚洲国产视频a| 日韩免费视频线观看| 国产成人精品影视| 亚洲精品中文在线影院| 欧美揉bbbbb揉bbbbb| 日日摸夜夜添夜夜添精品视频| 欧美一区二区三区色| 国产成人免费视频网站| 亚洲天堂中文字幕| 7777精品伊人久久久大香线蕉 | 日韩欧美精品在线视频| 国产传媒欧美日韩成人| 亚洲三级在线观看| 日韩亚洲欧美一区| 成人精品亚洲人成在线| 亚洲午夜久久久久久久久电影网 | 亚洲欧美综合另类在线卡通| 日本电影亚洲天堂一区| 免费人成网站在线观看欧美高清| 国产精品欧美一区喷水| 欧美电影一区二区三区| 成人免费黄色大片| 全部av―极品视觉盛宴亚洲| 国产精品国产三级国产三级人妇| 欧美精品丝袜中出| 91污在线观看| 国产精品一线二线三线| 亚洲成人tv网| 欧美激情一二三区| 日韩一级大片在线观看| 99re热视频精品| 国内一区二区在线| 亚洲6080在线| 亚洲视频免费观看| 久久久久国产一区二区三区四区| 欧美日韩一区二区三区四区五区 | ...xxx性欧美| 久久影音资源网| 欧美精品丝袜久久久中文字幕| av一区二区久久| 国产电影一区二区三区| 精品一区二区三区在线播放视频| 一级中文字幕一区二区| 国产精品久久久一本精品 | 国产一区日韩二区欧美三区| 天天色图综合网| 一二三区精品福利视频| 日韩理论电影院| 国产精品久久久久影院色老大| 欧美sm美女调教| 91精品久久久久久久久99蜜臂| 91视频免费播放| jiyouzz国产精品久久| 国产a视频精品免费观看| 精油按摩中文字幕久久| 另类欧美日韩国产在线| 同产精品九九九| 亚洲高清视频中文字幕| 亚洲香蕉伊在人在线观| 亚洲综合一区二区| 亚洲精品中文在线观看| 亚洲精品精品亚洲| 一区二区三区在线高清| 亚洲精品乱码久久久久久| 亚洲欧美日韩电影| 亚洲欧美另类小说| 亚洲自拍偷拍av| 午夜精品福利一区二区蜜股av | 中文字幕中文乱码欧美一区二区| 欧美经典三级视频一区二区三区| 久久精品网站免费观看| 国产精品传媒视频| 亚洲黄色小说网站| 午夜久久久久久久久| 日韩精品一二三| 秋霞电影一区二区| 精品无人码麻豆乱码1区2区| 国产精品2024| 色婷婷久久综合| 欧美美女喷水视频| 精品999在线播放| 国产亚洲欧美一区在线观看| 国产精品美女久久久久av爽李琼 | 欧美国产精品v| 亚洲美女视频在线| 五月开心婷婷久久| 精品无人区卡一卡二卡三乱码免费卡| 国产电影一区二区三区| 一本到一区二区三区| 日韩一级片在线播放| 久久久久久97三级| 亚洲综合免费观看高清在线观看| 日韩黄色片在线观看| 国产精品一二三区| 在线免费不卡视频| 精品日韩在线观看| 亚洲精品成人少妇| 蜜桃视频在线观看一区二区| 成人午夜视频网站| 日韩一区二区三区在线| 国产精品久久一卡二卡| 亚洲一区二区在线观看视频| 精品在线观看视频| 色婷婷久久久亚洲一区二区三区| 欧美一级专区免费大片| 亚洲国产精品成人久久综合一区| 亚洲精品成人悠悠色影视| 久草中文综合在线| 在线中文字幕不卡| 久久久久久一二三区| 亚洲成人资源在线| 成人一区二区三区中文字幕| 欧美日韩精品福利| 国产精品入口麻豆原神| 午夜国产精品一区| 波多野结衣欧美| 精品国精品国产| 亚洲自拍都市欧美小说| 菠萝蜜视频在线观看一区| 精品国产网站在线观看| 午夜精品久久久久久久久| 高清不卡在线观看| 日韩精品一区二区三区在线 | 亚洲天堂久久久久久久| 国产一区二区三区在线观看精品| 欧美视频一二三区| 1024精品合集| 国产成人精品在线看| 精品999在线播放| 蜜乳av一区二区三区| 欧美三级韩国三级日本三斤| 亚洲丝袜制服诱惑| 成人h版在线观看| 精品国产伦一区二区三区观看方式 | 99久久777色| 亚洲国产精品ⅴa在线观看| 精品一区二区三区av| 欧美一区午夜视频在线观看| 亚洲制服丝袜一区| 欧美性猛交xxxx黑人交| 亚洲乱码国产乱码精品精98午夜| 国产成人精品www牛牛影视| 欧美成人a视频| 久久国产综合精品| 日韩免费视频一区二区| 久久99精品久久久久久动态图| 日韩欧美亚洲国产另类| 欧美aaaaa成人免费观看视频|