Amity Solution

MBA Assignments Solution

INR – 500/-only Pay Now

USD 10/- PayPal.Me/atozhomework

Q1. Classify computer systems according to capacity. How they are different from computers according to the classification of technology. Provide comparative study also.

Q2. Write the importance of operating system. Describe the working methodology of online and real-time operating system with the help of two examples of each.

Q3. Write a ‘C’ program to accept any 3 digit integer number from the keyboard and display the word equivalent representation of the given number.

Q4. Write a ‘C’ functions to arrange the elements of an integer array in such a way that all the negative elements are before the positive elements. The array is passed to it as an argument

Q5. Write a ‘C’ function to generate the following figure for n = 7.


1            3

1            3            5

1            3             5            7

1            3            5

1            3


The value of n is passed to the function as an argument. Print the triangle only if n is odd otherwise print an error message.


Assignment –B

Question 1: How is communication between computers established in Internet. What characteristics need to be defined in communication protocol? Explain the logical and physical path in computer communication network also.

Question 2: Define a structure to store roll no, name and marks of a student. Using the structure of above write a ‘c’ program to create a file student.dat. Accept the data from the user.

Question 3: Using the student.dat of above write a ‘c’ program to search for the details of the student whose name is entered by the user.


Assignment – C

QUESTION 1: Prior to using a pointer variable it should be

  1. declared
  2. initialized
  3. both declared and initialized
  4. none of these


QUESTION 2: For ‘C’ programming language

  1. constant expressions are evaluated at compile time
  2. string constants can be concatenated at compile time
  3. size of aray should be known at compile time
  4. all of these


QUESTION 3: “What does the “”auto”” specifier do?”

  1. It automatically initializes a variable to 0;.
  2. It indicates that a variable’s memory will automatically be preserved.
  3. It automatically increments the variable when used
  4. It indicates that a variable’s memory space is allocated upon entry into the block.


QUESTION 4: Which of the following is the 1’s complement of 10?

  1. 1
  2. 110
  3. 0
  4. 11


QUESTION 5: Which of the following special symbol allowed in a variable name?

  1. * (asterisk)
  2. | (pipeline)
  3. – (hyphen)
  4. _ (underscore)


QUESTION 6: What will you do to treat the constant 3.14 as a float?

  1. use float(3.14f)
  2. use 3.14f
  3. use f(3.14)
  4. use (f)(3.14)


QUESTION 7: Which of the following cannot be checked in a switch-case statement?

  1. Character
  2. interger
  3. float
  4. enum


QUESTION 8: Which file executed commands in DOS



QUESTION 9: What is the purpose of fflush() function.

  1. flushes all streams and specified streams
  2. flushes only specified stream
  3. flushes input/output buffer.
  4. flushes file buffer.


QUESTION 10: Which two commands enable you to move between directories

  1. CD
  2. CHDIR
  3. MOVE


QUESTION 11: For the conversion of a integer decimal number to its binary equivalent we need to divide that number by ________

  1. 10

2[b. Ans]

  1. 8
  2. 4


QUESTION 12: “For a loop in a C program ,if the condition is missing”

  1. it is assumed to be present and taken to be false
  2. it is assumed to be present and taken to be true
  3. it result in a syntax error
  4. execution will be terminated abruptly


QUESTION 13: “A computer cannot “”boot”” if it does not have the”

  1. compiler
  2. loader
  3. assembler
  4. Operating System


QUESTION 14: Accessing records from a file directly without searching from the beginning of the file is

  1. Random Access
  2. Direct Access
  3. High Access
  4. Sharing


QUESTION 15: Memories in which any location can be reached in a fixed (and short) amount of time after specifying its address is called

  1. sequential-access memory
  2. secondary memory
  3. random-access memory
  4. mass storage


QUESTION 16: Which of the following statement is (are) correct?

  1. enum variables can be assigned new values
  2. enum variables can be compared
  3. enumeration feature does not increase the power of C
  4. all of these


