更多"int i= 1, j= 10"的相关试题:
[多项选择] int I=1, j=0 switch(i) { case 2: j+=6; case 4: j+=1; default: j +=2; case 0: j +=4; } What is the value of j at line 16?()
A. 0
B. 1
C. 2
D. 4
E. 6
[单项选择] int i= 1, j= 10 ; do ( if (i++> --j) continue; ) while (i<5); After execution, what are the values for I and j?()
A. i = 6 and j= 5
B. i = 5 and j= 5
C. i = 6 and j= 4
D. i = 5 and j= 6
E. i = 6 and j= 6
[多项选择] int i = 0, j = 5; tp; for (;;) { i++; for(;;) { if (i> --j) { break tp; break tp; } } System.out.println(“i=” +i “,j =”+j); } What is the result?()
A. i = 1, j = 0
B. i = 1, j = 4
C. i = 3, j = 4
D. i = 3, j = 0
E. Compilation fails.
[单项选择] int i = 0, j = 1; if ((i++ == 1) && (j++ == 2)) { i = 42; } System.out.println(“i = “ + i + “, j = “ + j); What is the result?()
A. i = 1, j = 2
B. i = 1, j = 1
C. i = 42, j = 2
D. i = 42, j = 1
E. Compilation fails.
[多项选择] 1. int I=1, j=0 2. 3. switch(i) { 4. case 2: 5. j+=6; 6. 7. case 4: 8. j+=1; 9. 10. default: 11. j +=2; 12. 13. case 0: 14. j +=4; 15. } 16. What is the value of j at line 16?()
A. 0
B. 1
C. 2
D. 4
E. 6
[单项选择] 现有: package mypack; import javax.swing.JButton; import javax.swing.JFrame; public class Butt extends JFrame { public static v.id main(string[] args) { // TODO Auto-generated method stub Butt butt=new Butt(); } Butt(){ JButton jbl=new JButton("Hello"); JButton jb2=new JButton("World"); add(jbl); add(jb2); setSize(300,300); setVisible(true); } } 下列关于代码运行效果的叙述正确的是哪项? ()
A. 2个按钮紧靠着排列,Hello在World的左侧
B. Hello占据Frame的整个区域
C. World占据Frame的整个区域
D. 2个按钮都在Frame的顶部
[单项选择] int i = 1,j = 10; do { if(i>j) { break; } j--; } while (++i <5); System.out.println(“i =” +i+” and j = “+j); What is the result?()
A. i = 6 and j = 5
B. i = 5 and j = 5
C. i = 6 and j = 4
D. i = 5 and j = 6
E. i = 6 and j = 6
[单项选择] int i = 1,j = -1; switch (i) { case 0, 1:j = 1; case 2: j = 2; default; j = 0; } System.out.println(“j=”+j); What is the result?()
A. j = -1
B. j = 0
C. j = 1
D. j = 2
E. Compilation fails.
[单项选择] Import java.applet.Applet; Import java.awt*; Public class ImageDemo extends Applet{ Image img; Public void init(){ Img=getImage(getCodeBase(),”11.gif”);//1 } Public void paint(Graphics g){ Int w=img.getHeight(this); Int h=img.getHeight(this); g.drawImage(img,120,60,w/2,h/2,this);//2 g. drawImage(img,150,0,w*2,h*2,this);//3 } }以上代码第()行将图像放大。
A. 1
B. 2
C. 3
D. 代码并没有将图像放大
[多项选择] Given: Integer i = new Integer (42); Long l = new Long (42); Double d = new Double (42.0); Which two expression evaluate to true?()
A. (i = = l)
B. (i = = d)
C. (d = = l)
D. (i.equals(d))
E. (i.equals(i))
F. (i.equals(42))
[单项选择] int i = 0; for (; i <4; i += 2) { System.out.print(i + “”); } System.out.println(i); What is the result?()
A. 0 2 4
B. 0 2 4 5
C. 0 1 2 3 4
D. Compilation fails.
E. An exception is thrown at runtime.
[单项选择] for (int i =0; i < 4; i +=2) { System.out.print(i + “”); } System.out.println(i); What is the result?()
A. 0 2 4
B. 0 2 4 5
C. 0 1 2 3 4
D. Compilation fails.
E. An exception is thrown at runtime.
[简答题] 缩写中文含义 APCVD HDPCVD LPCVD PECVD PVD BJT CD CMOS CMP MIC ILD MBE SOI DUV MOCVD BSG PSG BPSG RTP RTA IC LOCOS STI LI VLSI CA FIB ARC ASIC RIE FIB EUV LDD
[单项选择] An administrator has a server experiencing performance problems with logical volumes within a particular volume group. Which command can report I/O statistics for logical partitions with each logicalvolume within the volume group()
A. Islv
B. vmstat
C. iostat
D. Ivmstat
[单项选择] An administrator can create logical volumes and then add file systems to them, or create the file system directly. What is an dvantage of the two-step approach instead of the one-step approach()
A. The number of bytes per inode can be specified.
B. Placement of the filesystem on the disk can be specified.
C. The jfslog can be specified on creation of the filesystem.
D. Either a JFS or JFS2 filesystem can be created on the logical volume.
[多项选择] public class Parent { int change() {…} } class Child extends Parent { } Which methods can be added into class Child?()
A. public int change(){}
B. int chang(int i){}
C. private int change(){}
D. abstract int chang(){}
[单项选择] 现有: package mypack; import java.awt.Color; import java.awt.FlowLayout; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JPanel; public class ButtList extends JFrame { public static void main(String[] args) { ButtList bl =new ButtList(); } ButtList(){ JPanel pl=new JPanel(); pl.setBackground (Color.pink); p1.add(new JButton("one")); p1.add(new JButton("Two")); p1.add(new JButton("Three")); add("South",p1); setLayout(new Fl.wLayout()); setSize(200,200); setVisible(true); } } 上述代码运行后的显示效果是哪项?()
A. 3个按钮从左到右排列在Frame的底部
B. 3个按钮从左到右排列在Frame的顶部
C. 按钮无法显示
D. 只有按钮Three显示出来并占据Frame整个区域