Aey 021600

14
  4 行動裝置程式設計 範例題目

description

a

Transcript of Aey 021600

  • 4

  • 4-3

    Windows Mobile Windows CE

    1-01. Microsoft

    (A) Pocket PC 2002

    (B) Windows Mobile 5.0 for Pocket PC

    (C) Windows Mobile 6.0 for Pocket PC

    (D) WINCE 4.0

    A

    1-02. Windows Mobile 6 USB HOST PC

    (A) Windows Server 2003

    (B) Microsoft Exchange 2003

    (C) Outlook 2003

    (D) ActiveSync 4.x

    D

    1-03.

    (A)

    (B)

    (C)

    (D)

    D

    4-1-1

  • 4-18 TQC+ Windows Mobile 6

    Windows Mobile

    2-01. C# Windows Mobile 6 C#

    (A) Primitive/Value type

    (B) Reference type

    (C) Pointer type

    (D) Function type

    D

    2-02. C# 5000

    (A) ushort

    (B) short

    (C) uint

    (D) int

    B

    2-03. C# Windows Mobile 6 Decimal

    (A) 4 Bytes

    (B) 8 Bytes

    (C) 16 Bytes

    (D) 32 Bytes

    C

    4-1-2

  • 4-33

    Windows Mobile

    3-01.

    (A) inputPanel.CurrentInputMethod = inputPanel.InputMethods[1];

    (B) foreach (InputMethod im in inputPanel1.InputMethods) { if (im.Name == "") inputPanel1.CurrentInputMethod = im; }

    (C) inputPanel.CurrentInputMethod = inputPanel.InputMethods[""];

    (D) foreach (InputMethod im in inputPanel1.InputMethods) { if (im.Clsid.ToString()== "5aafaf99-8d99-4466-a66d-95c44b608a84") inputPanel1.CurrentInputMethod = im; }

    B

    3-02. TextBox

    (A) private void textBox_KeyPress(object sender, KeyPressEventArgs e) { e.Handled = !Char.IsDigit(e.KeyChar);}

    (B) private void textBox_KeyPress(object sender, KeyPressEventArgs e) {e.Handled = Char.IsDigit(e.KeyChar); }

    (C) private void textBox_KeyPress(object sender, KeyPressEventArgs e) {e.Handled = Char.IsNumber(e.KeyChar);}

    (D) private void textBox_KeyPress(object sender, KeyPressEventArgs e) {e.Handled = !Char.IsNumber(e.KeyChar);}

    BC

    4-1-3

  • 4-52 TQC+ Windows Mobile 6

    102. ...................................................................

    1.

    WPD01.csproj Form1.cs

    WPA01.CAB

    2.

    (1) Label BackColor BlackForeColor LimeFont Size 20pt

    (2) 10 CTalk

    (3) Label

    (4)

  • 4-53

    (5) PhoneBook.txt 1~9 1~9 1~9 Talk 0 0 1 PhoneBook.txt xxx

    (6) Talk xxx

    (7) C Label

    3.

    (1) Talk xxx

  • 4-54 TQC+ Windows Mobile 6

    (2) Talk PhoneBook.txt xxx

    4.

    (1) Label (1)

    (2)

    (3) Talk 0 1 PhoneBook.txt

    (4) Talk 1

    (5) C

  • 4-55

    5.

    (1) Label (1)

    10

    (2) 5

    (3) 5

    (4) Talk 0 2

    (5) Talk 1 PhoneBook.txt

    10

    (6) C 4

    (7) Talk 4

    40

  • 5

  • 5-3

    Windows Mobile

    1-01. System.IO.IOException

    01 FileStream fs = new FileStream(@"\temp.txt", 02 FileMode.OpenOrCreate, FileAccess.Write); 03 byte[] data = Encoding.ASCII.GetBytes("My Data"); 04 fs.Write(data, 0, data.Length); 05 fs.Close(); (A) FileAccess

    (B)

    (C)

    (D) FileMode

    B

    1-02. Windows Mobile 6

    01 FileStream fs = new FileStream(@"\temp.txt", 02 FileMode.CreateNew, FileAccess.Write); 03 StreamReader reader = new StreamReader(fs); 04 string fileContent = reader.ReadToEnd(); 05 reader.Close(); 06 MessageBox.Show(fileContent); (A) BinaryReader

    (B) TextReader

    (C) StreamReader Encoding.Default

    (D) StreamReader Encoding.UTF8

    C

    5-1-1

  • 5-106 TQC+ Windows Mobile 6

    201. ...................................................................

    1.

    WDD02.csproj Form1.cs

    WDA02.CAB

    2.

    (1) Bill.sdf

    BillDataSet SqlCeResultSet bill

    SqlCeResultSet TableAdapter

    5-2-2

  • 5-107

    (2) Form1 DataGrid bill

    (3) Form1 Form2

    (4) Form1 Form2

    (5) Form2 Form1 bill Form2 Form1 DataGrid

    (6) Form1 xx

    3.

    (1) Form1 Form2

  • 5-108 TQC+ Windows Mobile 6

    (2) Form1 xx

    4.

    (1) Bill.sdf

    BillDataSet SqlCeResultSet bill

    (2) Form1 bill

    (3) Form1 Form2 Form1 DataGrid

    (4) Form1 Form2

    Form1 DataGrid

    (5) Form1

    (6) DataGrid

    (7) Form2 Form1

  • 5-109

    5.

    (1)

    4

    (2) BillDataSet SqlCeResultSet bill

    16

    (3) bill DataGrid

    4

    (4) Form1 Form2

    3

    (5) Form1 Form2

    3

    (6) Form1

    3

    (7) DataGrid

    3

    (8) Form2 Form1 4

    40