Digital Marketing Certification Course Exam Questions & Answers (DMCCEQA)
DMCCEQA.com
- Google
- DoubleClick
- Ad Exchange API Basics
- Ad Exchange Basics
- Ad Exchange Brand Controls Basics
- Bid Manager Basics
- Bid Manager Brand Controls Basics
- Billing Basics
- Campaign Manager Basics
- Campaign Manager Brand Controls Basics
- Optimize bids and creatives in Ad Exchange
- Optimize performance in Campaign Manager
- Optimize performance in Search
- Optimize your Bid Manager campaign
- Search Basics
- Search Campaign Management
- Search Ecommerce Management
- Search Mobile Basics
- Studio
- Mobile in DoubleClick Bid Manager Basics
- Mobile in DoubleClick Campaign Manager
- Optimize Performance In DoubleClick Search
- TrueView in DoubleClick Bid Manager Basics
- Video in DoubleClick Campaign Manager
- Dig into ad formats on Ad Exchange
- Dig into programmatic and Ad Exchange
- Digital Transformation:
- Google Marketing Platform
- Google Analytics
- Other Google Certifications
- Ad Manager 360 Reseller
- Adsense Multiple Customer Management
- Campaign Manager Optimization
- Display & Video 360 Basics
- Dynamic Creatives
- Optimize Bids And Creatives
- Scaled Partner Management
- Google Cloud Platform Business Professional Accreditation
- Google Distance Learning For Educators
- Google My Business Basics
- Google Ads
- Google Smart
- Jamboards Academy:
- Google Digital Garage:
- Google Educator
- Google Waze
- Android Enterprise Academy
- DoubleClick
- LinkedIn
- LinkedIn Adobe Acrobat Skill Assessment Quiz Answers 2022
- LinkedIn Adobe Photoshop Skill Quiz Answers 2022
- LinkedIn Microsoft Word Skill Quiz Answers 2022
- LinkedIn PHP Skill Quiz Assessment Answers 2022
- LinkedIn Python Skill Assessment Quiz Answers 2022
- LinkedIn Search Engine Optimization Skill Quiz Answers 2022
- LinkedIn WordPress Skill Quiz Answers 2022
- YouTube
- Amazon
- Microsoft
- Yandex
- Klipfolio
- WooRank
- Hootsuite
- HubSpot
- HubSpot CMS For Developers
- HubSpot Content Marketing
- HubSpot Contextual Marketing
- HubSpot Design
- HubSpot Email Marketing
- HubSpot Frictionless Sales
- HubSpot Growth Driven Design Agency
- HubSpot Growth-Driven Design
- Hubspot Inbound
- HubSpot Inbound Marketing
- HubSpot Inbound Sales
- HubSpot Marketing Software
- HubSpot Sales Enablement
- HubSpot Sales Management Training:
- HubSpot Sales Software
- HubSpot Social Media
- HubSpot Service Hub Software
- HubSpot CMS For Marketers Certification Exam Answers 2022
- HubSpot Digital Advertising Certification Exam Answers 2022
- HubSpot Digital Marketing Course Answers 2022
- HubSpot Reporting Certification Exam Answers 2022
- HubSpot SEO Certification Course Answers 2022
- SEMrush
- SEO Toolkit Exam For Advanced SEMrush Users
- SEMrush Advertising Toolkit
- SEMrush Affiliate Program Terms
- SEMrush Competitive Analysis And Keyword Research Test
- SEMrush Content Marketing Toolkit
- SEMrush For Digital Agencies
- SEMrush Keyword Research
- SEMrush On Page And Technical SEO
- SEMrush PPC Fundamentals
- SEMrush SEO Fundamentals
- SEMrush SEO Toolkit
- SEMrush Site Audit
- SEMrush SMM Fundamentals
- SEMrush Social Media Toolkit
- SEMrush Technical SEO
- SEMrush Advanced Competitive Research
- SEMrush Backlink Management
- Competitor Analysis With SEMrush
- SEMrush Link Building Test
- SEMrush Management Reporting and Collaboration
- SEMrush Local SEO
- SEMrush Mobile SEO
- SEMrush Rank Tracking Test
- SEMrush Mobile International and Local SEO
- SEMrush Role of Content
- SEMrush Content Marketing Fundamentals
- Digital Marketing for SMBs Certification Exam Answers 2022
- Content Marketing And SEO Fundamentals Exam Answers 2022
- SEMrush Amazon Seller Certification Exam Answers 2022
- SEMrush PPC Automation Exam Answers 2022
- Start Selling on Amazon Exam Answers 2022
LinkedIn PHP Skill Quiz Assessment Answers 2023
The topics in the PHP assessment include: Utility Functions, Control Structures, Classes, Language Basics, Syntax, Arrays, Functions, Sessions and Cookies, Databases, Strings, Math, Dates, Operator Precedence, LinkedIn PHP Skill Quiz Assessment Answers
Assuming that $first_name and $family_name are valid strings, which statement is invalid?
- echo $first_name. ‘ ‘. $familiy_name;
- print $first_name, ‘ ‘, $familiy_name;
- print $first_name. ‘ ‘. $familiy_name;
- echo $first_name, ‘ ‘, $familiy_name;
Correct Answer:
- print $first_name, ‘ ‘, $familiy_name;
Assuming the Horse class exists, which is a valid example of inheritance in PHP?
- class Pegasus extends Horse {}
- class Alicorn imports Pegasus, Unicorn {}
- class Unicorn implements Horse {}
- class Horse inherits Unicorn {}
Correct Answer:
- class Pegasus extends Horse {}
Both self and this are keywords that can be used to refer to member variables of an enclosing class. The difference is that $this->member should be used for __ members and self::$member should be used for __ members.
- private, public
- object,primitive
- non-static,static
- concrete,abstract
Correct Answer:
- non-static,static
Both triple === and double == can be used to **_ variables in php. If you want to hear that string “33” and the number 33 are equal, you would use ** . If you want to check if an array contains a particular string value at a particular index, you would use ___
- compare; doubles;triples
- compare; triples;doubles
- assign; triples;doubles
- assign;doubles;triples
Correct Answer:
- compare; doubles;triples
For the HTML form below, what is the correct functioning script that checks the input “mail” to be sure it is filled before proceeding?
if (!empty(\$\_POST[“mail”])) {
echo “Yes, mail is set”;
} else {
echo “No, mail is not set”;
} (correct)
How might you troubleshoot a “call to undefined function” error?
- Make sure you have imported the file containing the function.
- Make sure you have spelled the function name correctly.
- all of these answers
- Make sure the function declaration is at an earlier point in the code than the function call.
Correct Answer:
- all of these answers
In a conditional statement, you want to execute the code only if both value are true. Which comparison operator should you use?
- ||
- &
- <=>
- &&
Correct Answer:
- &&
In the following script, which line(s) will cause an error(s)?
- Line 6 will cause an error because you can’t reassign a new value to a variable that has already been set.
- Line 7 and 8 will cause an error. Line 7 has whitespace in $will i work and should be $will_i_work. Line 8 cannot start with a number befcause it is a variable.
- Line 5 will cause an error because some_string should be someString.
- Line 3 and 4 will cause an error because a variable cannot start with an underscore(_).
Correct Answer:
- Line 7 and 8 will cause an error. Line 7 has whitespace in $will i work and should be $will_i_work. Line 8 cannot start with a number befcause it is a variable.
PHP supports multiple types of loops. If you wanted to loop through a block of code if and as long a specified condition is true, which type of loop would you use?
- for
- do-while
- while
- foreach
Correct Answer:
- while
The **_ operator is useful for sorting operations. It compares two values and returns an integer less than, equal to, or greater than 0 depending on whether on whether the value on the _**is less than, equal to, or greater than the other.
- greater-than; right
- spaceship; left
- equality; right
- comparison; left
Correct Answer:
- spaceship; left
The PHP function array_reduce() takes a callback function that accepts a value carried over each iteration and the current item in the array, and reduces an array to a single value. Which code sample will sum and output the values in the provided array?
- [ ]
1 <?php
2 echo array_reduce([1, 2, 5, 10, 11], function ($item, $carry) {
3 $carry = $carry + \$item;
4 });
5?> - [ ]
1 <?php
2 echo array_reduce([1, 2, 5, 10, 11], function ($carry, $item) {
3 return $carry = $item + \$item;
4 });
5?> - [ ]
1 <?php
2 array_reduce([11 2, 5, 10, 11], function ($item, $carry) {
3 echo $carry + $item;
4 });
5?> - [X]
1 <?php –CORRECT
2 echo array_reduce([1, 2, 5, 10, 11], function ($carry, $item) {
3 return $carry += $item;
4 });
5?>
Correct Answer:
- [x]
1 <?php –CORRECT
2 echo array_reduce([1, 2, 5, 10, 11], function ($carry, $item) {
3 return $carry += $item;
4 });
5?>
The following XML document is in books.xml. Which code will output “Historical”?
- $books = simplexml_load_string(‘books.xml’); echo $books->book[0]->categories->category[1];
- $books = simplexml_load_file(‘books.xml’); echo $books->book[0]->categories->category[1];
- $books = SimpleXMLElement(‘books.xml’); echo $books->book[0]->categories->category[1];
- $books = SimpleXML(‘books.xml’); echo $books->book[0]->categories->category[1];
Correct Answer:
- $books = SimpleXMLElement(‘books.xml’); echo $books->book[0]->categories->category[1];
The ignore_user_abort( ) function sets whether a client disconnect should abort a script execution. In what scenario would you, as a web developer, use this function?
- You would use it to stop a user from clicking the back button if they decide not to view as a result of a click. //Maybe
- You would use this function if you have some important processing to do and you do not want to stop it, even if your users click Cancel.
- You would use this function if you wanted to abort the script for all logged-in users, not just the one who disconnected.
- You would use this function if you want a PHP script to run forever.
Correct Answer:
- You would use this function if you have some important processing to do and you do not want to stop it, even if your users click Cancel.
The php not operator is !. Given the snippet, is there an out put and what is it?
- there is an output ‘2 is an even number
- output ’21 is an odd number’
- no output. Syntax error do to missing semicolon at the end
- no output due to % in $num%2!=0
Correct Answer:
- output ’21 is an odd number’
What displays in a browser when the following code is written?
- The browser would display nothing due to a syntax error.
- The browser would display an error, since there are no parentheses around the string.
- The browser would display How much are the bananas?
- The browser would display an error, since there is no semicolon at the end of the echo command.
Correct Answer:
- The browser would display How much are the bananas?
What does this script do?
- It makes sure the email address is a good and functioning address
- It makes an email safe to input into a database
- It assigns an email to a variable and then removes all illegal characters from the $email variable
- It verifies that an email address is well formed.
Correct Answer:
- It verifies that an email address is well formed.
What is a key difference between GET and POST?
- GET is used with the HTTP protocol. POST is used with HTTPS.
- GET displays the submitted data as part of the URL. During POST, this information is not shown, as it’s encoded in the request body.
- GET is intended for changing the server state and it carries more data than POST.
- GET is more secure than POST and should be used for sensitive information.
Correct Answer:
- GET displays the submitted data as part of the URL. During POST, this information is not shown, as it’s encoded in the request body.
What is missing from this code, which is supposed to create a test cookies?
- The $_REQUEST is missing.
- The $_COOKIES array is missing.
- The cookie session is missing.
- The call to setcookie() is missing.
Correct Answer:
- The call to setcookie() is missing.
What is the best way to explain what this script does?
- This script times out the session for myusername.
- Cookies are starting to be stored as a result of this script.
- This script validates the username and password.
- This script is on a page that requires the user to be logged in. It checks to see if the user has a valid session.
Correct Answer:
- This script is on a page that requires the user to be logged in. It checks to see if the user has a valid session.
What is the cause of ‘Cannot modify header information – headers already sent’?
- You are trying to modify a private value
- Semicolon missing
- Using a key on an array that does not exists
- Some html is being sent before a header() command that you are using for a redirect
Correct Answer:
- Some html is being sent before a header() command that you are using for a redirect
What is the job of the controller as a component in MVC?
- The controller handles data passed to it by the view, and also passes data to the view. It interprets data sent by the view and disperses that data to the approrpiate models awaiting results to pass back to the view.
- The controller is a mechanism that allows you to create reusable code in languages such as PHP, where multiple inheritance is not supported.
- The controller presents content through the user interface, after communicating directly with the database.
- The controller handles specific tasks related to a specific area of functionality, handles business logic related to the results, and communicates directly with the database.
Correct Answer:
- The controller handles specific tasks related to a specific area of functionality, handles business logic related to the results, and communicates directly with the database.
What is the purpose of adding a lowercase “u” as a modifier after the final delimiter in a Perl-compatible regular expression?
- It makes the dot metacharacter match anything, including newline characters.
- It makes the pattern match uppercase letters.
- Both the pattern and subject string are treated as UTF-8.
- It inverts the greediness of the quantifiers in the pattern so they are not greedy by default.
Correct Answer:
- Both the pattern and subject string are treated as UTF-8.
What is the significance of the three dots in this function signature?
- It makes the function variadic, allowing it to accept as an argument an array containing an arbitrary number of values.
- It makes the function variadic, allowing it to accept an arbitrary number of arguments that are converted into an array inside the function.
- It temporarily disables the function while debugging other parts of the script.
- It’s a placeholder like a TO DO reminder that automatically triggers a notice when you run a script before completing the function definition.
Correct Answer:
- It makes the function variadic, allowing it to accept an arbitrary number of arguments that are converted into an array inside the function.
What will this code print?
LinkedIn PHP Skill Assessment Quiz Options:
- euler3
- hypatia5
- hypatia3
- fibonacci4
Correct Answer:
- hypatia3
LinkedIn Python Skill Assessment Quiz Options:
number = 3
print (f"The number is {number}")
-
The number is 3
-
the number is 3
-
THE NUMBER IS 3
- It throws a TypeError because the integer must be cast to a string.
Correct Answer:
-
The number is 3
Which PHP script uses a constructor to display the string “Winter is almost over!”?
-
1 class MyClass { 2 public function _construct() 3 { 4 echo 'Winter is almost over!'."\n"; 5 } 6 } 7 \$userclass = new MyClass;
-
1 class MyClass { 2 public function _construct() 3 { 4 echo 'Winter is almost over!.."\n"; 5 } 6 } 7 $userclass = new MyClass;
-
1 class MyClass { 2 public function _construct() 3 { 4 echo 'Winter is almost over!.."\n"; 5 } 6 } 7 \$userclass = new MyClass;
-
1 class MyClass { 2 public function _construct() 3 { 4 echo 'Winter is almost over!'."n"; 5 } 6 } 7 $userclass = MyClass;
Correct Answer:
-
1 class MyClass { 2 public function _construct() 3 { 4 echo 'Winter is almost over!'."\n"; 5 } 6 } 7 \$userclass = new MyClass;
Which are valid PHP error handling keywords?
- try, throw, catch, callable
- try, yield, catch, finally
- yield, throw, catch, finally
- try, throw, catch, finally
Correct Answer:
- try, throw, catch, finally
Which code snippet demonstrates encapsulation?
- [ ]
class Cow extends Animal {
private $milk;
} - [ ]
class Cow {
public $milk;
}
$daisy = new Cow();
$daisy->milk = “creamy”; - [ ]
class Cow {
public $milk;
function getMilk() {`
return $this->milk;
}
} - [x]
class Cow {
private $milk;
public function getMilk() {
return $this->milk;
}
}
Correct Answer:
- [x]
class Cow {
private $milk;
public function getMilk() {
return $this->milk;
}
}
Which code snippet uses the correct syntax for creating an instance of the Pet class?
- $dog = new Pet;
- all of these answers
- $horse = (new Pet);
- $cat = new Pet();
Correct Answer:
- all of these answers
Which code would you use to print all the elements in an array called $cupcakes?
- all of the answers
- print_r($cupcakes);
- var_dump($cupcakes);
- foreach($cupcakes as &$cupcake) echo $cupcake;
Correct Answer:
- all of the answers
Which is the correct format for adding a comment to a PHP script?
- all of these answers
- #This is a comment
- /* This is a comment /
- // This is a comment
Correct Answer:
- all of these answers
Which is the most secure way to avoid storing a password in clear text in database?
- $encrypted = shal($password);
- $encrypted = crypt($password, \$salt);
- $encrypted = md5($password);
- $encrypted = password_hash($password, PASSWORD_DEFAULT);
Correct Answer:
- $encrypted = password_hash($password, PASSWORD_DEFAULT);
Which is the way to create an array of “seasons”?
- seasons=array( 1=>’spring’, 2=>’summer’, 3=>’autumn’, 4=>’winter’, );
- $seasons=array(spring,summer,autumn,winter);
- $seasons=(‘spring’,’summer’,’autumn’,’winter’);
- $seasons=[‘spring’,’summer’,’autumn’,’winter’];
Correct Answer:
- $seasons=[‘spring’,’summer’,’autumn’,’winter’];
Which line could you NOT use to comment out “Space: the final frontier”?
- /_ Space: the final frontier _/
- / Space: the final frontier /
- #Space: the final frontier
- // Space: the final frontier
Correct Answer:
- / Space: the final frontier /
Which php control structure is used inside a loop to skip the rest of the current loops code and go back to the start of the loop for the next iteration
- else
- break
- return
- continue
Correct Answer:
- continue
Why does this code trigger an error? $string = ‘Shylock in a Shakespeare’s “Merchangt of Venice” demands his pound of flesh.’;
- Strings should always be wrapped in double quotes; and double quotes inside a string should be escaped by backslashes.
- All single and double quotes inside a string need to be escaped by backslashes to prevent a parse error.
- The opening and closing single quotes should be replaced by double quotes; and the apostrophe should be escaped by a backslash.
- The apostrophe needs to be escaped by a backslash to prevent it from being treated as the closing quote.
Correct Answer:
- The apostrophe needs to be escaped by a backslash to prevent it from being treated as the closing quote.
You are using the following code to find a users band, but it is returning false. Which step(s) would solve the problem?
- check if fav_band is included in the query string at the top of your browser
- all of the answers
- view the source of form and make sure there is an input field with the name ‘fav_band’
- print everything that has been transmitted in the request:print_r($_REQUEST);
Correct Answer:
- all of the answers
You want to list the modules available in your PHP installation. What command should you run?
- php -h
- php info
- php -v
- php -m
Correct Answer:
- php -m
Your php page is unexpectedly rendering as totally blank. Which step will shed light on the problem?
- Add this code to the top of your script:ini_set(‘display_errors’,1);
- check the server error logged
- all of these answers
- make sure you are not missing any semicolons
Correct Answer:
- all of these answers