ssd1卡耐基选择题.doc_第1页
ssd1卡耐基选择题.doc_第2页
ssd1卡耐基选择题.doc_第3页
ssd1卡耐基选择题.doc_第4页
ssd1卡耐基选择题.doc_第5页
已阅读5页,还剩43页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

Take Assessment: Multiple-Choice Quiz 11.*Which of the following must be obtained in order to publish information in the Web? I. Authorization to publish Web pages from the WWW organizationII. Certificate of accuracy of contents from ARPA(a) None(b) II only(c) I only(d) I and II 2.A Web server and a Web client communicate using the _ protocol. 协议(a) FTP(b) URL(c) HTML(d) HTTP 3.The Internet is(a) a worldwide computer network(b) a collection of HTML documents(c) an internal part of the World Wide Web(d) a system of computers built to support e-mail delivery 4.Which of the following statements is (are) true about hyperlinks? I. Ethics dictate (伦理指示)that typically, permission is required from the owner of a Web page in order to create links to their site.II. They will be displayed by default(违约) as green and underlined.(a) II only(b) I only(c) I and II(d) None 5.Which of the following is not a valid(合法的) URL? (a) (b) (c) (d) 6.A Web site can be navigated(导航) using (a) a text editor(b) a Web browser(浏览器)(c) a Web server(网页服务器)(d) an image viewer 7.Which of the following is (are) true about publishing a Web page? I. The WWW committee(委员会) must certify that all information is accurate.II. The WWW committee must certify that all information is up-to-date.(最新的)(a) None(b) II only(c) I and II(d) I only 8.The host name in a URL is typically(a) a series of words separated by slashes(b) an email address(c) http(d) a series of words separated by periods 9.In the context(上下文) of the World Wide Web, which of the following is true about a Uniform Resource Locator(统一的资源定位器)? (a) It describes how text in a Web page is to be formatted.(b) It sells customers connections to the Internet.(c) It allows Web sites to trace the geographical location of a client.(d) It specifies(指定) the location of a Web page. 10.Which of the following URLs refer(s) to the same location as the URL /courses/index.html? I. /courses/index.htmII. /index.html(a) II only(b) I only(c) None(d) I and II Take Assessment: Multiple-Choice Quiz 2窗体顶端1.Which of the following is a valid HTML tag that sets the size of text characters? (a) (b) (c) (d) 2.In HTML, an ordered list begins with the tag _, and each item in the list begins with the tag _. (a) , (b) , (c) , (d) , 3.In HTML, the tag instructs a browser to (a) display a heading(b) shrink text(c) draw a horizontal line(d) align text to the right of the screen 4.An ordered list in a correctly written HTML page is enclosed within tags(a) and and each numbered item is enclosed within tags and (b) and and each numbered item is enclosed within tags and (c) and and each numbered item is enclosed within tags and (d) and and each numbered item is enclosed within tags and 5.Which of the following is a valid HTML segment that directs Web browsers to display green text? (a) Text(b) Text(c) Text(d) Text 6.An HTML document(文件) should begin and end with which pair of tags? (a) and (b) and (c) and (d) and 7.Consider the following segment(段) of HTML code. CNN NewsWhen the segment appears in an HTML document called links.html, the Web browser will (a) ignore the segment because the attribute value for href does not contain the sequence :/(b) create a link to the file in the same directory as links.html(c) ignore the segment because the attribute value for attribute href is a relative address(d) create a link to the front page of the server 8.Which of the following is an attribute(属性) (are attributes) of the HTML tag ? I. HREFII. NAME(a) I only(b) I and II(c) II only(d) None 9.Which of the following HTML tags is (are) typically found within tags and ? I. II. III. (a) II and III only(b) I and II only(c) I and III only(d) I, II, and III 10.Consider the following table.Which of the following HTML sequences(顺序) can be used to lay out the preceding table?(a) + 01 0 01 1 10 (b) + 01 0 01 1 10 (c) + 01 0 01 1 10 (d) + 01 0 01 1 10 11.Which of the following is (are) true of GIF and JPEG compression? I. Both are image compression techniques.II. Neither technique results in loss of information.(a) I and II(b) None(c) I only(d) II only 12.HTML files can be edited using (a) compilers(b) image editors(c) text editors(d) applet viewers 13.In the context of HTML, Markup refers to(a) an increase in price.(b) defacing a document.(c) annotating text with tags that specify how it is to appear or function.(d) adding lines or curves to text. 14.Which of the following statements is (are) true about Web browsers? I. The primary purpose of a Web browser is to execute Java programs.II. A Web browser can communicate using HTTP.(a) None(b) I and II(c) II only(d) I only 15.Drawbacks of embedding many images in a Web page include which of the following? I. Dramatically increased transfer time to fully display the Web pageII. Dramatically increased storage requirements for the Web page source(a) II only(b) I and II(c) None(d) I only 16.Clicking a browsers View Source or View Frame Source or View Page Source menu option while viewing a Web page will cause the browser to display(a) the location of the Web server that hosts the page(b) the date when the page was last modified(c) the HTML page layout in a text editor(d) the HTML code for the page 17.A link in a Web page is(a) the only part of the Web page which reacts once you click on it(b) any underlined word or group of words(c) always a reference to a different Web page(d) a picture or text that takes your browser to another location when you click on it 18.The main reason to connect two pages in a large Web site via a hyperlink is(a) to avoid copyright violation(b) to avoid using excessive graphics(c) so you dont lose any pages(d) because a reader of one page may wish to refer to the other 19.Which of the following are tags for changing the logical style of text?I. and II. and III. and (a) I only(b) III only(c) I, II, and III(d) I and II only 20.What is the conceptual difference between logical and physical styles?(a) Logical styles are intended to be used for graphics, whereas physical styles are intended to be used for text.(b) Logical styles are intended to specify the look of content, whereas physical styles are used to specify the meaning of content.(c) Logical styles are intended to specify the meaning of content, whereas physical styles are used to specify the look of content.(d) Logical styles are intended to be used for text, whereas physical styles are intended to be used for graphics. Take Assessment: Multiple-Choice Quiz 31.Which of the following is (are) necessary for a radio button or checkbox control in an HTML form to be considered successful? I. It must be checked or selected.II. The HTML FORM element in which it appears must contain at least one INPUT element with a type of hidden.III. The HTML element that defines it must set a value for the attribute named value.(a) I and III only(b) I only(c) II and III only(d) II only 2.Consider the following URL, which corresponds to the submission of an HTML form. /search?keyword=MCQ&course=SSD1According to the URL, the names of the two successful controls in the submitted form are (a) search and HTTP(b) search and GET(c) MCQ and SSD1(d) keyword and course 3.The action attribute of an HTML FORM element determines (a) the network protocol used to submit the data of the form(b) a list of form controls to submit(c) the encoding standard used to encode the data of the form(d) the processing agent to which the data of the form is submitted 4.A Java servlet is a program that typically runs inside which of the following? I. A Web serverII. A Web browser(a) II only(b) None(c) I only(d) I and II only 5.In HTML, which of the following is an attribute of the INPUT element that can be used to specify the initial value of a single-line text-input control? (a) value(b) initial(c) default(d) name 6.Which of the following HTML INPUT elements will result in a check box that appears initially in a checked state? I. II. III. (a) I, II, and III(b) III only(c) II only(d) II and III only 7.Java servlets enable _ content at the _ of the implementation of an application. (a) dynamic, client side(b) dynamic, server side(c) static, client side(d) static, server side 8.Through a _, Java servlets respond _ to requests from clients. (a) server-push mechanism, indirectly(b) Web server, indirectly(c) Web server, directly(d) server-push mechanism, directly 9.Web servers typically use _ to distinguish between requests from multiple clients. (a) aliases(b) servlets(c) META tags(d) cookies 10.Typically, a request from a client browser is forwarded to a servlet by a (a) cookie(b) response header(c) Web server(d) request headerTake Assessment: Multiple-Choice Quiz 41.Consider the following class. public class AppletClass extends java.applet.Applet public void paint(java.awt.Graphics g) g.drawString(Welcome to Java!, 30, 30); Before compiling this class, the Java compiler requires that it be stored with which of the following names? (a) Applet.java(b) AppletClass.java(c) AppletClass.applet(d) Any filename with the extension .java 2.In Java programming, a programmer creates _ files, and then a compiler translates them to _ files.(a) source, HTML(b) HTML, byte code(c) source, byte code(d) byte code, source 3.When compiling a Java program that contains syntax errors, the compiler will always (a) fix the syntax errors and complete the compilation(b) fail to complete the compilation and report a guess of what and where the errors are(c) ignore the syntax errors and create a compiled program without the lines containing errors(d) fail to complete the compilation and report the exact location of each error 4.When programming a Java applet, a programmer creates a(n) _ file, which a Java compiler translates into a(n) _ file. (a) source code, HTML(b) bytecode, source code(c) source code, bytecode(d) HTML, bytecode 5.Upon compilation, the source code of a Java class MyClass will be stored in the file _, and the corresponding byte code will be stored in the file _. (a) MyClass.class, MyClass.java(b) MyClass.java, MyClass.class(c) MyClass.java, MyClass.exe(d) MyClass.class, MyClass.exe 6.Which of the following statements is true of the process of programming? (a) Most of the time spent in programming is usually spent planning the solution to a problem.(b) The best way to program is to begin coding immediately, and then to follow up by testing.(c) Programming is synonymous with coding.(d) Programming can be made easier by dividing a larger problem into smaller pieces. 7.When a Java class is designed, which of the following is a part (are parts) of the planning stage? I. Deciding how to display the resultsII. Writing a problem definitionIII. Identifying the data needed to solve the problem(a) I and II(b) II only(c) I and III(d) II and III 8.Programming involves four general phases that the programmer moves into and out of during the development of a program. The order in which the programmer moves through these phases is generally which of the following?(a) defining/redefining - planning - implementing/coding - testing/analyzing(b) There is no defined order. The programmer moves into and out of one of the various four phases as dictated by circumstance and situation while writing the program.(c) planning - coding - testing - analyzing(d) planning - redefining- coding- testing 9.Of the following phases of programming, which is generally the phase on which most time is spent? (a) Coding(b) Planning a solution to the problem(c) Testing and evaluation(d) Defining the problem 10.Valid Java comments include which of the following? I. /* this is an /* embedded */ comment */II. /* this is an / embedded / comment */III. / this is a comment */(a) I only(b) I and II only(c) I and III only(d) II and III only 11.What is the name of the class whose definition is begun by the following line?public class Hello extends Greeting(a) Hello(b) Greeting.Hello(c) Hello.Greeting(d) Greeting 12.Which of the following is a Java statement that imports classes in the package java.sql? (a) import java.sql.all;(b) import all java.sql;(c) import java.sql.*;(d) import java.sql; 13.The following is a Java program segment:public void paint (Graphics g) int x = 10; int y = 20; paintPicture( g, x, y);public void paintPicture(Graphics g, int a, int b) g.setColor(Color.red); / more code followsWhat will be the value of the parameter a, in the method paintPicture when this code is executed?(a) 20(b) This will not compile. This is an error because the parameter a was never declared and never given a value.(c) 10(d) 0 14.Which of the following statements is (are) true about debugging and testing servlets?I. After a change is made to a servlet, the servlet must be recompiled for the change to take effect.II. Modifying the parameters of calls to the method out.println can change the HTML in the response of a servlet.(a) I only(b) II only(c) I and II(d) None 15.A Java servlet can be declared with the type of content it will produce, such as image/gif or text/html, by using a call to which of the following methods of HttpServletResponse?(a) setContentType(b) resetBuffer(c) addCookie(d) encodeURL 16.Consider a Java source file that begins with the following line. import javax.servlet.http.*;In this file, which of the following lines of code can introduce a valid definition for a Java servlet class named Welcome? (a) public class Welcome extends HttpServlet(b) servlet class Welcome(c) public servlet Welcome extends HttpServlet(d) new Welcome extends HttpServlet 17.Which of the following is (are) true regarding the Java API documentation? I. Programmers can view it on the web.II. It consists solely of Java classes and methods.(a) II only(b) I and II(c) I only(d) NoneTake Assessment: Multiple-Choice Quiz 51.In Java, which of the following is true about constructors? (a) Constructors must be declared for every class.(b) Constructors can only accept primitive Java types as parameters.(c) Constructors cannot return a value.(d) Constructors can only return 0 or a negative integer. 2.What operator is used to allocate storage for objects? (a) new(b) =(c) init(d) = 3.Which of the following variable names conforms to Java naming conventions? (a) fuelRemaining(b) FuelRemaining(c) AmountOfFuelRemainingInTheTank(d) fuel_remaining 4.Which of the following is (are) consistent with Java naming conventions regarding capitalization? I. int numPeople;II. int Counter;III. class serviceElevator(a) I only(b) None(c) I and III only(d) I, II, and III 5.If variable br references an instance of the class java.io.BufferedReader, which of the following statements is a legal call to the method readLine of the class? (a) br(readLine);(b) br.readLine();(c) br.readLine;(d) readLine(br); 6.Valid method definitions in Java include which of the following? I. public method myMethod() II. public void myMethod(int i) III. public void myMethod (a) II only(b

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论