Docsity

Computer Science – Python Revision Tour, Exams of Computer science

Toggle sidebar
bg1
Name of the Chapter - Python Revision Tour
Question
No
Question Content
Learning
Objective (if
Provided)
1.
Full Form of IDLE
A. INDUSTRIAL DEVELOPMENT LEARNING
ENVIRONMENT
B. INTEGRATE DRIVE LEARNING ENVIRONMENT
C. INTEGRATED DEVELOPMENT LEARNING
ENVIRONMENT
D. INTEGRATED DEVELOPMENT LEARNING
ENGINEERING
Knowledge
2.
Python is ……………….language
A. High level language
B. Low level language
C. Medium level language
D. Machine language
Knowledge
3.
Which statement is correct
A. Python is Upper case sensitive
B. Python is Case-Sensitive
C. Python is Lower case sensitive
D. Python is Case-Insensitive
Understanding
4.
Which statement is correct
A. It is free language
B. It is open source language
Knowledge
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b
pf5c
pf5d
pf5e
pf5f
pf60
pf61
pf62
pf63
pf64

Partial preview of the text

Download Computer Science – Python Revision Tour and more Exams Computer science in PDF only on Docsity!

Name of the Chapter - Python Revision Tour Question No Question Content Learning Objective (if Provided)

  1. Full Form of IDLE A. INDUSTRIAL DEVELOPMENT LEARNING ENVIRONMENT B. INTEGRATE DRIVE LEARNING ENVIRONMENT C. INTEGRATED DEVELOPMENT LEARNING ENVIRONMENT D. INTEGRATED DEVELOPMENT LEARNING ENGINEERING Knowledge
  2. Python is ……………….language A. High level language B. Low level language C. Medium level language D. Machine language Knowledge
  3. Which statement is correct A. Python is Upper case sensitive B. Python is Case-Sensitive C. Python is Lower case sensitive D. Python is Case-Insensitive Understanding
  4. Which statement is correct A. It is free language B. It is open source language Knowledge

C. It is free and open source language D. None of the above

  1. Tick the correct statement to print hello. A. print(hello) B. print(“hello”) C. Print(“hello”) D. Print(hello) Application
  2. Python programs are executed by which language processor? A. Compiler B. Interpreter C. Assembler D. All of the above Knowledge
  3. Which of the statement is correct? A. Python is not portable and platform independent. B. Python is portable and platform dependent. C. Python is portable and platform independent. D. Python is not portable and platform dependent. Understanding
  4. Which of the following is not high level programming language? A. JAVA B. Visual basic C. Python D. Machine language Analysis

D. (0,1,2,3,4,5,6,7)

  1. Which function can be used to display the output in python A. show() B. print() C. display() D. output() Analysis
  2. Tick the correct statement to print Hello World. A. print(hello)(world) B. Print(“hello world”) C. Print(hello world) D. print(“Hello World ”) Evaluation 15.. Find the output of the following program A= print(A) A. A B. a C. 0 D. 1 Evaluation 16 Question: Python uses^ ______^ to convert its instructions into machine language. (A) Interpreter (B) Compiler (C) Both of the above (D) None of the above Understanding,

17 Question:Which of the following is not the feature of python language? (A) Python is proprietary software. (B) Python is not case-sensitive. (C) Python uses brackets for blocks and nested blocks. (D) All of the above Understanding, 18 Question:By default, the Python scripts are saved with ___________ ___ extension. (A) .pyp (B) .pys (C) .py (D) None of the above Understanding, 19 Question:Which of the following is String literal? (A) “ABC” (B) “123” (C) Both of the above (D) None of the above Understanding 20 Question:print(“I” + “am” + “in” + “school”) display (A) I am in school (B) I Am In School (C) Iaminschool (D) iaminschool Application 21 Question:print(“I” , “am” , “in” , “school”) display (A) I am in school (B) I Am In School (C) Iaminschool (D) iaminschool Application 22 Question:Which of the following is parameter of print( ) function? (A) sep (B) end (C) Both of the above Evaluation

