问题 填空题

若有如下程序:
public class Test
public static void main (String[] args)
int x=20;
if (x>10) System.out.print(x-=5);
if (x>5) System.out.print(x--);

则程序运行后的输出结果是 【12】

答案

参考答案:1515

解析: 本题中第一次if语句条件判断时,x的值为20,x>10成立,所以执行其后的输出语句,输出的值x-=5为一个复合赋值运算符组成的表达式,相当于x=x-5,所以x被赋以15,表达式x-=5的值也是15;执行第二次if语句判断时,x的值为15,x>5成立,所以执行其后的输出语句,输出表达式x-的值,由于自减运算符--在变量x之后,所以是先取变量x的值作为表达式的值,然后变量x再作自减运算,所以表达式x--的值为15。所以两次输出的结果在屏幕上显示为:1515。

单项选择题 B型题
阅读理解

C
Have you ever picked a job based on the fact that you were good at it but later found it made you feel very uncomfortable over time? When you select your career, there’s whole lot more to it than assessing your skills and matching them with a particular position. If you ignore your personality, it will hurt you long-term regardless of your skills or the job's pay. There are several areas of your personality that you need to consider to help you find a good job. Here are a few of those main areas:
1) Do you prefer working alone or with other people?
There are isolating(使孤立) jobs that will drive an outgoing person crazy and also interactive jobs that will make a shy person uneasy. Most people are not extremes in either direction but do have a tendency that they prefer. There are also positions that are sometimes a combination of the two, which may be best for someone in the middle who adapts easily to either situation.
2) How do you handle change?
Most jobs these days have some elements of change to them, but some are more than others. If you need stability in your life, you may need a job where the changes don't happen so often. Other people would be bored of the same daily routine.
3) Do you enjoy working with computers?
I do see this as a kind of personality characteristic. There are people who are happy to spend more than 40 hours a week on a computer, while there are others who need a lot of human interaction throughout the day. Again, these are extremes and you'll likely find a lot of positions somewhere in the middle as well.
4) What type of work environment do you enjoy? 
This can range from being in a large building with a lot of people you won't know immediately to a smaller setting where you'll get to know almost all the people there fairly quickly.
5) How do you like to get paid?  
Some people are motivated by the pay they get, while others feel too stressed to be like that. The variety of payment designs in the sales industry is a typical example for this.
Anyway, these are a great starting point for you. I've seen it over and over again with people that they make more money over time when they do something they love. It may take you a little longer, but making a move to do what you have a passion for can change the course of your life for the better.
49.This passage mainly talks about the importance of _______.
A.different jobs      B.personalities    C.personal skills     D.job’s pay
50.Which of the following is TRUE according to the passage?
A.Isolating jobs usually drive people mad.
B.Interactive jobs make people shy easily.
C.Extreme people tend to work with others.
D.Almost everyone has a tendency in jobs.
51.What is the missing word about a job search in the following chart?
A.Design   B.Skills     C.Cooperation    D.Hobbies
 
52.What is the best title for this passage?
A.Lifestyles and Job Pay    B.Jobs and Environment
C.Job Skills and Abilities    D.Personalities and Jobs