Grout

Coding

SPPU Computer Engineering labs: how to practise

Practise SPPU computer engineering lab programs with test cases, your own code and an aloud explanation, for semesters 3 to 6 on the 2024 pattern.

AM

Anish Menon · CEO & Founder, Grout

· 6 min read

GroutCode AI Practicals with a lab exercise beside the code editor, beside the title "SPPU Computer Engineering labs: how to practise"

The most reliable way to practise SPPU computer engineering lab programs is the same for every course: read the problem, write your test cases on paper, code it yourself, run it, then explain it aloud as if to an examiner. This guide gives that routine for the semester 3 to 6 labs on the 2024 pattern, and shows where GroutCode can take the place of an empty editor and no feedback.

Which labs this covers

The guide is written for B.E. Computer Engineering students at Savitribai Phule Pune University on the 2024 pattern (NEP 2020). The lab courses it deals with are:

  • PCC204COM Data Structures Laboratory (semester 3)
  • PCC205COM Object Oriented Programming and Computer Graphics Laboratory (semester 3)
  • PCC254COM Database Management Laboratory (semester 4)
  • PCC304COM Artificial Intelligence Laboratory (semester 5)
  • The Elective III laboratories (semester 6)

GroutCode has 29 lessons for these labs, written in Python, C, Java and SQL. That is not every assignment on your list. Colleges choose and order their own assignments, and the scheme year can change what is set, so take the lab list your department gave you as the real one and check your scheme year with your lab teacher.

GroutCode home screen asking what you want to build, with recent projects below
The GroutCode home screen.

SPPU computer engineering lab programs: preparing each assignment

Lab work often goes wrong when you start at the keyboard. A fixed order of work fixes that, and it takes about the same time as flailing does.

  1. Rewrite the problem in one sentence: what goes in, what must come out.
  2. Write four or five test cases on paper before any code. Include an empty input, a single item, duplicates and the largest case you can reasonably run.
  3. Draw the structure. For Data Structures that is boxes and arrows. For OOP it is a class diagram. For Database it is tables with a few sample rows. For the AI lab it is states, actions and the goal.
  4. Write the smallest piece that runs, then grow it.
  5. Run your test cases. When one fails, write down why before you change anything.
  6. Write the journal entry the same day, while you still remember the bugs.

Take a linked-list stack as an example. Your paper tests might be: push onto an empty stack, pop from an empty stack, push three items and pop them in reverse order, and check the top without removing it. Written before coding, these four lines tell you which function you need and what each must do when the stack is empty. That edge case is worth being able to explain aloud.

For the Database lab, add one more habit: predict the result of each query on your sample rows before you run it. If your prediction and the result differ, you have found something you do not yet understand. For the AI lab, trace one step of the algorithm by hand on a tiny input before you write it.

Keeping the journal

Your lab teacher's format decides the headings, so follow it exactly. Beyond the format, a good journal has the same few qualities regardless of department.

Write the aim and the algorithm in your own words. Paste the code you actually ran, and take the output from your own run, never from a friend's file. Add two or three lines on a bug you hit and what caused it, because that is what you will reach for when someone asks you a question in the oral. If your college requires a particular layout, a signature date or a file naming scheme, ask the teacher in the first week rather than the night before submission.

Practising with GroutCode

GroutCode is a desktop app for Windows and macOS with a lab-practice section. You can pick your syllabus on the SPPU practicals page, and the wider AI Practicals collection covers other universities and school boards. A Grout account is required, and signing in and activating the licence need an internet connection.

GroutCode AI Practicals syllabus picker listing universities and school boards, with a C lesson open
Choosing a university or board syllabus in GroutCode.

Each lesson gives you a starter file with function signatures and TODO markers. You write the code. A real compiler or interpreter on your own machine builds and tests it, and every step has tests that fail on the untouched starter, so a step only passes once you have written it. The AI reviews your work after the tests have run. It does not write the program for you.

You need the toolchain for the language installed, such as a C compiler, a JDK, Python or a SQL engine. GroutCode reports what is missing, so you do not have to find out in the middle of a lesson. The point of the arrangement is that the tests behave like a patient senior who checks your work against the cases you should have thought of. Use them after you have written your own paper tests, not instead of them. The GroutCode page describes the rest of the app, including the coding agent, which you should leave alone while you are practising a lab you will be examined on.

A seven-day plan before the practical

This schedule assumes one practical a week and about an hour a day. Adjust it to your timetable.

DayTimeTask
145 minutesRead the assignment, write the one-sentence problem and the paper test cases
260 minutesDraw the structure or schema, write the first working piece
360 minutesFinish the program and run all your test cases
430 minutesWrite the journal entry, including one bug and its cause
545 minutesRewrite the program from a blank file without looking at the old one
630 minutesExplain it aloud for two minutes, then answer five questions you set yourself
7Rest or catch-upRevisit the one thing that still feels shaky

Day 5 does most of the work. If you cannot rebuild a program from a blank file, you are not ready to build it in front of an examiner.

Getting ready for the oral

It helps to prepare around your own code, since questions in an oral may well follow the program you wrote. For each program, be able to say why you chose this structure or query, what its time cost is in plain terms, what happens on empty input, and what you would change if the requirement shifted slightly. Practise answering aloud; reading silently gives a false sense of readiness.

Ask a classmate to point at any line in your journal and ask what it does. If you hesitate, that line is where to spend the next ten minutes. How the practical and oral are conducted and marked is set by the university and your college, so ask your lab teacher rather than trusting a senior's memory of last year.

What this will not do

Tests check that your program behaves correctly on the cases they contain. They do not check that you understand it, and they cannot rehearse an oral for you. A passing step with an explanation you cannot give is a weak result.

The 29 lessons will not match your college's list one for one, and the AI's review is advice, not an examiner's view. A local or cloud model can also be wrong in its comments, so check any claim it makes against your textbook or your lab teacher. For anything about how your department runs the practical, your teacher is the better source.

Pick the assignment you have next week, write its test cases on paper tonight, and only then open an editor.

Try the studio behind the articles

Grout is a free, offline AI learning studio for Windows and macOS. No per-prompt cost.

Download Grout free