添加的元素不存在
从集合中删除元素
元素添加到集合中
添加的元素在集合中已经存在
第1题:
A.该方法必须返回IEnumerator或IEnumerable类型
B.该方法必须返回IComparable类型
C.该方法必须明确包含集合
D.该方法必须是类中唯一的迭代器
第2题:
A.public
B.double
C.static
D.void
第3题:
A、列表
B、元组
C、字典
D、集合
第4题:
当子类中定义的方法与父类方法同名且参数类型及个数、返回值类型相同时,称子类方法覆写父类方法,子类默认使用本类已经覆写方法,使用父类的同名方法,必须使用()关键字说明。
第5题:
有关return语句说法不正确的是( )
A)系统默认的返回值类型为整型,故当函数的返回值为int型时,在函数定义时,返回值的类型说明可以省略
B)当函数有返回值时,凡是允许表达式出现的地方,都可以调用该函数
C)当函数没有返回值时,函数的返回值类型可以说明为void型,它表示“无类型”或“空类型”
D)函数的返回值类型必须与return语句中的表达式值的类型一致,但c语言也允许不同;这时,系统以函数定义时的返回值类型说明为准,并自动地将return语句中表达式的值转换为函数的返回值类型
第6题:
A. Add a MessageBodyMember attribute to the CodeName property and set the ProtectionLevel to Sign. Add a MessageBodyMember attribute to the SecretHandshake property and set the ProtectionLevel to EncryptAndSign.
B. Add a DataProtectionPermission attribute to the each property and set the ProtectData property to true.
C. Add an xmlText attribute to the CodeName property and set the DataType property to Signed. Add a PasswordPropertyText attribute to the SecretHandshake property and set its value to true.
D. Add an ImmutableObject attribute to the CodeName property and set its value property to true. Add a Browsable attribute to the SecretHandshake property and set its value to false.
第7题:
A.如果加入一个重复元素将抛出异常
B.如果加入一个重复元素add方法将返回false
C. 集合通过调用equals方法可以返回包含重复值的元素。
D. 重复值将导致编译出错。
第8题:
A、当方法没有返回值时,返回值类型可以不写
B、当方法没有返回值时,不能有return语句
C、方法是对功能代码块的封装
D、方法是不可以没有参数的
第9题:
在public HttpSession getSession(boolean bool)的方法定义中,当bool为false时表明()
第10题:
集合的添加使用的方法是()