问题 填空题

请完善程序(程序文件名:Java_2.java)并进行调试。请在下画线处填入正确内容,然后删除下画线。请勿删除注释行和其他已有的语句内容。
[题目要求]
构造一个5行5列的二维数组,给数组赋值,并将其按照行列对齐的方式输出,使程序输出结果如下:
0 0 0 0 1
0 0 0 2 3
0 0 4 5 6
0 7 8 9 10
11 12 13 14 15
源程序:
import java.io.*;
public class Java_2
 public static void main(String args[])
  int a[][] =new int[5][5];
  int i,j,k=1;
  for(i=0;i<5;i++)
   for(j=0; (1) ;j++)
   if((i+j)<4)a[i][j]=0;
   else (2)
for(i=0;i<5;i++)
 for(j=0;j<5;j++)
  if(a[i][j]<10)System.out.print(a [i][j]+" ");
  else System.out.print(a[i][J]+" ");
  System.out.println();
  
 

答案

参考答案:j<5

解析: 数组有5行5列均没有赋值,因此j的循环结束条件也和i一样是j<5。

单项选择题
单项选择题

阅读下列短文,从每题所给的四个选项(A、B、C和D)中选出最佳选项,并在答题卡上将该项涂黑。

D

The meaning of silence varies among cultural groups. Silences may be thoughtful, or they may be empty when a person has nothing to say. A silence in a conversation may also show stubbornness, or worry. Silence may be viewed by some cultural groups as extremely uncomfortable; therefore attempts may be made to fill every gap(间隙)with conversation. Persons in other cultural groups value silence and view it as necessary for understanding a person's needs.

Many Native Americans value silence and feel it is a basic part of communicating among people, just as some traditional Chinese and Thai persons do. Therefore, when a person from one of these cultures is speaking and suddenly stops, what maybe implied(暗示) is that the person wants the listener to consider what has been said before continuing. In these cultures, silence is a call for reflection.

Other cultures may use silence in other ways, particularly when dealing with conflicts among people or in relationships of people with different amounts of power. For example, Russian, French, and Spanish persons may use silence to show agreement between parties about the topic udner discussion. However, Mexicans may use silence when instructions are given by a person in authority rather than be rude to that person by arguing with him or her. In still another use, persons in Asian cultures may view silence as a sign of respect, particularly to an elder or a person in authority.

Nurses and other care-geivers need to be aware of the possible meanings of silence when they come across the personal anxiety their patients may be expericencing. Nurses should recognize their own personal and cultural construction of silence so that a patient’s silence is not interrupted too early or allowed to go on unnecessarily. A nurse who understands the healing(治愈) value of silence can use this understanding to assist in the care of patients from their own and from other cultures.

What may be the best title for the text?()

A.SoundandSilence

B.WhatItMeanstoBeSilent

C.SilencetoNativeAmericans

D.SpeechIsSilver;SilenceIsGold