23rd
Mar
Problem Solving and Python Programming MCQ

Problem Solving and Python Programming MCQ

  • Admin
  • 23rd Mar, 2023
  • 1042 Followers

Problem Solving and Python Programming MCQ Questions are a set of questions designed to test your knowledge and understanding of the fundamental concepts of programming and problem-solving using Python language. This MCQ test is also very helpful & important for the Nielit O Level candidates. so practice these questions to check your final preparation for your upcoming exams.

Problem Solving and Python Programming MCQ Test

1) Which of the following language is understood by computer?

  • A. Assembly Language
  • B.Machine Language
  • C.High Level Language
  • D.None of the above

2) How can we create an empty list in Python?

  • A. list.null
  • B.null.list
  • C.list=()
  • D.list=[ ]

3) Which of the following function is used for data in the binary format :

  • A. write
  • B.output
  • C.dump
  • D.send

4) Which part of the memory does the system store the parameter and local variables of a function call?

  • A. Heap
  • B.Stack
  • C.Uninitialized data segment
  • D.None of the above

5) Which statement is correct to import all modules from the package?

  • A. from package include all
  • B.from package import all
  • C.from package import *
  • D.from package include *

6) In which of the following data type, duplicate items are not allowed?

  • A. list
  • B.set
  • C.dicitionary
  • D.None of the above

7) ................. immediately terminates the current loop iteration.

  • A. break
  • B.continue
  • C.pass
  • D.none of the above

8) Which of the following function takes two arguments?

  • A. load( )
  • B.dump( )
  • C.both load( ) & dump( )
  • D.None of the above

9) What is the maximum possible length of an identifier?

  • A. 8
  • B.16
  • C.32
  • D.None of the above

10) Which of the following executes the programming code line by line?

  • A. Compiler
  • B.Executer
  • C.Translator
  • D.Interpreter

11) Which of the following symbol is used to represent the start and stop of a flowchart?

  • A. Arrow
  • B.Oval
  • C.Diamond
  • D.Rectangle

12) Raw data assigned to a variable is called as ...............

  • A. Variable
  • B.Literal
  • C.Identifier
  • D.Comment

13) Algorithms can't be represented by ..................

  • A. Syntax
  • B.Flowcharts
  • C.Programs
  • D.Pseudo Codes

14) Which one is not the attribute of a file?

  • A. softspace
  • B.mode
  • C.closed
  • D.rename

15) Which function is used to read all the characters?

  • A. read()
  • B.readall()
  • C.readchar()
  • D.readcharacters()

16) Operations to be repeated a certain number of times are done by ............

  • A. Simple
  • B.Loop
  • C.Selection
  • D.Sequential

17) Istrip() method is used for :

  • A. delete all the trailing characters
  • B.delete all the leading characters
  • C.delete upper case characters
  • D.delete all the leading and trailing characters

18) Which of the following is not a valid identifier?

  • A. 123
  • B.s12
  • C._123
  • D.student

19) Which of the following is not a valid identifier?

  • A. 123
  • B.s12
  • C._123
  • D.student

20) Which of the following symbol is used for input and output operations in a flow chart?

  • A. Rectangle
  • B.Circle
  • C.Diamond
  • D.Parallelogram

Leave A Comment :

Valid name is required.

Valid name is required.

Valid email id is required.