String s = c.readLine();
char[ ] c = c.readLine();
String s = c.readConsole();
char[ ] c = c.readConsole();
String s = c.readLine(%s, name );
char[ ] c = c.readLine(%s, name );
第1题:
Given that c is a reference to a valid java.io.Console object, which two code fragments read a line of text from the console?()
第2题:
Given that file is a reference to a File object that represents a directory, which code fragments will succeed in obtaining a list of the entries in the directory?()
第3题:
Given that c is a reference to a valid java.io.Console object,which two code fragments read a line of textfrom the console?()
第4题:
char s[8]; s={“Beijing”};
char *s; s={“Beijing”};
char s[8]; s=“Beijing”;
char *s; s=“Beijing”;
第5题:
The Morse code distress series S-O-S repeated 3 times followed by DE and the vessel's call sign
A line of blip code on a radar screen outward from the SART's position along its line of bearing
A line of blip code on a radar screen inward from the SART's position to its own ship along its line of bearing
None of these
第6题:
String s = Gone with the wind;String t = good ;String k = s + t;
String s = Gone with the wind;String t;t = s[3] + one;
String s = Gone with the wind;String standard = s.toUpperCase();
String s = home directory;String t = s - directory;
第7题:
Add the following line of code to the TestUserControl.ascx.cs code-behind file. public string CityName { get { return New York; } }
Add the following line of code to the TestUserControl.ascx.cs code-behind file. protected readonly string CityName = New York;
Add the following code segment to the TestPage.aspx.cs code-behind file. protected void Page_Load(object sender, EventArgs e) { string s = testControl.CityName; }
Add the following code segment to the TestPage.aspx.cs code-behind file. protected void Page_Load(object sender, EventArgs e) { string s = testControl.Attributes[CityName]; }
第8题:
char ch = 65;
char ch = ’¥65’;
char ch = ’¥0041’;
char ch = ’A’;
char ch = A;
第9题:
Char ch = “a”;
Char ch = ‘/’ ‘;
Char ch = ‘cafe’;
Char ch = “cafe”;
Char ch = ‘/ucafe’;
Char ch = ‘/u10100’;
Char ch = (char) true;
第10题:
char s[]; s=BOOK!;
char*s; s={BOOK!};
char s[10]; s=BOOK!;
char*s; s=BOOK!;
第11题:
String s = “123456789”; s = (s-”123”).replace(1,3,”24”) - “89”;
StringBuffer s = new StringBuffer(”123456789”); s.delete(0,3).replace( 1,3, “24”).delete(4,6);
StringBuffer s = new StringBuffer(”123456789”); s.substring(3,6).delete( 1 ,3).insert(1, “24”);
StringBuilder s = new StringBuilder(”123456789”); s.substring(3,6).delete( 1 ,2).insert( 1, “24”);
StringBuilder s = new StringBuilder(”123456789”); s.delete(0,3).delete( 1 ,3).delete(2,5).insert( 1, “24”);
第12题:
Object o = pageContext.getAttribute(foo);
Object o = pageContext.findAttribute(foo);
Object o = pageContext.getAttribute(foo,PageContext.SESSION_SCOPE);
HttpSession s = pageContext.getSession();Object o = s.getAttribute(foo);
第13题:
Given the following code fragment: public void create() { Vector myVect; myVect = new Vector(); } Which of the following statements are true?()
第14题:
Given that c is a reference to a valid java.io.Console object, and: 11.String pw = c.readPassword("%s", "pw: "); 12.System.out.println("got " + pw); 13.String name = c.readLine("%s", "name: "); 14.System.out.println(" got ", name); If the user types fido when prompted for a password, and then responds bob when prompted for a name,what is the result?()
第15题:
You create a Web page named TestPage.aspx and a user control named TestUserControl.ascx. TestPage.aspx uses TestUserControl.ascx as shown in the following line of code.
第16题:
String s = strings.get(0);
Iterator i1 = strings.iterator();
String[] array1 = strings.toArray();
Iterator
String[] array2 = strings.toArray(new String[1]);
Iterator
第17题:
char s[5]={“ABCDE”};
char *s; s=“ABCDE”;
char s[5]={‘A’,‘B’,‘C’,‘D’,‘E’};
char *s; scanf(“%s”,s);
第18题:
The declaration on line 2 does not allocate memory space for the variable myVect.
The declaration on line 2 allocates memory space for a reference to a Vector object.
The statement on line 2 creates an object of class Vector.
The statement on line 3 creates an object of class Vector.
The statement on line 3 allocates memory space for an object of class Vector.
第19题:
String s = Gone with the wind;String t = good ;String k = s + t;
String s = Gone with the wind;String t; t = s[3] + one;
String s = Gone with the wind;String standard = s.toUpperCase();
String s = home directory;String t = s - directory;
第20题:
An exception is thrown at runtime
pw: fido got fido name: bob got bob
pw: got fido name: bob got bob
Compilation fails.
第21题:
String regex = ;
String regex = ;
String regex = .*;
String regex = //s;
String regex = //.//s*;
第22题:
String s = c.readLine();
char[] c = c.readLine();
String s = c.readConsole();
char[] c = c.readConsole();
String s = c.readLine(%s, name );
第23题:
String x = (String) pageContext.getAttribute(foo)
String x = (String) pageContext.getRequestScope(foo)
It is NOT possible to access the pageContext object from within doStartTag
String x = (String) pageContext.getRequest().getAttribute(foo)
String x = (String) pageContext.getAttribute(foo, PageContext.ANY_SCOPE)