普康數(shù)碼筆試試題

時(shí)間:2018-12-31 12:00:00 資料大全 我要投稿

普康數(shù)碼筆試試題

  1:在軟件生命周期中,下列哪個(gè)說(shuō)法是不準(zhǔn)確的?

普康數(shù)碼筆試試題

  A.軟件生命周期分為計(jì)劃、開(kāi)發(fā)和運(yùn)行三個(gè)階段

  B.在計(jì)劃階段要進(jìn)行問(wèn)題焉醛和需求分析

  C.在開(kāi)發(fā)后期要進(jìn)行編寫(xiě)代碼和軟件測(cè)試

  D.在運(yùn)行階段主要是進(jìn)行軟件維護(hù)

  2:public static void Main(string[] args){int i = 2000;object o = i;i = 2001;int j =(int) o;Console.WriteLine("i={0},o={1}, j={2}",i,o,j);}

  A.i=2001,o=2000,j=2000

  B.i=2001,o=2001,,j=2001

  C.i=2000,o=2001,,j=2000

  D.i=2001,o=2000,j=2001

  3:在C#中利用Socket進(jìn)行網(wǎng)絡(luò)通信編程的一般步驟是:建立Socket偵聽(tīng)、( )、利用Socket接收和發(fā)送數(shù)據(jù),

普康數(shù)碼筆試試題

  A.建立Socket連接

  B.獲得端口號(hào)

  C.獲得IP地址

  D.獲得主機(jī)名

  4:設(shè)有變量說(shuō)明語(yǔ)句int a=1,b=0;則執(zhí)行以下程序段的輸出結(jié)果為( )。

  switch (a){case 1:switch (b){case 0:printf("**0**");break;case 1:printf("**1**");break;}case 2:printf("**2**");break;}printf(" ");

  A.**0**

  B.**0****2**

  C.**0****1****2**

  D.有語(yǔ)法錯(cuò)誤

  5:聲明一個(gè)委托public delegate int myCallBack(int x); 則用該委托產(chǎn)生的回調(diào)方法的原型應(yīng)該是

  A.void myCallBack(int x)

  B.int receive(int num)

  C.string receive(int x)

  D.不確定的

  6:關(guān)于ASP.NET中的代碼隱藏文件的描述正確的是:

  A.Web窗體頁(yè)的程序的.邏輯由代碼組成,這些代碼的創(chuàng)建用于與窗體交互。編程邏輯唯一與用戶界面不同的文件中。該文件稱作為“代碼隱藏”文件,如果用C#創(chuàng)建,該文件

  B.項(xiàng)目中所有Web窗體頁(yè)的代碼隱藏文件都被編譯成.EXE文件

  C.項(xiàng)目中所有的Web窗體頁(yè)的代碼隱藏文件都被編譯成項(xiàng)目動(dòng)態(tài)鏈接庫(kù)(.dll)文件

  D.以上都不正確

  7:如果設(shè)treeView1=new TreeView(),TreeNode node=new TreeNode("根結(jié)點(diǎn)" ),則treeView1.Nodes.Add(node)返回的是一個(gè)( )類型的值。

  A.TreeNode

  B.int

  C.string

  D.TreeView

  8:以下的C程序代碼片段運(yùn)行后C和d的值分別是多少

  Int a =1,b =2;Int c,d;c =(a&b)&&a;d =(a&&b)&a;

  A.0,0

  B.0,1

  C.1,0

  D.1,1

  9:What compiler switch creates an xml file from the xml comments in the files in an assembly?

  A./text

  B./doc

  C./xml

  D./help

  10:Which of the following operations can you NOT perform on an ADO.NET DataSet?

  A.A DataSet can be synchronised with a RecordSet.

  B.A DataSet can be synchronised with the database.

  C.A DataSet can be converted to XML.

  D.You can infer the schema from a DataSet

  11:In Object Oriented Programming, how would you describe encapsulation?

  A.The conversion of one type of object to another.

  B.The runtime resolution of method calls.

  C.The exposition of data.

  D.The separation of interface and implementation.

  12:如下程序的運(yùn)行結(jié)果是:public abstract class A{public A(){Console.WriteLine(''A'');}public virtual void Fun(){Console.WriteLine("A.Fun()");}}public class B: A{public B(){Console.WriteLine(''B'');}public new void Fun(){Console.WriteLine("B.Fun()");}public static void Main(){A a = new B();a.Fun();}}

  A.A B A.Fun()

  B.A B B.Fun()

  C.B A A.Fun()

  D.B A B.Fun()

  13:Which of these string definitions will prevent escaping on backslashes in C#?

  A.string s = #”n Test string”;

  B.string s = “’n Test string”;

  C.string s = @”n Test string”;

  D.string s = “n Test string”;

  14:假定a和b為int型變量,則執(zhí)行下述語(yǔ)句組后,b的值為a=1;b=10;do{b-=a;a++;} while (b--<0);

  A.9

  B.-2

  C.-1

  D.8

  15:abstract class BaseClass{public virtual void MethodA(){Console.WriteLine("BaseClass");}public virtual void MethodB(){}}class Class1: BaseClass{public void MethodA(){Console.WriteLine("Class1");}public override void MethodB(){}}class Class2: Class1{new public void MethodB(){}}class MainClass{public static void Main(string[] args){Class2 o = new Class2();o.MethodA();}}請(qǐng)問(wèn),此程序輸出結(jié)果是:

  A.BaseClass

  B.BassClass Class1

  C.Class1

  D.Class1 BassClass

【普康數(shù)碼筆試試題】相關(guān)文章:

1.普康數(shù)碼筆試題目

2.普康數(shù)碼科技CE開(kāi)發(fā)工程師筆試題目

3.分享普康數(shù)碼科技CE開(kāi)發(fā)工程師筆試題目

4.普康數(shù)碼SHL測(cè)評(píng)題

5.龍華富士康普工筆試題目

6.阿斯利康筆試題類型

7.適普筆試題目

8.上海方立數(shù)碼筆試題