Professional Documents
Culture Documents
Lab Syllabus Int Ext
Lab Syllabus Int Ext
Lab Syllabus Int Ext
Semester: I L T P C
Course code: 231ES1L04 0 0 3 1.5
Course Objectives:
• To provide hands on experience with coding and debugging.
• To encourage collaborative learning and teamwork in coding.
Course Outcomes (COs): At the end of the course, the student will be able to:
20
ACETR23 Computer Science & Engineering
Exercise — 5 : Loops
a. “for” Loop in C.
Objective: Learn the usage of the for loop.
https://www.hackerrank.com/challenges/for-loop-in-c/problem?isFullScreen=true
b. Sum of the digits of a 5-digit number.
Objective: Learn the usage of while loop and usage of operators - % and /.
https://www.hackerrank.com/challen•qes/sum-of-dip•its-of-a-five-digit-
number/prob1em?isFullScreenmrue
c. Given number is a prime or not. (Also Prime numbers between a given ranp•e.)
d. Armstrong Number or not.
e. Palindrome or not.
f. Printing patterns using Loops.
Objective: Print a pattern of numbers.
https://www.hackerrank.com/challen•qes/printing-pattem-
2/problem?isFu1lScreen=true
g. Construct a Pascal triangle
6. Exercise — 6 : Arrays
a. One dimensional Arrays in C
Objective: Print the sum and free the memory where the array is stored.
https://www.hackerrank.com/challenges/1d-arravs-in-c/problem?isFu11Screen=true
b. Array reversal
Objective: Working with indices in array
https://www.hackerrank.com/challenges/reverse-arrav-c/problem?isFu1lScreen=true
c. Search an e lement in array (Linear Search)
d. Find min and max elements in array
8. Exercise — 8 : Strings
a. Printing Tokens
Objective: print each word of the sentence in a new line
https://www.hackerrank.com/challenges/printing-tokens-
/probIem?isFutlScreen1rue
b. Count number of alphabets (lowercase, uppercase, consonants, vowels) and digits
c. Lowercase to Uppercase, Uppercase to Lowercase, Toggle case, Sententia[ case
d. Digit Frequency
Objective: find the frequency of each digit in the given string.
https://www.hackerrank.com/challenges/frequency-of-di9its-
l/problem?isFullScreen=true
e. Find string length, concatenate two strings, reverse a string using built-in and without
built-in string functions.
Text Books:
l. Programming for problem solving using C Behrouz A.Forouzan. Richard F.Gilberg.
2. Programming in C, Rema Theraja, Oxford, 2016, 2nd edition.
3. Unix Shell Programming, Kanetkar Yeshvant P, BPB Publications.