Tag: Today
-

C++ Programming Questions and Answers – String – 1
Q 1.What will be the output of the following C++ code? #include #include using namespace std;int main(int argc, char const *argv[]){char str[] = “Hello World”;cout< A. H B. e C. o D. Error Show Answer Answer:-A. H Explanation The program has no errors so and as str = “Hello World” and we are trying to…
-

Artificial Intelligence MCQ Questions & Answer Part 1
Q 1. What is the term used for describing the judgmental or common sense part of problem solving? A. Value based B. Critical C. Heuristic D. Analytical Show Answer Answer:-C. Heuristic Explanation A heuristic refers to a practical approach or guiding principle used to solve problems efficiently, especially when faced with complex or ill-defined situations.…
-

CSS Questions & Answers – Selectors
CSS Multiple Choice Questions & Answers (MCQs) focuses on “Selectors”. Q 1. What type of selector is used in this case? p {line-height: 150%;} A. element SelectorsB. class SelectorsC. id SelectorsD. none of the mentioned Show Answer Answer:-A. element Selectors Explanation These selectors are called element selectors and are simply used as follows: element-name {…
-

CSS Questions & Answers – Advanced Selectors
CSS Multiple Choice Questions & Answers focuses on “Advanced Selectors”. Q 1. Which of the following selector selects all elements of E that have the attribute attr that end with the given value?A. E[attr^=value]B. E[attr*=value]C. E[attr$=value]D. none of the mentioned Show Answer Answer:-C. E[attr$=value] Explanation Example: p[title$=”!”] {color: red;} Q 2. Which of the following…
-

Current Affairs Quiz – November, 2024
Q 1.Which state government has launched the Elevate 2024 scheme for early stage startups? A. KarnatakaB. RajasthanC. MaharashtraD. Jharkhand Show Answer Answer:-A. Karnataka Explanation Karnataka launched ELEVATE 2024 and Karnataka Acceleration Network (KAN) to support start-ups. ELEVATE 2024 is a grant scheme offering up to ₹50 lakh per start-up to help early-stage companies with seed…
-

Python Questions and Answers – Lists – 7
Python Code Output Questions Python Multiple Choice Questions & Answers (MCQs) focuses on “Lists-7”. Q 1.What will be the output of the following Python code? a=[“Apple”,”Ball”,”Cobra”] a.sort(key=len) print(a) A. Invalid syntax for sort() B. [‘Ball’, ‘Apple’, ‘Cobra’] C.[‘Apple’, ‘Ball’, ‘Cobra’] D.[‘Cobra’, ‘Apple’, ‘Ball’] Show Answer Answer:-B.[‘Ball’, ‘Apple’, ‘Cobra’] Explanation The syntax isn’t invalid and the…
-

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…



