Tag: Queensland
-
jQuery MCQ (Multiple Choice Questions)
Q 1. Which of the following sign is used as a shortcut for jQuery? A. the % sign B. the $ sign C. the & sign D. the @ sign Show Answer Answer:-B. the $ sign Explanation Every jQuery selector start with this dollar sign $(). This sign is known as the factory function. It…
-
CSS Quizs Question & Answers – Targeting Styles with Media Queries
Q1. Which of the following Media Query describe the ratio of the device width to the device height of the media?A. device-aspectB. device-aspect-query C. device-aspect-ratioD. none of the mentioned Show Answer Answer:-B. device-aspect-query Q 2. Which of the following Media Query determines if output is grid, like a simple terminal or phone, or bitmap, like…
-
Python Quizs Question and Answers – Decorators
Q 1. In the following Python code, which function is the decorator? def mk(x): def mk1(): print(“Decorated”) x() return mk1 def mk2(): print(“Ordinary”) p = mk(mk2) p() A. p()B. mk()C. mk1()D. mk2() Show Answer Answer:-B. mk() Explanation In the code shown above, the function mk() is the decorator. The function which is getting decorated is…
-
CSS Quizs Question & Answers – CSS Border
Q 1. Which CSS property can be used to set the image as border instead of the border style?A. background-imageB. border-imageC. background-image-sourceD. border-image-source Show Answer Answer:-D. border-image-source Explanation The border-image-source property specifies the path to the image to be used as a border (instead of the normal border around an element). Q 2. In how…