Home / Shyam Dubey / English MCQs Solution

Solution

You will find all MCQs whose solution is updated by Shyam Dubey

Q. Which method returns the index labels of a Series or DataFrame where values are True?

Q. Which pandas method is used to interpolate missing data in a DataFrame or Series?

Q. Which method is used to calculate the cumulative maximum in a Series or DataFrame?

Q. Which method transposes rows and columns in a DataFrame?

Q. Which method is used to convert a DataFrame to a CSV file?

Q. Which pandas method returns the rank of each element in a Series?

Q. Which method replaces NaN with a specified value in a DataFrame or Series?

Q. Which method removes all rows where any column is NaN in a DataFrame?

Q. Which pandas method is used to count the frequency of values in a Series?

Q. Which method is used to expand lists or dicts in a DataFrame column into separate columns?

Q. Which method converts a pandas DataFrame to an HTML table?

Q. Which pandas method is used to randomly sample rows from a DataFrame?

Q. Which pandas function is used to pivot a table with aggregation?

Q. Which method is used to calculate the cumulative product of elements over a DataFrame or Series?

Q. Which method is used to combine DataFrames with overlapping columns, filling missing values with NaN?

Q. Which method is used to apply a function along a DataFrame axis?

Q. Which method is used to shift the data in a Series or DataFrame by a certain number of periods?

Q. Which method is used to get the covariance matrix of a DataFrame?

Q. Which method is used to get the correlation matrix of a DataFrame?

Q. Which pandas method converts a Series with categorical values to category dtype?

Q. Which method allows conditional selection of rows in a DataFrame?

Q. Which method returns a boolean DataFrame indicating where values are null?

Q. Which pandas method reshapes a DataFrame by pivoting the index and columns?

Q. Which method returns the number of non-null elements in each column or row?

Q. Which pandas function reads a JSON file into a DataFrame?

Q. Which method is used to join two DataFrames based on their index?

Q. Which method is used to drop a level from a MultiIndex in pandas?

Q. Which pandas method is used to create dummy/indicator variables?

Q. Which method returns the first non-null value in each column?

Q. Which method is used to get the maximum value of each column in a DataFrame?

Q. Which pandas method returns the cumulative sum over a DataFrame or Series?

Q. Which pandas method is used to change column names in-place?

Q. Which pandas function is used to read data from an Excel file?

Q. Which method is used to replace multiple values in a DataFrame at once?

Q. Which pandas method is used to apply a function element-wise on a Series?

Q. Which method is used to count non-null values in a DataFrame?

Q. Which pandas method is used to check for duplicate rows?

Q. Which method is used to get the shape of a DataFrame?

Q. Which pandas function is used to create a DataFrame from a dictionary of lists?

Q. Which method adds a new row or DataFrame to an existing DataFrame?

Q. Which method pivots the index into columns in pandas?

Q. Which method stacks the prescribed level(s) from columns to index?

Q. Which pandas function is used to check if elements in a DataFrame are null?

Q. Which method is used to set a column as the index of a DataFrame?

Q. Which method is used to change the data type of a column in pandas?

Q. Which method returns the correlation between columns of a DataFrame?

Q. Which method is used to create a copy of a DataFrame?

Q. Which method is used to replace values in a DataFrame or Series?

Q. Which method is used to apply a function to each element of a Series or DataFrame?

Q. Which function is used to get the index of a DataFrame?

Q. Which pandas method is used to remove duplicate rows from a DataFrame?

Q. Which method reshapes a DataFrame from wide to long format?

Q. Which function is used to count the occurrences of unique values in a Series?

Q. Which pandas method is used to combine two DataFrames along columns?

Q. Which method provides a concise summary of a DataFrame including column names, non-null counts, and data types?

Q. Which method returns the data type of each column in a DataFrame?

Q. Which function is used to drop a column or row from a DataFrame?

Q. Which method is used to rename columns in a pandas DataFrame?

Q. Which function is used to concatenate two DataFrames along rows or columns?

Q. Which method is used to check for missing values in a DataFrame?

Q. Which method is used to create a pivot table in pandas?

Q. Which function is used to get the number of unique values in a Series?

Q. Which method returns the unique values of a Series?

Q. Which function is used to merge two DataFrames on a key column?

Q. Which pandas function is used to group data?

Q. Which method is used to sort a DataFrame by column values?

Q. Which method is used to get summary statistics of a DataFrame?

Q. What is the difference between loc and iloc in pandas?

Q. Which method is used to fill missing values in pandas?

Q. Which method is used to remove missing values in pandas?

Q. Which of the following is used to select a column in a pandas DataFrame?

Q. What does the pandas function pd.concat() do?

Q. Which method is used to get the last n rows of a DataFrame?

Q. Which method is used to get the first n rows of a DataFrame?

Q. Which function is used to read a CSV file into a pandas DataFrame?

Q. Which of the following is used to create a Series in pandas?

Q. Which color of light has the highest frequency?

Q. Which of the following devices converts sound energy into electrical energy?

Q. Which phenomenon explains the twinkling of stars?

Q. What type of energy transformation occurs in an electric iron?

