CA2019Proposed solution included

CEC 226 Script Language CA 2019

About this paper

CEC 226: Quiz Number Two (15 marks), 2019, University of Buea: Introduction to Programming Using Python -- 10 items on string reversal/slicing, the count method, tuple vs list, sort/sorted, and short code-trace/debugging questions. Catch Up Continuous Assessment, 2019, University of Buea: choose-3-of-5 exercises covering a buggy while-loop, a divisibility algorithm, algorithm vs program definitions, a capitals dictionary, and a flow-of-control trace. Continuous Assignment Number One, 2019, University of Buea: 12 code-output questions on list indexing/slicing, function calls, list comprehensions, nested loops, string reversal, and list aliasing/mutation. One MCQ item (12) is flagged as flawed: none of its printed options match the computed answer.

Open in Shoracy

Opens this paper in the app on your phone.

University of Buea

College of Technology - COT

Computer Engineering - CET

CEC2262019

Script Language

CA · Second Semester · Level 200

From this paper

  1. 4.

    Given the string 'abcdefghi', write a single line of code that will print the following (Hint: slicing is your friend): (1.5 marks) (a) 'ihgfedcba' (b) 'adgi' (c) 'igeca'

  2. 6.

    What differentiates a tuple from a list? Be specific. (1 mark)

Open in the app to read the full paper and its proposed solution.

View solutionOpen in Shoracy

At a glance

Course code
CEC226 (CEC 226)
Type
CA
Year
2019
Level
Level 200
Semester
Second Semester
Proposed solution
Included

Read CEC226 2019 in Shoracy.

  • Every page, with zoom for diagrams and small print
  • The proposed solution, one tap away
  • Stays on your phone after the first open, even offline
Open in Shoracy