Document Details

NimbleBugle

Uploaded by NimbleBugle

Adamas International School

Tags

python programming computer programming programming questions basic computer science

Summary

This document contains a set of multiple choice questions about basic Python programming, suitable for a classroom or quiz.

Full Transcript

# CLASS - 6 ## Chapter - Basic Python 1) An ordered set of instruction to be executed by a computer by a computer to carry out a specific task is called - Algorithm - Pseudo code - **Program** - None of the above 2) Computer understand the language of Os and 1s which is called...

# CLASS - 6 ## Chapter - Basic Python 1) An ordered set of instruction to be executed by a computer by a computer to carry out a specific task is called - Algorithm - Pseudo code - **Program** - None of the above 2) Computer understand the language of Os and 1s which is called - Machine language - Low level language - Binary language - **All of the above** 3) A program written in a high-level language is called - Object - **Source** - Machine - None of the above 4) Python uses **Interpreter** to convert its instruction into machine language. - Interpreter - Compiler - Both of the above - None of the above 5) Language translator convert **Source, Object** code to **code**. - Source, Object - Object, Source - Machine, Source - None of the above 6) Which of the following is not correct about python? - Python is an open source language. - **Python is based an ABC language.** - Python is developed by Guido Van Rossum - None of the above 7) Python is case sensitive. - **True** - False 8) Which Keyboard key is used to run python programs? - F6 - **F5** - F+ n - CTRL + r 9) All keywords in python are in lower case. - True - **False** 10) Which of the following is not the feature of python language? - Python is a proprietary software. - Python is not case-sensitive. - Python uses brackets for blocks and nested blocks. - **All of the above** 11) In which of the following mode, the interpreter executes the statement and displays the result as soon as we press 'Enter' key? - **Interactive mode** - Script mode - Hybrid mode - None of the above 12) By default, the Python scripts are saved with **.py** extension. - .pyp - .pys - .py - None of the above 13) By default, the Python scripts are saved in **Python installation folder**. - Document - Desktop - Python installation folder - D drive 14) **Keywords** are reserved words. - Keywords - Identifiers - Variables - Comments 15) Which of the following is not correct for naming an identifier in Python? - Identifier can be of any length - Identifier should not be a keyword - We cannot use special symbols like !, @, #, $, %, etc., in identifiers - **Spaces are allowed in identifiers** 16) Comments in python program are **not executed** by interpreter. - executed - not executed - given - shared 17) In Python single line comment starts with **#**. - '%' - '*' - '!' - '#' 18) In Python multi line comment starts with **''' '''**. - '%' - '*' - '!' - '#' 19) Which of the following is a sequence data type? - **String** - Integer - Float - Dictionary 20) **Character set** is a set of valid characters that a language can recognize. - Identifier - Token - Character set - Character group 21) The smallest individual unit in a program is known as **Token**. - Token - Punctuators - Literals - Operators 22) Which of the following is invalid Identifier? - break - FILE34 - F_L - **Myname** 23) Which of the following is token in Python? - Punctuators - Literals - Keywords - **All of the above** 24) Which of the following statement is wrong? - Literals are data items that have fixed value. - Keywords cannot be used as identifier. - **Identifiers can start with number.** - None of the above 25) Variables of data types like integers, float etc., hold **single value**. - single value - multiple values - single value - None of the above 26) An **Operator** is a symbol which is used to perform specific mathematical or logical operation on values. - Operand - Operator - Keyword - Identifier 27) Operators work on values called **Operand**. - Operating - Operand - data value - Opvalue 28) Which of the following is number data type in python? - Integer - Complex - Boolean - **All of the above** 29) Binary operators are operators with **2** operands. - 1 - 2 - 3 - 4 30) In Python, we have **input()** function for taking input from the user. - input() - accept() - enter() - insert() 31) The user may enter a number or a string but the input() function treats them as **strings only**. - integer only - list - strings only - Tuple

Use Quizgecko on...
Browser
Browser