ImageVerifierCode 换一换
格式:DOCX , 页数:24 ,大小:31.38KB ,
资源ID:7552959      下载积分:12 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.bdocx.com/down/7552959.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(MFC的考试题英文.docx)为本站会员(b****5)主动上传,冰豆网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰豆网(发送邮件至service@bdocx.com或直接QQ联系客服),我们立即给予删除!

MFC的考试题英文.docx

1、MFC的考试题英文MFC的考试题2001 AnswerMastering MFC Fundamentals Tests Name:_ Number:_ First Section: Read the following statements carefully, please write T or F in the place of the anwer sheet to show it is true or false(10%): 1. An application is a static sequence of instructions that makes up an executable

2、 file. A process is usually defined as an instance of a running application.(T)2. Accelerator、 Bitmap、 Menu、 Toolbar、Statusbar are also standard Win32 GUI resource types. (F)3. MFC completely encapsulates the Windows API, freeing the developer from all SDK dependence.(F)4. The application framework

3、implements the message map data structure, which provides the link between the message ID and the function that will handle the message. (T) 5. Although the release version of a project is more efficient than its debug version, they use the same set of DLLs. (F) 6. There is more flexibility in routi

4、ng a command message than a Windows message since command messages can be handled by a wide variety of objects. (T)7. Pen, Brush, Font, Rectangle are all GDI Objects. (F) 8. The status bar can be easily managed with the status bar editor in Developer Studio. (F) 9. Most of the initial work to create

5、 a dialog box is the same for modal and modeless types. But the user need to write additional code for a modeless dialog box to enable reciprocal communication with its application. (T) 10. CString is a data type supported by MFCs serialization operators, the archive insertion() operators. (T) Secon

6、d Section: In this section, please choose the correct answer from the four statements in each of the following questions ( 36%): 1. Which of the following is a required function for all windows-based applications? (A) A WinMain B MyWndProc C WndMgr D GetMenu 2. CObject is the base class for most of

7、MFC. Which of the following is not the information and foundations that provides: (C) A Run-time class information B Diagnostic and debugging support C Some simple value types D Compatibility with collection classes 3. If you use MFC to develop a document/view based project , the Document、View、Frame

8、 and Application class usually are the default four elements, Which one of the following is false about their declarations: (D) A The application class acts as a binder for the frame, view, and document objects and a set of GUI resources in a application. B A document is a data object with which the

9、 user interacts in an editing session and a view is a window object through which the user interacts with the document, C The framework provides a set of starter files for an application and supplies standard user-interface features that you can implement in your application. D SDI applications allo

10、w only one document frame window at a time, but MDI applications has a window with which the user can open multiple MDI child windows and they should be the same types. 4. What tool do you normally use to automates the creation and editing of classes, and creates additional classes based on MFC. (C)

11、 A AppWizard B The Project Workspace C ClassWizard D Developer Studio Gallery 5. What is the purpose of the DECLARE_DYNCREATE macro? (A) A To enable objects of CObject-derived classes to be created dynamically at run time. B To enable objects of any class to be created dynamically C To dynamically c

12、reate the documents D To dynamically create the frames and views. 6. In which case we will call OnUpdate member function of the CView class? (B)A Called when a view is first attached to a document. B Called when the documents data has changed and the view needs to be updated. C Called when the appli

13、cations frame has been resized. D Called when you want to change some document data. 7. Which one of the following statements is false when using the Developer Studio debugger to set and manage breakpoints? (C) A To set a breakpoint on a source statement extending across two or more lines, you must

14、set the breakpoint on the last line of the statement. B An asterisk(*) in the Breakpoint check box indicates that the breakpoint is not supported on the current platform. C The breakpoints you set cannot be saved as part of your projects. D You can set more than one location breakpoint on a line. 8.

15、 In a MFC application, what is the message map macro name and handler name associated with the WM_MOUSEMOVE Windows message? A The macro is WM_MOUSEMOVE_MESSAGE and the handler is OnMouseMoveMessage. B The macro is OnMouseMove and the handler is ON_MM_MOUSEMOVE. C The macro is ON_WM_MOUSEMOVE and th

16、e handler is OnMouseMove. D Since general window messages are handled by the MFC framework, they never need message map entries. 9. Communication between the operating system, applications, and application components is conducted through: C A Windows messages、Command messages B Windows messages、Comm

