Oracle认证考试

A UNIX user named Bob wants to replace his chess program with a new one, but he is not sure where theold one is installed. Bob is currently able to run a Java chess program starting from his home directory /home/bob using the command: java -classpath /te

题目

A UNIX user named Bob wants to replace his chess program with a new one, but he is not sure where theold one is installed. Bob is currently able to run a Java chess program starting from his home directory /home/bob using the command: java -classpath /test:/home/bob/downloads/*.jar games.Chess Bob’s CLASSPATH is set (at login time) to: /usr/lib:/home/bob/classes:/opt/java/lib:/opt/java/lib/*.jar  What is a possible location for the Chess.class file?()

  • A、/test/Chess.class
  • B、/home/bob/Chess.class
  • C、/test/games/Chess.class
  • D、/usr/lib/games/Chess.class
  • E、/home/bob/games/Chess.class
如果没有搜索结果,请直接 联系老师 获取答案。
如果没有搜索结果,请直接 联系老师 获取答案。
相似问题和答案

第1题:

package com.company.application;public class MainClass{public static void main(String[]args){}}And Main Class exists in the/apps/com/company/application directory.Assume the CLASSPATH environment variable is set to.”(currentdirectory).Which two java commands entered at the command line will run MainClass()

A.java MainClass if run from the/apps directory

B.javacom.company.application.MainClass if run from the/apps directory

C.java-classpath/appscom.company.application.MainClass if run fro many directory

D.java-classpath.MainClass if run fromt he/apps/com/company/application directory

E.java-classpath/apps/com/company/application:.MainClass if run from the/apps directory

F.javacom.company.application.MainClassifrunfromthe/apps/com/company/application directory


参考答案:B, C

第2题:

Given:And MainClass exists in the /apps/com/company/application directory. Assume the CLASSPATHenvironment variable is set to "." (current directory). Which two java commands entered at the command line will run MainClass?()

A.java MainClass if run from the /apps directory

B.java com.company.application.MainClass if run from the /apps directory

C.java -classpath /apps com.company.application.MainClass if run from any directory

D.java -classpath . MainClass if run from the /apps/com/company/application directory

E.java -classpath /apps/com/company/application:. MainClass if run from the /apps directory

F.java com.company.application.MainClass if run from the /apps/com/company/application directory


参考答案:B, C

第3题:

Bob asked his mother to buy new shoes for him.hut she refused. ( )


正确答案:
F
由“He decided not to go home at once”可知Bob并没有回家,所以他妈妈不可能拒绝,该句错误。

第4题:

A class games.cards.Poker is correctly defined in the jar file Poker.jar.  A user wants to execute the main method of Poker on a UNIX system using the command:  java games.cards.Poker  What allows the user to do this?() 

  • A、 put Poker.jar in directory /stuff/java, and set the CLASSPATH to include /stuff/java
  • B、 put Poker.jar in directory /stuff/java, and set the CLASSPATH to include /stuff/java/*.jar
  • C、 Put Poker.jar in directory /stuff/java, and set the CLASSPATH to include /stuff/java/Poker.jar
  • D、 put Poker.jar in directory /stuff/java/games/cards, and set the CLASSPATH to include /stuff/java
  • E、 put Poker.jar in directory /stuff/java/games/cards, and set the CLASSPATH to include /stuffijava/*.jar
  • F、 put Poker.jar in directory /stuff/java/games/cards, and set the CLASSPATH to include /stuff/java/Poker.jar

正确答案:C

第5题:

AUNIXusernamedBobwantstoreplacehischessprogramwithanewone,butheisnotsurewheretheoldoneisinstalled.BobiscurrentlyabletorunaJavachessprogramstartingfromhishomedirectory/home/bobusingthecommand:java-classpath/test:/home/bob/downloads/*.jargames.ChessBob’sCLASSPATHisset(atlogintime)to:/usr/lib:/home/bob/classes:/opt/java/lib:/opt/java/lib/*.jarWhatisapossiblelocationfortheChess.classfile?()

A./test/Chess.class

B./home/bob/Chess.class

C./test/games/Chess.class

D./usr/lib/games/Chess.class

E./home/bob/games/Chess.class


参考答案:C

第6题:

AUNIXusernamedBobwantstoreplacehischessprogramwithanewone,butheishotsurewheretheoldoneisinstalled.BobiscurrentlyabletorunaJavachessprogramstartingfromhishomedirectory/home/bobusingthecommand:java-classpath/test:/home/bob/downloads/*.jargames.ChessBob?sCLASSPATHisset(atlogintime)to:/usr/lib:/home/bob/classes:/opt/java/lib:/opt/java/lib/*.jarWhatisapossiblelocationfortheChess.classfile?()

A./test/Chess.class

B./home/bob/Chess.class

C./test/games/Chess.class

D./usr/lib/games/Chess.class

E./home/bob/games/Chess.class

F.insidejarfile/opt/java/lib/Games.jar(withacorrectmanifest)

G.insidejarfile/home/bob/downloads/Games.jar(withacorrectmanifest)


参考答案:C

第7题:

JDK环境变量都设置好了,在DOS中输入JAVA-VERSION也对 可怎么javac就提示不是内部或外部命令呢

环境变量如下

CLASSPATH=.\%JAVA_HOME%\lib

JAVA_HOME="C:\Program Files\Java\jdk1.6.0_02"

Path=%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Common Files\TTKN\Bin;C:\Program Files\Rational\common


你可以根据你的jdk版本号及安装路径进行相应的修改.修改后看看还有什么问题??
Path 里也得加上JAVA_HOME啊%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Common Files\Thunder Network\KanKan\Codecs;%JAVA_HOME%\bin
Path 里也得加上JAVA_HOME啊%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Common Files\Thunder Network\KanKan\Codecs;%JAVA_HOME%\bin
Path 里也得加上JAVA_HOME啊
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Common Files\Thunder Network\KanKan\Codecs;%JAVA_HOME%\bin
百度一下试试

第8题:

4 Assume today’s date is 15 May 2005.

In March 1999, Bob was made redundant from his job as a furniture salesman. He decided to travel round the world,

and did so, returning to the UK in May 2001. Bob then decided to set up his own business selling furniture. He

started trading on 1 October 2001. After some initial success, the business made losses as Bob tried to win more

customers. However, he was eventually successful, and the business subsequently made profits.

The results for Bob’s business were as follows:

Period Schedule D Case I

Trading Profits/(losses)

1 October 2001 – 30 April 2002 13,500

1 May 2002 – 30 April 2003 (18,000)

1 May 2003 – 30 April 2004 28,000

Bob required funds to help start his business, so he raised money in three ways:

(1) Bob is a keen cricket fan, and in the 1990s, he collected many books on cricket players. To raise money, Bob

started selling books from his collection. These had risen considerably in value and sold for between £150 and

£300 per book. None of the books forms part of a set. Bob created an internet website to advertise the books.

Bob has not declared this income, as he believes that the proceeds from selling the books are non-taxable.

(2) He disposed of two paintings and an antique silver coffee set at auction on 1 December 2004, realising

chargeable gains totalling £23,720.

(3) Bob took a part time job in a furniture store on 1 January 2003. His annual salary has remained at £12,600

per year since he started this employment.

Bob has 5,000 shares in Willis Ltd, an unquoted trading company based in the UK. He subscribed for these shares

in August 2000, paying £3 per share. On 1 December 2004, Bob received a letter informing him that the company

had gone into receivership. As a result, his shares were almost worthless. The receivers dealing with the company

estimated that on the liquidation of the company, he would receive no more than 10p per share for his shareholding.

He has not yet received any money.

Required:

(a) Write a letter to Bob advising him on whether or not he is correct in believing that his book sales are nontaxable.

Your advice should include reference to the badges of trade and their application to this case.

(9 marks)


正确答案:
(a) Evidence of trading
[Client address]
[Own address]
[Date]
Dear Bob,
I note that you have been selling some books in order to raise some extra income. While you believe that the sums are not
taxable, I believe that there may be a risk of the book sales being treated as a trade, and therefore taxable under Schedule D
Case I. We need to refer to guidance in the form. of a set of principles known as the ‘badges of trade’. These help determine
whether or not a trade exists, and need to be looked at in their entirety. The badges are as follows.
1. The subject matter
Some assets can be enjoyed by themselves as an investment, while others (such as large amounts of aircraft linen) are
clearly not. It is likely that such assets are acquired as trading stock, and are therefore a sign of trading. Sporting books
can be an investment, and so this test is not conclusive.
2. Frequency of transactions
Where transactions are frequent (not one-offs), this suggests trading. You have sold several books, which might suggest
trading, although you have only done this for a short period - between one and two years.
3. Length of ownership
Where items are bought and sold soon afterwards, this indicates trading. You bought your books in the 1990s, and the
length of time between acquisition and sale would not suggest trading.
4. Supplementary work and marketing
You are actively marketing the books on your internet website, which is an indication of trading.
5. Profit motive
A motive to make profit suggests trading activity. You sold the books to raise funds for your property business, and not
to make a profit as such, which suggests that your motive was to raise cash, and not make profits.
6. The way in which the asset sold was acquired.
Selling assets which were acquired unintentionally (such as a gift) is not usually seen as trading. You acquired the books
for your collection over a period of time, and while these were intentional acquisitions, the reasons for doing so were for
your personal pleasure.
By applying all of these tests, it should be possible to argue that you were not trading, merely selling some assets in
order to generate short-term cash for your business.
The asset disposals will be taxed under the capital gain tax rules, but as the books are chattels and do not form. part of
a set, they will be exempt from capital gains tax.
Yours sincerely
A N. Accountant

第9题:

Bob doesn′t look his age.I think he′s somewhere__.

A.in forty
B.in forties
C.in his forty
D.in his forties

答案:D
解析:
【考情点拨】考查固定短语。【应试指导】句意:鲍勃看起来不像他那个年纪的样子。我觉得他已经四十多岁了。in one’s?forties意为“四十多岁”,故选D。

第10题:

Bob, a user, reports that his computer is running slower since he viewed an online training presentation. Bob is also receiving an increased amount of spam email. Which of the following is the MOST likely cause of Bob’s issue?()

  • A、Virus
  • B、Worm
  • C、Network bandwidth
  • D、Malware

正确答案:D

更多相关问题