On This Page

This set of Web Technologies Multiple Choice Questions & Answers (MCQs) focuses on Function and String in PHP

Q1 | Which of these values can a boolean variable contain?
  • true & false
  • 0 & 1
  • any integer value
  • true
Q2 | Decrement operator, −−, decreases the value of variable by what number?
  • 1
  • 2
  • 3
  • 4
Q3 | Which right shift operator preserves the sign of the value?
  • <<
  • >>
  • <<=
  • >>=
Q4 | What is the output of relational operators?
  • integer
  • boolean
  • characters
  • double
Q5 | . Which of these is returned by “greater than”, “less than” and “equal to”operators?
  • integers
  • floating – point numbers
  • boolean
  • none of the mentioned
Q6 | Which of these jump statements can skip processing the remainder of thecode in its body for a particular iteration?
  • break
  • return
  • exit
  • continue
Q7 | Which of the following is not a decision making statement?
  • if
  • if-else
  • switch
  • do-while
Q8 | Which of the following is not a valid flow control statement?
  • exit()
  • break
  • continue
  • return
Q9 | Which of these operators is used to allocate memory to array variable in Javascript?
  • malloc
  • alloc
  • new
  • new malloc
Q10 | Which of these is an incorrect array declaration?
  • int x[] = new int[5]
  • int [] arr = new int[5]
  • intarr[] = new int[5]
  • int x[] = int [5] new
Q11 | Which of these selection statements test only for equality?
  • if
  • switch
  • if & switch
  • none of the mentioned
Q12 | The CSS background properties are used to define the ___________effects.
  • background
  • customize
  • class
  • id rule
Q13 | CSS border properties allow us to__________ the borders.
  • background
  • customize
  • class
  • id rule
Q14 | By applying an_______ a style can be applied to just a single tag.
  • background
  • customize
  • class
  • id rule
Q15 | _________selectors are used to specify a group of elements.
  • background
  • customize
  • class
  • id rule
Q16 | In CSS, “font-size” can be called as ________
  • property name
  • selector
  • declaration
  • text color
Q17 | In CSS, h1 can be called as _______
  • property name
  • selector
  • declaration
  • text color
Q18 | In , CSS “color:red” can be called as _____________
  • property name
  • selector
  • declaration
  • text color
Q19 | Reset (button) :- it is used to reset the button ( cancel the data) to upload
  • checkbox