An exception is thrown at runtime
pw: fido got fido name: bob got bob
pw: got fido name: bob got bob
Compilation fails.
第1题:
设有如下的记录类型
Type Student
numberAs string
name As String
age As Integer
End Type
则正确引用该记录类型变量的代码是( )。
A. Student.name="张红"
B. Dim s As Student
s.name="张红"
C. Dim s As Type Student
D. Dim s As Type
s.name="张红" s.Dame="张红"
第2题:
Helen’s husband is Mark. Mark and Helen have got two children: a son and a daughter. The son’s name is Andrew and the daughter’s name is Joyce. Joyce has got two children, a son and a daughter. So Helen and Mark have got two grandchildren. Helen’s granddaughter’s name is Pam and her grandson’s name is Dan. Andrew isn’t married and he hasn’t got any children. Pam and Dan like playing on the computer with their uncle. Andrew also likes playing football with his brother-in-law, Tom.
1.Andrew is Dan’s uncle. ()
A.Right
B.Wrong
2.Mark is Dan’s father. ()
A.Right
B.Wrong
3.Tom is Dan’s grandfather. ()
A.Right
B.Wrong
4.Joyce is Tom’s wife. ()
A.Right
B.Wrong
5.Pam is Andrew’s niece. ()
A.Right
B.Wrong
第3题:
没有如下的用户定义类型:
Type Student
number As String
name As String
age AS Integer
End Type
则以下正确引用该类型成员的代码是( )。 A.Student. name="李明"
B.Dim s As Student
S. name="李明"
C.Dim s As Type Student
S. name="李明"
D.Dim s As Type
S. name="李明
第4题:
Giventhatcisareferencetoavalidjava.io.Consoleobject,and:11.Stringpw=c.readPassword("%s","pw:");12.System.out.println("got"+pw);13.Stringname=c.readLine("%s","name:");14.System.out.println("got",name);Iftheusertypesfidowhenpromptedforapassword,andthenrespondsbobwhenpromptedforaname,whatistheresult?()
A.Anexceptionisthrownatruntime
B.pw:fidogotfidoname:bobgotbob
C.pw:gotfidoname:bobgotbob
D.Compilationfails.
第5题:
Your Web site uses custom Themes. Your Web site must support additional Themes based on the user‘s company name. The company name is set when a user logs on to the Web site. The company‘s Theme name is stored in a variable named ThemeName. You need to use this variable to dynamically set the Web site‘s Theme.What should you do?()
A.
B.
C.
D.
第6题:
有如下的记录类型
Type student
id As String
name As String
age As Integer
End Type
则正确引用该记录类型变量的代码是( )
A.student.name=”Sias”
B.Dim s As student
s.mane=”Sias”
C.Dim s As type student
s.name=”Sias”
D.Dim s As type
s.name=”Sias”
第7题:
Tarzan’s name is given by the gorilla mother.()
第8题:
( 14 )设有如下的用户定义类型:
Type Student
number As String
name As String
age As Integer
End Type
则以下正确引用该类型成员的代码是
A ) Student.name = " 李明 "
B ) Dim s As Student
s.name = " 李明 "
C ) Dim s As Type Student
s.name = " 李明 "
D ) Dim s As Type
s.name = " 李明 "
第9题:
A.Strings=c.readLine();
B.char[]c=c.readLine();
C.Strings=c.readConsole();
D.char[]c=c.readConsole();
E.Strings=c.readLine("%s","name");
F.char[]c=c.readLine("%s","name");
第10题:
A、What's your last name?
B、What's your family name?
C、What's your name?
D、What's your first name?