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?()
第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
第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
第3题:
Bob asked his mother to buy new shoes for him.hut she refused. ( )
第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?()
第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
第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)
第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
第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)
第9题:
第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?()