0% found this document useful (0 votes)
2 views3 pages

Python Scripting Languages Exam Guide

The document outlines the predicted question paper for the CST 3rd Semester Scripting Languages (Python) course, detailing key topics and probable questions. It is divided into three sections: objective questions, short answer questions, and long answer questions, covering various aspects of Python including data types, functions, file handling, control flow, and Django. Each section includes specific questions that assess understanding of Python programming concepts and practices.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views3 pages

Python Scripting Languages Exam Guide

The document outlines the predicted question paper for the CST 3rd Semester Scripting Languages (Python) course, detailing key topics and probable questions. It is divided into three sections: objective questions, short answer questions, and long answer questions, covering various aspects of Python including data types, functions, file handling, control flow, and Django. Each section includes specific questions that assess understanding of Python programming concepts and practices.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Predicted Question Paper with Topics

CST 3rd Semester – Scripting Languages (Python)


Paper Code: 307/2(N)

Section 1: Topics & Probable Questions


Python Basics & Features
• Key features of Python
• Interpreted vs Compiled language
• PEP 8 guidelines

Data Types & Variables


• Basic data types in Python with examples
• Difference between List and Tuple
• Difference between Python arrays and lists
• Variable swapping (a, b = b, a)

Operators & Expressions


• Membership operators (in, not in)
• Difference between continue and break
• Bitwise operators (<<, >>, |, &)
• Ternary operator usage (x if cond else y)

Strings
• find() and capitalize() functions
• Program to calculate length of a string
• Program to check palindrome

Functions
• Lambda (anonymous) functions
• Iterators in Python
• Recursive function for factorial

File Handling
• Input and output files in Python
• open(), close(), read(), write() functions
• Purpose of isatty()
• File access modes (r, w, rb, wb)

Control Flow & Loops


• Types of loops with examples
• Program to print multiplication table (1–10)
• Program for factorial using loops

Modules & Packages


• Difference between module and package
• Is pandas a module or package?
• Use of import

Python Environment
• PYTHONPATH environment variable
• Checking Python version with [Link]
• DRY Principle (Don’t Repeat Yourself)

Django & Web Framework


• Django design pattern (MVC/MVT)
• Static file handling in Django templates
• Django vs Flask

Section 2: Predicted Question Paper


Group A – Objective Questions (1×10=10)
1 Which one of the following is not a keyword in Python?
2 What is the default access mode in file handling?
3 Which function is called an anonymous function?
4 What will be the output of round(4.576)?
5 Which operator is used for floor division?
6 Which of the following is a tuple? {1,2,3}, [1,2,3], (1,2,3), {}
7 What does DRY principle stand for?
8 Which function gives the Python version?
9 Which statement is used to terminate a loop?
10 Django follows which design pattern?

Group B – Short Answer Questions (2×6=12)


1 What is slicing in Python?
2 Differentiate between continue and break statement.
3 What are membership operators in Python?
4 Differentiate between globals() and locals().
5 Give two differences between Python lists and arrays.
6 What are Python iterators?
7 How to generate random numbers in Python?
8 Explain the find() and capitalize() string functions.
9 What is the purpose of the PYTHONPATH environment variable?
10 Differentiate between Django and Flask.

Group C – Long Answer Questions (6×3=18)


1 Explain the basic data types in Python with examples.
2 Differentiate between List and Tuple in Python. What are their features?
3 Explain the types of loops in Python with suitable examples.
4 What are input and output files? Explain file handling with examples.
5 What is the difference between module and package? Is pandas a module or package?
6 Write a Python program to check whether a number is a palindrome or not.
7 Write a Python program to calculate the factorial of a number.
8 Write a Python program to print the multiplication table from 1 to 10.
9 Explain Django’s static file handling with an example.

You might also like