17、and messages、Event-notification messages. C All types of messages. D Windows messages、Command messages、System-registered messages. 10. Which one of the following is not a DC(Device Contexts) does in Windows: B A Gives permission to an application to use an output device. B Gives permission to an app

18、lication to redraw all of the views. C Maintains current information about how to draw or paint to a window, such as the colors, brush or pen patterns and so on. D Provides a link between a Windows-based application, a device driver, and an output device, such as a monitor or printer. 11. If you wan

19、t to draw a rectangle like G-1, which one of the following codes cannot realize it, suppose you have the following definition : D A pDC-Rectangle(0,0,100,100); B pDC-MoveTo(0,0); pDC-LineTo(100,0); pDC-MoveTo(0,0); pDC-LineTo(0,100); pDC-MoveTo(100,100); pDC-LineTo(100,0); pDC-MoveTo(100,100); pDC-L

20、ineTo(0,100); C CRect rect(0,0,100,100); pDC-Rectangle(&rect); D pDC-Rectangle(CPoint(0,0),CPoint(100,100); 12 Please read the codes, and select the correct answer about the output strings color in sequence: ACPen pen1, pen2; CPen *pOld; CPoint pt(0,0); pen1.CreatePen(PS_SOLID,1,RGB(255,0,0); pen2.C

21、reatePen(PS_SOLID,1,RGB(0,0,255); pOld = pDC-SelectObject(&pen1); pDC-TextOut(pt,”The first line.”); pDC-SelectObject(pOld); pDC-TextOut(pt,”The seconde line.”); pOld = pDC-SelectObject(&pen2); pDC-TextOut(pt,”The third Line”); A RED, BLACK, BLUE B BLACK, RED, BLACK C RED, BLUE, BLACK D RED, WHITE,

22、BLUE 13 When you are debugging a program, you find that there is a dimmed menu item, which one of the following measures cannot make it available: D A check if it has an associated command handler. B check if you have executed an operation to make it unavailable temporarily. C check if there is no o

23、bjects that can be used. D check if it has a combination with an Update command handler 14 Which one of the following is not true about toolbar editor: C A You cannot delete the blank placeholder button on the right end. B In the Toolbar editor, you can drag the button off the toolbar to delete a bu

24、tton. C In the Toolbar editor, you can delete a button directly and conveniently by pressing “Delete” key. D If you want to create a new button, you can copy a button and change the original bitmap to the new one. 15 In a dialog box class, you want to save changes of the dialog controls to a variabl

25、e, what function you often add in the program: B A Invalidate() B UpdateData() C UpdateData(false) D Update() 16 Which one of the following statements is true about the relationship of DDX and DDV? D A DDX and DDV occur when the user clicks OK. B DDX and DDV are mutually exclusive; only one can be p

26、erformed for each control. C The developer cannot extend DDX and DDV. D In a DoDataExchange routine, if a DDV routine exists, it must follow immediately after its associated DDX routine in the data map. 17 Templates are useful for generating collection classes because: B A Templates have built-in fu

27、nctionality for collections. B Templates work with arbitrary data types. C All templates have iterators, which are useful for collection classes. D Templates have built-in support for the most common data types. 18 Which of the following conditions or steps is not required to add support for seriali

28、zation to a class? D A The class must be publicly derived from CObject or a class derived form CObject. B The class declaration must declare both an overridden version of CObject:Serialize and invocation of the DECLARE_SERIAL macro. C The class implementation file must contain the implementation for

29、 Serialize and an invocation of the IMPLEMENT_SERIAL macro. D Each class in an application must have different, sequentially numbered schema. Third Section: Please use your brief words in English to explain the following phrases (14%): 1. What is Event-driven programming? 2. Please explain What is “

30、Mapping modes” and illustrate it with some detail examples . 2002 AnswerMastering MFC Fundamentals TestsName:_ Number:_SectionA(26%): In this section, please choose the correct answer from the four statements in each of the following questions :( C )1.CObject is the base class for most ofMFC. Which

31、one of the following is not the information and foundations that provides: ARun-time class information B Diagnostic and debugging support CSome simple value types DCompatibility with collection classes( D )2.If you use MFC to developadocument/viewbased project , the Document、View、Frame and Applicati

32、on class usually are the default four elements, Which one of the following statements is false about their declarations: A The application class acts as a binder for the frame, view, and document objects and a set of GUI resources in a application. B A document is a data object with which the user inter

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1