1+x Certificate Web Front-end Development Intermediate Theory Examination (Exam Paper 9)
Official QQ Group
1. A total of 30 questions, 60 points
existJavaScriptThe correct description of the following options about this is ()
A When using new to instantiate an object, this points to this instance object
B When the object is calledfunctionOr when a method, this points to this object.
In strict mode, this points to window
D In any case this pointing cannot be modified once it is determined
The difference between mysql_connect() and @mysql_connect() is:
A@mysql_connect() will not ignore the error and display the error to the client
Bmysql_connect() will not ignore the error and display the error to the client
C No difference
D Two functions with different functions
Which of the following classes are used for containers that are fixed-width and support responsive layouts?
Acontainer
Bcenter
Ccontainers
DcontainerFluid
Use the () attribute in CSS to implement text surround images.
Amargin
Bfloat
Cpadding
Dsrc
Which type is a slider control in a form form?
Asearch
Bcontrols
Cslider
Drange
existMySQLIn, the keyword used by joint query is ()
AJOIN
BUNION
CALL
DFULL
existLaravelIn the framework, use the () keyword for different parts of the template file?
A@class
B@yield
C@extends
D@section
Is the correct writing format for inserting comments in a CSS file ()?
A//this is a comment
B#this is a comment//
C/this is a comment/
D’this is a comment
In PHP operators, the priority from high to low is ( )
A relational operator, logical operator, arithmetic operator
B arithmetic operations, relational operators, logical operators
C logical operators, arithmetic operators, relational operators
D relational operators, arithmetic operators, logical operators
In MySQL, the wrong statement about index management is ()
A You can create an index when executing a CREATE TABLE statement, or you can use CREATE INDEX or AL TER TABLE to add an index to the table
B It is possible to set that certain field columns in the data table cannot contain duplicate values through a unique index
Both CALTER TABLE or DROP INDEX statements can delete indexes in data tables
D The command to view the index is: SHOW INDEX Data table name
In cache, the maximum limit that a cookie can store is ( )
A1kb
B2kb
C3kb
D4kb
The following tags do not belong to the list tag ()
Aul
Bdl
Col
Dp
The following execution result in javascript is incorrect ()
(3, 4, 5) Return 5
(-9) Return 9
(3.5) Return 3
(4.2) Return 4
In the Laravel framework, when a form submits a request, the following statement is correct ()
A requests with get, and token verification is required;
B Use post to request, and token verification is required. Add {{ csrf_field() }} or @csrf to the form;
C requests with get and post, do not require token verification;
D The above statements are not correct;
In bootstrap4, the error in the split screen type of responsive raster system is ().
-sm-
-md-
-sx-
-lg-。
In MySQL, if you find out the information of all the boys in the class teacher "Wang Xiaoxiao" class, the correct SQL statement is ()
Aselect * from student where gender ='male' and class number == (select class number fr om class where class teacher ='Wang Xiaoxiao')
BSelect * from student where gender ='male' and class number in (select class number fro m class where class teacher ='Wang Xiaoxiao')
CSelect * from student where gender ='male' and class number union (select class number from class where class teacher ='Wang Xiaoxiao')
DSelect * from student where gender ='male' and class number as (select class number fr om class where class teacher ='Wang Xiaoxiao')
In php, the result of $result in the following code is () $x=""; $result=is_null($x); var_dump($result);
A Report an error
Bbool(true)
Cbool(false)
D""
In processing the response, if we want to process it in text, what attributes do we need to place the XMLHttpRequest object in the parameter table?
In javascript, declare an object, add the name attribute and show method to display its name value. The correct one in the following code is ()
Avar obj = [name:"zhangsan",show:function(){alert(name);}];
Bvar obj = {name:"zhangsan",show:”alert()”};
Cvar obj = {name:"zhangsan",show:function(){alert(name);}};
Dvar obj = {name:"zhangsan",show:function(){alert();}};
In php, the number of executions of statements for(k=0;k=1;k++); and statements for(k=0;k==1;k++); are respectively:
A Infinite and 0
B0 and Infinite
C is infinite
D is 0
Regarding mysql_fetch_object statement, the correct one is: ( )
Amysql_fetch_object is the same as mysql_fetch_array, no difference
Bmysql_fetch_object The return value is an object, so it is slower than mysql_fetch_array in terms of speed
Cmysql_fetch_object The return value isArray, so in terms of speed, it is almost the same as mysql_fetch_array and m ysql_fetch_row
Dmysql_fetch_object The return value is an object, which is similar to mysql_fetch_array and mysql _fetch_row in terms of speed
Which of the following is a new attribute added to CSS3 ()
Abox-shadow
Bborder
Cbackground
Ddisplay
Is the bootstrap plugin developed based on()?
Ajavascript
Bjquery
Cangular js
Dnode js
What is not part of the implementation principle of a grid system is ()
A Customize the size of the container. Average divided into 12 copies
B Developed based on JavaScriptComponents
C combined with media query
The wrong statement about the usage of "+" in javascript is ()
A can be used for addition operations
B Cannot convert data types
C can link strings
D can be a symbol for executing the function immediately
The readyState status of the XMLHttpRequest object, when ==1 indicates: ()
A Request received
B The server link has been established
C Request completed
D Not initialized
In laravel, the interface file should be placed under which path ()
Aapp\http\controllers
Bpublic/html
Cresources\views
Droutes
In MySQL, the correct SQL statement to create a database test is ()
ACREATE DATABASE IF EXISTS test
BCREATE IF NOT EXISTS test
CCREATE DATABASE IF NOT EXISTS test
DCREATE IF NOT EXISTS test
DATABASE
In the MySQL database server, you can view all available databases in the current system and execute the ( ) instruction.
ASHOW DATABASES;
BSHOW TABLES;
CDESCRIBE DATABASES;
DDISPLAY LIBRARIES;
In jQuery, the following statement is wrong ( )
A$("ul li:first") refers to selection
- The first one below
- Sub-elements
B$("ul li:gt(2)") refers to selection- The index under the following starts with 2
- Sub-elements
C$("ul li:eq(2)") refers to selection- The index below is 2
- Sub-elements
D$("ul li:not(:first)") refers to selection- Except for the first one
- All child elements
- Sub-elements
2. A total of 15 questions, 30 points
In MySQL, create a shopping table, where one of the fields records the shopping time (requires accurate to seconds), then the appropriate data type for this field is ().
ADATE
BTIME
CDATETIME
DTIMESTAMPIn Bootstrap4, the following statement is correct
A<576px pixels are ultra-small screens, using .col-*
B≥576px pixels are small screens, use .col-sm-*
C≥768px pixels are medium screens, use .col-md-*
D≥992px pixels are large screens, use .col-lg-*
E≥1200px pixels are super large screens, using .col-xl-*The following tags belong to HTML5 structure tags ()
Aheader
Bfooter
Cnav
Dhgroup
EpUsing Ajax can bring convenience ()
A Reduce the burden on the server
B No refresh update page
C can call external data
D Can not use Javascript scriptsWhat key names can be used for arrays in php?
A Number key name
B Subscript
Cnull
D Text (or string) key nameIn MySQL, the correct statement about database recovery is ( )
A SQL statements in the backup SQL file can achieve the purpose of database recovery
The BSOURCE command to restore the database is: SOURCE /path/db_name.sql
C The syntax for using the mysql command to restore a database is: mysql ?u username ?p [dbname] < /path/db_name.sql
The DSOURCE command recovery database can be executed in the DOS command window as well as the mysql command.The technologies that make up Ajax include ()
ADOM
BXML
CJS
DHTMLThe following statement is correct ()
All tags representing titles in AHTML should be used with h1
B should use h1 as the main title (most important), followed by h2 (second important), followed by h3 and so on.
C You should decide to use the appropriate title tag based on the hierarchical relationship of the content in the page.
The Dh1 tag is used to describe the top-level title in a web page.In MySQL, the following statement about data types is correct ()
Avarchar type and char type are both string types, there is no difference
Field of type Bvarchar(4), if "abcdef" is inserted, an error with excessive length will be reported.
The length of the Cvarchar type is fixed, and the length of the char type is variable
Field of type Dchar(2) when inserting "abc", the number of characters occupied is 2, and inserting "ab" in the databaseIn laravel, the correct statement about page jump is
Return redirect('home/test'); method of using redirect to jump in the controller;
Bfront page, this method is for command routing;
Cfront page, this method can be used without a named route;
Dfront pageThe correct statement about RESTful API is ()
A It is a standard, stateless request
B The requested routing address is fixed
C usage standards include .post .put .delete
D All the above statements are correctPHP allows comment symbols:
A//
B Closed paragraph
C#
D/and/ Closed paragraphWhat is the correct statement about the difference between session and cookies?
Asession and cookies can record data status.
B There is no output until session and cookie are set.
C Before using cookies, use the cookie_start() function to start.
D Before using session, use the session_start() function to start.About HTML tags that are correct ()
Adiv tags are mainly used for layout
The code indentation in the tag in Bhtml is for easy reading
Cweb frontend
DCannot nest ul,h tagsWhat are the types of transforms ()
Ascale
Bskew
Ctranslate
Drotate
Etansition3. Judgment questions total 5 questions, 10 points
Same-origin policy refers to the domain name, protocol, and port.
A Yes
B WrongThe principle of ajax is "get data on demand", which can minimize the burden on the server caused by redundant requests and responses.
A Yes
B WrongIn MySQL, using indexes cannot avoid scanning of full tables
A Yes
B Wrong"use 'demoDB'" in mysql switch to demoDb database
A Yes
B WrongYou can use echo output data types in PHP programs
A Yes
B Wrong1+x certificate web front-end development junior corresponding course analysis
http://blog.//archives/194/