一、从题的范畴来说,考了 Delphi 语言基础(1-5), Delphi 库中提供的支持(6) ,VCL 体 系的了解(7), 数据结构(8),设计模式(9), IDE 环境的熟悉程度(10),理解 delphi 和 Windows 的关系(Win32 基础) 和数据库部分。 对于题的解答, 4 起码有 3 种方法, 9 有 2 种方法实现, 题 题 数据库题 1 题也就是 1 行 SQL. 二、这份题的工资标准是 3k-8k Delphi 工程师笔试题 答题人:_________________
一、Delphi 基础 1.
Delphi 内置类型 string 和 WideString 的区别。
2. 简要描述 Delphi 代码单元中,以下关键字的作用。 Interface: Implementation: Initialization: Fanalization: 3. 将一周七天声明称枚举类型。
4. 现有 Integer 变量 A,B, 在不声明其它变量的情况下,将他们的值交换, 如:A:=1; B:=2; 交换后, A=2, B=1,
5. 现有以下类: Type TBase = class Function GetValue: Integer; virtual; End; TChild1=class(TBase) Function GetValue: Integer;override; End; TChild2=class(TBase) Function GetValue: integer;override; End; Function TBase.GetValue:Integer; Begin
Result:=1; End; Function TChild2.GetValue:Integer; Bein Result:=2; Result:= inherited.GetValue; End; Function TChild1.GetValue:Integer; Begin Result:=inherited.GetValue; Result:=3; End; 用以下方法创建对象 O1,O2; TBase: O1:=TChild1.Create; O2:=TChild2.Create; 那么调用以下方法的返回值是 O1.GetValue 返回: O2.GetValue 返回: 6. 如何模块内部获得自身路径? Exe 程序: DLL
程序:
7. 描述一下 TEdit 和 TlistView 的类派生顺序,并说明它们的来源区别。
8. 用 pascal 写一个双向链表。
9.
设计模式中的单件模式,在 delphi 中可以用什么方式创建。
10. Delphi 快捷键 快速
搜索添加控件: 打开工程属性对话框: 切换编辑中的代码窗体: 删除一行代码:
二、Win32 基础 1. 写出 Delphi 声明 Win32 类型的库及其对应的 Win32 Dll 库 (至少 3 个) 。
2. 如何在 Delphi 中完成多线程的内存保护。
三、数据库 1. 现有 MS Sql Server 数据库 UserLibs 列举出所有用户表及其字段
2. 现有数据库 A,数据库 B 和 A 对应,在数据 A 中表增加时,或字段增加时,将结构同步 到数据库 B 中,该过程不能损害数据。 (上机题)