QUESTION 17: What does the disk drive of a computer do?

  1. Rotate the disk
  2. Read the disk
  3. Load a program from the disk into the memory
  4. Both b and c


QUESTION 18: Definition of pointer is

  1. A keyword used to create variables
  2. A variable that stores address of an instruction
  3. A variable that stores address of other variable
  4. A constant


QUESTION 19: Function putchar() displays

  1. one word at a time on the screen
  2. one character at a time
  3. result on the screen
  4. None of the above


QUESTION 20: int y[4] = {6, 7, 8, 9};

int *ptr = y + 2;printf(“%d\n”, ptr[ 1 ] );

What is printed when the sample code above is executed?

  1. 6
  2. 7
  3. 8
  4. 9


QUESTION 21: What is the BCD code for binary number (10111).

  1. 0010 0011
  2. 0011 1000
  3. 111111
  4. 100101


QUESTION 22: “The declaration “”unsigned u”” indicates u is a/an”

  1. unsigned character
  2. unsigned integer
  3. character
  4. none of these


QUESTION 23: How many digits are required for a Decimal number system?

  1. 7
  2. 8
  3. 9
  4. 10


QUESTION 24: The libraray function exit() causes an exit from

  1. the loop in which it occurs
  2. the block in which it occurs
  3. the function in which it occurs
  4. This function causes immediate termination of the entire program


QUESTION 25: Which of the following is an application software?

  1. MS-Office
  2. Unix
  3. Linux
  4. Solar


QUESTION 26: The brain of any computer system is

  1. ALU
  2. CPU
  3. Memory
  4. Control Unit


QUESTION 27: “According to the Standard C specification, what are the respective minimum sizes (in bytes) of the following three data types: short; int; and long?”

  1. “1, 2, 2”

“b. 1, 2, 4”

“c. 1, 2, 8”

“d. 2, 2, 4”


QUESTION 28: It is necessary to declare the type of a function in the calling program if the function

  1. returns an integer
  2. returns non-integer value
  3. is not defined in the same file
  4. none of these


QUESTION 29: The sqrt() function is available on

  1. conio.h
  2. string.h
  3. math.h
  4. graphic.h


QUESTION 30: How is a variable accessed from another file?

  1. The global variable is referenced via the extern specifier
  2. The global variable is referenced via the auto specifier.
  3. The global variable is referenced via the global specifier.
  4. The global variable is referenced via the pointer specifier.


QUESTION 31: A computer program that instructs other programs to perform a particular type of operation is

  1. System Software
  2. Application Software
  3. Compiler
  4. Interpreter


QUESTION 32: “Which of the following are unary operators in C? !, sizeof, ~, &&”

  1. “!, sizeof”
  2. “!, ~”
  3. “sizeof, &&”
  4. “!, sizeof, ~”


QUESTION 33: Integer division in a ‘C’ program results in

  1. truncation
  2. rounding
  3. overflow
  4. none of these


QUESTION 34: Default initial value of static is

  1. garbage
  2. 0
  3. 1
  4. 2


QUESTION 35: Which one of the following provides conceptual support for function calls?

  1. The system stack
  2. The data segment
  3. The processor’s registers
  4. The heap


QUESTION 36: The value of an automatic variable that is declared but not initialized will be

  1. 0
  2. 1
  3. garbage
  4. none of these


QUESTION 37: “A “”switch”” statement is used to”

  1. switch between fuctions in a program
  2. switch from one variable to another variable
  3. to choose from multiple possiblities which may arise due to different values of a single variable
  4. to use switch variables


QUESTION 38: What is the decimal equivalent of the binary number (11111)

  1. 27
  2. 29
  3. 31
  4. 33


QUESTION 39: The getch() library function returns

  1. a character when any key is pressed
  2. a character when enter is pressed
  3. and displays a character on the screen when any key is pressed
  4. none of these


QUESTION 40: “What is the similarity between a structure, union and enumeration?”

  1. All of them let you define new values
  2. All of them let you define new data types
  3. All of them let you define new pointers
  4. All of them let you define new structures