Document Details

StellarChrysoprase7303

Uploaded by StellarChrysoprase7303

Tags

python programming programming quiz data types operators

Summary

This document is a Python programming quiz, containing multiple-choice questions about core Python concepts, including data types, operators, and identifiers. The quiz covers important aspects of basic programming logic.

Full Transcript

## Python Programming Quiz 16. Comments in python program are **_by interpreter_**. - executed / not executed / given / shared - **B** 17. In Python single line comment starts with **_#_**. - '%' / '*' / '!' / '#' - **D** 18. In Python multi line comment starts with **_'''_**....

## Python Programming Quiz 16. Comments in python program are **_by interpreter_**. - executed / not executed / given / shared - **B** 17. In Python single line comment starts with **_#_**. - '%' / '*' / '!' / '#' - **D** 18. In Python multi line comment starts with **_'''_**. - '%' / '*' / '!' / '#' - **A** 19. Which of the following is a sequence data type? - String / Integer / Float / Dictionary - **A** 20. **_Identifier_** is a set of valid characters that a language can recognize. - Identifier / Token / Character set / Character group - **C** 21. The smallest individual unit in a program is known as **_token_**. - Token / Punctuators / Literals / Operators - **A** 22. Which of the following is invalid Identifier? - break / FILE34 / F_L / Myname - **D** 23. Which of the following is token in Python? - Punctuators / Literals / Keywords / All of the above - **D** 24. Which of the following statement is wrong? - Literals are data items that have fixed value. / Keywords cannot be used as identifier. / - **C** 25. Identifier can start with number. / **_None of the above_** - **A** 26. Variables of data types like integers, float etc., hold **_single value_**. - single value / multiple values / single value / None of the above - **A** 27. An **_operator_** is a symbol which is used to perform specific mathematical or logical operation on values. - Operand / Operator / Keyword / Identifier - **B** 28. Operators work on values called **_operand_**. - Operating / Operand / data value / Opvalue - **B** 29. Which of the following is number data type in python? - Integer / Complex / Boolean / All of the above - **D** 30. Binary operators are operators with **_2_** operands. - 1/2/3/4 - **B** 31. In Python, we have **_input()_** function for taking input from the user. - input() / accept() / enter() / insert() - **A** 32. The user may enter a number or a string but the input() function treats them as **_strings only_**. - integer only / list / strings only / Tuple - **C**

Use Quizgecko on...
Browser
Browser