Unlimited Online Free Software Download! Get 100% Free Hurry up!
Q. 1   What does ORM stands for in laravel?
  • Correct Answer: D. object-relational Mapping

Q. 2   Which command is used to create migrations in Laravel?
  • Correct Answer: A. php artisan make:migration create_users_table

Q. 3   Composer is a tool for ______ in PHP.
  • Correct Answer: B. Dependency management

Q. 4   Which class is used in Laravel to handle exceptions?
  • Correct Answer:

Q. 5   For what do the .env is used?
  • Correct Answer: B. For setting environment variables

Q. 6   Where is the routing file located in Laravel ?
  • Correct Answer: B. routes/

Q. 7   How to check current laravel version install your system?
  • Correct Answer: C. php artisan --version

Q. 8   What is Laravel?
  • Correct Answer: B. PHP framework

Q. 9   Where do we need to set database connection in Laravel?
  • Correct Answer: D. .ENV file

Q. 10   What is the 16-bit compiler allowable range for integer constants ?
  • Correct Answer: D. -32768 to 32767

Q. 11   What is required in each C program ?
  • Correct Answer: A. The program must have at least one function.

Q. 12   Which of the following comment is correct when a macro definition includes arguments ?
  • Correct Answer: A. The opening parenthesis should immediately follow the macro name.

Q. 13   What is a lint ?
  • Correct Answer: C. Analyzing tool

Q. 14   What is the output of this statement ''printf(''%d'', (a++))'' ?
  • Correct Answer: B. The current value of a

Q. 15   Why is a macro used in place of a function ?
  • Correct Answer: A. It reduces execution time.

Q. 16   In the C language, the constant is defined _______.
  • Correct Answer: C. Anywhere, but starting on a new line.

Q. 17   A pointer is a memory address. Suppose the pointer variable has p address 1000, and that p is declared to have type int*, and an int is 4 bytes long. What address is represented by expression p + 2 ?
  • Correct Answer: D. 1008

Q. 18   Which one of the following is a loop construct that will always be executed once ?
  • Correct Answer: D. do while

Q. 19   How many characters can a string hold when declared as follows ? char name[20]:
  • Correct Answer: C. 20 char

Q. 20   Directives are translated by the
  • Correct Answer: A. Pre-processor

Q. 21   How many bytes does **int = D** use ?
  • Correct Answer: C. 2 or 4 bytes

Q. 22   What is the maximum number of characters that can be held in the string variable char address line [40] ?
  • Correct Answer: B. 39 characters

Q. 23   Which one is the correct description for the variable balance declared below ? int ** balance;
  • Correct Answer: B. Balance is a pointer to a pointer to an integer

Q. 24   Which of the following statement is not true ?
  • Correct Answer: B. A pointer must point to a data item on the heap (free store).

Q. 25   Let p1 be an integer pointer with a current value of 2000. What is the content of p1 after the expression p1++ has been evaluated ?
  • Correct Answer: C. 2004 value

Q. 26   Let p1 and p2 be integer pointers. Which one is a syntactically wrong statement ?
  • Correct Answer: A. p1 = p1 + p2;

Q. 27   Suppose that cPtr is a character pointer, and its current content is 300. What will be the new value in cPtr after the following assignment ? cPtr = cPtr + 5;
  • Correct Answer: A. value 305

Q. 28   Which is valid expression in C language ?
  • Correct Answer: B. int my_num = 100000;

Q. 29   Who is the father of C language ?
  • Correct Answer: C. Dennis Ritchie

Q. 30   All keywords in C are in ____________
  • Correct Answer: A. LowerCase letters

Q. 31   Which of the following is true for variable names in C ?
  • Correct Answer: C. Variable names cannot start with a digit

Q. 32   Which of the following cannot be a variable name in C ?
  • Correct Answer: A. volatile

Q. 33   Which of the following declaration is not supported by C language ?
  • Correct Answer: A. String str;

Q. 34   Which keyword is used to prevent any changes in the variable within a C program ?
  • Correct Answer: C. const

Q. 35   What is the result of logical or relational expression in C ?
  • Correct Answer: B. 0 or 1

Q. 36   Where in C the order of precedence of operators do not exist ?
  • Correct Answer: D. None of the mentioned

Q. 37   What is an example of iteration in C ?
  • Correct Answer: D. all of the mentioned

Q. 38   Functions can return enumeration constants in C ?
  • Correct Answer: A. true

Q. 39   Functions in C Language are always _________
  • Correct Answer: B. External

Q. 40   Which of following is not accepted in C ?
  • Correct Answer: C. static static int a; //a static variable prefixed with static

Q. 41   Property which allows to produce different executable for different platforms in C is called ?
  • Correct Answer: C. Conditional compilation

Q. 42   What is #include ?
  • Correct Answer: A. Preprocessor directive

Q. 43   C preprocessors can have compiler specific features.
  • Correct Answer: A. True

Q. 44   The C-preprocessors are specified with _________ symbol.
  • Correct Answer: A. #

Q. 45   How many number of pointer (*) does C have against a pointer variable declaration ?
  • Correct Answer: D. No limits

Q. 46   Which of the following is not possible statically in C language ?
  • Correct Answer: A. Jagged Array

Q. 47   which of the following return-type cannot be used for a function in C ?
  • Correct Answer: D. none of the mentioned

Q. 48   When a C program is started, O.S environment is responsible for opening file and providing pointer for that file ?
  • Correct Answer: D. All of the mentioned

Q. 49   In C language, FILE is of which data type ?
  • Correct Answer: C. struct

Q. 50   What is the sizeof(char) in a 32-bit C compiler ?
  • Correct Answer: C. 1 Byte

Q. 51   scanf() is a predefined function in______header file.
  • Correct Answer: C. stdio. h

Q. 52   C Language develop at‌‌‌‌______?
  • Correct Answer: A. AT & T's Bell Laboratories of USA in 1972

Q. 53   C programs are convert into machine language with help of
  • Correct Answer: B. A compiler

Q. 54   C was primarily Developed as
  • Correct Answer: A. System programming language

Q. 55   Standard ANSI C recongnizes________number of keyboards ?
  • Correct Answer: B. 32 keywords

Q. 56   C Language is a successor to which language ?
  • Correct Answer: D. B Language

Q. 57   C is a which level language ?
  • Correct Answer: B. High Level

Q. 58   Low level language is ?
  • Correct Answer: D. Difficult to understand and readability is questionable.

Q. 59   High level language is a ?
  • Correct Answer: A. Human readable like language.

Q. 60   C is _______ type of programming language ?
  • Correct Answer: B. Procedural

Q. 61   PHP stands for -
  • Correct Answer: A. Hypertext Preprocessor

Q. 62   Who is known as the father of PHP ?
  • Correct Answer: C. Rasmus Lerdrof

Q. 63   Variable name in PHP starts with -
  • Correct Answer: B. $ (Dollar)

Q. 64   Which of the following is the default file extension of PHP ?
  • Correct Answer: A. .php

Q. 65   Which of the following is not a variable scope in PHP ?
  • Correct Answer: A. Extern

