Semantics is the main part of linguistics.

题目

Semantics is the main part of linguistics.

参考答案和解析
正确答案:错误
如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

有如下程序: include using namespace std; class Part{ public:

有如下程序: #include <iostream> using namespace std; class Part{ public: Part(int x=0):val(x) { cout<<val; } ~Part() { cout<<val; } private: int val; }; class Whole { public: Whole(int x, int y, int z=0):p2(x),p1 (y),val(z) { cout<<val; } ~whole() { cout<<val; private: Part p1,p2; int val; }; int main() { Whole obj (1,2,3); return 0; }程序的输出结果是

A.123321

B.213312

C.213

D.123123


正确答案:B
解析:本题考查的知识点是:类的构造与析构。建立一个类的对象时,构造函数的执行顺序如下:
①执行基类的构造函数,调用顺序按照各个基类被继承时声明的顺序(自左向右);
②执行成员对象的构造函数,调用顺序按照各个成员对象在类中声明的顺序(自上而下:(如果一行声明了多个对象,则还要遵循自左向右)
③执行自身的构造函数。
析构顺序与之相反。本题的Whole类没有基类,但有两个Part类的成员p1和p2。根据它们定义的顺序,应该先构造p1再构造p2,而不是按Whole的构造函数中初始化列表的顺序那样构造。所以,第1个被构造的是p1(y),输出一个2;第2个被构造的是p2(x),输出一个1;最后调用自身构造函数,输出val的值3。析构函数严格与之相反。故输出结果为213312,本题应该选择B。

第2题:

有如下程序:includeusing namespace std;class Part{public:Part(int x=0):val(x){co

有如下程序: #include<iostream> using namespace std; class Part{ public: Part(int x=0):val(x){cout< ~Part( ){cout<<val;} pritave: int val; }; class Whole{ public: Whole(int x,int Y,int z=0):p2(x),p1(Y),val(z){cout<<val;} ~Whole( ){cout<<val;} pritave: Part p1,p2; int val; f; int main( ){ Whole obj(1,2,3); return 0; } 程序的输出结果是

A.123321

B.213312

C.213

D.123123


正确答案:B
解析:当类中出现其他类的对象时,先对该对象初始化,即调用对象类的构造函数,然后调用本类的构造函数;进行撤销时,先调用本类的析构函数,然后再调用类中对象所对应的类的析构函数。对象的创建顺序和构造函数声明中的参数顺序无关,而同类中定义的先后顺序有关。故先创建p1,再创建p2,撤销时先撤销p2,再撤销p1。 

第3题:

What are the main roles of community pediatricians? ()

A、work as part of general pediatric team

B、concentrating on neuro-disability and child protection

C、work at interface between health and education or social services

D、are seen in general pediatric outpatient department


参考答案:ABC

第4题:

Students from other countries think that ______.

A. it's easier to get part-time work abroad

B. there are more activities to take part in than at home

C. everyone can get scholarships or special loans

D. their main problem abroad is the lack of money


正确答案:D
本题属理解分析题。文章第二段中已提到:外国留学生解决钱的问题通过努力学习来获得助学
金或者特殊贷款,第一段也主要讲:在美国上学的费用问题,故本文的主旨是:学生上学的主要问题是学
费。

第5题:

写出下列程序的运行结果【】。 include void func(double x, int &part1, double

写出下列程序的运行结果【 】。

include<iostream. h>

void func(double x, int &part1, double &part2){

part1=int(x)+500:

part2=(x+500-part1)*100;

}

void main( ){

int n;

double x, f;

x=1001. 0103;

func (x, n, f):

cout<<"Part 1="<<n<<" , part2="<<f<<end1

}


正确答案:part1=1501 part2=1.03
part1=1501, part2=1.03

第6题:

Semantics is the study of " the relations of signs to the objects to which the signs are applicable".()


参考答案:正确

第7题:

The "main storage" normally means that part of internal storage into which instructions and other data must be loaded for subsequent execution or processing. In large computing systems, the term "main storage" is(71) to "memory". "Buffer" mainly indicates a special-purpose storage or storage area allowing, through(72) storage, the data transfer between two functional units having different transfer characteristics. A buffer storage is used between non-synchronized devices or where one is(73) and the other is parallel or between those having different trans far rates. "(74) (memory)" is also a special-purpose buffer storage, smaller and faster than main storage, used to hold a copy of instructions and data obtained from main storage and likely to be needed next by the processor. "Register" is commonly composed of a part of internal storage having a specified storage(75) and usually intended for a specific purpose.

A.suitable

B.optional

C.choice

D.preferred


正确答案:D

第8题:

( 29 )有如下程序:

#include<iostream>

using namespace std;

class Part{

public:

Part(int x=0):val(x) {cout<<val;}

~Part(){cout<<val;}

private:

int val;

};

class Whole{

public:

Whole(int x ,int y, int z=0):p2(x),p1(y),val(z){cout<<val;}

~Whole(){cout<<val;}

private:

Part p1,p2;

int val;

};

int main(){

Whole obj(1,2,3);

return 0;

}

程序的输出结果是

A ) 123321

B ) 213312

C ) 213

D ) 123123


正确答案:B

第9题:

有如下程序: #jnClude<iostream> using namespaCe std; Class Part{ publiC: Part(int x=0):val(X){Cout<<val;} ~Part{Cout<<val;} private: int val; t }; Class Whole{ publiC: Whole(int x,int Y,int z=0):p2(x),pl(y),val(z){Cout<<val;} ~Whole{eout<<val;} private: Part pl,p2; int val; }; int main { Whole obj(1,2,3); return 0; } 执行这个程序的输出结果是( )。

A.123321

B.213312

C.213

D.123123


正确答案:B
本题考查带参数的构造函数。本题中定义了一个对象obj,那么执行其构造函数,初始化p1,p2的顺序是由声明这两个成员的顺序决定的,而不是由参数化列表顺序决定,所以本题中,会先执行p1,输出2,然后执行p2输出1,然后输出3,最后一次输出312。所以本题答案为8。

第10题:

The part of the shipboard electrical system used to control the distribution of power to the branch circuits, is the ______.

A.bridge control panel

B.disconnect links

C.main switchboard

D.governor relay box


正确答案:C