Your school name
1st Year Computer Chapter 3 Test1st Year · Computer · Federal (FBISE)
Q1. Multiple choice questions (Attempt all · 10 × 1 = 10)
- In online IDEs, we can write and run out code without ________ in our computer.
- What will the following program do : for i in range (10,0,-1): print ('iteration no-',i)
- The input () function treats the entered data as a set of _______.
- Python was first introduced in _________.
- _______ provide basic variable types as str, integer, float, etc.
- '**' is used to represent __________.
- We can design 2D geometrical shapes in Python, using _________.
- If the program is unable to execute the next instruction, the program will reach the state of ________.
- Operator != is used for __________.
- A REPL means ____________.
Q2. Short questions (Attempt any 6 of 8 · 6 × 2 = 12)
- How do you swap values of two variables in Python using a temporary variable?
- What is a logical bug in programming?
- What are some basic functions available for lists in Python?
- How do you convert user input to an integer in Python?
- What is iteration in programming?
- What is operator precedence in Python?
- How does Python support machine learning and data analytics?
- How do you get the current date and time in Python?
Q3. Long questions (Attempt any 2 of 3 · 2 × 4 = 8)
- Explain the applications of python in different business and Technical domains.
- What are the basic functions that list provides. Elaborate each them with an example.
- Write a program for a Dice Rolling Race game for 2 players. Alternatively, generate a random number of each player. If the player rows out to be 6, then the player gets another. Rolls of every iteration is summed up to the previous rolls. The player who reaches 100 first, wins.