Category Uncategorized

DATA AND FILE STRUCTURES

Question 1: a. Write algorithm for push and pop operations of a stack. Also write algorithm to check whether stack is empty or not. Answer: Here is an algorithm for push and pop operations of a stack: Here is an…

IGNOU Mcs-012 Dec-2022

Question 1: a. Perform the following computation using binary 2’s complement notation, assuming the register size to be of 8 bits. Also check for occurrence of overflow : i. – 63 + 74ii. – 128 + 39iii. + 86 +…

IGNOU Mcs-012 June-2021

Question 1: a. Perform the following computations using signed 1’s complement notation of length 8 bits. Also indicate overflow, if any : i. – 76 – 52ii. + 79 + 49iii. + 79 – 86 Answer: i. -76 in signed…

IGNOU Mcs-011 June

Question 1: a. Write an algorithm and draw a corresponding flow chart to check whether the given year is a leap year or not. Answer: Program b. Write a C function isodd(num) that accepts an integer argument and returns 1…