Tag: Australia
-
Python Multiple Choice Questions – Dictionary
Python Multiple Choice Questions & Answers (MCQs) focuses on “Dictionary”. Q 1. Which of the following statements create a dictionary?A. d = {}B. d = {“john”:40, “peter”:45}C. d = {40:”john”, 45:”peter”}D. All of the mentioned Show Answer Answer:-D. All of the mentioned Explanation Dictionaries are created by specifying keys and values. Q 2. What will…
-
Do You Follow A Specific Diet To Help With MS?
While there’s no one-size-fits-all diet for people with Multiple Sclerosis (MS), some individuals find that certain dietary changes can help manage symptoms and improve their overall health. Here are some dietary guidelines and considerations that might be helpful for people living with MS: 1. Anti-Inflammatory Foods: Since MS is an autoimmune condition, an anti-inflammatory diet…
-
PHP Multiple Choice Questions – Strings and Regular Expressions
PHP Multiple Choice Questions & Answers (MCQs) focuses on “Strings and Regular Expressions”. Q 1. PHP has long supported two regular expression implementations known as _______ and _______ i) Perlii) PEARiii) Pearliv) POSIXA. i) and ii)B. ii) and iv)C. i) and iv)D. ii) and iii) Show Answer Answer:-C. i) and iv) Q 2. What will…
-
Python Questions and Answers – Sets – 4
Python Multiple Choice Questions & Answers (MCQs) focuses on “Sets – 4”. Q 1. What will be the output of the following Python code? s1={3, 4}s2={1, 2}s3=set()i=0j=0for i in s1:for j in s2:s3.add((i,j))i+=1j+=1print(s3)A. {(3, 4), (1, 2)}B. {(4, 2), (3, 1), (4, 1), (5, 2)}C. {(3, 1), (4, 2)}D. Error Show Answer Answer:-B. {(4, 2),…
-
Python Questions and Answers – Sets – 3
Python Multiple Choice Questions & Answers (MCQs) focuses on “Sets – 3”. Q 1. Which of the following functions will return the symmetric difference between two sets, x and y?A. x | yB. x ^ yC. x & yD. x – y Show Answer Answer:-B. x ^ y Explanation The function x ^ y returns…
-
PHP Questions & Answers – PHP Filter
PHP Multiple Choice Questions & Answers (MCQs) focuses on “PHP Filter”. Q 1. Which of the following is/are an external data? i) Cookiesii) Input data from a formiii) Server Variablesiv) Web services dataA. Only ii)B. ii) and iii)C. Only iii)D. i), ii), iii) and iv) Show Answer Answer:-D. i), ii), iii) and iv) Explanation The…
-
PHP Questions & Answers – Exception Handling
PHP Multiple Choice Questions & Answers (MCQs) focuses on “Exception Handling”. Q 1. Which version of PHP was added with Exception handling?A. PHP 4B. PHP 5C. PHP 5.3D. PHP 6 Show Answer Answer:-B. PHP 5 Explanation Exception handling was added to PHP with the version 5 release, and further enhanced with version 5.3. Q 2. How…
-
Python Questions and Answers – Sets – 2
Python Multiple Choice Questions & Answers (MCQs) focuses on “Sets – 2”. Q 1. Which of these about a frozenset is not true?A. Mutable data typeB. Allows duplicate valuesC. Data type with unordered valuesD. Immutable data type Show Answer Answer:-A. Mutable data type Explanation A frozenset is an immutable data type. Q 2. What is…
-
Python Multiple Choice Questions – Sets
Python Multiple Choice Questions & Answers (MCQs) focuses on “Sets”. Q1. Which of these about a set is not true?A. Immutable data typeB. Does not allow duplicate valuesC. Data type with unordered valuesD. Mutable data type Show Answer Answer:-A. Immutable data type Explanation A set is a mutable data type with non-duplicate, unordered values, providing…
-
PHP Questions & Answers – Error Handling
PHP Multiple Choice Questions & Answers (MCQs) focuses on “Error Handling”. Q 1. How many error levels are available in PHP?A. 14B. 15C. 16D. 17 Show Answer Answer:-C. 16 Explanation Whenever the PHP engine encounters any problem that prevents a script from running properly it generates an error message. There are sixteen error levels and…