Q. Which of the following is an example of periodic motion?

Q. Which property of light proves that it travels in a straight line?

Q. Who discovered the law of universal gravitation?

Q. Which instrument is used to measure electric current?

Q. What type of lens is used to correct myopia (short-sightedness)?

Q. Which mirror is used in car headlights?

Q. Which of the following is a non-renewable source of energy?

Q. What happens to the frequency of a wave if its wavelength decreases and speed remains constant?

Q. Which physical quantity is measured in Pascal?

Q. What is the unit of power?

Q. Which law states that current is directly proportional to voltage and inversely proportional to resistance?

Q. What is the acceleration due to gravity on the surface of the Earth?

Q. Which of the following quantities is a vector?

Q. What is the SI unit of electric charge?

Q. Which physical quantity is measured in Hertz?

Q. What is the unit of electric charge?

Q. Which color of light has the longest wavelength?

Q. Which type of mirror is used in torches and headlights?

Q. What is the acceleration due to gravity on Earth?

Q. Which of the following has the lowest temperature?

Q. Which device converts electrical energy into mechanical energy?

Q. Which phenomenon explains the bending of light as it passes from one medium to another?

Q. Which of the following quantities is measured in Joules?

Q. What type of energy is stored in a stretched spring?

Q. Which of the following materials is a good conductor of electricity?

Q. Which mirror is used in rear-view mirrors of vehicles?

Q. Which law states that current is directly proportional to voltage?

Q. Which of the following is used to measure electric current?

Q. Who discovered the law of gravitation?

Q. What is the speed of light in vacuum?

Q. Which of the following is a scalar quantity?

Q. Which gas is produced during photosynthesis?

Q. Which of the following is used in photography?

Q. Which of the following elements is a metalloid?

Q. What is the common name of calcium carbonate?

Q. Which of the following elements is essential for respiration?

Q. What type of bond is formed between two atoms sharing electrons?

Q. Which of the following acids is present in vinegar?

Q. Which of the following metals reacts with cold water?

Q. What is the chemical formula of ammonia?

Q. What is dry ice?

Q. Which process is used to separate alcohol from water?

Q. What is the main ore of iron?

Q. Which chemical is used to remove hardness of water?

Q. Which vitamin is synthesized by the human body when exposed to sunlight?

Q. Which of the following is used as an antifreeze in automobile radiators?

Q. Which metal is used for making filaments in electric bulbs?

Q. Which of the following gases turns lime water milky?

Q. What is the process of coating iron with zinc called?

Q. Which of the following elements has the lowest atomic mass?

Q. Which chemical is used to preserve biological specimens?

Q. Which metal is most abundant in the Earth's crust?

Q. Which of the following is used to bleach clothes?

Q. Which acid is used in car batteries?

Q. Which element is a liquid non-metal at room temperature?

Q. What is the chemical name of table salt?

Q. Which of the following elements is used in the manufacture of glass?

Q. Which of the following has the highest pH value?

Q. Which metal is liquid at room temperature?

Q. Which element is used in making pencils?

Q. Which acid is present in lemon?

Q. Which element is used in fluorescent lamps?

Q. Which metal is used in thermite welding?

Q. What is the color of copper sulfate solution?

Q. Which of the following gases is lighter than air?

Q. Which acid is present in sour milk?

Q. Which gas is responsible for the smell of rotten eggs?

Q. Which metal is found in blood hemoglobin?

Q. Which of the following elements forms rust when exposed to air and moisture?

Q. Which gas is known as ‘marsh gas’?

Q. Which of the following substances is used to make glass opaque?

Q. What is the molecular formula of ozone?

Q. Which of the following elements is used in making matchsticks?

Q. Which gas is used for the preparation of soda water?

Q. Which of the following is the hardest natural substance?

Q. Which acid is used in soft drinks?

Q. What is the main component of paper?

Q. Which gas is used for artificial ripening of fruits?

Q. Which metal is extracted from bauxite ore?

Q. What is the main constituent of LPG?

Q. Which element is known as the ‘King of Chemicals’?

Q. Which gas is produced during respiration?

Q. Which of the following is used to neutralize acid spills?

Q. What is the common name for calcium carbonate?

Q. Which of the following is an alkaline earth metal?

Q. What is the atomic symbol of gold?

Q. Which gas is used in balloons?

Q. Which of the following substances has the lowest pH value?

Q. Which metal is used in making aircrafts?

Q. What is the SI unit of pressure?

Q. Which of the following is not a mixture?

Q. Which of the following metals can be cut with a knife?

Q. Which process converts solid directly into gas?

Q. What is the main component of natural gas?

Q. Which element has the chemical symbol 'K'?

Q. Which of the following acids is found in lemon?

Q. What is the chemical name of washing soda?

Q. Which of the following processes is used to purify water?

Q. Which metal is the best conductor of electricity?

Q. Which gas is responsible for the depletion of the ozone layer?

Q. Which of the following is an example of an alloy?

Q. Which element is the main constituent of the sun?

Q. Which of the following is a mixture?

Q. Which gas is produced when metals react with acids?

