Computer Science, asked by mahtabhussain202, 7 months ago

1. a. Which of the following is valid arithmetic operator in Python: iii, < (1) i.// ii. ? iv. and b. Why is variable called symbolic variable? (1) What are literals in Python? Differentiate between / and // operator. C. (1) d. (1) e. Write the type of tokens from the following: ii. roll_no (1) i. If f. What is the use of break statement. (1) 2. a. WAP to input sales price and cost price and print whether it is a profitable deal or not. (2) b. Define identifier. What are different rules to be considered while creating an identifier? (2) C. What will be the final value of the variable H after the execution of following expression H=D10-5+ (5- 2) +2 ** 3 d. Identify the types of operator from the following: iii. % (2) (2) i. > ii. ** iv. and e. WAP to print Fibonacci series upto 8 terms. (2) 3. a. WAP to input two values, swap them and print their values. (3) b. WAP to input number of units and calculate electricity bill as per following rules: (3) For first 100 units Rs. 300 For next 100 units @ Rs. 7 For next 100 units @ Rs. 5 For rest of the units ---- @ Rs. 3 4. a. WAP to input 3 numbers and print the largest and smallest number (3) b. WAP to input a number and check whether it is a buzz number or not. (3) (A number divisible by 7 or having 7 as last digit is buzz number) c. WAP to input a number and calculate its factorial. (3) d. WAP to input a number and print its factors. (3) 5. A a. Input a string having some digits. WAP to calculate the sum of digits present in this string. (4) b. WAP that asks the user for a string (only single space between words) and returns how many words are in a string. (4) C. WAP to input a line of text, count and print number of vowels are present. (4)6. What is the difference between append () and extend () functions? With example a. (6) b. WAP to input a list of numbers and test if a number is equal to the sum of the cubes of its digits. Find the smallest and largest such number from the given list of numbers. (6) C. WAP to input n numbers from the user. Store these numbers in a tuple. Print the maximum and minimum number from the tuple. (6) 7. Answer the following questions a. How is empty tuple created? b. How can you add an extra element to a tuple? C. What is the difference between (30) and (30,)? d. Do min(), mx() always work for tuples? e. Is the working if 'in' operator and tuple.index() same? f. How is a tuple containing just one element created?​

Answers

Answered by anuanu134
6

Answer:

your browser does not have a great day and water I was coming out of the of yellow water the was coming up in the arms of yellow and red

Similar questions