4399 2019 front-end pen questions

Disclaimer

Questions about this blog post from 4399 Campus Recruitment 2019, for reference, if infringement, please inform deleted!

Topic Share

First, multiple choice

  1. The following is not TCP has the ability to be C

    A. reliable data transmission

    B. connection

    C. sequence number of connections reaches

    D. end to the amount of control

  2. K binary tree depth up to a few nodes B

    A. 2^k

    B. 2^(k-1)

    C. 2^k+1

    D. 2^k-1

  3. The following types of attacks xss which is not? D

    A. storage type XSS

    B. reflective XSS

    C. DOM XSS type

    D. relational XSS

  4. Which of the following is not a property CSS box model?A

    A. font

    B. margin

    C. padding

    D. border

  5. The following properties a hidden layer which can be achieved? D

    A. display: "

    B. display: false

    C. display: hidden

    D. display: none

  6. Which way to load resources can support http and https requests at the same way? C

    A. <link type="text/css" href='//4399.com/style.css'>

    B. <link type="text/css" href='https://43399.com/style.css'>

    C. <link type="text/css" href='http://4399.com/style.css'>

    D. <link type="text/css" href='file://4399.com/style.css'>

  • [A]
    AD is not the right way to load resources. http https compatible, which is to support https protocol to access the link also supports the http protocol access, not vice versa.
  1. Html5 stored on the following statements is correctB

    A. sessionStorage will take effect after you close your browser

    B. cookies storage size can not exceed 4k

    C. localStorage browser is closed after failure

    D. localStorage different sources can be shared window

  • [A]
    sessionStorage and localStorage can do localized storage, which can reach the size of 5K;
    the cookie is often used as transmission between client and server, its size can not exceed 4k, easy to transport;
    sessionStorage the life cycle of the current browser window is closed after the failure of the browser; localStorage life cycle is perpetual, unless cleared manually.
  1. The following C language program, the final output is

    main(){
         int i=0,s=0;
         for (;;){
             if(i==4)continue;
     		if (i5)break;
             i++;
             s+=i;
         }
        printf("%d\n",s);
    }
    

    15 A.
    B. 2
    C. 10
    D. endless loop

  2. UML is a vital tool for software development, software development methodology which is mainly used in it B

    A. Based on a structured approach to the waterfall model

    B. Object-based object-oriented approach

    C. prototyping dynamically defined based on the needs of

    D. development method based on data flow of the data

  3. Property which is not jquery form objectsC

    A. :enabled

    B. :disabled

    C. :hidden

    D. :selected

  4. About Sass Which of the following statement is wrong?

    A. Sass is fully compatible with css3

    B. Sass support functions

    C. Sass support firebug

    D. Sass without compiling

  5. Statement is wrong on webpack

    A. webpack itself only understands Javascript, non-Javascript files need to deal with loader

    B. bundle is packed out webpack file

    It can be used to separate the code C. SplitchunksPlugin

    D. weback-dev-server in inline mode, when the front-end code changes without having to refresh the entire page, only to replace part of the change

  6. The following code is run results

    var game='4399'
    game.substring(2,1)
    console.log(game)
    

    A. 4

    B. 3

    C. 4399

    D. 9

  7. [typeof null, null instanceof Object]The result is A

    A. [“object”, false]

    B. [null,false]

    C. [“object”, true]

    D. other

  8. [1<2<3,3<2<1]The result is B

    A. [true, false]

    B. [true, true]

    C. error

    D. other

Second, the technical essay questions

  1. localstorage with cookie What are the differences (answer two kinds)? Use localstorage what needs attention?
  2. How to optimize front-end website performance?

Third, the programming problem

  1. Use front-end cache localstorage implement the following two methods to cache user title browsing history, localstoragetitle title_history use this key.

    function get() //获取历史标题列表;返回一个数组
    function addtitle() //增加一个标题记录
    
  2. Suppose there is a string s, and a length of up to 1000, write function palindrome found in the string of characters longest palindromic fragment.

    Example 1: s is cdcde ", output: cdc, Note:" dcd also a valid value.

    Example 2: s is "cdde", the output "dd

    Note: If the time is not enough, you can list the problem-solving ideas, as appropriate to the sub.

  3. Page includes a div, id is Rotate, Red background color, width 200px, 100px height click on the div, div starts to rotate, the rotation speed of the click stop button clicks again, the rotational speed decreases div (html + css + js)

    Tip: Use requestanimationframe

Fourth, the subjective essay questions

  1. Nearly two years, what is the biggest problem you encountered? How did you locate and solve the problem?
  2. University of the past few years they have established what kind of goals? What about reached? Why?
  3. What is your biggest weakness? Or do you think the next 35 years are most likely to hinder what personality factors that you grew up is?
  4. Please describe an example, you have solved a technical problem can not be resolved other students, how do you do it?
  5. If you and your colleagues are assigned to a mission of two modules, he did not fully understand his module, and if you do change his very efficient module will be completed soon, how would you do?
Published 29 original articles · won praise 8 · views 4784

Guess you like

Origin blog.csdn.net/qq_40738077/article/details/100643036