DATA TYPES IN PYTHON A. Tick the correct option 1. Which of the following is not a valid variable name? ANS1. a. Print 2. Which of the following is not a string? ANS2. a. 89 3. How many types of number data type are there in Python? ANS C. 4 4. Which of the following is a data type? ANS A. TUPLE 5. Which of the following will you use to access a value stored in a dictionary? ANS C. [ ] B. Fill in the blanks 1. A multiline string spreads across multiple lines. 2. Data type is used to represent data in the memory of the computer. 3. A tuple can consist of different types of values. 4. A conditional statement can also be called a decision making statement. 5. The IF conditional statement has code for the condition being true only. C Write the output of the following code snippets. 1. >>> number_of_pages=200 >>>print( number_of_pag...
QUESTION 3. Which HTML Tag is used to underline the text? a. <U> b. <I> c. <TT> d. <B> QUESTION 4. HTML Tags are written in a. Capital letters b. Small letters c. Both Capital and Small letters d. No...
Q1. Write the html code and find the output Q2. Write the HTML CODE using Ordered List:- 1. English 2. Mathematics 3. Science Q3 . C Write the output of the following code snippets. 1. >>> number_of_pages=200 >>>print( number_of_pages) 2. Given a list lst=["Monday","Tuesday","Wednesday","Thursday", "Friday","Saturday"] a. What statements will you write to print the elements stored at even indices? b. Write a statement to replace incorrect spelling with the correct spelling of Friday. c. Write a statement to print the number of elements in the list. d. Write a statement to print the first element of this list. 3. fruits=["apple,"mango","orange"] numbers=(5,4,3) alphabets={'a':'apple','b':'ball','c':'cat'} print(fruits) print(numbers) print(alphabets['b']) 4. >>>list1=[1,2,3,4] >>>list2=['i...
Comments
Post a Comment