gave me all answers in sections wise
Shared by a Veda learner ¡ Generated with Veda AI
What you'll study, topic by topic
gave me all answers in sections wise
This exam covers fundamental concepts of Python programming including variables, data types, control structures, and functions. Key topics include the use of operators, loops, and conditionals, as well as data structures...
Sample questions with model answers
Every question in the paper gets a full exam-length answer in the app â organised by marks, the way a topper writes it.
Write a Python program to print all prime numbers between 1 and 50 using a for loop, and explain the logic step by step.
Show answer outline
Program: for num in range(2, 51): if all(num % i != 0 for i in range(2, int(num**0.5)+1)): print(num); Logic: check divisibility.
The full exam-length answer is in the app.
Explain the logical operators (and, or, not) in Python with suitable examples. Also write a Python program to check whether a person is eligible to vote, given their age and citizenship status, using logical operators.
Show answer outline
Operators: 'and': both true, 'or': at least one true, 'not': negates. Program: if age >= 18 and citizenship == 'Yes': print('Eligible') ...
The full exam-length answer is in the app.
Write a Python program to accept a string from the user and use a for loop to count and display the number of vowels, consonants, digits and spaces present in it. Also explain the logic used.
Show answer outline
Program: for char in string: if char in 'aeiou': count_vowels += 1; Logic: check each character type.
The full exam-length answer is in the app.
Explain lists and dictionaries in Python with suitable examples. Also write a Python program to create a dictionary containing student names and marks, and display the names of students who scored more than 60 marks.
Show answer outline
Lists: ordered, e.g., [1, 2]; Dictionaries: key-value, e.g., {'Alice': 70}; Program: for name, mark in dict.items(): if mark > 60: print(name) ...
The full exam-length answer is in the app.
Study it properly â free, in the app
The full Veda Bites deck, complete notes, spaced-repetition flashcards, leveled MCQs, tests and games for this kit â plus Daily Facts and the Arena, every day.