Q. Which of the following is a base?

Q. Which element is used in thermometers?

Q. What is the atomic number of oxygen?

Q. Which element is used in the production of semiconductors?

Q. Which gas is known as laughing gas?

Q. Which metal is used for galvanizing iron?

Q. Which of the following is used in the manufacture of glass?

Q. What type of bond is formed by the sharing of electrons?

Q. Which of the following is a greenhouse gas?

Q. Which element is used in making pencil leads?

Q. Which of the following acids is used in car batteries?

Q. Which of the following is a non-metal that conducts electricity?

Q. What is the common name of sodium bicarbonate?

Q. Which of the following is a chemical compound?

Q. Which element is common in all organic compounds?

Q. Which of the following is used as a refrigerant in cooling systems?

Q. Which chemical is used in the preservation of food?

Q. Which gas turns lime water milky?

Q. Which of the following is not an alkali metal?

Q. Which acid is produced in our stomach to aid digestion?

Q. Which of the following has the highest electronegativity?

Q. Which of the following gases causes acid rain?

Q. Which of the following elements is present in chlorophyll?

Q. Which of the following is a noble metal?

Q. Which element is essential for the rusting of iron?

Q. Which law states that mass is neither created nor destroyed in a chemical reaction?

Q. What is the chemical formula of table salt?

Q. Which gas is used in fire extinguishers?

Q. Which particle has a negative charge?

Q. Which of the following is an example of a chemical change?

Q. Which acid is commonly found in vinegar?

Q. Which of the following elements is a noble gas?

Q. What is the pH of pure water at 25°C?

Q. Which of the following is the lightest gas?

Q. What is the oxidation state of sulfur in H2SO4?

Q. What is the main constituent of natural gas?

Q. Which allotrope of carbon is the hardest natural substance?

Q. Which of the following represents a redox reaction?

Q. Which metal is used in galvanization?

Q. Which type of reaction is represented by: 2Na + Cl2 → 2NaCl?

Q. Which of the following has the lowest pH?

Q. What is the chemical formula of quicklime?

Q. Which law relates the pressure and volume of a gas at constant temperature?

Q. Which of the following compounds is used to soften hard water?

Q. Which of the following represents an exothermic process?

Q. Which of the following is a noble gas?

Q. Which of the following indicators is used in acid-base titration involving strong acid and strong base?

Q. Which of the following statements about catalysts is true?

Q. Which compound is commonly known as 'baking soda'?

Q. Which of the following metals is liquid at room temperature?

Q. Which gas is used in the preparation of soda water?

Q. Which of the following acids is the strongest?

Q. What type of bond is formed between two chlorine atoms in Cl2?

Q. Which of the following elements has the highest electronegativity?

Q. Which metric correctly describes the amount of substance containing Avogadro's number of entities?

Q. Which ion is responsible for the basicity of a solution when ammonia is dissolved in water?

Q. What happens to the equilibrium constant (K) of an exothermic reaction if the temperature is increased?

Q. Which compound is amphoteric (can act as both an acid and a base)?

Q. Which of the following increases the rate of a chemical reaction according to collision theory?

Q. Which reagent is typically used to perform a nucleophilic substitution (SN2) reaction on a primary alkyl halide?

Q. Which of the following species has the highest lattice energy?

Q. Which of the following is a characteristic of an ideal solution?

Q. Which law states that equal volumes of gases, at the same temperature and pressure, contain equal numbers of molecules?

Q. Which functional group is present in acetone (propanone)?

Q. Which electrode reaction occurs at the cathode during the electrolysis of molten NaCl?

Q. Which of the following correctly ranks species by increasing acidity in aqueous solution?

Q. What is the main type of intermolecular force responsible for the relatively high boiling point of water compared to H2S?

Q. Which of the following processes is endothermic?

