MCQ Exam

30:00

Question 1: How do you select elements that are visited links in CSS?

Question 2: Write a PHP program to check if a number is prime

Question 3: What is the correct HTML for creating a video?

Question 4: What is the correct HTML for creating a subscript text?

Question 5: How do you create a hyperlink in HTML?

Question 6: Write a PHP program to find the smallest element in an array

Question 7: What is the correct HTML for inserting a copyright symbol?

Question 8: Which PHP data type is used to store whole numbers?

Question 9: Which property is used to change the left margin of an element?

Question 10: What is the CSS property used to control the style of the bullet in a list?

Question 11: Write a PHP program to find the sum of digits of a given number

Question 12: What is the use of the array_unshift() function in PHP?

Question 13: What is an associative array in PHP?

Question 14: Explain the concept of variable variable names in PHP.

Question 15: What is a return statement in PHP, and why is it used?

Question 16: How do you make a text italic in CSS?

Question 17: How do you concatenate two strings in PHP?

Question 18: How do you declare a function in JavaScript?

Question 19: How do you add an element to an associative array in PHP?

Question 20: Which CSS property is used to control the space between lines of text?

Question 21: How do you make a background image repeat horizontally in CSS?

Question 22: How do you create a new paragraph in HTML?

Question 23: How do you group multiple selectors in CSS?

Question 24: What is the correct HTML for creating a numbered list?

Question 25: Write a PHP program to generate a random number between 1 and 100

Question 26: Which HTML tag is used to define an unordered list?

Question 27: Which operator is used for strict equality in JavaScript?

Question 28: What is the difference between == and === in PHP?

Question 29: How do you make a list that lists its items with squares?

Question 30: What is the correct HTML for creating a table header?

Question 31: What is the correct HTML for creating a hyperlink?

Question 32: What is the correct CSS syntax for making all the

elements bold?

Question 33: What is the correct HTML for adding a background color?

Question 34: How do you make a text input field required in HTML?

Question 35: How do you select elements that are being clicked in CSS?

Question 36: Which CSS property is used to change the font size of an element?

Question 37: What is the difference between include and require in PHP?

Question 38: What is the correct HTML for creating a hyperlink to another website?

Question 39: What is the correct way to write a JavaScript array?

Question 40: Write a PHP program to find the sum of all odd numbers from 1 to 100

Question 41: How do you select elements that are checked (e.g., checkboxes) in CSS?

Question 42: How do you access an element in an associative array in PHP?

Question 43: What is the CSS property used to set the opacity of an element?

Question 44: How do you select the first child element in CSS?

Question 45: Which HTML tag is used to define a table?

Question 46: What is the CSS property used to set the list item marker style?

Question 47: How do you create a new list item in HTML?

Question 48: Write a PHP program to count the number of words in a given sentence

Question 49: How do you create a JavaScript function that takes parameters?

Question 50: Write a PHP program to check if a year is a leap year

Question 51: What is the correct HTML for creating a button?

Question 52: Write a PHP program to reverse a given string

Question 53: What is the CSS property used to add shadow to text?

Question 54: Write a PHP program to find the factorial of a number

Question 55: Which HTML element defines navigation links?

Question 56: Which HTML tag is used to define a table row?

Question 57: How do you select all links in CSS?

Question 58: How do you add a comment in JavaScript?

Question 59: How do you select elements with class "example" in CSS?

Question 60: Which CSS property is used to control the transparency of an element?

Question 61: What does the "box model" in CSS refer to?

Question 62: How do you select the nth child element in CSS?

Question 63: What does HTML stand for?

Question 64: What is the purpose of the HTML element?

Question 65: What is the use of the array_combine() function in PHP?

Question 66: What is the CSS property used to change the text color of an element?

Question 67: What is the purpose of the require statement in PHP?

Question 68: What is the purpose of the unset function in PHP?

Question 69: What is the correct HTML for creating a submit button?

Question 70: How do you select elements that are not hovered over in CSS?

Question 71: Write a PHP program to find the GCD of two numbers

Question 72: Which HTML tag is used to define a hyperlink?

Question 73: Write a PHP program to check if a number is even or odd

Question 74: What is the CSS property used to set the border radius of an element?

Question 75: Which HTML tag is used to define an internal style sheet?

Question 76: What is the CSS property used to control the style of a border?

Question 77: How do you comment out multiple lines of code in JavaScript?

Question 78: How do you select all headers (h1 to h6) in CSS?

Question 79: Which CSS property is used to make text bold?

Question 80: What is the correct HTML for creating a radio button?

Question 81: How do you create a hyperlink to another webpage?

Question 82: How do you add comments in CSS?

Question 83: Write a PHP program to check if a string is a palindrome

