Tag: dailyprompt-1901
-
Python Questions and Answers – Lists – 4
Python Programming Questions & Answers focuses on “Lists”. Q 1. What will be the output of the following Python code? def f(i, values = []): values.append(i) return values f(1)f(2)v = f(3)print(v) A. [1] [2] [3]B. [1] [1, 2] [1, 2, 3]C. [1, 2, 3]D. 1 2 3 Show Answer Answer:-C. [1, 2, 3] Explanation Execute in…
-
Physics Question MCQs India
Q 1.By how much the orbital velocity of Moon has to increase for it to cease to remain the earth’s satellite?A. 2 timesB. 3 timesC. √3 timesD. √2 times Show Answer Answer:-D. √2 times Explanation If the speed of a satellite orbiting close to the earth is made √2 times (or increased by 41%) then…
-
General Science Chemistry MCQs Question India
Q 1.What is Rose metal? A. It is an alloy of Nickel, Tin and ZincB. It is an alloy of Bismuth, Copper and PalladiumC. It is an alloy of Bismuth, Tin and LeadD. It is an alloy of Palladium, Tin and Lead Show Answer Answer:-C. It is an alloy of Bismuth, Tin and Lead Explanation…
-
C++ Programming Questions and Answers – Function Declarations
C++ programming questions focuses on “Function Declarations”. One shall practice these questions to improve their C++ programming skills needed for various interviews (campus interviews, walk-in interviews, company interviews), placements, entrance exams and other competitive exams. These questions can be attempted by anyone focusing on learning C++ programming language. They can be a beginner, fresher, engineering…
-
C++ Programming MCQ Question– Operators
C++ language interview questions and answers focuses on “Operators”. One shall practice these interview questions to improve their C++ programming skills needed for various interviews (campus interviews, walk-in interviews, company interviews), placements, entrance exams and other competitive exams. These questions can be attempted by anyone focusing on learning C++ programming language. They can be a…
-
C++ Programming MCQ – Quizs Question Structures
Q 1. The data elements in the structure are also known as what?A. objectsB. membersC. dataD. objects & data Show Answer Answer:-B. members Explanation Variables declared inside a class are called as data elements or data members. Q 2. What will be used when terminating a structure?A. :B. }C. ;D. ;; Show Answer Answer:-C. ;…
-
C++ Programming Questions and Answers – Pointer to Void
Q 1. The void pointer can point to which type of objects?A. intB. floatC. doubleD. all of the mentioned Show Answer Answer:-B. float Explanation Because it doesn’t know the type of object it is pointing to, So it can point to all objects. Q 2. When does the void pointer can be dereferenced?A. when it…
-
C++ Programming MCQ – References
Q 1. What are the references in C++?A. A new type of variablesB. A pointer to a variableC. An alternative name for already existing variablesD. A new type of constant variable Show Answer Answer:-C. An alternative name for already existing variables Explanation References are an alternative name for an already defined variable. They are different…
-
C++ Programming Quizs Question and Answers – Booleans
C++ language interview questions and answers focuses on “Booleans”. One shall practice these interview questions to improve their C++ programming skills needed for various interviews competitive exams. These questions can be attempted by anyone focusing on learning C++ programming language. They can be a beginner, fresher, engineering graduate or an experienced IT professional. Our C++…
-
C++ Programming Questions and Answers – C++ Concepts – 2
Q 1. Which of the following is the scope resolution operator?A. .B. *C. ::D. ~ Show Answer Answer:-C. :: Explanation :: operator is called scope resolution operator used for accessing a global variable from a function which is having the same name as the variable declared in the function. Q 2. What will be the…