Karnataka KSEAB SSLC JTS Programming in ANSI C case studies
Karnataka KSEAB SSLC JTS Programming in ANSI C · Put your knowledge to work in context.
The Karnataka KSEAB SSLC Job Training Scheme (JTS) course in Programming in ANSI C is a vocational-skills subject offered alongside the SSLC curriculum by the Karnataka School Examination and Assessment Board. It suits students who want a practical, employable programming foundation rather than a purely theoretical computer-science paper: the syllabus starts from the C character set and tokens and builds steadily toward writing, compiling and debugging complete programs. The Karnataka KSEAB SSLC JTS Programming in ANSI C case studies are 5 cases and about 2,852 words.
1The Average That Came Out Wrong
At a school in Mysuru, a student is asked to write a C program that averages four integer test scores stored in an int array: 17, 23, 9 and 30. The student declares int sum, i; and float avg; adds the scores, then writes avg = sum / 4; and prints the result with printf("%f", avg).
624 words, about 3 min2The Menu That Never Exits
In a Belagavi classroom, a student builds a menu-driven calculator with a do-while loop. Options: 1 add, 2 subtract, 3 multiply, 4 quit.
517 words, about 3 min3The Name That Would Not Fit
A student in Hubballi is writing a program for a school fest registration desk that stores a participant's name in char name[10]; and then compares it with the string "KSEAB". The name typed at the keyboard is Rajarajeswari, which has 13 characters.
572 words, about 3 min4The Counter That Would Not Reset
In a Shivamogga classroom, a student writes a recursive function to add the digits of a number and a static variable to count how many times the function is called: int sumdig(int n) { static int calls = 0; calls++; if (n == 0) return 0; return n % 10 + sumdig(n / 10); } In main the student calls sumdig(472) and then sumdig(85), printing calls through a printf placed inside the function. The first call reports counts 1, 2, 3, 4; the second call continues from 5 instead of starting again.
584 words, about 3 min5The Last Record Printed Twice
A student in Mangaluru writes a program to store five student marks in a text file. Each record is written with fprintf(fp, "%d %s ", marks, name); and the file is opened with fopen("marks.txt", "w").
555 words, about 3 min