Page 208 - Ai Book - 10
P. 208

11.  What is the purpose of the assignment operator (=) in Python?
              Ans.  This operator assigns a value to a variable.


            E.  Short answer type question.
                1.  What is the purpose of Anaconda Navigator?
              Ans.  Anaconda Navigator is a desktop GUI that helps manage environments and packages. It allows users to
                   launch applications and handle Python-related tasks without using the command line.
                2.  How do you start Jupyter Notebook?
              Ans.  To start Jupyter Notebook, you can simply type jupyter notebook in the command line. This opens a web-
                   based interface where you can create and run Python notebooks.

                3.  What does the ‘conda create -n env python=3.11’ command do?
              Ans.  This  command creates  a new  virtual environment named ‘env’  with Python  version  3.11. Virtual
                   environments help keep dependencies separate for different projects.
                4.  Which menu in Jupyter Notebook is used for changing the visibility of the header and toolbar?
              Ans.  The ‘View’ menu in Jupyter Notebook is used for changing the visibility of the header and toolbar. It
                   allows users to customize the notebook interface.
                5.  What is the purpose of the print() function in Python?

              Ans.  The print() function is used to display output on the screen. It helps showcase messages, variables, or
                   results of your Python code.
                6.  How is a virtual environment accessed after creation?
              Ans.  Once created, a virtual environment can be accessed using the command conda activate env, where ‘env’
                   is the name of the environment.
                7.  Which operator is used for exponentiation in Python?
              Ans.  The double asterisk (**) operator is used for exponentiation in Python. It raises the first number to the
                   power of the second.

                8.  What is the primary purpose of the ‘conda update --all --yes’ command?
              Ans.  The  ‘conda  update --all  --yes’ command  updates the Anaconda  distribution  to  the latest version  by
                   updating all installed packages.
                9.  What is the file extension used in Jupyter Notebook?
              Ans.  The file extension used in Jupyter Notebook is .ipynb. Notebooks can be exported to various formats
                   such as HTML, PDF, and LaTeX.
              10.  Which Anaconda tool is a client-server application that opens the notebook interface in a web browser?

              Ans.  Jupyter Notebook is a client-server application included in Anaconda. It starts a server locally and opens
                   the notebook interface in a web browser.
            F.  Long answer type question.

                1.  What is the role of Anaconda Navigator in Python development, and how does it simplify tasks for users?
              Ans.  Anaconda Navigator is a desktop GUI that streamlines Python development. It simplifies tasks such as
                   managing environments and packages, allowing users to launch applications and handle Python-related
                   operations without using the command line.





                82
                82
   203   204   205   206   207   208   209   210   211   212   213