what does the following declaration mean

C (Programming Language)

Q76. What does the following declaration mean?

int (*ptr)[10];
  • ptr is an array of pointers to 10 integers
  • ptr is a pointer to an array of 10 integers
  • ptr is an array of 10 integers
  • ptr is a pointer to an array
what does the following declaration mean

linkedin assesment quizzes php

Q98. What does this code print?

class Smurf {
 
  public $name = "Papa Smurf";
 
  public function __construct($name) {
  $this->name = $name;
  }
 
  public function set_name($name) {
  $name = $name;
  }
 }
 
 $smurf = new Smurf("Smurfette");
 $smurf->set_name("Handy Smurf");
 echo $smurf->name;
  • nothing
  • Handy Smurf
  • Smurfette
  • Papa Smurf
what does the following declaration mean

linkedin assesment quizzes php

Q104. What does this code output?

try{
 echo "bodacious";
 throw new Exception();
 } catch (Exception $e) {
 echo "egregious";
 } finally {
 echo "excellent";
 }
  • bodacious excellent
  • egregious excellent
  • bodacious egregious excellent
  • bodacious egregious
what does the following declaration mean

linkedin assesment quizzes html

Q24. What does the code shown below accomplish?

<picture>
  <source srcset="image1.jpg" media="(min-width: 1000px)" />
  <source srcset="image2.jpg" media="(min-width: 750px)" />
  <img src="image3.jpg" />
 </picture>
  • It displays image1.jpg at 1000px and higher, image2.jpg at 750-999px, and image3.jpg at 749px and lower.
  • It displays image1.jps at 1000px and higher and image2.jpg at 750-999px, image3.jpg is a default in case <picture> is not supported.
  • It displays image1.jpg at 1000px and higher and image2.jpg at 750px and higher, image3.jpg is a default in case <picture> is not supported.
  • It displays image1.jpg, image2.jpg and image3.jpg at 1000px and higher.

Source: HTML <picture> Tag

what does the following declaration mean

linkedin assesment quizzes html

Q31. What does the <label> element do?

  • It labels webpages with important information.
  • It creates an ID for a corresponding input element.
  • It overrides the name attribute’s value on a child input element.
  • It programmatically associates a text label with an interface element.