Job Alerts

Recent Job Notifications.

Fill in the Blanks [1]

Fill in the Blanks Complete the sentences by filling in the blanks with the correct options. You have 1 minute to solve this! Start Instructions Time left: 60s 1. ____ is the capital of 2. ____, and it is famous for 3. ____. Submit Clear All Warning: The same option cannot be used for multiple blanks! Instructions 1. Click the “Start” button to begin the game. 2. You have 1 minute to complete the game. 3. Select the blank where you want to input your answer. 4. Choose the correct option to fill the blank. 5. Use the “Clear All” button to reset your inputs. 6. Press “Submit” to see your score and correct answers. Close Share this with your friends Play and Fill More Blanks   Back Crossword Sudoku Word Search Fun Quiz Fill in the Blanks Search More Word Search Search More Word Search Search More...

MCQs on Programming Basics [Set – 6]

MCQs on Programming Basics 1. What is the difference between a variable and a constant in programming? A) Constants never change valuesB) Variables always store stringsC) Constants allow re-assignmentD) Variables only hold numbers Show Answer Correct Answer: A) Constants never change valuesExplanation: Variables can store data that changes during program execution, while constants hold fixed values that cannot be altered after initialization. 2. Which symbol is used to end a statement in C, C++, and Java? A) Colon (:) for ending linesB) Semicolon (;) for statementC) Comma (,) for line breaksD) Period (.) for termination Show Answer Correct Answer: B) Semicolon (;) for statementExplanation: In C, C++, and Java, the semicolon ; marks the end of a statement, making it syntactically complete. 3. How do you declare a variable as an integer in Python? A) Directly assign valueB) Use the let keywordC) Declare int variableD) Add int before value...

MCQs on Programming Basics [Set – 5]

MCQs on Programming Basics 1. Which of the following is an example of polymorphism? A) Defining a function only once in codeB) Reusing a variable name across modulesC) Using the same method in multiple classesD) Creating a class without initialization Show Answer Correct Answer: C) Using the same method in multiple classesExplanation: Polymorphism allows methods in different classes to have the same name but behave differently based on the class. 2. How is exception handling implemented in Python? A) Using try-except blocks for errorsB) Using if-else conditions for logicC) Using while loops for conditionsD) Using variables to catch issues Show Answer Correct Answer: A) Using try-except blocks for errorsExplanation: In Python, exceptions are handled using try blocks to test code and except blocks to handle errors that occur. 3. What is the result of len(“Hello World”)? A) 10 as the character countB) 11 for all charactersC) 12 for spaces...

MCQs on Programming Basics [Set – 4]

MCQs on Programming Basics 1. Which of the following is an immutable data type in Python? A) List is mutable and flexibleB) String is immutable in PythonC) Set is mutable in operationsD) Dictionary is changeable type Show Answer Correct Answer: B) String is immutable in PythonExplanation: Strings in Python cannot be modified after creation. Any operation on a string creates a new string instead of altering the original. 2. How can you concatenate two lists in Python? A) Use the + operator for listsB) Use the append method in loopsC) Use the range function directlyD) Use the iter function on lists Show Answer Correct Answer: A) Use the + operator for listsExplanation: The + operator combines two lists by creating a new list containing all elements from both lists. 3. Which of the following is NOT an arithmetic operator? A) + for addition operationB) // for integer divisionC) and...

MCQs on Programming Basics [Set – 3]

MCQs on Programming Basics 1. How many times will the following loop execute? for i in range(5): print(i) A) 4 times in totalB) 5 times in totalC) Infinite due to errorD) Once for every element Show Answer Correct Answer: B) 5 times in totalExplanation: The range(5) function generates numbers from 0 to 4, so the loop executes 5 times, printing each value. 2. What is the output of the following: print(5 // 2) in Python? A) 2 for integer divisionB) 2.5 for floating resultC) 0 due to truncationD) Error in syntax use Show Answer Correct Answer: A) 2 for integer divisionExplanation: The // operator performs floor division, discarding the fractional part. Dividing 5 by 2 gives 2. 3. Which keyword is used to define a class in Python? A) class for structureB) def for declarationC) struct for dataD) object for templates Show Answer Correct Answer: A) class for structureExplanation:...
  • All Posts
  • Job Alerts

Subscribe to our Newsletter

Subscribe to our Newsletter

& stay ahead of your competitors!

You have been successfully Subscribed! Ops! Something went wrong, please try again.
Subscribe Form

* Subscribe to our email newsletter to get the latest posts delivered right to your email.

© MCQs 4 Exams. All rights reserved.