“Introduction to Computer and Programming concept”
Note : question serial no may be change
Assignment A
Question 1: Classify computer system according to capacity. How they are different from computers according to the classification of Technology. Provide comparative study also.
Question 2: Write the importance of operating system. Describe the working methodology of online and real time operating system with the help of example
Question 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.
Question 4: write a ‘c’ function to arrange the elements of an integer array in such a way that all the negative elements are before positive elements. The array is passed to it as an array.
Question 5: Write a ‘c’ function to generate the following figure for n=7.
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
- In General purpose OS user cannot change which state of the process.
Options: preemption
Sleep
Creation
Ready
- Which addressing schema is not common for 8085 and 8086.
Options: Register Addressing
Indexed Addressing
Register Indirect Addressing
Direct Addressing
3) A software that allows a personal computer to pretend it as a terminal is -
Options: Auto-dialing
Bulletin –board
Modem
Terminal emulation
4) Which one of the following always reside in the memory
Options: Linker
Loader
Compiler
All of the above
5) 8085 is -
Options: 16-bit
8 bit
32-bit
20 bit microprocessor
6) The process of loading the OS from secondary memory to primary memory is called as
Options: Bootstrap
Booting
Porting
Port process
7) Which of the following allows device on one network to communicate with device on another network
Options: Multiplexer
Gateway
T-switch
Modem
8) p++ executes faster than p+1 because
Options: p uses registers
p++ is a single instruction
++ is faster than +
None of these
9) main(){ int *p; p=(int *)malloc(-10);}
Options: Allocates 0 bytes
Allocates memory, if available
Compilation error
Runtime error
10) Which addressing schema is not common for 8085 and 8086.
Options: Register Addressing
Indexed Addressing
Register Indirect Addressing
Direct Addressing
11) The number of address lines require to address 4k of memory are -
Options: 11
12
14
16
12) Where is CMOS setup stored?
Options: Hard Disk
BIOS
CMOS RAM
MBR
13) main ( ){ char *a="Hello";*a++ = h ; printf("%s\n",a); }
Options: Hello
Ello
Runtime error
Compiler error
14) main() { for( printf("a") ; printf("b") ; printf("c") ) ; }
Options: abc
abcabcabc….infinite times
abcbcbcbc……infinite times
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 ………………….
Options: extern,local variable
static, global variable
Static , local variable
extern, global variable
16) Output of the printf("%-2.3f\n",17.23478) will be--
Options: 17.23478
17.235
17.2348
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
Options: 3
3.5
4
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));}
Options: Question not correct
19) The conversion characters for data input means that the data item is--
Options: An unsigned decimal integer
A short integer
A hexadecimal integer
A String followed by white space
20) What is max data capacity for optical fiber cable?
Options: 10 mbps
100 mbps
1000 mbps
10000 mbps
21) In C, a Union is--
Options: Memory location
Memory store
Memory screen
None of these
22) If you want to exchange two rows in a two dimensional array, the fastest way is to--
Options: If you want to exchange two rows in a dimentional array, the fastest way is to--
Exchange the address of each element in the two rows
Silence the address of the rows in an array of pointer and exchange the pointer
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?
Options: 27 29 54
25 27 52
27 28 53
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?
Options: 3
4
2
None of the above
25) Which of these is not a layer in OSI model?
Options: Aplication layer
Network layer
Internet Layer
Data Link layer
26) The part of machine level instruction, which tells the central processor what was to be done is--
Options: Operation code
Address
Operand
None of the above
27) Which of the following holds the ROM, CPU, RAM and expansion cards?
Options: Hard disk
Cache memory
Motherboard
None of the above
28) The term ‘baud’ is a measure of the--
Options: speed at which the data travel over the communication line
Memory capacity
Instruction execution time
All of the above
29) Subtracting (1010)2 from (1101)2 using 1st complement--
Options: 1100
0011
1001
0101
30) Using 2’s Complement, substraction, of (1010)2 from (0011)2 is--
Options: (0111)2
(1001)2
- (0111)2
- (1001)2
31) The chief reason why digital computers use complemented subtraction is that, it--
Options: Simplifies their circuitry
Is a very process
can handle negative no’s easily
Avoids direct substraction
32) In ______ OS, the response time is very critical.
Options: Multitasking
Batch
Online
Real time
33) The primary job of the operating system of a computer is to ________.
Options: Command Resources
Manage resources
Provide Utilities
Be user friendly
34) A program at the time of executing is called ________.
Options: Dynamic program
Static program
Binded Program p
A process
35) Multiprogramming systems ________.
Options: Are easier to develop than programming systems
Execute each job faster
Execute more job in same time
Are used only on large main frame computers
36) The number of processes completed per unit time is known as __________.
Options: Output
Throughput
Efficiency
Capacity
37) Which of the following allows devices on one network to communicate with devices on another network?
Options: Multiplexer
Gateway
t-switch
Modem
38) Which of the following memories needs refresh?
Options: SRAM
DRAM
ROM
All of above
39) FDDI is a--
Options: Ring network
Star network
Mesh network
Bus based network
40) What is the central device in star topology?
Options: STP server
HUB/switch
PDC
Router