Question:- What is the meaning of a Persistent Cookie?
Answer:- A persistent cookie is permanently stored in a cookie file on the browsers computer. By default, cookies are temporary and are erased if we close the browser.
Question:- What is the use of the function imagetypes()?
Answer:- imagetypes() gives the image format and types supported by the current version of GD-PHP.
Question:- What are include() and require() functions?
Answer:- The Include() function is used to put data of one PHP file into another PHP file. If errors occur, then the include() function produces a warning but does not stop the execution of the script, and it will continue to execute. The Require() function is also used to put data of one PHP file to another PHP file. If there are any errors, then the require() function produces a warning and a fatal error and stops the script.
Question:- What is Cookies? How to create cookies in PHP?
Answer:- A cookie is used to identify a user. A cookie is a little record that the server installs on the clients Computer. Each time a similar PC asks for a page with a program, it will send the cookie as well. With PHP, you can both make and recover cookie value. Some important points regarding Cookies: 1. Cookies maintain the session id generated at the back end after verifying the users identity in encrypted form, and it must reside in the browser of the machine 2. You can store only string values not object because you cant access any object across the website or web apps 3. Scope: - Multiple pages. 4. By default, cookies are temporary and transitory cookie saves in the browser only. 5. By default, cookies are URL particular means Gmail isnt supported in Yahoo and the vice versa. 6. Per site 20 cookies can be created in one website or web app 7. The Initial size of the cookie is 50 bytes. 8. The Maximum size of the cookie is 4096 bytes.
Question:- What is the Importance of Parser in PHP?
Answer:- PHP parser parses the PHP developed website from the opening to the closing tag. Tags indicate that from where PHP code is being started and ended. In other words, opening and closing tags decide the scope of PHP scripting syntax of closing tag in PHP syntax of closing tag in PHP
Question:- How can we create a database using PHP and MySQL?
Answer:- The necessary steps to create a MySQL database using PHP are: - Establish a connection to MySQL server from your PHP script. - If the connection is successful, write a SQL query to create a database and store it in a string variable. - Execute the query.
Question:- What is Python?
Answer:- Python was created by Guido van Rossum, and released in 1991. It is a general-purpose computer programming language. It is a high-level, object-oriented language which can run equally on different platforms such as Windows, Linux, UNIX, and Macintosh. Its high-level built-in data structures, combined with dynamic typing and dynamic binding. It is widely used in data science, machine learning and artificial intelligence domain. It is easy to learn and require less code to develop the applications.
Question:- Why Python?
Answer:- - Python is an interpreted, object-oriented, high-level programming language with dynamic semantics. - Python is compatible with different platforms like Windows, Mac, Linux, Raspberry Pi, etc. - Python has a simple syntax as compared to other languages. - Python allows a developer to write programs with fewer lines than some other programming languages. - Python runs on an interpreter system, means that the code can be executed as soon as it is written. It helps to provide a prototype very quickly. - Python can be described as a procedural way, an object-orientated way or a functional way. - The Python interpreter and the extensive standard library are available in source or binary form without charge for all major platforms, and can be freely distributed.
Question:- What are the applications of Python?
Answer:- Python is used in various software domains some application areas are given below. - Web and Internet Development - Games - Scientific and computational applications - Language development - Image processing and graphic design applications - Enterprise and business applications development - Operating systems - GUI based desktop applications
Question:- What are the advantages of Python?
Answer:- Advantages of Python are: - Python is Interpreted language Interpreted: Python is an interpreted language. It does not require prior compilation of code and executes instructions directly. - It is Free and open source Free and open source: It is an open-source project which is publicly available to reuse. It can be downloaded free of cost. - It is Extensible Extensible: It is very flexible and extensible with any module. - Object-oriented Object-oriented: Python allows to implement the Object-Oriented concepts to build application solution. - It has Built-in data structure Built-in data structure: Tuple, List, and Dictionary are useful integrated data structures provided by the language. - Readability - High-Level Language - Cross-platform Portable: Python programs can run on cross platforms without affecting its performance.
Question:- What is PEP 8?
Answer:- PEP 8 stands for Python Enhancement Proposal, it can be defined as a document that helps us to provide the guidelines on how to write the Python code. It is basically a set of rules that specify how to format Python code for maximum readability. It was written by Guido van Rossum, Barry Warsaw and Nick Coghlan in 2001.
Question:- What do you mean by Python literals?
Answer:- Literals can be defined as a data which is given in a variable or constant. Python supports the following literals: String Literals - String literals are formed by enclosing text in the single or double quotes. For example, string literals are string values.
Question:- What is zip() function in Python?
Answer:- Python zip() function returns a zip object, which maps a similar index of multiple containers. It takes an iterable, convert into iterator and aggregates the elements based on iterables passed. It returns an iterator of tuples. Signature , zip(iterator1, iterator2, iterator3 ...)
Question:- How to overload constructors or methods in Pytho
Answer:- Pythons constructor: _init__ () is the first method of a class. Whenever we try to instantiate an object __init__() is automatically invoked by python to initialize members of an object. We cant overload constructors or methods in Python. It shows an error if we try to overload.