(B) \t (C) \n (D) \b (^29) Question:Which of the following functions print the output to the console? (A) Output( ) (B)Print( ) (C)Echo( ) (D)print( ) Knowledge, (^30) Question:The default separator character of print( ) is ………. (A) tab (B)space (C)newline (D)dot Understanding 31 Which of the following is correct about python? a. Python is an open source language. b. Python is not based on ABC language. c. Python is not a case sensitive d. All of the above Knowledge

(^32) Which two languages contributed to Python as a Programming Language?

**1. C++ and ABC language

  1. BASIC and Modula 3
  2. ABC language and Modula 3
  3. None of the Above** Knowledge 33 When was Python released? a. Python was released in September 1991. b. Python was released in February 1991. c. Python was released in February 1990. d. Python was released in March 1991 Knowledge 34 **Python code can run on a variety of platforms, it means Python is a .......... language.
  4. Graphical
  5. Cross-platform
  6. Independent
  7. All of these** Understanding

(^38) What is the output after executing the following code: Print(“Hello World!”) a. >>>Hello World! b. Hello World c. Hello World! d. Error Evaluation 39 **What is the result after executing the following:

print(20/4 5+8-10) a. 1 b. 23 c. 23. d. 24* Evaluation (^40) What will be the output of the following code? print(“150+300”) (i) 450 (ii) 150300 (iii) 150+ (iv) 300 Evaluation

(^41) What do we use to define a block of code in Python language?

**1. Key

  1. Brackets
  2. Indentation
  3. None of these** Analysis (^42) **Python interpreter executes ……………………….statement (Command) at a time.
  4. Two
  5. Three
  6. One
  7. All command** Analysis 43 **Which one is not the feature of Python-
  8. Cross-platform
  9. Interpreted
  10. Free and Open source
  11. Not a case-sensitive** Understanding 44 **A program written in a high-level language is called ………………
  12. Compile code
  13. Object code
  14. Source code
  15. Binary Code** Understanding

(^48) All keywords in python except TRUE and FALSE are in ________? (A) Lower case (B) Upper case (C) Capitalized (D) None of the above Knowledge 49 Which of the following can not be a variable name? (A) init (B) in (C) it (D) on Knowledge 50 Which of the following operators is the correct option for power(a,b)? (A) a^b *(B) a b (C) a ^^b (D) a^b Knowledge, Understand

(^51) Who developed the Python language? (A) Zim Den (B) Guido van Rossum (C) Niene Stom (D) Wick van Rossum Knowledge 52 In which year was the python language developed? (A) 1995 (B) 1972 (C) 1989 (D) 1981 Knowledge 53 Which one of the following is the correct extension of the python file? (A) .py (B) .p (C) .python (D) .pyt Knowledge

(^57) **Which one of these is the floor division operator? (A) / (B) // (C) % (D) *** Knowledge (^58) Which of the following has the highest precedence in python? (A) Exponential (B) Additin (C) Parenthesis (D) Division Knowledge 59 **What will be the output of the following statement?

a+bc (A) a (B) b (C) ab (D) abc** Analysis

(^60) What is math.factorial(4.0)? (A) 20 (B) 24 (C) 16 (D) 64 Evaluation 61 Which of the following belongs to integer datatype A) - B) 4. C) 3+4J D) -2. Knowledge 62 Which of the following belongs to float datatype A) - B) -14. C) 3+4J D) 4 Knowledge

_______is a sequence of items separated by commas and the items are enclosed in paranthesis () A) LIST B) DICTIONARY C) STRING D) TUPLE Application 67 _______holds data items in key-value pairs. A) LIST B) DICTIONARY C) STRING D) TUPLE Application 68 _______is a sequence of items separated by commas and the items are enclosed in paranthesis () A) LIST B) DICTIONARY C) STRING D) TUPLE Application

_________ is an unordered collection of items separated by commas and the items are enclosed in curly brackets { } A) LIST B) SETS C) STRING D) TUPLE Application 70 None is a special data type with a single value. It is used to signify the absence of value in a situation A) TRUE B) FALSE C) NONE D) NULL knowlegde 71 Datatype conversion can happen : A) ONLY EXPLICITY B) ONLY IMPLICITY C) BOTH EXPLICITLY AND IMPLICITLY D) NONE OF THE ABOVE Understanding