Postman Mcqs SDE intern

Can someone please list the answers to the ten mcqs below(single option correct).

  1. HTTP Content type when you open webpage - 1)Application/json 2) Text/html 3) Application/json

  2. HTTP component which helps to identify resource of server - 1) Uniform Resource Information
    2)Uniform Resource Locator 3) Uniform Resource Indicator 4)None of these

  3. Best algo to search for word in dictionary - 1)Binary search 2)Ternary search 3) Selection search 4)Matrix search

  4. Output of 10 / 5 === 1 ? 'bar' : 'foo' - 1) 'bar'. 2) 'foo' 3)null

  5. In a computer program variables are -

    • A part of compiler which generates numeric values
    • A part of code which can refer to different values
    • A part of interpreter which changes over time
    • A part of syntax which changes based on usage
  6. IPv6 range - 1. 2^128 2. 2^16 3. 2^32 4. 2^64

  7. Right answer to this statement - c = i++ - 1)value of i assigned to c and then incremented
    2) value of i incremented then assigned to c

8.Best data structure to validate html - 1) Stack 2) Queue 3) Btrees 4)heaps

9.Meaning of 3XX response code - 1) client error 2) redirection 3)success 4) server error

  1. Job of compilers - 1)Move program into memory for execution
    2)Transform code into executable bytecode
    3)Saves latest state of application onto disk
    4)Removes unused variables from memory
Comments (3)