Author: PraveenGupta

  • United States & State Capitals

    State Capitals 1.Alabama Montgomery 2.Alaska Juneau 3.Arizona Phoenix 4.Arkansas Little Rock 5.California Sacramento 6.Colorado Denver 7.Connecticut Hartford 8.Delaware Dover 9.Florida Tallahassee 10.Georgia Atlanta 11.Hawaii Honolulu 12.Idaho Boise 13.Illinois Springfield 14.Indiana Indianapolis 15. Iowa Des Moines 16.Kansas Topeka 17.Kentucky Frankfort 18.Louisiana Baton Rouge 19.Maine Augusta 20.Maryland Annapolis 21. Massachusetts Boston 22. Michigan Lansing 23. Minnesota Saint…

  • Python Quizs Question and Answers Precedence and Associativity – 2

    Q 1. What will be the output of the following Python expression? print(4.00/(2.0+2.0)) A. ErrorB. 1.0C. 1.00D. 1 Show Answer Answer:-B. 1.0 Q 2. What will be the value of X in the following Python expression? X = 2+9*((3*12)-8)/10 A. 30.0B. 30.8C. 28.4D. 27.2 Show Answer Answer:-D. 27.2 Explanation Explanation:- The expression shown above is…

  • Python Quizs Question and Answers Precedence and Associativity – 1

    Q 1. The value of the expressions 4/(3*(2-1)) and 4/3*(2-1) is the same.A. TrueB. False Show Answer Answer:-A. True Explanation Explanation:- Although the presence of parenthesis does affect the order of precedence, in the case shown above, it is not making a difference. The result of both of these expressions is 1.333333333. Hence the statement…

  • Python Quizs Question and Answers – Basic Operators

    Q 1. Which is the correct operator for power(xy)?A. X^yB. X**yC. X^^yD. None of the mentioned Show Answer Answer:-B. X**y Explanation Explanation:- In python, power operator is x**y i.e. 2**3=8. Q 2. Which one of these is floor division?A. /B. //C. %D. None of the mentioned Show Answer Answer:-B. // Explanation Explanation:- When both of…

  • Python Quizs Question and Answers – Variable Names

    Q 1. Is Python case sensitive when dealing with identifiers?A. machine dependentB. noC. yesD. none of the mentioned Show Answer Answer:-C. yes Explanation Explanation:- Case is always significant while dealing with identifiers in python. Q 2. What is the maximum possible length of an identifier?A. 31 charactersB. 63 charactersC. 79 charactersD. none of the mentioned…

  • Python Questions and Answers – Numeric Types

    Q 1. What is the output of print 0.1 + 0.2 == 0.3?A. TrueB. FalseC. Machine dependentD. Error Show Answer Answer:-B. False Explanation Explanation:- Neither of 0.1, 0.2 and 0.3 can be represented accurately in binary. The round off errors from 0.1 and 0.2 accumulate and hence there is a difference of 5.5511e-17 between (0.1…

  • Python Quizs Question and Answers – Core Data Types

    Q 1. Which of these in not a core data type?A. ListsB. DictionaryC. TuplesD. Class Show Answer Answer:-D. Class Explanation Explanation:- Class is a user defined data type. Q 2. Given a function that does not return any value, What value is thrown by default when executed in shell.A. intB. boolC. voidD. None Show Answer…

  • PHP Quizs Question & Answers Basics of Object-Oriented PHP- 2

    Q 1. Which one of the following functions is used to determine whether a class exists?A. exist()B. exist_class()C. class_exist()D. __exist() Show Answer Answer:-C. class_exist() Explanation The class_exist() function returns true or false according to whether the class exists within the currently executing script content. Q 2. Which one of the following functions is used to…

  • PHP Quizs Question & Answers Advanced Object-Oriented

    Q 1. Which magic method is used to implement overloading in PHP?A. __callB. __invokeC. __wakeupD. __unset Show Answer Answer:-A. __call Explanation When a class implements __call(), then an object of that class is called with a method that doesn’t exist, __call() is called instead. Q 2. The class from which the child class inherits is…

  • Knowledge of Ireland 50- Question Answer Geography, History and Culture, Famous people from Ireland. 

    Q 1. In which county is the Giant’s Causeway located?  Show Answer Answer:-Antrim Q 2. Which river runs through Dublin?  Show Answer Answer:-Liffey Q 3. How many counties does Ireland have?  Show Answer Answer:-32 Q 4. Paddy Maloney, Sean Keane, Matt Molloy and Derek Bell are all members of which famous Irish musical band?  Show…

You cannot copy content of this page