网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
多选题
Which of the following fragments might cause errors?()
A
String s = Gone with the wind;String t = good ;String k = s + t;
B
String s = Gone with the wind;String t;t = s[3] + one;
C
String s = Gone with the wind;String standard = s.toUpperCase();
D
String s = home directory;String t = s - directory;
参考答案
参考解析
解析:
A:String类型可以直接使用+进行连接运算。
B:String是一种Object,而不是简单的字符数组,不能使用下标运算符取其值的某个元素,错误。
C://toUpperCase()方法是String对象的一个方法,作用是将字符串的内容全部转换为大写并返回转换后的结果(String类型)。
D://String类型不能进行减(-)运算,错误。
B:String是一种Object,而不是简单的字符数组,不能使用下标运算符取其值的某个元素,错误。
C://toUpperCase()方法是String对象的一个方法,作用是将字符串的内容全部转换为大写并返回转换后的结果(String类型)。
D://String类型不能进行减(-)运算,错误。
更多 “多选题Which of the following fragments might cause errors?()AString s = Gone with the wind;String t = good ;String k = s + t;BString s = Gone with the wind;String t;t = s[3] + one;CString s = Gone with the wind;String standard = s.toUpperCase();DString s = home directory;String t = s - directory;” 相关考题
考题
Which of the following statements about testing software with data is (are) true?Ⅰ.The primary purpose of such testing is to find errors.Ⅱ.Such testing can demonstrate the existence of errors but cannot demonstrate the absence of errors.A.NeitherB.I onlyC.ⅡonlyD.Ⅰand Ⅱ
考题
Which of the following technologies can detect and fix single bit memory errors?()
A. RAIDB. Registered memoryC. SDRAMD. ECC
考题
Which of the following monitors a server to see which protocols might be in use?()
A. Ping sweepB. Intrusion detection softwareC. Port scannerD. Wireless packet sniffer
考题
Which of the following actions may cause a trigger to be fired?()
A.DROPB.ALTERC.DELETED.ROLLBACK
考题
When line errors occur, which of the following commands should be sued to cause init to re-read the /etc/inittab file if init stops respawning the getty process on a TTY?()
A.alogB.telinitC.sysinitD.cfgmgr
考题
Which of following statements about testing software with data is (are) true?Ⅰ.The primary purpose of such testing is to find errors.Ⅱ.Such testing can demonstrate the existence of errors but can not demonstrate the absence of errors.A.NeitherB.Ⅰ onlyC.Ⅱ onlyD.Ⅰ and Ⅱ
考题
Which of the following actions may cause a trigger to be fired?()A、DROPB、ALTERC、DELETED、ROLLBACK
考题
Which of the following can cause a ribbon on an impact printer to tear?()A、The fuserB、The toner cartridgeC、The platenD、The printhead
考题
Which of the following technologies can detect and fix single bit memory errors?()A、RAIDB、Registered memoryC、SDRAMD、ECC
考题
Which of the following tools should be used to analyze the placement of file fragments on a mirrored logical volume?()A、 dfB、 lslvC、 filemonD、 fileplace
考题
When line errors occur, which of the following commands should be sued to cause init to re-read the /etc/inittab file if init stops respawning the getty process on a TTY?()A、alogB、telinitC、sysinitD、cfgmgr
考题
Which of the following commands can be used to watch system errors as they are logged?()A、 smit errptB、 smit errdemonC、 smit alogD、 smit syslogd
考题
A user calls to report they are getting I/O errors on a file system. Which of the following tools should be used to isolate this problem?()A、dfB、diagrptC、errmsgD、errpt
考题
Which of the following parameters would you use to record the errors that might be generated during the import operation?()A、LOGB、HELPC、BUFFERD、PARFILEE、INCTYPE
考题
单选题Which of the following commands can be used to watch system errors as they are logged?()A
smit errptB
smit errdemonC
smit alogD
smit syslogd
考题
单选题Which of the following tools should be used to report in-depth information about file fragments?()A
defragfsB
istatC
filemonD
fileplace
考题
单选题Which of the following can cause a ribbon on an impact printer to tear?()A
The fuserB
The toner cartridgeC
The platenD
The printhead
考题
单选题Which of the following monitors a server to see which protocols might be in use?()A
Ping sweepB
Intrusion detection softwareC
Port scannerD
Wireless packet sniffer
考题
单选题Which of the following is NOT a reason that many motorway accidents are categorized under headings other than sleepiness?A
The Transport and Road Research Laboratory finds the cause as “perceptual errors”.B
Drivers are unwilling to admit to “falling asleep” for fear of being dismissed.C
Few investigators inquire further to discover the actual reasons hidden behind.D
Insurance companies are reluctant to pay insurance for drivers’ sleepiness.
考题
单选题Which of the following might be the best title of the text?A
Ancient ArtB
The Navaho IndianC
Sand paintingsD
Functions of Art
考题
单选题Which of the following errors are caused by leaving a floppy disk in the drive when a computer is powered on?()A
Random bluescreen errorB
Inaccessible boot driveC
Missing NTLDRD
Invalid boot disk
考题
单选题Which of the following methods might be used as the treatment on emulsified oil?()A
gravity separationB
centrifugeC
CycloneD
Cross-flow membrane filtration
考题
单选题Which of the following is not a factor which can interfere with the pulse of sound and cause a variation the depth reading?()A
salinityB
temperatureC
the hydrostatic pressureD
Vessel’s speed
考题
单选题Which of the following technologies can detect and fix single bit memory errors?()A
RAIDB
Registered memoryC
SDRAMD
ECC
考题
单选题Which of the following parameters would you use to record the errors that might be generated during the import operation?()A
LOGB
HELPC
BUFFERD
PARFILEE
INCTYPE
考题
单选题Which of the following might be the best title for the passage?A
Burger FlavorsB
Burger RecipesC
Burger BeginningsD
Burger Ingredients
考题
多选题Which two code fragments are most likely to cause a StackOverflowError?()AABBCCDDEEFF
热门标签
最新试卷