Normally a student must attend a certain number of courses in order to graduate, and each
course which he attends gives him a credit which he may count towards a degree. In many American universities the total work for a degree consists of thirty-six courses each lasting for one semester. A typical course consists of three classes per week for fifteen weeks; while attending a university a student would probably attend four or five courses each semester. Normally a student would expect to take four years attending two semesters each year. It is possible to spread the period of work for a degree over a longer period of time. It is also possible for a student to move between one university and another during his degree courses, though this is not in fact done as a regular practice.
For every course that he follows a student is given a grade, which is recorded, and the record is available for the student to show to perspective employers. All this imposes a constant pressure and strain of work, but in spite of this some students still find time for great activity in student affairs. Elections to positions in student organizations arouse much enthusiasm. The effective work of maintaining discipline is usually performed by students who advise the academic authorities. Any student who is thought to have broken the rules, for example, by cheating has to appear before a student court. With enormous numbers of students, the operation of the system does involve a certain amount of activity. A student who has held one of these positions of authority is much respected and it will be of benefit to him later in his career.
1. Normally a student would at least attend _______ classes each week.
A. 36
B. 12
C. 20
D. 15
2. According to the first paragraph an American student is allowed _______.
A. to live in a different university
B. to take a particular course in a different university
C. to live at home and drive to classes
D. to get two degrees from two different universities
3. American universities students are usually under pressure of work because _________
A. their academic performance will affect their future career
B. they are heavily involved in student affairs
C. they have to observe university disciplines
D. they want to run for positions of authority
4. Some students are enthusiastic for positions in student organizations probably because _____
A. they have the constant pressure and strain of their study
B. they will then be able to stay longer in the university.
C. such positions help them get better jobs
D. such positions are usually well-paid
5. The student organizations seem to be effective in ______.
A. dealing with the academic affairs of the university
B. ensuring that the students observe university regulations
C. evaluating students’ performance by bringing them before a court.
D. keeping up the students’ enthusiasm for social activities
第1题:
There were forty people _______ yesterday’s meeting.
A、attending
B、attended
C、to attend
D、attend
第2题:
阅读下列说明、图以及Java程序。
[说明]
某订单管理系统的部分UML类图如下图所示。
上图中,Product表示产品,ProductList表示所销售产品的列表,Order表示产品订单,Orderltem表示产品订单中的一个条目,OrderList表示订单列表,SalesSystem提供订单管理系统的操作接口。各个类的部分属性和方法说明如下表所示。
可以使用类java.util.ArrayList<E>米实现对象的聚集关系,如上图中OrderList与 Order之间的聚集关系。
for-each循环提供了一种遍历对象集合的简单方法。在for-each循环中,可以指定需要遍历的对象集合以及用来接收集合中每个元素的变量,其语法如下:
for(用来接收集合中元素的变量:需要遍历的对象集合)
如果要使用for-each循环来遍历对象集合,那么包含该对象集合的类必须实现接口 java.util.Iterable<T>。
Java程序7-1和Java程序7-2分别给出了类OrderList和方法statistic的Java代码
[Java程序7-1]
import java.util.*;
public class OrderList (1) {
private ArrayList<Order> orders;
public OrderList0 {
this.orders = new ArrayList<Order>();
}
public void addOrder(Order orde0
this.orders.add(order);
}
public Iterator<Order> iterator() {
return (2);
}
public iht getNumberOfOrders0 {
return this.orders.size();
}
}
[Java程序7-21]
import java.u61.*;
public class SalesSystem {
private ProductList catalog;
private OrderList sales;
private static PrintWriter stdOut = new PrintWriter(System.out, true);
public void statistic() {
for (Product product: (3)) {
iht number = 0;
for (Order order: (4)) {
for ((5): order) {
if (produet.equals(item.getProduct()))
number += item. getQuantity();
}
}
stdOut.println(product .getCode() +" "
+ product.getDescription() +" "
+ number +" "+ number * product.getPrice());
}
}
//其余的方法末列出
}
第3题:
从Student类和Teacher类多重派生Graduate类
第4题:
Examine the description of the MARKS table:STD_ID NUMBER(4)STUDENT_NAME VARCHAR2(30)SUBJ1 NUMBER(3)SUBJ2 NUMBER(3)SUBJ1 and SUBJ2 indicate the marks obtained by a student in two subjects. Examine this SELECT statement based on the MARKS table:SELECT subj1+subj2 total_marks, std_idFROM marksWHERE subj1 > AVG(subj1) AND subj2 > AVG(subj2) ORDER BY total_ marks;What is the result of the SELECT statement? ()
A. The statement executes successfully and returns the student ID and sum of all marks for each student who obtained more than the average mark in each subject.
B. The statement returns an error at the SELECT clause.
C. The statement returns an error at the WHERE clause.
D. The statement returns an error at the ORDER BY clause.
第5题:
A.1000~3999
B.2000~2999
C.3000~3999
D.0~1000
第6题:
将students中的列变量重新命名为: (1)id_number, name, gender, score, has_graduate (2)选出Bob的性别gender,并存入变量bob_gender (3)选出列has_graduate,并存入向量status (4)创建数据框part_df,其中包含前三个学生的所有信息 (5)创建数据框rest_df,包含其余学生的所有信息