Skip to main content

Posts

Showing posts with the label interview

HTML Interview Question || What are the Basic Interview Questions in HTML? ||HTML Interview Question and Answer - Creation Code

  Top 4 HTML interview questions for your coming interview 1. What are attributes? Each tag can take in additional attributes that change the way the tag behaves. For example, an input tag has a type attribute, which allows you to specify whether the input field is a text field, checkbox, or radio button among other options. 2. What are entities in HTML? HTML character entities are used to replace reserved characters in HTML. You can also replace characters that are not present on your keyboard by using entities. 3. Explain HTML5? HTML5 is the most recent version of the Hypertext Markup Language. HTML5 introduces several new features: Adding new attributes Allow offline editing Adding new parsing rules to enhance flexibility Support (Web SQL) Support Protocol and MIME handler registration, allowing you to change the way of user interaction with documents. 4. What is an API for HTML5? An API, which stands for Application Programming Interfaces, is a way to build various web applications

Top Python Interview Question(2022) || python interview question and answers || python interview questions and answers for freshers - Creation Code

  Top Python Interview Question You Must Know What are local variables and global variables in Python? Global Variables: Variables declared outside a function or in a global space are called global variables. These variables can be accessed by any function in the program. Local Variables: Any variable declared inside a function is known as a local variable. This variable is present in the local space and not in the global space. Example: 1 2 3 4 5 6 a=2 def add(): b=3 c=a+b print(c) add() What is PYTHONPATH? Ans: It is an environment variable that is used when a module is imported. Whenever a module is imported, PYTHONPATH is also looked up to check for the presence of the imported modules in various directories. The interpreter uses it to determine which module to load. What is _init_? Ans: _init_ is a method or constructor in Python. This method is automatically called to allocate memory when a new object/ instance of a class is created. All classes have the _init_ method. What are t