Introduction to Computers and Programming Concept V1

Contact solvedcare.com for best and lowest cost solution or email solvedhub.gmail.com

Introduction to Computers and Programming Concept V1
(MCA)

Assignment A
Marks 10
Answer all questions.

 

1. Classify computer systems according to capacity. How they are different from computers according to the classification of technology. Provide comparative study also.
2. 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.
3. Write a ‘C’ program to accept any 3 digit integer number from the keyboard and display the word equivalent representation of the given number.

4. 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.

5. Write a ‘C’ function to generate the following figure for n = 7.
1
1 3
1 3 5
1 3 5 7
1 3 5
1 3
1
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.

 
Introduction to Computers and Programming Concept
(MCA)

Assignment B
Marks 10
Answer all questions.

 

1. Describe the various ways of floating point representation in memory. What is the importance of normalizing the mantissa in this representation? Explain it by example(s)?

2. a ) Define a structure to store roll no, name and marks of a student.

b) Using the structure of Q2. a), above write a ‘C’ program to create a file “student.dat”. There must be one record for every student in the file. Accept the data from the user.

c) Using the “student.dat” of Q2. b), above write a ‘C’ program to search for the details of the student whose name is entered by the user.
3. How is communication between computers established in Internet. What characteristics need to be defined in a communication protocol? Explain the physical and logical paths in a computer communication network also.

Introduction to Computers and Programming Concept
(MCA)

Assignment A
Marks 10
Answer all questions.
Tick Mark (√) the most appropriate answer.

 

1. In General purpose OS user cannot change which state of process?
a) preemption
b) sleep
c) creation
d) ready

2. Which addressing scheme is not common for 8085 & 8086 ?
a) Register addressing
b) Indexed addressing
c) Register indirect addressing
d) Direct addressing

3. A software that allows a personal computer to pretend is as a terminal is–
a) auto-dialing
b) bulletin-board
c) modem
d) terminal emulation

4. Which one of the following always resides in the memory?
a) Linker
b) Loader
c) Compiler
d) All of the Above

5. 8085 is —
a) 16-bit
b) 8-bit
c) 32-bit
d) 20-bit microprocessor.

6. The process of loading the operating system from the secondary memory to primary memory is called as-
a) Bootstrap
b) Booting
c) Porting
d) Port process

7. Which of the following allows devices on one network to communicate with devices on another network?
a) Multiplexer
b) Gateway
c) t-switch
d) Modem

8. p++ executes faster than p+1 because–
a) p uses registers
b) p++ is a single instruction
c) ++ is faster than +
d) None of these

9. main()
{
int *p ;
p=(int *)malloc(-10);
}

a) Allocates 0 bytes
b) Allocates memory, if available
c) Compilation error
d) Runtime error

10. Which addressing scheme is not common for 8085 & 8086?
a) Register addressing
b) Indexed addressing
c) Register Indirect addressing
d) Direct addressing.

11. The number of address lines required to address 4k of memory are–
a) 11
b) 12
c) 14
d) 16

12. Where is CMOS setup stored?
a) Hard Disk
b) BIOS
c) CMOS RAM
d) MBR.

13. main ( )
{
char *a=”Hello”;
*a++ = h ;
printf(“%sn”,a);
}

a) hello
b) ello
c) runtime error
d) compiler error

14. main()
{
for( printf(“a”) ; printf(“b”) ; printf(“c”) ) ;
}

a) abc
b) abc abc abc …..(infinite times)
c) a bc bc bc ….(infinite times)
d) Error

15. The ……………….variable is not destroyed on exit from the function; instead its value is presented and becomes available again, when the function is next called. These variables are declared as ………………….
a) extern, local variable
b) Static, global variable
c) Static, local variable
d) Exten, global variable

16. Output of the printf(“%-2.3fn”,17.23478) will be–
a) 17.23478
b) 17.235
c) 17.2348
d) 17.23

17. Suppose that ‘i’ is an integer variable whose value is 7 and ‘f ‘is floating point variable whose value is 8.5. Evaluate the expression: ( i + f)%4
a) 3
b) 3.5
c) 4
d) Invalid