Q. 66   Which of the following is correct to add a comment in php ?
  • Correct Answer: D. Both (// ……) and (/* …… */)

Q. 67   Which of the following is used to display the output in PHP ?
  • Correct Answer: D. Both (echo) and (print)

Q. 68   Which of the following is the use of strlen() function in PHP ?
  • Correct Answer: B. The strlen() function returns the length of string

Q. 69   Which of the following is used for concatenation in PHP ?
  • Correct Answer: C. . (dot)

Q. 70   Which of the following starts with __ (double underscore) in PHP ?
  • Correct Answer: C. Magic constants

Q. 71   Which of the following is the use of strpos() function in PHP ?
  • Correct Answer: C. The strpos() function is used to search for a character/text in a string

Q. 72   What does PEAR stands for ?
  • Correct Answer: A. PHP extension and application repository

Q. 73   Which of the following is the correct way to create a function in PHP ?
  • Correct Answer: C. function myFunction()

Q. 74   Which of the following PHP function is used to generate unique id ?
  • Correct Answer: C. uniqueid()

Q. 75   Which of the following is the correct way of defining a variable in PHP ?
  • Correct Answer: B. $variable_name = value;

Q. 76   What is the use of fopen() function in PHP ?
  • Correct Answer: C. The fopen() function is used to open files in PHP

Q. 77   What is the use of isset() function in PHP ?
  • Correct Answer: A. The isset() function is used to check whether variable is set or not

Q. 78   What is the use of sprintf() function in PHP ?
  • Correct Answer: B. The sprintf() function is used to send output to variable

Q. 79   Which of the following is the correct way to open the file 'sample.txt' as readable ?
  • Correct Answer: A. fopen('sample.txt', 'r');

Q. 80   Which of the following is the correct use of the strcmp() function in PHP ?
  • Correct Answer: D. The strcmp() function is used to compare the strings including case

Q. 81   Which of the following function displays the information about PHP and its configuration ?
  • Correct Answer: B. phpinfo()

Q. 82   Which of the following function is used to find files in PHP ?
  • Correct Answer: A. glob()

Q. 83   Which of the following function is used to set cookie in PHP ?
  • Correct Answer: C. setcookie()

Q. 84   Which of the following function is used to get the ASCII value of a character in PHP ?
  • Correct Answer: D. chr()

Q. 85   Which of the following function is used to unset a variable in PHP ?
  • Correct Answer: B. unset()

Q. 86   Which of the following function is used to sort an array in descending order ?
  • Correct Answer: D. rsort()

Q. 87   Which of the following is/are the code editors in PHP ?
  • Correct Answer: D. All of the above

Q. 88   Which of the following is used to end a statement in PHP ?
  • Correct Answer: B. ; (semicolon)

Q. 89   Which of the following function in PHP can be used to test the type of any variable ?
  • Correct Answer: B. From 8 to Large 72

Q. 90   String values in PHP must be enclosed within -
  • Correct Answer: C. Both (Double Quotes) and (Single Quotes)

Q. 91   Which of the following variable name is invalid ?
  • Correct Answer: C. $new-var

Q. 92   Which of the following is the correct way to create an array in PHP ?
  • Correct Answer: B. $season = array('summer' , 'winter' , 'spring' , 'autumn');

Q. 93   Which of the following is a built-in function in PHP that adds a value to the end of an array ?
  • Correct Answer: A. array_push()

Q. 94   Which of the following function in PHP returns a text in title case from a variable ?
  • Correct Answer: B. ucwords($var)

Q. 95   Which of the following is the correct way to print 'Hello World' in PHP ?
  • Correct Answer: C. echo 'Hello World';

Q. 96   Which of the following function is used to compress a string in PHP ?
  • Correct Answer: C. gzcompress()

Q. 97   What does SPL stands for in PHP ?
  • Correct Answer: A. Standard PHP Library

Q. 98   Which of the following function converts a string to all uppercase ?
  • Correct Answer: D. strtoupper()

Q. 99   The function in PHP that can be used to concatenate array elements to form a single delimited string is -
  • Correct Answer: A. implode()

Q. 100   Which PHP function determines the last access time of a file ?
  • Correct Answer: B. fileatime()

Q. 101   Which PHP function is capable to read specific number of characters from a file ?
  • Correct Answer: C. fgets()

Q. 102   Which PHP function is used to find the position of the last occurrence of a substring inside another string ?
  • Correct Answer: B. strrpos()

Q. 103   Which of the following function is used to compute the difference between two arrays in PHP ?
  • Correct Answer: B. array_diff

Q. 104   Which PHP function converts an English text datetime into a Unix timestamp ?
  • Correct Answer: C. strtotime()

Q. 105   Which of the following function in PHP returns the time of sunrise of a particular day and location ?
  • Correct Answer: A. date_sunrise()

Q. 106   Which of the following is the correct syntax to write a PHP code ?
  • Correct Answer: A. <?php ?>

Q. 107   How many functions does PHP offer for searching and modifying strings using Perl-compatible regular expressions.
  • Correct Answer: C. 8 functions

Q. 108   What does PDO stand for ?
  • Correct Answer: C. PHP Data Object

Q. 109   Which PHP statement will give output as $x on the screen ?
  • Correct Answer: A. echo "$x";

Q. 110   What does the abbreviation HTML stand for ?
  • Correct Answer: A. HyperText Markup Language.

Q. 111   How many sizes of headers are available in HTML by default ?
  • Correct Answer: D. 6 tag

Q. 112   What is the smallest header in HTML by default ?
  • Correct Answer: C. h6

Q. 113   What are the types of lists available in HTML ?
  • Correct Answer: A. Ordered, Unordered Lists.

Q. 114   How to create an ordered list in HTML ?
  • Correct Answer: B. <ol>

Q. 115   HTML files are saved by default with the extension ?
  • Correct Answer: A. .html

Q. 116   We enclose HTML tags within ?
  • Correct Answer: B. < >

Q. 117   Which of the following is correct about HTML ?
  • Correct Answer: B. HTML uses tags defined within the language.

Q. 118   How to display preformatted text in HTML ?
  • Correct Answer: B. <pre>

Q. 119   Which of the following tags doesn't require a closing tag ?
  • Correct Answer: C. Both the <hr> and the <br> tag

Q. 120   Which of the following properties is used to change the font of text ?
  • Correct Answer: A. font-family

Q. 121   What are the attributes used to change the size of an image ?
  • Correct Answer: A. Width and height

Q. 122   Which attribute is used to provide a unique name to an HTML element ?
  • Correct Answer: A. id

Q. 123   What is the function of the HTML style attribute ?
  • Correct Answer: A. It is used to add styles to an HTML element.

Q. 124   The full form of CSS is :
  • Correct Answer: A. Cascading Style Sheets

Q. 125   The 'function' and 'var' are known as :
  • Correct Answer: C. Declaration statements

Q. 126   How can we change the background color of an element ?
  • Correct Answer: A. background-color

Q. 127   When interpreter encounters an empty statements, what it will do :
  • Correct Answer: D. Ignores the statements

Q. 128   How can we change the text color of an element ?
  • Correct Answer: B. color

Q. 129   In JavaScript, what is a block of statement ?
  • Correct Answer: B. block that combines a number of statements into a single compound statement

Q. 130   In how many ways can CSS be written in ?
  • Correct Answer: C. 3 ways

Q. 131   Which one of the following also known as Conditional Expression :
  • Correct Answer: C. If-then-else statement

Q. 132   The class used to right align the navigation bar buttons is -
  • Correct Answer: C. .navbar-right

Q. 133   Which HTML tag is used to declare internal CSS ?
  • Correct Answer: A. <style>

Q. 134   Who developed the bootstrap ?
  • Correct Answer: D. Mark Otto and Jacob Thornton

Q. 135   The jQuery method used to remove the set of matched elements is
  • Correct Answer: C. remove() method

Q. 136   How many columns are allowed in a bootstrap grid system ?
  • Correct Answer: B. 12 columns

Q. 137   How can we select an element with a specific Class in CSS ?
  • Correct Answer: C. .

Q. 138   What type of CSS is the following code snippet ? <h1 style="color:blue;"> A Blue Heading </h1>
  • Correct Answer: A. Inline

Q. 139   Can negative values be allowed in padding property ?
  • Correct Answer: A. No

Q. 140   Which of the following class in Bootstrap is used to create a large button ?
  • Correct Answer: D. .btn-lg

Q. 141   The CSS property used to specify the transparency of an element is ?
  • Correct Answer: A. opacity

Q. 142   The class in Bootstrap which is used to specify the collapsible elements is -
  • Correct Answer: A. .collapse

Q. 143   How can we specify the spacing between each letter in a text in CSS ?
  • Correct Answer: B. letter-spacing

Q. 144   Which of the following class in Bootstrap is used for creating the large size modals ?
  • Correct Answer: C. .modal-lg

Q. 145   What is the correct syntax for referring an external CSS ?
  • Correct Answer: A. <link rel="stylesheet" type="text/css" href="style.css">

Q. 146   Who developed jQuery, and in which year it was first released ?
  • Correct Answer: C. John Resig in 2006

Q. 147   What type of CSS is generally recommended for designing large web pages ?
  • Correct Answer: C. External

Q. 148   Is Bootstrap 3 mobile-first ?
  • Correct Answer: A. TRUE

Q. 149   jQuery is a -
  • Correct Answer: B. JavaScript library

Q. 150   How can we select an element with a specific ID in CSS ?
  • Correct Answer: A. #

Q. 151   Which of the following class in Bootstrap is used to provide a responsive fixed width container ?
  • Correct Answer: C. .container

Q. 152   The jQuery method used to get all ancestors of the matched set of elements is -
  • Correct Answer: A. parents() method

Q. 153   Which of the following sign is used as a shortcut for jQuery ?
  • Correct Answer: C. the $ sign

Q. 154   Which of the following class in bootstrap is used to create a big box for calling extra attention ?
  • Correct Answer: D. .jumbotron

Q. 155   How can we write comments in CSS ?
  • Correct Answer: A. /* */

Q. 156   Which of the following class in Bootstrap is used to create a dropdown menu ?
  • Correct Answer: A. .dropdown

Q. 157   In the below code snippet, in what order will the margins be added ?
p {
margin: 25px 50px 75px 100px;
}
  • Correct Answer: A. Top, Right, Bottom, Left

Q. 158   Which type of JavaScript language is ___
  • Correct Answer: B. Object-Based

Q. 159   Who invented C++ ?
  • Correct Answer: D. Bjarne Stroustrup

Q. 160   Which of the following is used for comments in C++ ?
  • Correct Answer: D. both // comment or /* comment */

Q. 161   Which of the following is not a type of Constructor in C++ ?
  • Correct Answer: B. Friend constructor

Q. 162   Which of the following type is provided by C++ but not C ?
  • Correct Answer: C. bool

Q. 163   Which of the following correctly declares an array in C++ ?
  • Correct Answer: B. int array[10];

Q. 164   What is Inheritance in C++ ?
  • Correct Answer: A. Deriving new classes from existing classes

Q. 165   What is meant by a polymorphism in C++ ?
  • Correct Answer: B. class having many forms

Q. 166   What is abstract class in C++ ?
  • Correct Answer: C. Class specifically used as a base class with atleast one pure virtual functions

Q. 167   Which of the following constructors are provided by the C++ compiler if not defined in a class ?
  • Correct Answer: C. Default constructor

Q. 168   The operator used for dereferencing or indirection is ____
  • Correct Answer: A. *

Q. 169   What will happen in the following C++ code snippet ?
1. int a = 100, b = 200;
2. int *p = &a, *q = &b;
3. p = q;
  • Correct Answer: B. p now points to b

Q. 170   Which operator is used to signify the namespace ?
  • Correct Answer: C. scope-resolution operator

Q. 171   What does a class in C++ holds ?
  • Correct Answer: C. both data & functions

Q. 172   Which other keywords are also used to declare the class?
  • Correct Answer: A. class

Q. 173   The data members and functions of a class in C++ are by default ____________
  • Correct Answer: B. private

Q. 174   Constructors are used to ____________
  • Correct Answer: A. initialize the objects

Q. 175   Which of these following members are not accessed by using direct member access operator ?
  • Correct Answer: D. both private & protected

Q. 176   How many objects can present in a single class ?
  • Correct Answer: D. as many as possible

Q. 177   Which special character is used to mark the end of class ?
  • Correct Answer: A. ;

Q. 178   Which of the following operators can't be overloaded ?
  • Correct Answer: A. ::

Q. 179   Which keyword is used to represent a friend function ?
  • Correct Answer: A. friend

Q. 180   What is a friend function in C++ ?
  • Correct Answer: A. A function which can access all the private, protected and public members of a class

Q. 181   What is a function template ?
  • Correct Answer: A. creating a function without having to specify the exact type

Q. 182   What is the syntax of class template ?
  • Correct Answer: A. template <paramaters> class declaration

Q. 183   What is meant by multiple inheritance ?
  • Correct Answer: C. Deriving a derived class from more than one base class

Q. 184   Which of the following is the correct syntax to print the message in C++ language ?
  • Correct Answer: A. cout <<"Hello world!";

Q. 185   Which of the following is the address operator ?
  • Correct Answer: C. &

Q. 186   For inserting a new line in C++ program, which one of the following statements can be used ?
  • Correct Answer: A. \n

Q. 187   Which of the following refers to characteristics of an array ?
  • Correct Answer: A. An array is a set of similar data items

Q. 188   If we stored five elements or data items in an array, what will be the index address or the index number of the array's last data item ?
  • Correct Answer: B. 4 number

Q. 189   Wrapping data and its related functionality into a single entity is known as _____________
  • Correct Answer: B. Encapsulation

Q. 190   How many types of polymorphism are there in C++ ?
  • Correct Answer: B. 2 types

Q. 191   Which of the following is not a type of inheritance ?
  • Correct Answer: B. Distributive

Q. 192   Which of the following is called insertion operator ?
  • Correct Answer: A. <<

Q. 193   Which of the following is called extraction operator ?
  • Correct Answer: B. >>

Q. 194   What is the size of a boolean variable in C++ ?
  • Correct Answer: A. 1 bit

Q. 195   Which of the following is C++ equivalent for scanf() ?
  • Correct Answer: A. cin

Q. 196   Which of the following is the scope resolution operator ?
  • Correct Answer: C. ::

Q. 197   What is std in C++ ?
  • Correct Answer: B. std is a standard namespace in C++

Q. 198   Which of the following accesses the seventh element stored in array ?
  • Correct Answer: A. array[6];

Q. 199   What do vectors represent ?
  • Correct Answer: B. Dynamic arrays

Q. 200   Where does the execution of c++ program starts ?
  • Correct Answer: B. main() function

Q. 201   Which of the following correctly declares an array ?
  • Correct Answer: A. int array[10];

Q. 202   Which data type is used to represent the absence of parameters ?
  • Correct Answer: B. void

Q. 203   The value 132.54 can be represented using which data type ?
  • Correct Answer: A. float

Q. 204   What is syntax of defining a constructor of class A ?
  • Correct Answer: C. A()

Q. 205   There are ___ levels of heading in HTML
  • Correct Answer: D. Six

Q. 206   Which of the following is true about Laravel?
  • Correct Answer: D. All of the above

Q. 207   The following html tag is used to display the content as a moving text
  • Correct Answer:

Q. 208   html comment should be enclosed between
  • Correct Answer: A. <!-- and -->

Q. 209   _____ tag is used before beginning of the paragraph text
  • Correct Answer: C. <p>

Q. 210   Example of picture editing software is
  • Correct Answer: B. photoshop

Q. 211   html document have a extension ______
  • Correct Answer: B. .htm or .html

Q. 212   The _____ element can be used to identify your html file to the outside world
  • Correct Answer: D. html

Q. 213   Which of the following is true
  • Correct Answer: C. Unordered list starts with <UL> and ends with </UL>

Q. 214   Which of the following is true?
  • Correct Answer: A. BR tag is used to have a blank line

Q. 215   to get the ordered list we use
  • Correct Answer: C. <OL>

Q. 216   HTML is the method where ordinary text can be converted into
  • Correct Answer: D. None of the above

Q. 217   WWW stands for
  • Correct Answer: C. world wide web

Q. 218   The CSS property used to control the element’s font-size is__________
  • Correct Answer: D. None

Q. 219   The HTML attribute used to define the internal stylesheet is___________
  • Correct Answer: B. <style>

Q. 220   Which of the following CSS property is used to set the background image of an element?
  • Correct Answer: C. background-image

Q. 221   Which of the following is the correct syntax to display the hyperlinks without any underline?
  • Correct Answer: C. a {text-decoration : none;}

Q. 222   Which of the following is the correct syntax to make the background-color of all paragraph elements to yellow?
  • Correct Answer: C. p {background-color : yellow;}

Q. 223   Command line interface used in Laravel is called?
  • Correct Answer: B. Artisan

Q. 224   Which of the following property is used as the shorthand property for the padding properties?
  • Correct Answer: C. padding

Q. 225   The CSS property used to make the text bold is___________
  • Correct Answer: B. font-weight : bold

Q. 226   The property in CSS used to change the background color of an element is_____________
  • Correct Answer: A. background-color

Q. 227   Which of the following is the correct syntax for referring the external style sheet?
  • Correct Answer: D. <link rel=“stylesheet” type=“text/css” href=“example.css”>

Q. 228   The HTML attribute used to define the inline styles is___________
  • Correct Answer: C. style

Q. 229   The CSS property used to draw a line around the elements outside the border?
  • Correct Answer: D. outline

Q. 230   Which of the following CSS property is used to specify the space between every letter inside an element?
  • Correct Answer: C. letter-spacing

Q. 231   The CSS property used to make the rounded borders, or rounded corners around an element is________
  • Correct Answer: A. border-radius

Q. 232   The CSS property used to specify the transparency of an element is____________
  • Correct Answer: D. opacity

Q. 233   Which of the following property is used as the shorthand property of margin properties?
  • Correct Answer: C. margin

Q. 234   The CSS property used to set the distance between the borders of the adjacent cells in the table is__________
  • Correct Answer: B. border-spacing

Q. 235   Are the negative values allowed in padding property?
  • Correct Answer: A. No

Q. 236   What are the valid values of font-style property?
  • Correct Answer: D. inherit, italic, normal, oblique

Q. 237   In the MVC framework, the letter ( C ) stands for?
  • Correct Answer: D. Controller

Q. 238   Cookie can be created by global cookie helper of Laravel.
  • Correct Answer: A. TRUE

Q. 239   In MVC framework, the letter "V" stands for Views.
  • Correct Answer: A. TRUE

Q. 240   Which version introduces the concept of using Blade?
  • Correct Answer: D. Laravel 5.1

Q. 241   Laravel uses the Blade @extends directive for defining the child elements
  • Correct Answer: A. TRUE

Q. 242   Which CSS property is used to specify uppercase and lowercase letters in a text?
  • Correct Answer: A. text-transform

Q. 243   How to create a controller in laravel by cmd?
  • Correct Answer: B. php artisan make:controller contoller_name

Q. 244   In how many ways can CSS be added to HTML?
  • Correct Answer: C. Three

Q. 245   Which selector do we use to specify the rule for binding some particular unique element?
  • Correct Answer: D. id

Q. 246   Internal styles are written within the _____ element.
  • Correct Answer: A. <style>…</style>

Q. 247   HTML is what type of language ?
  • Correct Answer: B. Markup Language

Q. 248   Which HTML tag produces the biggest heading?
  • Correct Answer: D. <h1>

Q. 249   Which is correct?
  • Correct Answer: C. <b>Click Here</b>

Q. 250   To create a link to an anchor, you use the______property in A tag.
  • Correct Answer: D. Href

Q. 251   The page title is inside the____tag.
  • Correct Answer: B. Head

Q. 252   <UL>...</UL> tag is used to ________
  • Correct Answer: C. display the bulleted list

Q. 253   <TD>...</TD> tag is used to ________
  • Correct Answer:

Q. 254   Which tag is used to create body text in HTML?
  • Correct Answer: D. <BODY>

Q. 255   Which plugin is used to cycle through elements, like a slideshow?
  • Correct Answer: D. carousel

Q. 256   Which plugin is used to create a modal window?
  • Correct Answer: A. modal

Q. 257   Which plugin is used to create a tooltip?
  • Correct Answer: B. tooltip

Q. 258   Bootstrap’s grid system allows up to
  • Correct Answer: B. 12 columns across the page

Q. 259   Which class should be used to indicate a button group?
  • Correct Answer: B. btn-group

Q. 260   Which of the following bootstrap styles of buttons can be used to make the size of the button small?
  • Correct Answer: B. .btn-sm

Q. 261   How many Container class are there in Bootstrap?
  • Correct Answer: B. Two

Q. 262   The _________ class is used to right-align navigation bar buttons.
  • Correct Answer: C. .navbar-right

Q. 263   Which class is used to add buttons inside the navigation bar?
  • Correct Answer: B. .navbar-btn

Q. 264   Bootstrap is developed by
  • Correct Answer: C. Mark Otto and Jacob Thornton

Q. 265   Which keyword allows the developers to shorten the namespace?
  • Correct Answer: B. use

Q. 266   Which of the following bootstrap style is used to add standard links to .navbar?
  • Correct Answer: A. navbar-link

Q. 267   How do you insert a comment in a CSS file?
  • Correct Answer: B. /* this is a comment */

Q. 268   How do you change the left margin of an element?
  • Correct Answer: C. margin-left:

Q. 269   Interpret this statement: <strong>Michelle</strong>
  • Correct Answer: C. It will print out Michelle in bold font

Q. 270   What is the tag for an inline frame?
  • Correct Answer: A. Iframe

Q. 271   Which of the following class in bootstrap is used to create a big box for calling extra attention?
  • Correct Answer: D. .jumbotron

Q. 272   Which of the following class in Bootstrap is used to create a basic list group?
  • Correct Answer: C. .list-group

Q. 273   Which of the following class in Bootstrap is used to create basic pagination?
  • Correct Answer: D. .pagination

Q. 274   Which of the following class in Bootstrap is used to create a badge?
  • Correct Answer: B. .badge

Q. 275   The class in Bootstrap which is used to specify the collapsible elements is -
  • Correct Answer: A. .collapse

Q. 276   Which of the following class in Bootstrap is used for creating the large size modals?
  • Correct Answer: D. .modal-lg

Q. 277   Which of the following is correct method to add a success button?
  • Correct Answer: A. <button class = "btn btn-success"> success </button>

Q. 278   Which of the following class in Bootstrap is used to create a label?
  • Correct Answer: A. .label

Q. 279   Which of the following is correct about the Bootstrap Grid system?
  • Correct Answer: C. Both (a) and (b)

Q. 280   Which of the following class in Bootstrap is used to style a table with borders surrounding every element?
  • Correct Answer: B. .table-bordered

Q. 281   Which of the following class in Bootstrap is used to style a table with a light gray background to rows when the user moves the cursor over them?
  • Correct Answer: D. .table-hover

Q. 282   In the below code snippet, in what order will the margins be added ? p { margin: 25px 50px 75px 100px; }
  • Correct Answer: A. Top, Right, Bottom, Left,

Q. 283   Which of the following class in Bootstrap is used to provide a responsive fixed width container ?
  • Correct Answer: C. .container

Q. 284   How can we select an element with a specific ID in CSS ?
  • Correct Answer: A. #

Q. 285   What type of CSS is generally recommended for designing large web pages ?
  • Correct Answer: C. External

Q. 286   What type of CSS is the following code snippet ? <h1 style = "color:blue;" >A Blue Heading </h1>
  • Correct Answer: A. Inline

Q. 287   How many columns are allowed in a bootstrap grid system ?
  • Correct Answer: B. 12 columns

Q. 288   Which HTML tag is used to declare internal CSS ?
  • Correct Answer: A. <style>

Q. 289   What are the attributes used to change the size of an image ?
  • Correct Answer: A. Width and height

Q. 290   We enclose HTML tags within ?
  • Correct Answer: A. < >

Q. 291   Which of the following tags doesn't require a closing tag ?
  • Correct Answer: C. Both the <hr> and the <br> tag

Q. 292   Which property is used to define the font of the element's text?
  • Correct Answer: B. font-family

Q. 293   Which is the correct inline CSS for p tag to define paragrap's text and background colors?
  • Correct Answer: D. <p style="color: red; background-color: yellow;">

Q. 294   What does the abbreviation HTML stand for?
  • Correct Answer: A. Hyper Text Markup Language.

Q. 295   What is the smallest header in HTML by default?
  • Correct Answer: D. h6

Q. 296   What are the types of lists available in HTML?
  • Correct Answer: A. Ordered, Unordered Lists.

Q. 297   HTML files are saved by default with the extension?
  • Correct Answer: A. .html

Q. 298   We enclose HTML tags within?
  • Correct Answer: B. <>

Q. 299   What is the effect of the tag?
  • Correct Answer: A. It converts the text within it to bold font.

Q. 300   Which of the following is correct about HTML?
  • Correct Answer: B. HTML uses tags defined within the language.

Q. 301   How to display preformatted text in HTML?
  • Correct Answer: C. <pre>

Q. 302   What is meant by an empty tag in HTML?
  • Correct Answer: B. An empty tag does not require a closing tag

Q. 303   Which attribute is used to provide a unique name to an HTML element?
  • Correct Answer: A. id

Q. 304   What is the function of the HTML style attribute?
  • Correct Answer: A. It is used to add styles to an HTML element.

Q. 305   Which of the following is the correct syntax for using the HTML style attribute?
  • Correct Answer: A. <tagname style "property: value;" >

Q. 306   Which HTML element is used to define description data?
  • Correct Answer: D. <dd>

Q. 307   Which of the following properties is used to change the font of text?
  • Correct Answer: A. font-family

Q. 308   How are quotations defined in HTML?
  • Correct Answer: C. <blockquote >

Q. 309   What tag is used to render an image on a webpage?
  • Correct Answer: A. img

Q. 310   Apart from <i> tag, which of the following tag is used to render a text in italics?
  • Correct Answer: B. <em>

Q. 311   Colors are defined in HTML using?
  • Correct Answer: D. All of the above

Q. 312   Which property is used to set colors in HTML?
  • Correct Answer: A. color

Q. 313   What are the types of unordered lists in HTML?
  • Correct Answer: A. Circle, square, disc.

Q. 314   Which property is used to set border colors in HTML?
  • Correct Answer: B. border

Q. 315   Which of the following things are necessary to create an HTML page?
  • Correct Answer: C. Both A and B

Q. 316   Which command is used to start laravel server?
  • Correct Answer: B. php artisan serve

Q. 317   Which HTML tag is called the root element of an HTML document?
  • Correct Answer: A. <html>

Q. 318   How is black color represented in terms of RGB values?
  • Correct Answer: A. RGB(O, O, 0)

Q. 319   What does the Alpha value in RGBA represent?
  • Correct Answer: A. Opacity value for a color.

Q. 320   What does the Alpha value of 0.0 represent?
  • Correct Answer: B. Fully Transparent.

Q. 321   How to set a font for a whole page?
  • Correct Answer: B. <defaultfont>

Q. 322   Which function is used to open a file in C?
  • Correct Answer: B. fopen()

Q. 323   Which is the correct syntax to declare a file pointer in C?
  • Correct Answer: B. FILE *file_pointer;

Q. 324   Header files ___.
  • Correct Answer: D. All of these

Q. 325   The sqrt() function is used to calculate which value?
  • Correct Answer: C. Square root

Q. 326   A recursive function in C ___.
  • Correct Answer: A. Call itself again and again

Q. 327   Before using a pointer variable, it should be ___.
  • Correct Answer: C. Both A. and B.

Q. 328   A ___ can be assigned the address of any data type.
  • Correct Answer: C. Void pointer

Q. 329   Before using a pointer variable, it should be ___.
  • Correct Answer: C. Both A. and B.

Q. 330   Which of the following is the collection of different data types?
  • Correct Answer: A. structure

Q. 331   The size of a union is ___.
  • Correct Answer: C. Equal to size of largest data type

Q. 332   Which feature of OOPS described the reusability of code?
  • Correct Answer: D. Inheritance

Q. 333   A single program of OOPS contains _______ classes?
  • Correct Answer: D. Any number

Q. 334   Which operator from the following can be used to illustrate the feature of polymorphism?
  • Correct Answer: A. Overloading <<

Q. 335   Which header file is required by the C++ programming language to use the OOPS concept?
  • Correct Answer: D. We can easily use the OOPS concepts in c++ programs without using any header file

Q. 336   Which function best describe the concept of polymorphism in programming languages?
  • Correct Answer: B. Virtual function

Q. 337   Which of the following feature is also known as run-time binding or late binding?
  • Correct Answer: C. Dynamic binding

Q. 338   Which HTML tag is used to set up a Javascript–like client?
  • Correct Answer: A. <script>

Q. 339   What are the main components of the front end of any working website?
  • Correct Answer: A. HTML, CSS, Javascript.

Q. 340   What is the select tag used for?
  • Correct Answer: A. Creates a combo box.

Q. 341   The most basic part of any HTML page is?
  • Correct Answer: A. ASCII Text

Q. 342   What are those objects called which are used for storing data on the client provided by the HTML local storage?
  • Correct Answer: C. Both A and B

Q. 343   The default value of the BORDER attribute is?
  • Correct Answer: A. 1 pixel

Q. 344   What are some valid character sets available?
  • Correct Answer: D. All of the above

Q. 345   How many characters can be written in I KB?
  • Correct Answer: B. 1024

Q. 346   Which of the following are examples of block–level elements in HTML?
  • Correct Answer: D. All of the above

Q. 347   What are the properties of block-level elements?
  • Correct Answer: D. All of the above.

Q. 348   If a background image is smaller than the screen on which it is being displayed, what will occur on the webpage?
  • Correct Answer: B. The image will be repeated

Q. 349   Which property allows an image link to show a text label?
  • Correct Answer: A. alt

Q. 350   What is CSS stands for in Webdesign?
  • Correct Answer: A. Cascading Style Sheets

Q. 351   What CSS describes?
  • Correct Answer: B. CSS describes how HTML elements are to be displayed on screen, paper, or in other media

Q. 352   What is a CSS selector?
  • Correct Answer: D. A CSS selector is the first part of a CSS Rule. It may an HTML element or pattern of elements.

Q. 353   In a CSS file, there is a CSS rule for paragraphs tags — what does p can be called?
  • Correct Answer: A. Selector

Q. 354   Internal styles are written within the element.
  • Correct Answer: A. <style>...</style>

Q. 355   Inline styles are written within the attribute.
  • Correct Answer: A. style

Q. 356   CSS comments are placed within the
  • Correct Answer: B. /* and */

Q. 357   Can comments also span multiple lines?
  • Correct Answer: A. Yes

Q. 358   Which property is used to define the text color?
  • Correct Answer: B. color

Q. 359   Which property is used to define the background color?
  • Correct Answer: D. Both A. and C.

Q. 360   From the given options which is/are the valid way to represent a color?
  • Correct Answer: D. All of the above

Q. 361   Which property is used to define the font of the element is text?
  • Correct Answer: B. font-family

Q. 362   To make a text italic, which CSS property is used?
  • Correct Answer: C. font-style

Q. 363   Why font-weight property is used?
  • Correct Answer: A. Sets how thick or thin characters in text should be displayed.

Q. 364   What is/are the correct value(s) of font-weight property?
  • Correct Answer: C. normal, bold, bolder, lighter, initial, and inherit

Q. 365   What is the correct syntax of border property in CSS?
  • Correct Answer: A. border: border-width border-style border-color

Q. 366   Which of the following is the correct syntax to remove the underline on hyperlinks and visited hyperlinks?
  • Correct Answer: C. a {text-decoration : none;}, a:visited {text-decoration : none;}

Q. 367   Which CSS property is used to style the hyperlinks on hover (Mouse over)?
  • Correct Answer: D. a:hover

Q. 368   If you want to use a green dotted border around an image, which CSS property is used for that?
  • Correct Answer: D. Both A. and B.

Q. 369   Which CSS property and value is used to center an element?
  • Correct Answer: A. text-align:center

Q. 370   What are the valid values of text-align property?
  • Correct Answer: C. left, center, right, justify

Q. 371   What is the use of "text-align:justify" in CSS?
  • Correct Answer: A. Stretches the lines so that each line has equal width

Q. 372   Which CSS property is used to specify the indentation of the first line of a text?
  • Correct Answer: C. text-indent

Q. 373   Which CSS property is used to specify the space between the characters in a text?
  • Correct Answer: C. letter-spacing

Q. 374   Which CSS property is used to specify the space between lines?
  • Correct Answer: D. line-height

Q. 375   Which CSS property is used to specify the space between the words in a text?
  • Correct Answer: A. word-spacing

Q. 376   Which CSS property adds shadow to text?
  • Correct Answer: B. text-shadow

Q. 377   Bootstrap directory in Laravel is used to__________
  • Correct Answer: A. Initialize a Laraval application

Q. 378   Which is the correct CSS statement to capitalize the first letter of each word?
  • Correct Answer: B. text-transform: capitalize

Q. 379   What are the valid values of text-transform property?
  • Correct Answer: A. uppercase, lowercase, and capitalize

Q. 380   What are the valid values of "text-decoration" property?
  • Correct Answer: A. overline, line-through, underline, and none

Q. 381   Which CSS property specifies how to align the last line of a text?
  • Correct Answer: D. text-align-last

Q. 382   Which CSS property sets the vertical alignment of an element?
  • Correct Answer: A. vertical-align

Q. 383   Which one Laravel command line interface?
  • Correct Answer: B. Php artisan

Q. 384   Why does Laravel use the Blade Template Engine?
  • Correct Answer: C. For the view in MVC

Q. 385   Which CSS property specifies the type of list item marker?
  • Correct Answer: B. list-style-type

Q. 386   Which is the correct CSS statement is used to remove the markers/bullets?
  • Correct Answer: D. list-style-type: none;

Q. 387   Which CSS property specifies an image as the list item marker?
  • Correct Answer: A. list-style-image

Q. 388   Which CSS property specifies if/how an element is displayed?
  • Correct Answer: C. display

Q. 389   ________________ can be defined as a class of elements in which each element has a unique name to that associated class.
  • Correct Answer: C. Namespaces

Q. 390   HTML elements are positioned by default.
  • Correct Answer: A. static

Q. 391   What are the valid values for "position" property?
  • Correct Answer: D. static, relative, fixed, absolute, and sticky

Q. 392   Which CSS property specifies the opacity/transparency of an element?
  • Correct Answer: B. opacity

Q. 393   Which CSS function performs a calculation to be used as the property value?
  • Correct Answer: C. calc()

Q. 394   Which CSS function uses the largest value?
  • Correct Answer: D. max()

Q. 395   Which CSS function uses the smallest value?
  • Correct Answer: D. min()

Q. 396   What is CSS?
  • Correct Answer: D. All of the above

Q. 397   The <style> in Internal CSS refers to
  • Correct Answer: B. HTML tags

Q. 398   Can we link multiple stylesheets to a single page?
  • Correct Answer: A. Yes

Q. 399   The CSS property used to change text sizes?
  • Correct Answer: B. font-size

Q. 400   In this line of code, identify the selector
p {border: 2px solid blue;}
  • Correct Answer: A. p

Q. 401   How many color names does CSS supports?
  • Correct Answer: A. 140 names

Q. 402   The property is used in the positioning of the background image.
  • Correct Answer: B. background-position

Q. 403   what means 4 times the size of the current font.
  • Correct Answer: D. 4em

Q. 404   Amongst the following browsers, which browser supports almost all the CSS properties?
  • Correct Answer: C. Google Chrome

Q. 405   What is the CSS Entity for the character "#"?
  • Correct Answer: A. 0023

Q. 406   This selector selects all the elements where the parent is a
element.
  • Correct Answer: B. h > p

Q. 407   Which selector selects the markers of list items?
  • Correct Answer: A. ::marker

Q. 408   Which is the most widely used font in customizing web pages?
  • Correct Answer: C. Arial

Q. 409   Which of the following CSS properties are animatable?
  • Correct Answer: B. animation

Q. 410   We can give space between unit and value when assigning length values to CSS properties.
  • Correct Answer: B. False

Q. 411   Which of these units of length is supported by Chrome Version 1.0?
  • Correct Answer: C. px

Q. 412   Which line of code is a must to write to apply CSS Flexbox properties?
  • Correct Answer: A. display: flex;

Q. 413   The default value of justify-content property is
  • Correct Answer: A. flex-start

Q. 414   Which is the correct syntax for adding animation?
  • Correct Answer: B. animation: name duration timing-function

Q. 415   Which line of code specifies playing an animation with the same speed from beginning to the end?
  • Correct Answer: A. div {animation- timing function: linear;)

Q. 416   Which line of code represents a universal selector?
  • Correct Answer: A. *{border: 2px solid red;}

Q. 417   Which of the following properties specify the width of the borders?
  • Correct Answer: D. Both A and C

Q. 418   Is border-image property animatable?
  • Correct Answer: B. No

Q. 419   Which cursor property value indicates that the program is busy?
  • Correct Answer: D. wait

Q. 420   What does this line of code explain? p {display: flex;}
  • Correct Answer: D. All the elements are displayed as an inline flex container

Q. 421   The text-align property defines the alignment of text in an element.
  • Correct Answer: A. horizontal

Q. 422   Does the z-index property accept negative values?
  • Correct Answer: A. Yes

Q. 423   Which CSS property is not supported by the Firefox browser?
  • Correct Answer: D. viewport

Q. 424   Which one is a fallback font?
  • Correct Answer: C. Serif

Q. 425   Where do we store external stylesheets?
  • Correct Answer: A. CSS files

Q. 426   In the given line of code, identify the type of selector used. #Main {background-color: yellow;}
  • Correct Answer: B. CSS id selector

Q. 427   The Hex Code for the white color is
  • Correct Answer: A. #FFFFFF

Q. 428   In CSS, what does HSL stands for?
  • Correct Answer: C. hue, saturation, lightness

Q. 429   Among the following CSS properties, which property is not a shorthand property?
  • Correct Answer: C. display

Q. 430   In this line of code, what is the use of the alt attribute? it is red
  • Correct Answer: D. Both A. and B.

Q. 431   The CSS border property specifies the style, color, and of an element border.
  • Correct Answer: B. width

Q. 432   What does "padding: 50px 20px;" specifies?
  • Correct Answer: D. Both A. and B.

Q. 433   What is the default size for normal text, like paragraphs?
  • Correct Answer: D. 16 px

Q. 434   Which of the following CSS selectors are used to specify a group of elements?
  • Correct Answer: C. class

Q. 435   Which of the following has introduced text, list, box, margin, border, color, and background properties?
  • Correct Answer: C. css

Q. 436   Which of the following CSS framework is used to create a responsive design?
  • Correct Answer: D. bootstrap

Q. 437   Which of the following CSS property is used to make the text bold?
  • Correct Answer: B. font-weight: bold

Q. 438   What will be the output of following CSS code snippet?
hl {color: "greenn ; }
  • Correct Answer: A. nothings happen

Q. 439   Which of the following CSS style property is used to specify an italic text?
  • Correct Answer: C. font-style

Q. 440   What will be the output of following CSS code snippet?

h1 {color: red text-decoration: underline; font-style: italic;}
  • Correct Answer: B. only font-style: italic works

Q. 441   Which of the following are the CSS Extension Prefixes for Webkit?
  • Correct Answer: D. -webkit

Q. 442   Which of the following function defines a linear gradient as a CSS image?
  • Correct Answer: A. linear-gradient()

Q. 443   Which of the following is the correct way to apply CSS Styles?
  • Correct Answer: D. All of the above.

Q. 444   Which of the following CSS property sets the font size of text?
  • Correct Answer: A. font-size

Q. 445   Which of the following is not the property of the CSS box model?
  • Correct Answer: B. color

Q. 446   What will be the output of the following CSS code snippet?

span { border: 1px solid red; outline: green dotted thick; }
  • Correct Answer: C. All span elements will have a outer green dotted border and an inner red border

Q. 447   Which of the following CSS property sets the shadow for a box element?
  • Correct Answer: B. box-shadow

Q. 448   Which of the following CSS property is used to set the color of the text?
  • Correct Answer: D. color

Q. 449   Which of the following CSS Property controls how an element is positioned?
  • Correct Answer: B. position

Q. 450   Which of the following CSS property is used to specify table borders in CSS?
  • Correct Answer: C. border

Q. 451   Interpolation of variable in laravel done using
  • Correct Answer: A. {{}}

Q. 452   Which CSS Property Sets A Background Image For An Element?
  • Correct Answer: B. Background - Image

Q. 453   What Should Be The Table Width, so That The Width Of A Table Adjust To The Current Width Of The Browser Window?
  • Correct Answer: B. 100%

Q. 454   When We Write <img src="img.png"> What "img.png" Inside Double Quote Implies?
  • Correct Answer: A. Value

Q. 455   The Default Value Of "position" Attribute Is
  • Correct Answer: D. Static

Q. 456   Who invented css?
  • Correct Answer: A. Hakon Wium Lie

Q. 457   CSS is written in which language?
  • Correct Answer: B. HTML

Q. 458   What is the latest version of css?
  • Correct Answer: C. css 3

Q. 459   how will you make all paragraph elements red in color?
  • Correct Answer: A. p {color: red;}

Q. 460   HTML document start and end with which tag pairs?
  • Correct Answer: C. <HTML> ... </HTML>

Q. 461   <TITLE> ... tag must be within _______
  • Correct Answer: C. Header

Q. 462   Text within ... <STRONG> tag is displayed as _____
  • Correct Answer: A. bold

Q. 463   Which tag is used to display the numbered list?
  • Correct Answer: A. <OL > ... </OL >

Q. 464   <SCRIPT> tag can be placed within____
  • Correct Answer: D. both A and B

Q. 465   using <P>tag will
  • Correct Answer: A. start a new paragraph

Q. 466   <TD > tag is used for ________
  • Correct Answer: B. Table Records and table data

Q. 467   Which HTML Tag will use to scroll a text in web page?
  • Correct Answer: A. < marquee> ... </marquee >

Q. 468   WWW stands for ______.
  • Correct Answer: C. World Wide Web

Q. 469   A homepage is __________.
  • Correct Answer: D. the first page of a website

Q. 470   ____is a document commonly written in Hyper Text Markup Language (HTML) that is accessible through the Internet or other network using an internet browser.
  • Correct Answer: B. Web page

Q. 471   A web page is located using a _____.
  • Correct Answer: B. Uniform Resource Locator

Q. 472   A piece of icon or image on a web page associated with another webpage is called____________.
  • Correct Answer: B. hyperlink

Q. 473   ________ is a collection of web pages.
  • Correct Answer: D. Web site

Q. 474   What is the correct HTML tag for inserting a line break?
  • Correct Answer: A. < br>

Q. 475   Webpage starts with which of the following tag?
  • Correct Answer: A. <html >

Q. 476   JPG sometimes called ________.
  • Correct Answer: A. JPEG

Q. 477   A webpage displays a picture. What tag was used to display that picture?
  • Correct Answer: C. img

Q. 478   < b>tag makes the enclosed text bold. What is other tag to make text bold?
  • Correct Answer: A. <strong >

Q. 479   Tags and text that are not directly displayed on the page are written in _ section.
  • Correct Answer: A. <head>

Q. 480   Which tag inserts a line horizontally on your web page?
  • Correct Answer: A. <hr>

Q. 481   What should be the first tag in any HTML document?
  • Correct Answer: A. <html>

Q. 482   Which tag allows you to add a row in a table?
  • Correct Answer: A. <tr> and </tr>

Q. 483   How can you make an e-mail link?
  • Correct Answer: C. <a href="mailto:xxx@yyy">

Q. 484   Choose the correct HTML tag to make a text italic
  • Correct Answer: A. <i>

Q. 485   To create a combo box (drop down box) which tag will you use?
  • Correct Answer: A. <select>

Q. 486   Which of the following is not a pair tag?
  • Correct Answer: D. <img>

Q. 487   To create HTML document you require.
  • Correct Answer: C. Just a notepad can be used

Q. 488   The special formatting codes in HTML document used to present content are
  • Correct Answer: A. tags

Q. 489   HTML documents are saved in
  • Correct Answer: C. ASCII text

Q. 490   Some tags enclose the text. Those tags are known as
  • Correct Answer: D. Pair tags

Q. 491   In HTML document the tags
  • Correct Answer: D. can be written in both uppercase or lowercase

Q. 492   Marquee is a tag in HTML to
  • Correct Answer: C. Display text with scrolling effect

Q. 493   To create a blank line in your web page
  • Correct Answer: C. insert < BR > tag

Q. 494   The way the browser displays the object can be modified by _____
  • Correct Answer: A. attributes

Q. 495   Which of the following HTML code is valid?
  • Correct Answer: D. None of the above.

Q. 496   Which of the following is an attribute related to font tag?
  • Correct Answer: D. All of the above

Q. 497   HTML supports
  • Correct Answer: D. both type of lists

Q. 498   What tag is used to list individual items of an ordered list?
  • Correct Answer: A. LI

Q. 499   Which attribute is used withimg tag to display the text if image could not load in browser?
  • Correct Answer: C. alt

Q. 500   Which attribute you’ll use with TD tag to merge two cells horizontally?
  • Correct Answer: C. colspan=2

Q. 501   View files in Laravel end in________
  • Correct Answer: A. .blade.php

Q. 502   Which of the following is correct about Bootstrap?
  • Correct Answer: D. All of the above.

Q. 503   Which of the following is correct about Bootstrap?
  • Correct Answer: D. All of the above

Q. 504   Which of the following is a part of Mobile First Strategy of Bootstrap?
  • Correct Answer: D. All of the above.

Q. 505   Which of the following is correct about Bootstrap Grid System?
  • Correct Answer:

Q. 506   Which of the following is correct about Bootstrap Grid System?
  • Correct Answer: D. All of the above.

Q. 507   Which of the following is correct about Bootstrap Media Query?
  • Correct Answer: A. It simply applies some CSS, based on certain conditions set forth. If those conditions are met, the style is applied.

Q. 508   Which of the following is correct about Bootstrap Media Query?
  • Correct Answer: C. Both of the above.

Q. 509   Which of the following is correct about Bootstrap Mobile First Strategy?
  • Correct Answer: D. All of the above.

Q. 510   Which of the following class styles a table as a nice basic table with just some light padding and horizontal dividers?
  • Correct Answer:

Q. 511   Which of the following class styles a table as a nice basic table with stripes on rows?
  • Correct Answer: B. .table-striped

Q. 512   Which of the following class styles a table with borders surrounding every element and rounded corners around the entire table?
  • Correct Answer: C. .table-bordered

Q. 513   Which of the following class styles a table with a light gray background to rows while the cursor hovers over them?
  • Correct Answer: C. .table-hover

Q. 514   Which of the following class applies the hover color to a particular row or cell of a table?
  • Correct Answer: A. .active

Q. 515   Which of the following class indicates a successful or positive action?
  • Correct Answer: C. .success

Q. 516   Which of the following class indicates a warning that might need attention?
  • Correct Answer: D. .warning

Q. 517   Which of the following class indicates a dangerous or potentially negative action?
  • Correct Answer: D. .danger

Q. 518   Which of the following class can be used to create a responsive table?
  • Correct Answer: A. .table-responsive

Q. 519   Which of the following class is required to be added to form tag to make it inline?
  • Correct Answer: B. .form-inline

Q. 520   Which of the following class is required to be added to form tag to make it horizontal?
  • Correct Answer: B. .form-horizontal

Q. 521   Which of the following bootstrap style of button creates a default/ standard button?
  • Correct Answer: A. .btn

Q. 522   Which of the following bootstrap style of button provides extra visual weight and identifies the primary action in a set of buttons?
  • Correct Answer: D. .btn-primary

Q. 523   Which class adds zebra-stripes to a table?
  • Correct Answer: D. .table-striped

Q. 524   Which class shapes an image to a circle?
  • Correct Answer: C. .rounded-circle

Q. 525   Which class is used to create a big box for calling extra attention?
  • Correct Answer: B. .jumbotron

Q. 526   Which button class is used to create a large button?
  • Correct Answer: A. .btn-lg

Q. 527   Which class is used to create a button group?
  • Correct Answer: A. .btn-group

Q. 528   Which class is used to create a badge?
  • Correct Answer: D. .badge

Q. 529   Which class is used to create a loader?
  • Correct Answer: C. .spinner-border

Q. 530   Which class is used to create a basic pagination?
  • Correct Answer: C. .pagination

Q. 531   Which class is used to create a basic list group?
  • Correct Answer: B. .list-group

Q. 532   Which class adds a heading to a card?
  • Correct Answer: D. .card-header

Q. 533   Which class indicates a dropdown menu?
  • Correct Answer: B. .dropdown

Q. 534   A standard navigation bar is created with:
  • Correct Answer: D. < nav class= "navbar navbar-expand-md " >

Q. 535   Which component is used to cycle through elements, like a slideshow?
  • Correct Answer: C. Carousel

Q. 536   Which attribute is used to create a tooltip?
  • Correct Answer: D. data-toggle="tooltip"

Q. 537   Which contextual class indicates a succesful or positive action?
  • Correct Answer: B. .bg-success

Q. 538   Which contextual class indicates a dangerous or potentially negative action?
  • Correct Answer: B. .bg-danger

Q. 539   The Bootstrap grid system has four classes which defines screen size:
  • Correct Answer: B. xs, sm, md, lg

Q. 540   Which class is use to display black navigation bar?
  • Correct Answer: B. .navbar-inverse

Q. 541   Which class is used to add rounded corners to an image?
  • Correct Answer: B. .rounded

Q. 542   Which of the following is true about Jumbotron?
  • Correct Answer: C. Both of the above

Q. 543   The bootstrap class md means for
  • Correct Answer: C. small laptops

Q. 544   Which class is used to create warning notification alerts in Bootstrap?
  • Correct Answer: B. .alert-warning

Q. 545   Which class is used to create a button as a link in bootstrap?
  • Correct Answer: B. .btn-link

Q. 546   Which of the following class is used to create thumbnail image?
  • Correct Answer: D. .img-thumbnail

Q. 547   .img-circle class makes the entire image round by adding border-radius:_________.
  • Correct Answer: A. 50%

Q. 548   The contextual classes that are used to create colored progress bar:
  • Correct Answer: D. All of the above

Q. 549   The .container class provides
  • Correct Answer: B. Fixed width container

Q. 550   Which class creates pagination?
  • Correct Answer: A. pagination

Q. 551   Default size of H3 bootstrap heading
  • Correct Answer: D. 24px

Q. 552   Which class creates list of items?
  • Correct Answer: B. list-group

Q. 553   Default size of H2 bootstrap heading
  • Correct Answer: C. 30px

Q. 554   Which is default for a form
  • Correct Answer: B. Vertical Form

Q. 555   Default size of H1 bootstrap heading
  • Correct Answer: D. 36px

Q. 556   Default size of H6 bootstrap heading
  • Correct Answer: B. 12px

Q. 557   The bootstrap class xs means for
  • Correct Answer: A. phones

Q. 558   Bootstrap’s global default font-size is
  • Correct Answer: D. 14px

Q. 559   The Carousel plugin is a component
  • Correct Answer: C. For cycling through elements like slideshow

Q. 560   In Bootstrap we can addfor
  • Correct Answer: A. Proper Rendering and Zooming in mobile

Q. 561   What is latest version of bootstrap?
  • Correct Answer: D. version 5

Q. 562   Bootstrap is used for
  • Correct Answer: D. Web applications

Q. 563   Which class is used to create a badge danger?
  • Correct Answer: D. .badge-danger

Q. 564   Which class is used to create a pagination?
  • Correct Answer: A. .pagination

Q. 565   We use the ___ class to make any element fixed/stay at the top of the page when you scroll past it.
  • Correct Answer: C. .sticky-top

Q. 566   The ___ class adds a scrollbar to the table when needed
  • Correct Answer: D. .table-responsive

Q. 567   In list groups, which class is used to highlight the current item?
  • Correct Answer: A. .active

Q. 568   Which class to create border in bootstrap?
  • Correct Answer: B. .border

Q. 569   In Bootstrap, content must be placed within...
  • Correct Answer: A. Columns

Q. 570   If you want to have 3 equal columns in Bootstrap, which class would you use?
  • Correct Answer: A. .col-md-4

Q. 571   Is it true that the Bootstrap grid system works across multiple devices?
  • Correct Answer: A. yes

Q. 572   Which of the following is correct method to add a success button.
  • Correct Answer: A. .btn and .btn-success

Q. 573   Which of the following class in Bootstrap is used to create an striped progress bar?
  • Correct Answer: A. .progress-bar-striped

Q. 574   Which of the following class in Bootstrap is used for creating the small size modals?
  • Correct Answer: A. .modal-sm

Q. 575   How do you add shadow to elements in CSS3?
  • Correct Answer: A. box-shadow: 10px 10px 5px grey;

Q. 576   How can you created rounded corners using CSS3?
  • Correct Answer: C. border-radius: 30px;

Q. 577   How to rotate objects using CSS3?
  • Correct Answer: C. rotate-object: 30deg;

Q. 578   How to re-size/scale objects using CSS3?
  • Correct Answer: A. transform: scale(1.5);

Q. 579   __________ is a property that allows developers to add rounded corners on the design elements.
  • Correct Answer: D. Border-Radius

Q. 580   Which of the following is correct method to add a warning button.
  • Correct Answer: C. .btn and .btn-warning

Q. 581   Which of the following class in Bootstrap is used to create an progress bar?
  • Correct Answer: B. .progress-bar

Q. 582   If you want to have 4 equal columns in Bootstrap, which class would you use?
  • Correct Answer: D. .col-md-3

Q. 583   If you want to have 2 equal columns in Bootstrap, which class would you use?
  • Correct Answer: B. .col-md-6

Q. 584   If you want to have 6 equal columns in Bootstrap, which class would you use?
  • Correct Answer: A. .col-md-2

Q. 585   Which class is use to fading effect to alert in bootstrap?
  • Correct Answer: D. Both A. and B.

Q. 586   Which class is use to add slider caption in bootstrap?
  • Correct Answer: A. .carousel-caption

Q. 587   Where in an HTML document is the correct place to refer to an internal style sheet?
  • Correct Answer: A. In the <head> section

Q. 588   Which HTML attribute is used to define inline styles?
  • Correct Answer: B. style

Q. 589   Which is the correct CSS syntax?
  • Correct Answer: D. body {color: black;}

Q. 590   How do you add a background color for all elements?
  • Correct Answer: B. hl {background-color:#FFFFFF;}

Q. 591   Which CSS property is used to change the text color of an element?
  • Correct Answer: C. color

Q. 592   Which CSS property controls the text size?
  • Correct Answer: A. font-size

Q. 593   How do you display hyperlinks without an underline?
  • Correct Answer: B. a {text-decoration:none;}

Q. 594   How do you display a margin like this:
The margin-top = 10 pixels The margin-bottom = 5 pixels The margin-left = 20 pixels The margin-right = 1pixel?
  • Correct Answer: C. margin: 10px 1px 5px 20px;

Q. 595   Which property is used to change the left margin of an element?
  • Correct Answer: B. margin-left

Q. 596   When using the padding property; are you allowed to use negative values?
  • Correct Answer: B. No

Q. 597   How do you make a list type none?
  • Correct Answer: A. list-style-type: none;

Q. 598   How do you select an element with id demo?
  • Correct Answer: B. #demo

Q. 599   How do you select elements with class name test?
  • Correct Answer: D. .test

Q. 600   What is the default value of the position property?
  • Correct Answer: B. static

Q. 601   Which of the following property specifies the right margin of an element?
  • Correct Answer: A. margin-right

Q. 602   How do you display the following padding:
The top padding = 10 pixels The bottom padding = 5 pixels The left padding = 20 pixels The right padding = 1pixel
  • Correct Answer: D. padding: 10px 1px 5px 20px;

Q. 603   What property and value do we use if we want to align text to the right?
  • Correct Answer: A. text-align: right;

Q. 604   What property and value do we use if we want to align text to the justify?
  • Correct Answer: D. text-align: justify;

Q. 605   Which class adds a text white to a page?
  • Correct Answer: C. Both A and B

Q. 606   Which class helps a proper dark background in bootstrap?
  • Correct Answer: A. .bg-dark

Q. 607   which class make a spinner in bootstrap?
  • Correct Answer: C. .spinner-border

Q. 608   What does "padding: 50px 0px 20px 0px" specifies?
  • Correct Answer: A. only top and bottom

Q. 609   Which of the following CSS selectors are used to specify tag elements?
  • Correct Answer: B. p

Q. 610   Which of the following is the property of the CSS box model?
  • Correct Answer: D. height-width

Q. 611   Which of the following attribute specifies the URL of the linked resource?
  • Correct Answer: D. href

Q. 612   Which of the following property adds padding to the top of an element?
  • Correct Answer: C. padding-top

Q. 613   Which of the following property sets a consistent margin on all four sides of the affected element?
  • Correct Answer: B. margin

Q. 614   Which of the following property sets the background image to scroll or not to scroll with its associated element’s content?
  • Correct Answer: C. background-attachment

Q. 615   HTML FULL FORM?
  • Correct Answer: A. HYPER TEXT MARKUP LANGUAGE

Q. 616   When was Laravel first released?
  • Correct Answer: A. June 2011

Q. 617   Where are all the Laravel Models stored at ?
  • Correct Answer: C. Main app directory

Q. 618   Who developed Laravel?
  • Correct Answer: C. Taylor Otwell

Q. 619   What is the purpose of Laravel Blade Template Engine?
  • Correct Answer: D. Makes writing syntax easy and readable

Q. 620   What is the purpose of learning Web Programming?
  • Correct Answer: D. To talk to computers

Q. 621   The vendor directory contains
  • Correct Answer: C. Third-party code

Q. 622   Which one of the following command is used to create middleware in Laravel?
  • Correct Answer: A. php artisan make: middleware

Q. 623   What is Node JS?
  • Correct Answer: C. JavaScript runtime environment that executes JavaScript code

Q. 624   Laravel is a ____ framework?
  • Correct Answer: A. PHP

Q. 625   Does Laravel follow the MVC concept?
  • Correct Answer: A. TRUE

Q. 626   Does Laravel follow the object-oriented approach?
  • Correct Answer: A. TRUE

Q. 627   Does PHP follow the object-oriented approach?
  • Correct Answer: A. TRUE

Q. 628   Laravel is ____ framework?
  • Correct Answer: B. Backend

Q. 629   Is Laravel an open-source?
  • Correct Answer: A. TRUE

Q. 630   All dependencies are specified in the ____ file, which is located in the source folder?
  • Correct Answer: C. composer.json

Q. 631   How many built-in libraries does Laravel provides?
  • Correct Answer: C. 20 libraries

Q. 632   The database definitions and structure are kept in PHP code using ____.
  • Correct Answer: C. Schema Builder

Q. 633   ____ installed on your system before you install Laravel.
  • Correct Answer: B. Composer

Q. 634   Which folder in Laravel includes the entire source code of the project?
  • Correct Answer: C. App

Q. 635   ____ contains the artisan commands required by Laravel.
  • Correct Answer: D. Console

Q. 636   What is the extension of the folder which includes all the events for the project?
  • Correct Answer: A. .php

Q. 637   What is the name of the file which handles all the exceptions?
  • Correct Answer: B. Handle.php

Q. 638   Which folder in Laravel contains model, controllers and views defined for the specific directories?
  • Correct Answer:

Q. 639   Which of the following folder is the root folder and helps in initializing the Laravel application?
  • Correct Answer: B. Public

Q. 640   The ____ folder includes all the composer dependencies?
  • Correct Answer: C. Vendor

Q. 641   ____are those that offer your web application with a list of web services.
  • Correct Answer: B. Environment variables

Q. 642   In which of the following file, environment variables are declared?
  • Correct Answer: C. .env

Q. 643   All requests in Laravel are mapped using ____.
  • Correct Answer: C. Routes

Q. 644   ____serves as a link between a request and its response.
  • Correct Answer: C. Middleware

Q. 645   How many types of middleware are there in Laravel?
  • Correct Answer: D. 2 types of middleware

Q. 646   Which of the following functions as a bridge between Views and Models?
  • Correct Answer: D. Controller

Q. 647   The ____function may be used to connect the response to headers?
  • Correct Answer: A. Header()

Q. 648   Which of the following separates the application logic and the presentation logic?
  • Correct Answer: C. View

Q. 649   How many databases does Laravel supports?
  • Correct Answer: D. 4 databases does

Q. 650   ____ are used to store information about the user across the requests.
  • Correct Answer: D. Sessions

Q. 651   How many arguments does the Get() method takes in session?
  • Correct Answer: C. 1 arguments

Q. 652   Laravel uses free feature-rich library ____ to send emails?
  • Correct Answer: A. SwiftMailer

Q. 653   What do you mean by CSRF in Laravel?
  • Correct Answer: A. Cross site forgery attacks

Q. 654   Does Laravel generate CSRF token automatically?
  • Correct Answer: A. TRUE

Q. 655   The process of recognising the user credentials is known as ____?
  • Correct Answer: C. Authentication

Q. 656   Which of the following commands is needed to construct forms and the controllers connected with them in order to accomplish authentication?
  • Correct Answer: B. php artisan make:auth

Q. 657   ____is the controller used for authentication.?
  • Correct Answer: A. HomeController

Q. 658   In ____, the system or web application determines whether authenticated users may access the resources they are attempting to access or request?
  • Correct Answer: A. Authorization

Q. 659   Is authorization and authentication the same thing?
  • Correct Answer: B. FALSE

Q. 660   Policies classes arrange authorization logic around a certain model or resource?
  • Correct Answer: B. Policies

Q. 661   Which of the following command is used to create a policy?
  • Correct Answer: C. Make:policy

Q. 662   ____ is the act of turning plain text to a message using techniques that prevents any third party from reading the information?
  • Correct Answer: B. Encryption

Q. 663   Which AES algorithm is used by Laravel?
  • Correct Answer: C. Both

Q. 664   Is Error 403 and Error 404 the same kind of errors?
  • Correct Answer: B. FALSE

Q. 665   Which of the following are the alternatives of Laravel?
  • Correct Answer: D. All of the above

Q. 666   Which of the following is the oldest broadcasting organization who uses Laravel?
  • Correct Answer: C. BBC

Q. 667   Command to install laravel project?
  • Correct Answer: D. composer global require laravel/installer

Q. 668   By default laravel project runs on which PORT?
  • Correct Answer: D. PORT 8000

Q. 669   CLI Command to migrate in Laravel project?
  • Correct Answer: C. php artisan serve

Q. 670   Command to check the status of migration in laravel application?
  • Correct Answer: C. php artisan migrate:status

Q. 671   Laravel is based on which design pattern?
  • Correct Answer: B. MVC(ModeI View Controller) Pattern

Q. 672   which command is used to clear the cache in laravel?
  • Correct Answer: A. php artisan cache:clear

Q. 673   In which folder .htaccess file is located in laravel?
  • Correct Answer: D. public

Q. 674   In which directory robots.txt file is located?
  • Correct Answer: B. public

Q. 675   Method to logout authenticated user in laravel?
  • Correct Answer: B. Auth::logout();

Q. 676   .env file exist in directory:
  • Correct Answer: B. Root

Q. 677   All images and other resources are placed in:
  • Correct Answer: A. Public Folder

Q. 678   What is path of controller files ?
  • Correct Answer: C. app/http/controllers

Q. 679   Which of the following directory is used to save laravel model files ?
  • Correct Answer: A. app

Q. 680   Which files are part of auth directory in Laravel?
  • Correct Answer: D. All of the above

Q. 681   Which command is used to make model??
  • Correct Answer: A. php artisan make:model model_name

Q. 682   Which of the following methods on Collection will get all the records from it?
  • Correct Answer: A. all()

Q. 683   Does Laravel support Bootstrap?
  • Correct Answer: A. TRUE

Q. 684   What is Full form MVC architecture?
  • Correct Answer: A. Model, View and Controller.

Q. 685   Command to get the route list in Laravel?
  • Correct Answer: B. php artisan route:list

Q. 686   Full form of ORM in laravel?
  • Correct Answer: A. Object Relation Mapping

Q. 687   How many types of Middleware in Laravel?
  • Correct Answer: A. 2 types

Q. 688   What is it Blade?
  • Correct Answer: A. Template Engine

Q. 689   What is laravel 10 version Release date?
  • Correct Answer: C. February 2023

Q. 690   What is the effect of the tag?
  • Correct Answer: A. It converts the text within it to bold font.

Q. 691   What is React.js?
  • Correct Answer: B. A JavaScript library

Q. 692   Who developed React.js?
  • Correct Answer: B. Facebook

Q. 693   What is a React component?
  • Correct Answer: A. A function or class that optionally accepts inputs and returns a React element

Q. 694   How do you create a React component using a function?
  • Correct Answer: A. function MyComponent() { return
    Hello World
    ; }

Q. 695   What is JSX?
  • Correct Answer: A. A JavaScript XML

Q. 696   How do you embed JavaScript expressions in JSX?
  • Correct Answer: B. Using curly braces

Q. 697   What is the purpose of render() in a React component?
  • Correct Answer: B. To describe what the UI should look like

Q. 698   Which method in a React class component is used to set initial state?
  • Correct Answer: C. constructor

Q. 699   How do you handle state in a functional component?
  • Correct Answer: B. Using the useState hook

Q. 700   How can you prevent a component from rendering?
  • Correct Answer: B. Returning null from render()

Q. 701   What is a key in React and why is it important?
  • Correct Answer: A. A unique identifier used to optimize rendering

Q. 702   Which lifecycle method is called after the component is rendered for the first time?
  • Correct Answer: C. componentDidMount

Q. 703   How do you pass a method from a parent component to a child component?
  • Correct Answer: A. As a prop

Q. 704   Which hook is used to perform side effects in functional components?
  • Correct Answer: B. useEffect

Q. 705   Which of the following methods is used to update state in a class component?
  • Correct Answer: B. setState

Q. 706   What is the purpose of the useEffect hook in React?
  • Correct Answer: B. To fetch data or run side effects

Q. 707   How can you conditionally apply a class to a React element?
  • Correct Answer: B. Using ternary operators inside className

Q. 708   Which method is used to remove a component from the DOM?
  • Correct Answer: B. componentWillUnmount

Q. 709   What is the virtual DOM in React?
  • Correct Answer: A. A copy of the real DOM that is kept in memory and synced with the real DOM

Q. 710   How can you lift state up in React?
  • Correct Answer: B. By moving state to a common ancestor component

Q. 711   What is a pure component in React?
  • Correct Answer: B. A component that only re-renders when its props or state change

Q. 712   Which of the following can be used to share logic across React components?
  • Correct Answer: D. All of the above

Q. 713   What does ReactDOM.render() do?
  • Correct Answer: C. It renders a React element into the DOM

Q. 714   Which React hook should you use for managing form inputs?
  • Correct Answer: C. useState

Q. 715   What is a higher-order component (HOC) in React?
  • Correct Answer: B. A function that takes a component and returns a new component

Q. 716   What is the correct way to handle events in React?
  • Correct Answer: A. Using the on prefix followed by the event name

Q. 717   Which of the following is a controlled component in React?
  • Correct Answer: B. A component that receives its current value as a prop and notifies changes via callbacks

Q. 718   What is the purpose of React.Fragment?
  • Correct Answer: B. To avoid adding extra nodes to the DOM

Q. 719   How can you memoize a component to prevent unnecessary re-renders?
  • Correct Answer: A. By using React.memo

Q. 720   What is the use of prop-types in React?
  • Correct Answer: B. To document the intended types of properties passed to components

Q. 721   What is context in React?
  • Correct Answer: A. A way to pass data through the component tree without having to pass props down manually at every level

Q. 722   What does the useContext hook do?
  • Correct Answer: B. It allows a functional component to access context

Q. 723   What is the significance of keys in lists in React?
  • Correct Answer: B. They help identify which items have changed, are added, or removed

Q. 724   What is a stateful component in React?
  • Correct Answer: A. A component that manages its own state

Q. 725   Which of the following hooks is used to create a mutable object that persists for the lifetime of the component?
  • Correct Answer: C. useRef

Q. 726   How do you create a context in React?
  • Correct Answer: A. const MyContext = createContext();

Q. 727   What does the useReducer hook do?
  • Correct Answer: A. It manages state with a reducer function

Q. 728   What is the purpose of React.StrictMode?
  • Correct Answer: B. To highlight potential problems in an application

Q. 729   Which method would you use to update the state of a component after an asynchronous operation?
  • Correct Answer: A. this.setState

Q. 730   How do you access props in a class component?
  • Correct Answer: D. this.props

Q. 731   What does the shouldComponentUpdate lifecycle method do?
  • Correct Answer: B. It determines if a component should re-render

Q. 732   Which of the following is NOT a feature of React Router?
  • Correct Answer: D. Automatic state management

Q. 733   What is the purpose of the useLayoutEffect hook?
  • Correct Answer: A. To perform side effects in a synchronous manner

Q. 734   How do you define default props for a component?
  • Correct Answer: A. Component.defaultProps = { ... }

Q. 735   What is the primary purpose of the React.Children utility?
  • Correct Answer: C. To provide utilities for dealing with the this.props.children opaque data structure

Q. 736   What is the difference between useEffect and useLayoutEffect?
  • Correct Answer: A. useEffect runs after the DOM updates, useLayoutEffect runs synchronously after all DOM mutations

Q. 737   Which of the following is true about React keys?
  • Correct Answer: A. They should be unique among sibling elements

Q. 738   What is the purpose of the memo function in React?
  • Correct Answer: C. To prevent unnecessary re-renders of functional components

Q. 739   What does the createRef function do in React?
  • Correct Answer: A. It creates a reference to a DOM element or class component instance

Q. 740   What is the purpose of the useMemo hook in React?
  • Correct Answer: B. To memoize a value

Q. 741   How can you pass multiple children to a React component?
  • Correct Answer: D. All of the above

Q. 742   What is the purpose of the ErrorBoundary component in React?
  • Correct Answer: A. To handle JavaScript errors in a part of the component tree

Q. 743   Which hook is used to optimize performance by preventing re-renders in functional components?
  • Correct Answer: C. useMemo

Q. 744   How do you force a component to re-render?
  • Correct Answer: B. this.forceUpdate()

Q. 745   What is the primary use of the useRef hook in functional components?
  • Correct Answer: A. To directly manipulate the DOM.

Q. 746   Which lifecycle method is invoked just before a component is removed from the DOM?
  • Correct Answer: B. componentWillUnmount

Q. 747   What does props.children contain?
  • Correct Answer: C. The nested elements within a component.

Q. 748   How can you handle forms in React?
  • Correct Answer: D. Both b and c.

Q. 749   What does the useImperativeHandle hook do?
  • Correct Answer: A. It customizes the instance value that is exposed when using ref in functional components.

Q. 750   Which hook can be used to optimize the rendering of large lists?
  • Correct Answer: C. useMemo

Q. 751   What is the purpose of the default keyword when exporting a React component?
  • Correct Answer: A. It exports a component that can be imported with any name.

Q. 752   How do you handle side effects in React components?
  • Correct Answer: B. Using useEffect

Q. 753   What is the purpose of the key prop in React lists?
  • Correct Answer: B. To uniquely identify elements and optimize rendering.

Q. 754   Which of the following methods can be used to set up a timer in React?
  • Correct Answer: A. setTimeout

Q. 755   What is the main advantage of using React.PureComponent?
  • Correct Answer: B. It optimizes the component by performing a shallow comparison of props and state.

Q. 756   How do you access lifecycle methods in a functional component?
  • Correct Answer: B. Using hooks like useEffect.

Q. 757   What is the role of ReactDOM in a React application?
  • Correct Answer: B. It handles rendering of React components in the DOM.

Q. 758   Which method is used to create an element in React?
  • Correct Answer: A. React.createElement

Q. 759   What does the useReducer hook return?
  • Correct Answer: A. An array containing the current state and a dispatch function.

Q. 760   What is the difference between a controlled and uncontrolled component in React?
  • Correct Answer: A. Controlled components manage their own state, uncontrolled components use refs.

Q. 761   What is a React Portal?
  • Correct Answer: A. A way to render children into a different part of the DOM tree.

Q. 762   How do you handle errors in React components?
  • Correct Answer: D. Both b and c.

Q. 763   How can you optimize the performance of a React application?
  • Correct Answer: D. All of the above.

Q. 764   Which of the following is used to handle routing in a React application?
  • Correct Answer: A. React Route

Q. 765   What does the useState hook return?
  • Correct Answer: A. The current state and a function to update it.

Q. 766   What is the purpose of the contextType property in class components?
  • Correct Answer: C. To consume context in a class component

Q. 767   Which of the following hooks can be used to perform side effects in a functional component?
  • Correct Answer: A. useEffect

Q. 768   What does the useTransition hook do?
  • Correct Answer: C. It defers state updates to improve performance.

Q. 769   What is the purpose of ReactDOM.createPortal?
  • Correct Answer: B. To render children into a different part of the DOM tree

Q. 770   How do you pass a method as a prop to a child component?
  • Correct Answer: C. By passing it directly as a prop

Q. 771   Which hook is used to perform a cleanup function in React?
  • Correct Answer: C. useEffect

Q. 772   How do you ensure that a function is only recreated when its dependencies change?
  • Correct Answer: C. By using useCallback

Q. 773   Which of the following methods can be used to create a context in React?
  • Correct Answer: A. React.createContext

Q. 774   What is the primary purpose of React.lazy?
  • Correct Answer: B. To load components lazily for code splitting

Q. 775   Which of the following lifecycle methods is invoked just before a component is removed from the DOM?
  • Correct Answer: C. componentWillUnmount

Q. 776   In the context of React Hooks, what will happen if you call the same Hook multiple times in a single component?
  • Correct Answer: C. Each Hook call is independent and maintains its own state.

Q. 777   When using React Context, how can you optimize a component to avoid unnecessary re-renders when context values change?
  • Correct Answer: D. All of the above.

Q. 778   Which of the following is NOT a valid way to handle side effects in a functional component using React Hooks?
  • Correct Answer: D. useCallback

Q. 779   Which of the following is true about using useReducer over useState?
  • Correct Answer: A. useReducer is better suited for managing complex state logic.

Q. 780   Which of the following lifecycle methods is invoked immediately after a component is mounted in React?
  • Correct Answer: A. componentWillMount

Q. 781   Which hook can be used to emulate the behavior of componentDidCatch in functional components to handle errors in React?
  • Correct Answer: D. React does not currently provide a built-in hook for error handling in functional components.

Q. 782   In React, what is the primary purpose of using the key prop when rendering a list of elements?
  • Correct Answer: A. To ensure uniqueness of elements within the list.

Q. 783   How do you import a CSS file in a React component?
  • Correct Answer: C. import './styles.css';

Q. 784   Which of the following is true about React's reconciliation process?
  • Correct Answer: B. It updates only the parts of the DOM that have changed.

Q. 785   What is the purpose of the useCallback hook in React?
  • Correct Answer: A. To create a callback function that doesn't change unless its dependencies change.

Q. 786   How does the React.memo higher-order component (HOC) help improve performance?
  • Correct Answer: A. It prevents the component from updating unless its props have changed.

Q. 787   How can you prevent a function component from re-rendering in React when its props haven't changed?
  • Correct Answer: A. Use React.memo to wrap the component.