单选题Public conters(2 to 14)As Integer声明正确的是()A定义一个公用变量conters,其值可以是2到14之间的一个整型数B定义一个公用数组conters,数组内可存放14个整数C定义一个公用数组conters,数组内可存放13个整数D定义一个公用数组conters,数组内可存放12个整数
单选题
Public conters(2 to 14)As Integer声明正确的是()
A
定义一个公用变量conters,其值可以是2到14之间的一个整型数
B
定义一个公用数组conters,数组内可存放14个整数
C
定义一个公用数组conters,数组内可存放13个整数
D
定义一个公用数组conters,数组内可存放12个整数
参考解析
解析:
暂无解析
相关考题:
本题中,用表格表现某个月的月历,其中标题是从Sunday到Saturday,表格中的各项是可以修改的。 import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.table.*; public class java2 ( public static void main(String[]args) { try{ UIManager.setLookAndFeel(UIManager.getSys- temLookAndFeelClassName): } catch(Exception e) JFrame. frame=new CalendarTableFrame; frame.setDefaultCloseOperation(JFrame.EXIT_ oN CLOSE); frame.show; } } clasgCalendarTableFrame. extends JFrame { private static final int WIDTH=500; private static final int HEIGHT=150: private cells= { {null,null,null,new Integer(1),new Integer (2),new Integer(3),new Integer(4)), {new Integer(5),new Integer(6),new Integer (7).new Integer(8),new Integer(9),new Integer (10),new Integer(11)), {new Integer(12),new Integer(13),new Integer (14),new Integer(15),new Integer(16),new Integer (17),new Integer(18)), {new Integer(19),new Integer(20),new Integer (21),new Integer(22),new Integer(23),new Integer (24),new Integer(25)), {new Integer(26),new Integer(27),new Integer (28),new Integer(29),new Integer(30),new Integer (31),null} }; private String[]columnNames={ "Sunday","Monday","Tuesday","Wednesday", "Thursday","Friday","Saturday" }; public CalendarTableFrame{ setTitle("java2"); setSize(WIDTH,HEIGHT); JTable table=new ; getContentPane.add(new JScrollPane(table), BorderLayout.CENTER); } }
下面是关于派生类声明的开始部分,其中正确的是A.class virtual B:public AB.virtual class B:public AC.class B:public A virtualD.class B:virtual public A
下列虚基类的声明中正确的是( )。A.class virtual B:public AB.virtual class B:public AC.class B:public A virtualD.class B:virtual public A
下列是关于派生类声明的开始部分,其中正确的是( )。A.class virtual B:public AB.virtual class B:public AC.class B:public A virtualD.class B:virtualpublicA
下列哪个类声明是正确的?A.abstract class G2 extends superClassl,superClass2{……}B.abstract public class classmates{……}C.public final class NewClass extends superClass implements Interfacel{……}D.public abstract class String{……}
以下过程的定义中,( )是错误的。 A、Public Sub Sum(x ; y)B、Public Sub Sum(ByVal x, ByVal y)C、Public Sub Sum(x As Integer,y As Integer)D、Public Sub Sum(x%, y%)
在窗体中,用( )语句声明的变量是静态变量。 A、Dim Z As IntegerB、Public Z As IntegerC、Private Z As IntegerD、Static Z As Integer
下列语句都是在Form中定义的,其中,错误的是A.Public Const A1=2uB.Private Const A2=8C.Public a3 As IntegerD.Private a4 As Integer
一个工程中含有窗体Form1、Form2和标准模块Modell,如果在Form1中有语句Public X As Integer,在Modell中有语句Public Y As Integer。则以下叙述中正确的是 ______。A.变量X、Y的作用域相同B.Y的作用域是ModellC.在Form1中可以直接使用XD.在Form2中可以直接使用X和Y
下列虚基类的声明中,正确的是( )。A.class virtualB:public AB.virtual classB:public AC.class B:public A virtualD.class B:virtual public A
单击命令按钮时,下列程序代码的执行结果为 Public Sub Procl(n As Integer,ByVal m As integer) n=n Mod 10 m=m\10 End sub Private Sub Commandl_Click() Dim x AS Integer,y AS Integer x=12:y=24 Call Procl(x,y) Print x;y End subA.12 24B.2 24C.2 3D.12 2
单击命令按钮后,下列程序代码的执行结果是______。Public Sub fun (a As Integer, b As Integer, c As Integer)Doa=b+ cn=n+1Loop While n > 3End SubPrivate Sub command1_ click()Dim m As Integer, n As Integer, i As IntegerFor i = 0 To 2: m = n + 1: Next iFor i = 1 To 2: Call fun (m, n, i): Next iFor i = 0 To 3Print m;Next iEnd Sub
下列哪个类声明是正确的? ( )A.abstract class G2 extends superClass1,superClass2{...}B.abstract public class classmates{...}C.public final class NewClass extends superClass implemnets Interface1{...}D.public abstract class String{...}
下列哪个类声明是正确的? ( )A.abstract class G2 extends superClass1, superClass2 {…}B.abstract public class classmates{…}C.public final class NewClass extends superClass implemnets Interfacel{…}D.public abstract class String{…}
(23)设有以下函数过程Private Function Fun(a() As Integer, b As String) As Integer...End Function若已有变量声明:Dim x(5)As Integer, n As Integer, ch As String则下面正确的过程调用语句是A)x(o)=Fun(x, "ch")B)n=Fun(n, chC)Call Fun x, "ch"D)n=Fun(x(5), ch)
下列数组声明语句,正确的是()。ADim a[3,4] As IntegerBDim a(3 4) As IntegerCDim a(n,n) As IntegerDDim a(3,4) As Integer
以下定义的过程()是按“传值”方式传递参数的。A、Public Sub Sum(x,y)B、Public Sub Sum(ByVal x, ByVal y)C、Public Sub Sum(x As Integer,y As Integer)D、Public Sub Sum(x%, y%)
public class test { public static void add3 (Integer i) int val = i.intValue ( ); val += 3; i = new Integer (val); } public static void main (String args [ ] ) { Integer i = new Integer (0); add3 (i); system.out.printIn (i.intValue ( ) ); } What is the result?() A、 Compilation will fail.B、 The program prints “0”.C、 The program prints “3”.D、 Compilation will succeed but an exception will be thrown at line 3.
下面哪一个是正确的类的声明?()A、public void HH{…}B、public class Move(){…}C、public class void number{}D、public class Car{…}
Public conters(2 to 14)As Integer声明正确的是()A、定义一个公用变量conters,其值可以是2到14之间的一个整型数B、定义一个公用数组conters,数组内可存放14个整数C、定义一个公用数组conters,数组内可存放13个整数D、定义一个公用数组conters,数组内可存放12个整数
10. public class MyClass { 11. 12. public Integer startingI; 13. public void methodA() { 14. Integer i = new Integer(25); 15. startingI = i; 16. methodB(i); 17. } 18. private void methodB(Integer i2) { 19. i2 = i2.intValue(); 20. 21. } 22. } If methodA is invoked, which two are true at line 20?()A、 i2 == startingI returns true.B、 i2 == startingI returns false.C、 i2.equals(startingI) returns true.D、 i2.equals(startingI) returns false.
单选题public class Test { public static void add3 (Integer i) { int val = i.intValue(); val += 3; i = new Integer(val); } public static void main(String args[]) { Integer i = new Integer(0); add3(i); System.out.println(i.intValue()); } } What is the result? ()A 0B 3C Compilation fails.D An exception is thrown at runtime.
单选题一个工程文件中含有窗体Form1、Form2和标准模块Model1。如果Form1的声明部分有语句Private x As Integer,且Model1中有语句Public y As Integer,则下列说法中正确的是( )。A变量x、y的作用域相同B变量x的作用域是Form1C变量y的作用域是Model1D在Form2中可以直接使用x和y
单选题下面是关于派生类声明的开始部分,其中正确的是( )。Aclass virtual B:public ABvirtual class B:public ACclass B:public A virtualDclass B:virtual public A
单选题在VB中,以下关于变量的声明错误的是()。ADimx As Integer,y As LongBDimx As Integer:y As StringCDimx As Integer,y As IntegerDDimx,y As String
单选题public class test { public static void add3 (Integer i){ int val = i.intValue ( ); val += 3; i = new Integer (val); } public static void main (String args [ ] ) { Integer i = new Integer (0); add3 (i); system.out.printIn (i.intValue ( ) ); } } What is the result?()A Compilation will fail.B The program prints “0”.C The program prints “3”.D Compilation will succeed but an exception will be thrown at line 3.
多选题10. public class MyClass { 11. 12. public Integer startingI; 13. public void methodA() { 14. Integer i = new Integer(25); 15. startingI = i; 16. methodB(i); 17. } 18. private void methodB(Integer i2) { 19. i2 = i2.intValue(); 20. 21. } 22. } If methodA is invoked, which two are true at line 20?()Ai2 == startingI returns true.Bi2 == startingI returns false.Ci2.equals(startingI) returns true.Di2.equals(startingI) returns false.