Q. Which reagent is commonly used to distinguish between aldehydes and ketones (Tollens' test)?

Q. In an ideal gas, which of the following is true at the same temperature?

Q. Which of the following is NOT a colligative property?

Q. Which is the best oxidizing agent among the following?

Q. Which statement best describes Le Chatelier's principle?

Q. Which of the following salts will produce a basic solution when dissolved in water?

Q. For the reaction 2A → products, the rate law is rate = k[A]^2. What is the order of the reaction with respect to A and overall?

Q. Which hybridization is present on the carbon atoms of ethene (C2H4)?

Q. What is the pH of a 0.001 M solution of HCl (a strong acid)?

Q. Which gas is produced when dilute hydrochloric acid reacts with zinc?

Q. Which Android Studio tool helps you visually debug your layout?

Q. Which layout positions children relative to each other?

Q. Which intent is used to make a phone call?

Q. Which method is used to create a Fragment’s UI?

Q. What does the .apk file stand for?

Q. Which Android system file defines the package name?

Q. What is the use of Glide in Android?

Q. Which method stops a running Service?

Q. Which layout is most suitable for a simple vertical list of items?

Q. What is the role of Retrofit in Android development?

Q. Which component is used to build database access in Jetpack?

Q. Which method is used to inflate a menu in an Activity?

Q. What does ViewModel do in Android?

Q. Which component is not part of Android Jetpack?

Q. Which view is recommended for vertical scrolling content?

Q. What is the purpose of the RecyclerView.Adapter class?

Q. What is the AndroidManifest.xml file used for?

Q. Which method is used to start a new activity?

Q. What does 'dp' stand for in Android layout?

Q. Antonym of Optimistic?

Q. Antonym of Victory?

Q. Antonym of Expand?

Q. Antonym of Generous?

Q. Which macro is commonly used for unit testing?

Q. Which type of closure takes ownership of captured variables?

Q. Which of these allows interior mutability?

Q. What happens when a program uses an invalid reference?

Q. Which keyword is used to create a lifetime parameter?

Q. Which trait is required to use a type in a HashMap key?

Q. Which of these types implements Copy by default?

Q. Which method reverses a vector in place?

Q. Which method on a String adds a character to the end?

Q. What does the drop() function do?

Q. Which function reads user input from the console?

Q. Which method on an iterator returns true if all elements satisfy a predicate?

Q. Which keyword allows code that can break Rust’s safety guarantees?

Q. Which macro is used to write to the standard error stream?

Q. Which trait allows a type to be used with the `+` operator?

Q. Which loop construct in Rust always executes at least once?

Q. What is the output of the expression 5 / 2 in Rust?

Q. What does Arc<T> stand for?

Q. Which standard library module is used to spawn threads?

Q. Which keyword is used to define an asynchronous block of code?

Q. Which module provides environment variables?

Q. Which keyword is used to define a constant expression?

Q. What does unwrap_or_default() return when called on None?

Q. Which keyword is used to define a generic function?

Q. Which of the following is a primitive numeric type in Rust?

Q. Which keyword is used to define an alias for a type?

Q. Which trait must be implemented to sort a collection?

Q. Which of the following does not own heap memory?

Q. What is the return type of an if expression in Rust?

Q. Which keyword makes a trait method optional to implement?

Q. What is the use of the as keyword?

Q. Which macro is used to include code from other files?

Q. What does unwrap_or_else() accept as an argument?

Q. Which standard library module provides file operations?

Q. Which trait is used for formatting types as strings?

Q. What will happen if a thread panics in Rust?

Q. Which method returns the first item of an iterator?

Q. Which type allows safe global mutable access?

Q. What is the output type of the format! macro?

Q. Which collection is used to store unique values in Rust?

Q. Which method checks if an Option is Some variant?

Q. Which keyword defines a trait?

Q. What does the format! macro return?

Q. Which macro is used for formatted string output without newline?

Q. Which feature allows Rust to safely handle multiple threads?

Q. Which function splits a string by whitespace?

Q. What is the purpose of the derive attribute?

Q. Which data type is used to store Unicode characters?

Q. What is the default return type of a Rust function without a return statement?

Q. Which macro is used to print values to the console?

Q. Which keyword allows unsafe operations in Rust?

Q. Which macro is used to assert test conditions?

Q. Which keyword is used to define a public item?

Q. What is the behavior of a move in Rust?

Q. Which function is used to convert a String to lowercase?

Q. What is the purpose of match guards in Rust?

Q. What does the clone() method do?

Q. Which type must be used when working with recursive types?

Q. Which keyword is used to handle both Result and Option conveniently?

Q. Which method is used to check if a vector contains an element?

Q. Which keyword is used to declare a module in Rust?

Q. What is the purpose of continue in loops?

Q. Which keyword is used to break out of a loop?

Q. What is the effect of shadowing in Rust?

Q. Which keyword begins a loop that runs forever?

Q. What happens if an Option is None and unwrap() is called?

Q. Which keyword is used for asynchronous functions?

Q. What does the static keyword mean when used with a variable?

Q. Which of the following is a correct lifetime annotation?

Q. What is the main goal of lifetimes in Rust?

Q. Which type is used for shared mutability?

Q. Which function is used to sleep a thread?

Q. What does the keyword ref do in a match pattern?

Q. Which method is used to create an iterator from a vector?

Q. Which collection type maintains insertion order?

Q. What does the .len() method return for a string or vector?

Q. What is the default mutability of variables in Rust?

Q. Which type is used to handle operations that may produce an error?

Q. Which of the following is the correct way to define a constant in Rust?

Q. Which political party did Savarkar become president of in 1937?

Q. Savarkar was released from the Cellular Jail under which British policy?

Q. Which Indian leader strongly opposed Savarkar’s ideology?

Q. Savarkar is associated with which form of nationalism?

Q. In which jail did Savarkar write poems on the walls using a nail?

Q. What was Savarkar's stance on the caste system?

Q. Savarkar was the first political prisoner to be sentenced to how many life imprisonments?

Q. Which of the following books was authored by Savarkar?

Q. What was the name of the ship from which Savarkar tried to escape British custody?

Q. Which foreign country did Savarkar visit for his law studies?

Q. Which of the following best describes Savarkar's view on religion and politics?

Q. Savarkar was accused in the conspiracy of which major event?

Q. When did Savarkar pass away?

Q. Which jail was Savarkar imprisoned in for many years?

Q. Which political ideology is most associated with Savarkar?

Q. Which book was written by Savarkar while he was imprisoned?

Q. In which year was Savarkar sentenced to life imprisonment?

Q. Which organization was founded by Savarkar in 1904 to fight British rule?

Q. Where was Vinayak Damodar Savarkar born?

Q. What was the popular nickname of Vinayak Damodar Savarkar?

Q. How does FastAPI help in API client development?

Q. Which testing tool is commonly used with FastAPI?

Q. Which component helps in sending file responses in FastAPI?

Q. Which FastAPI feature allows you to reuse logic like authentication?

Q. What is one benefit of using Pydantic in FastAPI?

Q. FastAPI's performance is comparable to which high-performance framework?

Q. Which method helps you override the default exception handler in FastAPI?

Q. Which response class can return HTML in FastAPI?

Q. Which response class is used to return plain text in FastAPI?

Q. What is the use of `Body()` in FastAPI?

Q. How do you serve static files in FastAPI?

Q. Which module does FastAPI use for routing?

Q. What is the purpose of `status_code` parameter in FastAPI decorators?

Q. Which FastAPI method is used to return a custom JSON response?

Q. Which command installs Pydantic in your FastAPI project?

Q. Which Python version is the minimum requirement for FastAPI?

Q. Which type of parameter is declared using `Header()` in FastAPI?

Q. What is the purpose of `Path()` in FastAPI?

Q. Which FastAPI dependency is used to handle form data?

Q. What will FastAPI automatically generate based on your Python code?

Q. What command installs FastAPI and Uvicorn together?

Q. Which library is used for environment variable loading in FastAPI projects?

Q. FastAPI integrates easily with which database ORM?

Q. Which HTTP exception class is used in FastAPI to raise errors?

Q. What does `response_model` in FastAPI help with?

Q. How are path parameters declared in FastAPI routes?

Q. Which object do you use to create a FastAPI application?

Q. How does FastAPI handle asynchronous functions?

Q. Where can you find the alternative API documentation in FastAPI?

Q. Which port is typically used by default when running FastAPI with Uvicorn?

Q. What is the purpose of the `Depends` function in FastAPI?

Q. Which FastAPI class allows dependency injection?

Q. How can you create a background task in FastAPI?

Q. What is the output format of a FastAPI endpoint by default?

Q. How does FastAPI validate request bodies?

Q. Which of the following is NOT a valid status code in FastAPI?

Q. What does the `...` (ellipsis) signify in FastAPI when used in Query() or Body()?

Q. What is the correct way to declare a query parameter in FastAPI?

Q. Which FastAPI feature helps with automatic API documentation?

Q. Which decorator is used in FastAPI to handle POST requests?

Q. FastAPI is best suited for building:

Q. What type of framework is FastAPI?

Q. Which command is used to run a FastAPI application with Uvicorn?

Q. What is the default documentation UI provided by FastAPI?

Q. How do you define a route in FastAPI?

Q. Which HTTP methods can you use in FastAPI?

Q. Which library does FastAPI use for data validation?

Q. FastAPI is built on top of which ASGI framework?

Q. Which Python type hints does FastAPI heavily rely on?

Q. What is FastAPI primarily used for?

Q. What happens if no profile is set in a Spring Boot application?

Q. What is the default scope of a Spring bean?

Q. Which property sets the maximum number of connections in a Spring Boot JDBC pool?

Q. What does the property 'management.endpoints.web.exposure.include=*' do?

Q. Which of these is NOT a valid Spring Boot actuator endpoint?

Q. Which annotation is used to load initial data into the database during startup?

Q. Which annotation is used to automatically detect and register beans from a package?

Q. How can you change logging levels for a specific package in Spring Boot?

Q. Which annotation is used to inject a bean by type?

Q. Which tool is commonly used with Spring Boot for API documentation?

Q. Which annotation helps with graceful shutdown and resource cleanup?

Q. What is the use of @EnableTransactionManagement?

Q. Which of the following statements is true about DevTools in Spring Boot?

Q. Which class is responsible for bootstrapping a Spring Boot application?

Q. Which annotation is used to bind properties to a Spring component?

Q. What is the default context path in a Spring Boot web application?

Q. Which property can be used to change the context path of a Spring Boot application?

Q. What is the purpose of the @SpringBootConfiguration annotation?

Q. Which actuator endpoint provides details about application beans?

Q. Which annotation is used to automatically register an exception handler across all controllers?

Q. Which annotation allows binding list values from properties into a bean?

Q. Which annotation loads data at startup of the Spring Boot app?

Q. What is the purpose of @Transactional annotation?

Q. Which method is used to close a Spring Boot application programmatically?

Q. Which property allows you to limit the log level to WARN in Spring Boot?

Q. Which annotation is used to declare a Spring MVC controller?

Q. How can you inject values from application.properties into a Spring bean?

Q. How does Spring Boot know which type of database to use?

Q. Which annotation is used for mapping POST requests in Spring Boot?

Q. Which file extension is valid for external Spring configuration files?

Q. Which of the following is used to define a global exception handler?

Q. What does the property spring.jpa.hibernate.ddl-auto=update do?

Q. Which annotation can be used to perform data validation on fields?

Q. What is the default format of application.yml file?

Q. Which annotation is used to log method execution time using Spring AOP?

Q. Which annotation allows you to create a new thread-safe service layer class?

Q. Which annotation is used to prevent a bean from being created automatically?

Q. What does the @ConditionalOnProperty annotation do?

Q. How do you activate a specific profile in Spring Boot via command line?

Q. Which annotation helps create a singleton bean in Spring Boot?

Q. What is the purpose of @EnableAutoConfiguration?

Q. Which annotation can be used to mark a class as a configuration class?

Q. Which dependency allows you to consume REST APIs in Spring Boot?

Q. How can you configure multiple datasources in Spring Boot?

Q. Which annotation would you use to load a .properties file into Spring Environment?

Q. Which property is used to set the name of your Spring Boot application?

Q. Which annotation is used to specify request mapping at the class level?

Q. Which embedded servlet container is used by default in Spring Boot?

Q. How can you disable a specific actuator endpoint?

Q. Which annotation is used to define properties that must be present in application.properties or application.yml?

Q. How can you configure a custom banner in Spring Boot?

Q. Which tool is commonly used to monitor and manage Spring Boot apps?

Q. Which of the following starters is used for Thymeleaf template engine?

Q. Which annotation is used to define a RESTful controller?

Q. How can you exclude a class from being loaded by Spring Boot auto-configuration?

Q. Which annotation is used to bind a method parameter to the body of a web request?

Q. What does the spring.datasource.url property define?

Q. Which of the following annotation is a combination of @Configuration and @EnableAutoConfiguration and @ComponentScan?

Q. What does the @SpringBootTest annotation do?

Q. How do you define an in-memory H2 database in Spring Boot?

Q. Which annotation is used to automatically wire dependencies?

Q. Which of the following annotations is used for path variable binding?

Q. What is the use of CommandLineRunner in Spring Boot?

Q. Which method retrieves the application environment in Spring Boot?

Q. Which property enables lazy initialization of beans?

Q. What does @CrossOrigin annotation handle?

Q. Which annotation is used for mapping HTTP PUT requests?

Q. What does @EnableCaching do in a Spring Boot application?

Q. Which annotation can be used to expose a method as a REST endpoint in Spring Boot?

Q. What does the @PathVariable annotation do?

Q. Which Spring Boot starter is used to work with JMS?

Q. What is the purpose of actuator endpoints like /actuator/health?

Q. How do you enable HTTPS in Spring Boot?

Q. How can you define a custom error page in Spring Boot?

Q. Which annotation can be used to create RESTful web services easily?

Q. Which annotation is used to expose a method's return value as the response body?

Q. How can you enable detailed debug logging in Spring Boot?

Q. Which dependency is required to use Spring Data JPA?

Q. What does the @Profile annotation do?

Q. How do you specify the database driver class name in Spring Boot?

Q. Which class is the entry point of a Spring Boot application?

Q. What is the purpose of spring.jpa.show-sql=true?

Q. Which annotation is used to bind multiple request parameters into a single bean?

Q. Which Spring Boot component helps define beans conditionally?

Q. What is the purpose of @RequestHeader annotation?

Q. How can you change the embedded server port in Spring Boot?

Q. Which annotation is used to map a request parameter to a method parameter?

Q. What is the primary purpose of @Value annotation in Spring Boot?

Q. Which classpath dependency is needed for validation annotations like @NotNull?

Q. Which annotation is used to mark a class as a Spring Boot configuration source?

Q. Which annotation is used to define custom error handling methods?

Q. What does the SpringApplication.run() method return?

Q. How do you exclude a class from component scanning?

Q. Which of the following is NOT a valid Spring Boot actuator endpoint?

Q. Which annotation is used to run code before a bean is destroyed?

Q. Which Spring Boot starter would you use for messaging with RabbitMQ?

Q. Which method is used to shut down a Spring Boot application programmatically?

Q. Which dependency is used to connect Spring Boot to MongoDB?

Q. Which annotation helps bind form data to a JavaBean in Spring MVC?

Q. Which annotation allows you to define controller methods that return data instead of views?

Q. Which command is used to build a Spring Boot application with Maven?

Q. What is the default port for a Spring Boot application?

Q. How do you define custom application properties in Spring Boot?

Q. Which dependency is used to test Spring Boot web controllers?

Q. Which annotation is used to map an HTTP DELETE request?

Q. Which annotation is used for field validation in Spring Boot?

Q. What does the @EnableTransactionManagement annotation do?

Q. Which interface can be used to run code after the Spring Boot application starts?

Q. How do you override a default Spring Boot property?

Q. What is the function of the @SpringBootTest annotation?

Q. Which annotation is used to enable JPA auditing in Spring Boot?

Q. Which of the following can be used to run Spring Boot applications in a Docker container?

Q. What is the function of spring.main.web-application-type?

Q. What is the purpose of @ConfigurationProperties?

Q. Which of the following is used to handle form submissions in Spring MVC?

Q. Which Spring Boot component helps in exposing operational information about the application?

Q. Which file type does Spring Boot support for external configuration?

Q. What is the default username for Spring Boot actuator endpoints when security is enabled?

Q. Which property is used to configure H2 database console in Spring Boot?

Q. Which of the following annotations would you use to create a configuration class?

Q. Which annotation is used to enable scheduling?

Q. Which starter is used for building web, including RESTful, applications using Spring MVC?

Q. What is the default scope of beans in Spring Boot?

Q. How do you enable method-level security in Spring Boot?

Q. Which annotation is used to create a singleton service in Spring?

Q. What does @SpringBootApplication annotation include?

Q. Which of the following is true about Spring Boot auto-configuration?

Q. What is the use of Spring Boot DevTools?

Q. Which annotation is used to secure methods in Spring Boot?

Q. What is the role of @Repository annotation?

Q. What is the name of the command-line tool used by Spring Boot?

Q. Which property disables the Spring Boot banner?

Q. What is the function of @EnableAutoConfiguration?

Q. Which tool can you use to monitor Spring Boot Actuator endpoints?

Q. What is the main advantage of using Spring Boot?

Q. What does @Qualifier do in Spring Boot?

Q. How do you define a primary bean when multiple beans of the same type exist?

Q. Which annotation is used to define a bean in Spring Boot?

Q. Which property sets the context path of a Spring Boot application?

Q. Which annotation allows a method to execute after application startup?

Q. Which annotation is used to autowire a bean by its type?

Q. Which dependency provides support for working with Thymeleaf templates?

Q. What is the purpose of the @JsonIgnore annotation?

Q. How can you disable a specific auto-configuration class?

Q. Which starter would you use to add security support in a Spring Boot app?

Q. What is the purpose of @SpringBootConfiguration?

Q. What does @ResponseStatus do in Spring Boot?

Q. Which annotation is used to handle exceptions globally in Spring Boot?

Q. What does @CrossOrigin annotation do?

Q. Which embedded server does Spring Boot use by default?

Q. Which annotation is used to apply validation rules to a model?

Q. What is the purpose of @RequestBody annotation?

Q. Which library does Spring Boot use for JSON processing by default?

Q. Which of the following is a correct way to shut down a Spring Boot app?

Q. Which annotation is used to map request parameters in Spring Boot?

Q. Which annotation is used to define a RESTful path variable?

Q. What is the use of CommandLineRunner interface?

Q. What does the 'spring.datasource.url' property define?

Q. What is the role of Spring Boot CLI?

Q. What is the purpose of @ConditionalOnProperty?

Q. Which configuration file is used if both application.properties and application.yml exist?

Q. Which annotation is used to mark a method's result for caching?

Q. Which annotation is used to enable caching in a Spring Boot application?

Q. What is the role of the application.properties file in Spring Boot?

Q. Which annotation is used to map HTTP POST requests?

Q. Which annotation is used for asynchronous method execution?

Q. How do you define a custom banner in Spring Boot?

Q. Which annotation is used to define a method that should be executed after bean initialization?

Q. Which interface is used for CRUD operations in Spring Data JPA?

Q. Which annotation is used to enable JPA repositories?

Q. Which annotation is used to declare a repository in Spring Boot?

Q. Which dependency is needed for Spring Data JPA?

Q. What is the role of @Entity annotation?

Q. What does @GetMapping do?

Q. Which file allows customizing embedded server properties?

Q. What does @RequestMapping do?

Q. Which annotation is used to scan specified packages for Spring components?

Q. How can you expose Spring Boot Actuator endpoints?

Q. Which class is used to launch a Spring Boot application?

Q. Which annotation is used for unit testing Spring Boot components?

Q. Which starter is used to connect to a MySQL database?

Q. Which annotation is used to define a scheduled task?

Q. How do you enable scheduling in a Spring Boot application?

Q. Which tool can be used to create a Spring Boot project?

Q. What does the @Component annotation do?

Q. Which annotation is used to inject values from application.properties?

Q. What is the default logging framework used in Spring Boot?

Q. Which annotation is used to create a REST endpoint in Spring Boot?

Q. How can you create an executable Spring Boot jar?

Q. What is the purpose of @SpringBootTest?

Q. Which file contains the dependencies for a Spring Boot Maven project?

Q. How can you exclude an auto-configuration class?

Q. What does the Spring Boot Actuator do?

Q. Which of the following is true about Spring Boot DevTools?

Q. Which Spring Boot annotation is used to bind external configuration to a Java class?

Q. How do you define a custom error page in Spring Boot?

Q. Which annotation enables auto-configuration in Spring Boot?

Q. What is auto-configuration in Spring Boot?

Q. What does the @RestController annotation do?

Q. Which dependency is required for building RESTful web services with Spring Boot?

Q. Which embedded servers are supported by Spring Boot?

Q. How can you change the default port in a Spring Boot application?

Q. What is the default port of Spring Boot web applications?

Q. Which command is used to run a Spring Boot application?

Q. What is Spring Boot Starter?

Q. Which file is typically used for Spring Boot configuration?

Q. Which annotation is used to mark a Spring Boot application?

Q. What is the primary purpose of Spring Boot?

Q. Which method is used to redirect users to another URL in Django views?

Q. Which file type is commonly used to store translations in Django?

Q. Which method is called after a form is validated in a class-based CreateView?

Q. What is the default file for defining project-level settings in Django?

Q. Which function loads a template from disk in Django?

Q. How can you order a QuerySet in descending order by a field?

Q. Which class is used to build a form from a model?

Q. Which of these is used to create relationships between Django models?

Q. Which of the following is not a built-in template filter in Django?

Q. Which decorator is used to create a custom command in Django?

Q. Which middleware is used for session handling in Django?

Q. What is the default database engine in Django?

Q. How are static files served in production in Django?

Q. Which Django field is best for a timestamp that updates on every save?

Q. What does the blank=True option do in a Django model field?

Q. How do you run all pending migrations in Django?

Q. Which function retrieves a single object or returns a 404 error?

Q. What is the purpose of the Meta class inside a Django model?

Q. Which model field type should be used for storing large text?

Q. Where are Django migrations stored?

Q. What does the login_required decorator do?

Q. How do you refer to the current user in a Django template?

Q. Which management command is used to start a new Django app?

Q. Which template tag is used to extend another template in Django?

Q. Which field sets a timestamp only when an object is created?

Q. How do you check for POST request in a view?

Q. Which class-based view is used for deletion?

Q. Which signal is sent after an object is deleted?

Q. Which tag includes one template in another?

Q. What does csrf_exempt do?

Q. What is the default ordering of Django QuerySets?

Q. Which class-based view is used to create new records?

Q. Which template tag is used to iterate over a list?

Q. Which Django module provides user authentication features?

Q. Which form field is best for email input?

Q. Which filter is used in templates to format dates?

Q. Which signal is emitted before saving a model instance?

Q. Which method is called when a model object is saved in Django?

Q. Which of the following is a valid use of a context processor?

Q. Which of these is used to handle 404 errors in Django?

Q. Which template tag is used to perform conditional rendering?

Q. Which command is used to create a new superuser in Django?

Q. What is the default port number used by Django's development server?

Q. Which field is best used for storing a small set of integer choices?

Q. What happens if DEBUG is set to True in production?

Q. What does the 'related_name' attribute do in Django model relationships?

Q. Which method is used to delete an object in Django models?

Q. What does QuerySet's filter() method return?

Q. Which command is used to apply migration files to the database?

Q. How can you define a one-to-one relationship in Django?

Q. Which of the following settings is used to configure user-uploaded media?

Q. Which template tag is used to render blocks defined in base templates?

Q. Which of the following manages app configuration in Django?

Q. Which of the following is not a generic class-based view?

Q. What does Django use to handle sessions by default?

Q. Which of these is a valid template tag for rendering variables?

Q. Which command is used to collect all static files into one location?

Q. What does the __str__ method in a Django model do?

Q. Which model field is best for storing boolean values?

Q. Which decorator is used to make a function-based view a class-based view?

Q. What is the default primary key name if not specified?

Q. How do you define a foreign key in Django models?

Q. Which class should a form inherit from in Django?

Q. What is the correct way to import models from another app?

Q. Which of these formats is used to define Django templates?

Q. Which of the following is not a valid Django model field?

Q. Which built-in field is best for a file upload in Django?

Q. Which setting should be updated when adding static files in production?

Q. What is the use of the get_absolute_url() method in a Django model?

Q. Which of the following is a valid use of the path function in urls.py?

Q. What does Django use to match a URL to a view?

Q. Which method in Django class-based views is used to handle GET requests?

Q. What is the purpose of verbose_name in a Django model field?

Q. Which model method is used to retrieve a single object by its primary key?

Q. Which setting is used to define the URL for static files?

Q. Which field type is used to store time in Django?

Q. How do you import the User model in Django?

Q. Which class in Django is used to create custom user forms?

Q. Which tag is used to define a content block in templates?

Q. What is the purpose of __init__.py in a Django app?

Q. What does the select_related() method do in Django ORM?

Q. What is the use of reverse_lazy in Django?

Q. Which middleware is responsible for handling CSRF protection?

Q. Which view returns a 404 error if the object is not found?

Q. What is the purpose of HttpResponseRedirect?

Q. Which built-in tag is used for extending templates in Django?

Q. Which directive is used to load static files in Django templates?

Q. Which of the following is used to add extra context data to a Django class-based view?

Q. What is the purpose of the Meta class in a Django model?

Q. Which function is used to validate data in a Django form?

Q. Which of the following is a valid model field for storing URLs?

Q. What does the admin.site.register() function do?

Q. What does DEBUG=False indicate in Django?

Q. What is the function of the superuser in Django?

Q. Which method is called when a Django form is submitted?

Q. Which file contains the WSGI application for Django?

Q. Which HTTP status code indicates a page was not found?

Q. Who among the following said that the preamble of the Indian Constitution is "The Keynote of the Constitution"?