18. What will be the output of the following?
#include<stdio.h>
main ( )
{
int *i, *j, a=12, b=2,c;
c = (a=a+b, b=a/b, a=a*b, b=a-b);
i = &c;
printf(“%d”,–(*i));
}

a) 93
b) 92
c) 91
d) 90

19. The conversion characters for data input means that the data item is–
a) An unsigned decimal integer
b) A short integer
c) A hexadecimal integer
d) A string followed by white space

20. What is max data capacity for optical fiber cable?
a) 10 mbps
b) 100 mbps
c) 1000 mbps
d) 10000 mbps

21. In C, a Union is–
a) Memory location
b) Memory store
c) Memory screen
d) None of these

22. If you want to exchange two rows in a two dimensional array, the fastest way is to–
a) Exchange the elements of the 2rows
b) Exchange the address of each element in the two rows]
c) Silence the address of the rows in an array of pointer and exchange the pointer
d) None of these.

23. Study the following C program.
#include <stdio.h>
int arr[]={1,2,3, 4}
main()
{
int a, *ptr, b,c;
a=51%26;
ptr=&a;
a+=2;
b=arr[1]+a;
c=*ptr+b;
printf(“%d %d %d”,a,b,c);
}
What will be the value of n after the execution of the above program?
a) 27 29 54
b) 25 27 52
c) 27 28 53
d) 27 29 56

24. Study the following C program.
#include <stdio.h>
main()
{
int i, n=2;
for(i=0;i<2;i++)
{
if(!(i<=n)&&(++n==i))
n=n+2;
else
n=n-2;
}
}
What will be the value of n after the execution of the above program?
a) 3
b) 4
c) 2
d) None of the above

25. Which of these is not a layer in OSI model?
a) Application layer
b) Network Layer
c) Internet Layer
d) Data Link Layer

26. The part of machine level instruction, which tells the central processor what was to be done is–

a) Operation code
b) Address
c) Operand
d) None of the above

27. Which of the following holds the ROM, CPU, RAM and expansion cards?
a) Hard disk
b) Cache memory
c) Mother board
d) None of the above

28. The term ‘baud’ is a measure of the–
a) Speed at which data travels over the communication line
b) Memory capacity
c) Instruction execution time
d) All of the above

29. Subtracting (1010)2 from (1101)2 using 1st complement–
a) (1100)2
b) (0011)2
c) (1001)2
d) (0101)2

30. Using 2’s Complement, substraction, of (1010)2 from (0011)2 is–
a) (0111)2
b) (1001)2
c) – (0111)2
d) – (1001)2

31 The chief reason why digital computers use complemented subtraction is that, it–
a) Simplifies their circuitry
b) Is a very simple process
c) Can handle negative numbers easily
d) Avoids direct substraction

32. In ______ OS, the response time is very critical.
a) Multitasking
b) Batch
c) Online
d) Real-time

33. The primary job of the operating system of a computer is to ________.
a) Command Resources
b) Manage Resources
c) Provide Utilities
d) Be user friendly

34. A program at the time of executing is called ________.
a) Dynamic program
b) Static program
c) Binded Program p
d) A Process

35. Multiprogramming systems ________.
a) Are easier to develop than single programming systems
b) Execute each job faster
c) Execute more jobs in the same time
d) Are used only on large main frame computers

36. The number of processes completed per unit time is known as __________.
a) Output
b) Throughput
c) Efficiency
d) Capacity

37. Which of the following allows devices on one network to communicate with devices on another network?
a) Multiplexer
b) Gateway
c) t-switch
d) Modem

38. Which of the following memories needs refresh?
a) SRAM
b) DRAM
c) ROM
d) All of above

39. FDDI is a–
a) Ring network
b) Star network
c) Mesh network
d) Bus based network

40. What is the central device in star topology?
a) STP server
b) Hub/switch
c) PDC
d) Router

 

 

Contact solvedcare.com for best and lowest cost solution or email solvedhub.gmail.com

Comments are closed.