Random Function in Python MCQ Class 11-12
Random Function in Python MCQ Class 11-12 1. What does the following statement do? import random a) Imports the random module b) Imports a random module from a list of modules c) Imports the random function d) imports the directory named random…
Input a list of numbers and swap elements at the even location with the elements at the odd location Python Program
Input a list of numbers and swap elements at the even location with the elements at the odd location Python Program # Program to input number list and swapping odd and even index elements # Entering 5 element Lsit mylist = [] print("Enter…
Input a list/tuple of elements and search for a given element in the list/tuple Python Program
Input a list/tuple of elements and search for a given element in the list/tuple Python Program # Python Program to input a list of 5 elements and search element in List mylist = [] print("Enter 5 elements for the list: ") for i in range(5):…
Input three numbers and display the largest/smallest number Python Program
Input three numbers and display the largest/smallest number Python Program # Python Program to input 3 numbers and display the largest number #input first,Second and third number num1=int(input("Enter First Number")) num2=int(input("Enter Second…
Input two numbers and display the larger/smaller number Python Program
Input two numbers and display the larger/smaller number Python Program # Python Program to input 2 numbers and display larger number #input first number num1=int(input("Enter First Number")) #input Second number num2=int(input("Enter…
Input a list of numbers and find the smallest and largest number from the list Python Program
Input a list of numbers and find the smallest and largest number from the list Python Program #create empty list mylist = [] number = int(input('How many elements to put in List: ')) for n in range(number): element = int(input('Enter element '))…
Class 11 Informatics Practices Term 2 Sample Paper Set-1
Class 11 Informatics Practices Term 2 Sample Paper Set-1 Subject: Informatics Practices Subject Code: 065 Class 11 Maximum Marks: 35/Time: 2 hours General Instructions The question paper is divided into 3 sections – A, B and C Section A, consists…
Find the smallest/largest number in a list/tuple Python Program
Find the smallest/largest number in a list/tuple # Program to Find the smallest number in a list There may be many approaches to find the smallest number in a list. Here I provide some of the approaches. Approach 1: You can Sort the list…
Class 11 Computer Science Sample Paper Term 2 Set-1
Class 11 Computer Science Sample Paper Term 2 Set-1 Subject Code: 083 Max Marks – 35 /Time – 02 Hrs. General Instructions: ♦ Attempt all questions. The question paper is divided into 3 sections – A, B and C. ♦ Section A, consists of 7 questions (1‐7).…
(2024-25 New Syllabus) Practical File for Class 11 Computer Science (083)
Practical List for Class 11 Computer Science (083) suggested by CBSE for Session 2024-25. Programming Language- Python Practical File for Class 11 Computer Science Here are the programs which are suggested by CBSE for Computer Science Practical…