boolean bool = true; if(bool = false) { System.out.println(“a”); } else if (bool) { System.out.println(“c”); } else if (!bool) { System.out.println(“c”); } else { System.out.println(“d”); } What is the result?()
第1题:
boolean a=false; boolean b=true; boolean c=(a&&b)&&(!b); boolean result=(a&b)&(!b); 执行完后,正确的结果是( )。
A.c=false;result=false
B.c=true,result=true
C.c=true;result=false
D.c=false;result=true
第2题:
下列布尔变量定义中,正确并且规范的是
A.BOOLEAN canceled=false;
B.boolean canceled=false;
C.boolean CANCELED=false;
D.boolean canceled=FALSE;
第3题:
下面均为Java关键字的一组是()
A、boolean,byte,long,true
B、byte, long,true,goto
C、goto ,Boolean,byte,true
D、bool, long,true,auto
第4题:
在C#中下列表达式不正确的是()。
第5题:
假设变量$x=5,则表达式“$x<>4”的返回值类型是()。
第6题:
将有三个boolean值的数组初始化为true的是()
第7题:
Which determines if “prefs” is a directory and exists on the file system?()
第8题:
You need to write a multicast delegate that accepts a DateTime argument.Which code segment should you use?()
第9题:
直接返回会话对象
当服务器已经创建了会话对象就返回该对象,否则返回null
直接返回null
当服务器已经创建了会话对象就返回该对象,否则新建一个会话对象并返回
第10题:
Boolean exists=Directory.exists (“prefs”);
Boolean exists=(new File(“prefs”)).isDir();
Boolean exists=(new Directory(“prefs”)).exists();
Boolean exists=(new File(“prefs”)).isDirectory();
Boolean exists=true; Try{ Directory d = new Directory(“prefs”); } catch (FileNotFoundException e) { exists = false; }
第11题:
public void setEnabled( boolean enabled) public boolean getEnabled()
public void setEnabled( boolean enabled) public void isEnabled()
public void setEnabled( boolean enabled) public boolean isEnabled()
public boolean setEnabled( boolean enabled) public boolean getEnabled()
第12题:
public delegate int PowerDeviceOn(bool, DateTime);
public delegate bool PowerDeviceOn(Object, EventArgs);
public delegate void PowerDeviceOn(DateTime);
public delegate bool PowerDeviceOn(DateTime);
第13题:
下面程序段: boolean a=false; boolean b=true; boolean c=(a||b)&&(b); boolean result=(a|b)&(b); 执行完后,正确的结果是
A.c=false;result=false
B.c=true,result=true
C.c=true;result=false
D.c=false;result=true
第14题:
下列关于boolean类型的叙述中,正确的是( )。
A.可以将boolean类型的数值转换为int类型的数值
B.可以将boolean类型的数值转换为字符串
C.可以将boolean类型的数值转换为char类型的数值
D.不能将boolean类型的数值转换为其他基本数据类型
第15题:
在public HttpSession getSession(boolean bool)的方法定义中,当bool为false时表明()
第16题:
下面均为java关键字的一组是()
第17题:
假设变量bool_x是一个布尔型(逻辑型)的变量,则下面正确的赋值语句是()
第18题:
Which is a method of the MouseMotionListener interface?()
第19题:
You are creating an ASP.NET Web site. The site is configured to use Membership and Role management providers. You need to check whether the currently logged-on user is a member of a role namedAdministrators. Which code segment should you use?()
第20题:
double f(bool b, int i)
int f(double d, int i)
int f(bool b,int i, double d)
double f(bool d, int j)
第21题:
a
b
c
d
Compilation fails.
第22题:
Public void mouseMoved(MouseEvent)
Public boolean mouseMoved(MouseEvent)
Public void mouseMoved(MouseMotionEvent)
Public boolean MouseMoved(MouseMotionEvent)
Public boolean mouseMoved(MouseMotionEvent)
第23题:
enum bool isnumber(char c);
define bool isnumber(char c);
inline bool isnumber(char c);
extern bool isnumber(char c);