C++ & Java Programming Assessment for IT Students

Take programming assessments, receive feedback and track your progress.

Array RotationQuestion 3 of 10C++
Problem

Rotate an array of n integers to the left by k positions and print the result.

Sample
in:  5 2
     1 2 3 4 5
out: 3 4 5 1 2
main.cppC++
5void rotateLeft(vector<int>& a, int k) {
6    int n = a.size();
7    vector<int> b(n);
8    for (int i = 0; i < n; i++)
9        b[i] = a[(i + k) % n];
10    a = b;
11}
Sample tests: 3/3 passedRunSubmit

Assess

Take C++ and Java assessments

Review

See results and feedback

Track

Monitor your progress

Students working in an LCCM computer laboratory

About PATS

PATS is a programming assessment system designed for Information Technology students of La Consolacion College Manila.

C++ & JavaFor IT studentsResults & progress

What students can do

Take coding assessments

View results

See strengths

Find areas for improvement

Track progress

How PATS works

  1. 1

    Pre-Assessment

    The starting point of the semester.

  2. 2

    Weekly / Practice

    Ongoing monitoring. Not part of the official comparison.

    Ongoing monitoring
  3. 3

    Post-Assessment

    The end of the semester, compared with the Pre-Assessment.

  4. 4

    Results & Progress

    Strengths and areas for improvement after each assessment.

Clear results and feedback

After each assessment, see your tasks accepted, functional correctness, strengths, areas for improvement and a recommended review.

Assessment resultSample · C++
6 of 8tasks accepted
75%functional correctness
StrengthsArrays
Areas for improvementFunctions

Who uses PATS

Students

Take assessments and follow their progress.

Instructors

Create assessments and monitor their classes.

Program Chair

Oversees assessment coverage and progress, read-only.

IT Admin

Manages accounts, subjects, classes and enrollment.

Ready to access PATS?

Log in using your LCCM account.

Log in