Question 84: How do you declare a variable in PHP?

Question 85: What is the JavaScript syntax for writing comments?

Question 86: What is the CSS property used to control the spacing between lines of text?

Question 87: Write a PHP program to print the first 10 natural numbers

Question 88: What is the CSS property used to set the margin on the top of an element?

Question 89: Which CSS property is used to control the space between the letters of text?

Question 90: What is the ternary operator in PHP, and how is it used?

Question 91: What is the difference between single quotes (') and double quotes ("") in PHP string literals?

Question 92: How do you call a function in PHP?

Question 93: What is the correct HTML for creating a hyperlink to a webpage?

Question 94: What is the purpose of the HTML element?

Question 95: What is the purpose of the CSS display property?

Question 96: What is the correct HTML for referring to an external style sheet?

Question 97: How do you write a conditional statement for executing some code if "x" is equal to 5 in JavaScript?

Question 98: What is the correct HTML for creating a text area?

Question 99: What is the use of the array_push() function in PHP?

Question 100: How do you create a for loop in JavaScript?

Question 101: Write a PHP program to remove duplicates from an array

Question 102: Which HTML tag is used to define a list item?

Question 103: Write a PHP program to find the length of a given string

Question 104: What is the CSS property used to set the text transform of an element?

Question 105: How do you create a comment in HTML?

Question 106: What is the correct HTML for inserting a background image?

Question 107: How do you round a number to the nearest integer in JavaScript?

Question 108: How do you change the text of an HTML element with id="demo" using JavaScript?

Question 109: What is the correct way to end a PHP statement?

Question 110: Write a PHP program to add two numbers, 5 and 3, and display the result

Question 111: How do you create a class selector in CSS?

Question 112: What is the use of the array_values() function in PHP?

Question 113: How do you select an element with id "demo" in CSS?

Question 114: Write a PHP program to find the square root of a given number

Question 115: What is the CSS property used to set the maximum width of an element?

Question 116: How do you call a function named "myFunction" in JavaScript?

Question 117: What is the CSS property used to control the width of an element?

Question 118: What is the purpose of CSS?

Question 119: Write a PHP program to find the sum of all prime numbers between 1 and 100

Question 120: Which CSS property is used to add rounded corners to an element?

Question 121: What is the CSS property used to set the height of an element?

Question 122: What is the CSS property used to set the outline of an element?

Question 123: What is the correct HTML for inserting a line break?

Question 124: Which HTML tag is used to create a hyperlink?

Question 125: Which HTML element is used to display a scalar measurement within a range?

Question 126: What is the purpose of the CSS z-index property?

Question 127: How do you create an ordered list with numbers in HTML?

Question 128: How do you create a hyperlink that will send an email?

Question 129: What is the JavaScript syntax for creating an object?

Question 130: What is the correct HTML for creating a horizontal line?

Question 131: What is the purpose of the array_key_exists() function in PHP?

Question 132: What is the CSS property used to set the font style of an element?

Question 133: What is the purpose of the PHP function "echo"?

Question 134: How do you check if a variable is set in PHP?

Question 135: What is the purpose of the HTML element?

Question 136: Which HTML tag is used to define an external style sheet?

Question 137: What is the correct HTML for creating a superscript text?

Question 138: How do you center an element horizontally in CSS?

Question 139: Write a PHP program to find the Fibonacci series up to a given number

Question 140: What is the CSS property used to set the font weight of an element?

Question 141: What is the correct HTML for creating a drop-down list?

Question 142: What is the correct HTML for creating a hyperlink to another website in a new tab?

Question 143: How do you select the first letter of a paragraph in CSS?

Question 144: What is the correct HTML for creating a hyperlink to an email address?

Question 145: How do you define a constant in PHP?

Question 146: What is the CSS property used to set the text decoration of an element?

Question 147: Which symbol is used to comment out a single line in PHP?

Question 148: How do you make a text input field read-only in HTML?

Question 149: How do you create a JavaScript function that returns a value?

Question 150: What is the CSS property used to set the padding on all sides of an element?

Question 151: What is a parameter in a PHP function?

Question 152: What is the correct HTML for creating a checkbox?

Question 153: What is the result of the following expression: 5 + "5" in JavaScript?

Question 154: How do you select the nth-of-type element in CSS?

Question 155: What does CSS stand for?

Question 156: Which event is triggered when a user clicks on an HTML element?

Question 157: How do you select the first line of a paragraph in CSS?

Question 158: What is the CSS property used to set the border color of an element?

Question 159: Write a PHP program to reverse an array

Question 160: What is the difference between require_once and require in PHP?

Question 161: Write a PHP program to declare a variable named "num" and assign it the value 42

Question 162: How do you select elements that are disabled in CSS?

Question 163: Which CSS property is used to control the width of an element?

Question 164: How do you select elements that have focus in CSS?

Question 165: What is the use of the array_diff() function in PHP?

Question 166: What is the purpose of the array_merge() function in PHP?

Question 167: What is the correct HTML for creating a copyright symbol?

Question 168: What is the purpose of the CSS float property?

Question 169: What is the correct way to declare a JavaScript variable?

Question 170: Which CSS property is used to underline text?

Question 171: What is the purpose of the array_pop() function in PHP?

Question 172: What is the CSS property used to change the font size of an element?

Question 173: Which HTML attribute is used to specify that an input field must be filled out?

Question 174: How do you open and close a file in PHP?

Question 175: What is PHP?

Question 176: What does JavaScript stand for?

Question 177: How do you select the last child element in CSS?

Question 178: Which CSS property is used to control the alignment of text?

Question 179: What is the correct HTML element for the largest heading?

Question 180: What is the result of the following expression: "5" + 2 in JavaScript?

Question 181: Write a PHP program to sort an array in ascending order

Question 182: How do you select all paragraphs in CSS?

Question 183: What is the correct HTML for creating a line break?

Question 184: What is the use of the array_flip() function in PHP?

Question 185: Write a PHP program to find the number of vowels in a given string

Question 186: How do you select elements that are out of focus in CSS?

Question 187: What is the purpose of the HTML

element?

Question 188: What is the correct HTML for inserting a paragraph?

Question 189: What is the correct HTML for inserting an image?

Question 190: What is the difference between fopen and file_get_contents for reading files in PHP?

Question 191: Write a PHP program to find the second largest element in an array

Question 192: Which CSS property is used to change the background color of an element?

Question 193: What is the CSS property used to set the font family of an element?

Question 194: How do you select the last line of a paragraph in CSS?

Question 195: Write a PHP program to find the largest element in an array

Question 196: What is the scope of a local variable in PHP?

Question 197: What is the correct HTML for creating a text input field?

Question 198: What is the CSS property used to set the text alignment within an element?

Question 199: What is the result of the following expression: 5 % 2 in JavaScript?

Question 200: What is the purpose of the CSS position property?

Question 201: What is the purpose of the include statement in PHP?

Question 202: How do you select elements that are in a specific state, like when hovered over, in CSS?

Question 203: Which HTML tag is used to define a paragraph?

Question 204: Write a PHP program to find the power of a number

Question 205: What is the foreach loop used for in PHP?

Question 206: What is the difference between include_once and include in PHP?

Question 207: What is the JavaScript operator for exponentiation?

Question 208: What is the correct HTML for creating a table?

Question 209: Write a PHP program to check if a string is a valid email address

Question 210: What is the correct JavaScript syntax for referring to an external script called "script.js"?

Question 211: How do you write data to a file in PHP?

Question 212: What is the purpose of the array_push() function in PHP?

Question 213: Write a PHP program to find the factorial of a given number using recursion

Question 214: How do you make a list that lists its items with numbers in HTML?

Question 215: Write a PHP program to find the largest number among three numbers

Question 216: How do you create an ordered list in HTML?

Question 217: Write a PHP program to find the LCM of two numbers

Question 218: How do you select elements that have a specific attribute with a specific value in CSS?

Question 219: What is the correct way to write an if statement in JavaScript?

Question 220: What is the correct HTML for creating an email link?

Question 221: What is the correct CSS syntax for changing the font of an element to Arial?

Question 222: Write a PHP program to find the average of an array of numbers

Question 223: How do you select all elements with a specific attribute in CSS?

Question 224: How do you include an external CSS file in an HTML document?

Question 225: How do you add an element to the end of an array in JavaScript?

Question 226: How do you select an element by its ID in CSS?

Question 227: What is the purpose of the array_intersect() function in PHP?

Question 228: What is the latest stable version of PHP?

Question 229: What is the CSS property used to set the border width of an element?

Question 230: Which CSS property is used to create a shadow effect on text?

Question 231: How do you check if a file exists in PHP?

Question 232: How do you create a function in PHP?

Question 233: How do you create an unordered list with square bullets?

Question 234: How do you select all elements with a specific class in CSS?

Question 235: What is the CSS property used to set the background color of an element?

Question 236: Which CSS property is used to change the text color of an element?

Question 237: What is the purpose of the array_keys() function in PHP?

Question 238: What is the scope of a global variable in PHP?

Question 239: What is the purpose of the array_shift() function in PHP?

Question 240: Write a PHP program to display "Hello, World!"

Question 241: Write a PHP program to find the sum of all even numbers from 1 to 100

Question 242: What is the CSS property used to control the spacing between elements?