These practice tests will cover the following syllabus.
Exam Pattern:
Number of Questions : 40
Duration : 45 Minutes
Questions Type: Multiple Choice, Multiple Selection
(1). Perform Operations using Data Types and Operators (20-25%)
1. Evaluate an expression to identify the datatype Python will assign to each variable
2. Identify str, int, float, and bool data types
3. Perform data and datatype operations
4. Convert from one datatype to another type; construct data structures; perform indexing and slicing operations
5. Determine the sequence of execution based on operator precedence
6. Assignment; Comparison; Logical; Arithmetic; Identity (is); Containment (in)
7. Select the appropriate operator to achieve the intended result
8. Assignment; Comparison; Logical; Arithmetic; Identity (is); Containment (in)
(2). Control Flow with Decisions and Loops (25-30%)
1. Construct and analyze code segments that use branching statements
2. if; elif; else; nested and compound conditional expressions
3. Construct and analyze code segments that perform iteration
4. while; for; break; continue; pass; nested loops and loops that include compound conditional expressions
(3). Perform Input and Output Operations (20-25%)
1. Construct and analyze code segments that perform file input and output operations
2. Open; close; read; write; append; check existence; delete; with statement
3. Construct and analyze code segments that perform console input and output operations
4. Read input from console; print formatted text; use of command line arguments
(4). Document and Structure Code (15-20%)
1. Document code segments using comments and documentation strings
2. Use indentation, white space, comments, and documentation strings; generate documentation by using pydoc
3. Construct and analyze code segments that include function definitions
4. Call signatures; default values; return; def; pass
(5). Perform Troubleshooting and Error Handling (5-10%)
1. Analyze, detect, and fix code segments that have errors
2. Syntax errors; logic errors; runtime errors
3. Analyze and construct code segments that handle exceptions
4. Try; except; else; finally; raise
(6). Perform Operations Using Modules and Tools (1-5%)
1. Perform basic operations using built-in modules
2. Math; datetime; io; sys; os; os.path; random
3. Solve complex computing problems by using built-in modules
4. Math; datetime; random