知名公司筆試題目
下面來看看這份由應(yīng)屆畢業(yè)生筆試頻道推薦的'筆試題目
1: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.
2:如下程序的運(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()
3: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”;
4:假定a和b為int型變量,則執(zhí)行下述語句組后,b的值為a=1;b=10;do{b-=a;a++;} while (b--<0);
A.9
B.-2
C.-1
D.8
5: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)問,此程序輸出結(jié)果是:
A.BaseClass
B.BassClass Class1
C.Class1
D.Class1 BassClass
【知名公司筆試題目】相關(guān)文章:
各大知名IT公司筆試題目01-15
世界知名公司英文面試題目09-05
谷歌等公司筆試題目11-17
公司面試筆試題目09-08
電子類公司招聘筆試題目11-14
瑞星公司技術(shù)類筆試題目07-09
杭州某公司的Oracle筆試題目11-16
美的筆試題目12-15
會(huì)計(jì)筆試題目07-03