软件工程综合知识

阅读代码回答问题,正确的是()。 #head{Position:absolute;Left:9px;Top:12px;Width:200px;Height:60px;Background-color:#FF0000;}A、#head 类选择器B、Position:absolute;绝对定位,页面的元素固定不变C、Width:200px;Height:60px;表示左右和上下边距D、Background-color:#FF0000;背景图片

题目

阅读代码回答问题,正确的是()。 #head{Position:absolute;Left:9px;Top:12px;Width:200px;Height:60px;Background-color:#FF0000;}

  • A、#head 类选择器
  • B、Position:absolute;绝对定位,页面的元素固定不变
  • C、Width:200px;Height:60px;表示左右和上下边距
  • D、Background-color:#FF0000;背景图片
如果没有搜索结果,请直接 联系老师 获取答案。
如果没有搜索结果,请直接 联系老师 获取答案。
相似问题和答案

第1题:

阅读以下关于网页制作和网页编程的说明,回答问题1至问题3,并把解答填入对应栏中。

【说明】

某公司制作了一个电子商务网站,下图是网站向消费者收集反馈情况的反馈表。用户在填写反馈表时,需要正确地输入自己的相关信息,否则不能够提交成功,并且弹出提示信息。该功能通过调用外部JavaScript脚本checkinput.js文件实现。

下面给出的是搜索按钮触发过程的代码,请根据下图完成下述HTML代码中空缺的部分。

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312">

<title> (1) <style type="text/css">

<!--

.style2 {color: 3399CC}

-->

(2)

<script. language="JavaScript" src=" (3) ">

</script>

</head>

省略部分代码……

<td height="20" align="center" valign="top">公司名称:</td>

<td valign="middle">

<form. action=" "method=" (4) "name="form3">

<input name="textfield3" type="text" size="20">

</form></td>

省略部分代码……

省略部分代码……

</ html>


正确答案:(1)用户反馈表 (2)/style> (3)checkinput.js (4)post (5)submit
(1)用户反馈表 (2)/style> (3)checkinput.js (4)post (5)submit

第2题:

__(41)__是正确的网页代码结构。A. </html> </head> </body>B.

__(41)__是正确的网页代码结构。

A.<html> </html> <head> </head> <body> </body>

B.<tml> < head > <body> </body> < /head > < /html >

C.<html> < head > < /head > <body> </body> < /html >

D.<html> <body> < head > < /head > </body> < /html >


正确答案:C
此题考查了THML网页的基本代码结构,其格式为:html>head>/head>body>/body>/html>

第3题:

阅读材料.回答下列问题。


正确答案:
答:(1)①从材料一可见,生态环境的恶化、自然灾害频发与人类没有从根本上尊重客观规律有关。规律具有客观性、普遍性。人类如果违背了规律,就会受到规律的惩罚。地球生态环境恶化就是客观规律对人类的惩罚。②材料二说明,人的意识对客观事物具有能动作用。意识活动具有目的性、计划性、主动创造性和自觉选择性。中国人民在党和政府领导下从实际出发,制定切实可行的拯救计划,充分发挥主观能动性,生产自救,重建家园,最终取得了抗灾救灾的重大胜利。③尊重客观规律和发挥主观能动性要求我们一切从实际出发,实事求是,把革命的热情和科学的态度结合起来,才能处理好人与自然的关系。
(2)创新是一个民族的灵魂,是一个国家兴旺发达的不竭动力。我们建设创新型国家,核心就是要增强自主创新能力。

第4题:

An unconscious person should NOT be ______.

A.placed in a position with the head lower than the body

B.given an inhalation stimulant

C.given something to drink

D.treated for injuries until conscious


正确答案:C
不省人事,无意识的人不应该给他一些东西喝。

第5题:

EXCEPT when suffering from a head or chest injury a patient in shock should be placed in which position? ______.

A.Head up and feet down

B.Head down and feet up

C.Flat on back with head and feet elevated

D.Arms above the head


正确答案:B

第6题:

试题五(共 15分)

阅读以下关于 C语言及 C代码的叙述,回答问题 1至问题 3,将答案填入答题纸的对应栏内。

【说明】

在开发某嵌入式系统时,设计人员根据系统要求,分别编写了如下三部分程序,其中:

