a) Write a Python program to accept a string and print it in reverse order. b) Consider the string S = "SumitaArora" . What will be the output of: i) S[0:6] ii) S[-5:] iii) len(S) c) Write a program to count the number of vowels in a string entered by the user.
a) Write a Python program to create a dictionary storing Country names as keys and their Capitals as values. Print all keys. b) Write the output of the following code:
a) What is the difference between a compiler and an interpreter? b) Explain the term "Syntax Error" with an example. c) What are logical operators in Python? Name them. d) What is type conversion? Explain implicit vs explicit type conversion. e) What is the difference between a bug and a debug? computer science sumita arora class 11
Consider the following table EMPLOYEE :
a) Expand the following terms: SMTP, HTTP, URL, IP, FTP. b) What is the difference between a client-side script and a server-side script? c) What is Cyber Crime? d) Mention any two preventative measures against virus attacks. e) What is Intellectual Property Rights (IPR)? a) Write a Python program to accept a
D = 1: "One", 2: "Two", 3: "Three" print(D.get(2)) D[4] = "Four" print(len(D))
| EmpNo | Name | Salary | Dept | |-------|------|--------|------| | 101 | Rahul | 50000 | HR | | 102 | Anjali | 45000 | IT | | 103 | Vikram | 60000 | IT | | 104 | Priya | 35000 | Sales | a) Write a Python program to create a
First, let us acknowledge its undeniable genius. The book’s architecture is a masterpiece of exam-oriented pedagogy . It takes a teenager who has never written a line of code and walks them, line by tedious line, through the labyrinth of Python. The chapters are predictable in the most comforting way: theory, syntax, solved examples, unsolved questions, and finally, the dreaded "Output Trivia."