【C代码 1】是李工为了在嵌入式平台上开发一段可变参数函数,在X86 平台上实现的一个参数个数可变函数实例。

【C代码 2】是王工在编写软件时,自己编写的内存拷贝函数。

【C代码 3】是赵工编写的一段数据处理的程序,其中 fun()的含义为从已创建的一个单向链表中查找倒数第index 个节点。他的设计思路为:首先创建两个指针 ptrl,ptr2,并且都指向链表头,然后 ptrl向前走index 步,这样ptrl和 ptr2 之间就间隔 index 个节点,然后 ptrl和ptr2 同时向前步进,当 ptrl到达最后一个节点时,ptr2 就是倒数第 index 个节点了。ReverseList()为赵工编写的对已有单向链表进行逆序重排的函数。

【C代码 1】

long sum(int i,...)

{

int *p,j;

long s = 0;

p=&i+1;

for(j=0;j<i;j++)

s+=p[j]

return s;

}

long Sum = sum(3,l,2,3);

【C代码 2】

static int pent;

……

void *MyMemcpy(void * dest, const void* src, int n )

{

char *pDest = (char *)dest;

char *pSrc = (char *)src;

for (int i=0;i<n; i++) {

*(pDest +i) = *(pSrc+i);

} return dest;

}

【C代码 3】

node *fun(node * head, int index)

{

node *ptr1,*ptr2;

int 1 = 0;

ptr1 = head;

ptr2 = head;

if( head == NULL || head->next == NULL)

return ptrl;

while(i<index)

{

(1)

if(ptrl == NULL)

return head;

i++;

}

while(ptrl->next != NULL)

{

ptrl = ptrl->next;

(2) ;

}

return (3) ;

}

node* ReverseList(node *head)

{

node *templ = NULL;

node *temp2 = NULL;

node *temp3 = NULL;

if((head->next == NULL) || (head == NULL))

{

return head;

} templ=head;

temp3= templ->next;

templ->next= NULL;

while(temp3->next!=NULL)

{

temp2 = temp3;

temp3= temp3->next;

(4) ;

templ=temp2;

}

temp3->next= templ;

retum (5)

}

【问题1】(3分)

执行【C代码 1】后,Sum的值应为多少?请用十进制表示。

【问题2】(7分)

请问【C代码2】中 static的作用是什么?const的作用是什么?王工自己编写的内存拷贝函数安全吗?

如存在缺陷,请指出缺陷在哪里。

【问题3】(5 分)

仔细阅读并分析【C代码 3】,填补其中的空(1)~(5)。


正确答案:
试题五(共15分)
【问题1】(3分) Sum=6
【问题2】(7分)
1) static的作用:是将变量修饰成静态变量,静态变量的存储地址在整个程序的运行执行期间均保留,不会被别的变量占据。
2) const的作用:是用于冻结一个变量,使其值在程序中不能被进一步改变。
3)不安全,有缺陷。
4)应对形参的有效性进行检查,应判形参dest、src指针是否为空,形参n是否大于0,还应保证dest所指向的内存空间不越界。
【问题3】(共5分)
(1) ptrl=ptrl->next
(2) ptr2=ptr2->next
(3) ptr2
(4) temp2->next= templ
(5) temp3

第7题:

if you want to change the position of the head line forward for 3 meters, what do you say?


正确答案:Shift the head line 3 meters forward.

第8题:

颅脑损伤记忆训练PQRST法正确的是 ( )

A、P-先预习要记住的内容

B、Q-向自己提问与内容无关的问题

C、R-为了回答问题而仔细阅读资料

D、S-反复陈述阅读过的资料

E、T-用回答问题的方式来检验自己的记忆


参考答案:ACDE

第9题:

A patient in shock should NOT be placed in which position?

A.On their side if unconscious

B.Head down and feet up,no injuries to face or head

C.Flat on their back with head and feet at the same level

D.Arms above their head


正确答案:D

第10题:

阅读以下C代码,回答问题1和问题2,将解答填入答题纸的对应栏内。【C代码1】


【问题2】写出【代码2】的运行时的输出结果。


答案:
解析:
(1)输入-1331的结果是:Palindromic number.a=-1331 b=1331 输入795的结果是:a=795 b=597(2) Passed,point=4 Passed,point=1 Passed,point=1Passed,point=1 Failed

更多相关问题