Introduction to Computer and Programming concept Set 2

Online MCQ Assignment Answer

QN1: In General purpose OS user cannot change which state of the process.

1. preemption

2. Sleep

3. Creation

4. Ready

Answer

Answer: preemption

QN2: Which addressing schema is not common for 8085 and 8086.

1. Register Addressing

2. Indexed Addressing

3. Register Indirect Addressing

4. Direct Addressing

Answer

Answer: Indexed Addressing

QN3: A software that allows a personal computer to pretend it as a terminal is –

1. Auto-dialing

2. Bulletin -board

3. Modem

4. Terminal emulation

Answer

Answer: Terminal emulation

QN4: Which one of the following always reside in the memory

1. Linker

2. Loader

3. Compiler

4. All of the above

Answer

Answer: All of the above

QN5: 8085 is –

1. 16-bit

2. 8 bit

3. 32-bit

4. 20 bit microprocessor

Answer

Answer: 8 bit

QN6: The process of loading the OS from secondary memory to primary memory is called as

1. Bootstrap

2. Booting

3. Porting

4. Port process

Answer

Answer: Booting

QN7: Which of the following allows device on one network to communicate with device on another network

1. Multiplexer

2. Gateway

3. T-switch

4. Modem

Answer

Answer: Gateway

QN8: p++ executes faster than p+1 because

Options

1. :p uses registers

2. p++is a single instruction

3. ++is faster than +

4. None of these

Answer

Answer: p uses registers

QN9: main(){int *p; p=(int *)malloc(-10);}

1. Allocates 0 bytes

2. Allocates memory, if available

3. Compilation error

4. Runtime error

Answer

Answer: Compilation error

QN10: Which addressing schema is not common for 8085 and 8086.

1. Register Addressing

2. IndexedAddressing

3. Register Indirect Addressing

4. Direct Addressing

Answer

Answer: IndexedAddressing

QN11: The number of address lines require to address 4k of memory are –

1. 11

2. 12

3. 14

4. 16

Answer

Answer: 12

QN12: Where is CMOS setup stored?

1. Hard Disk

2. BIOS

3. CMOS RAM

4. MBR

Answer

Answer: CMOS RAM

QN13: main ( ){ char *a=”Hello”;*a++ = h ; printf(“%s “,a); }

1. Hello

2. Ello

3. Runtime error

4. Compiler error

Answer

Answer: Compiler error

QN14: main() { for( printf(“a”) ; printf(“b”) ; printf(“c”) ) ; }

Options

1. :abc

2. abcabcabc…infinite times

3. abcbcbcbc…infinite times

4. Error

Answer

Answer: abcbcbcbc…infinite times

QN15: 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 …

1. extern, local variable

2. static, global variable

3. Static, local variable

4. extern, global variable

Answer

Answer: Static, local variable

QN16: Output of the printf(“%-2.3f “,17.23478) will be–

17. 23478

18. 235

19. 2348

20. 23

Answer

Answer: 17.235

QN17: 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

1. 3

2. 5

3. 4

4. Invalid

Answer

Answer: 3.5

QN18: 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));}

Answer

Answer: Options:Question not correct

QN19: The conversion characters for data input means that the data item is–

1. An unsigned decimal integer

2. A short integer

3. A hexadecimal integer

4. A String followed by white space

Answer

Answer: A short integer

QN20: What is max data capacity for optical fiber cable?

1. 10 mbps

2. 100 mbps

3. 1000 mbps

4. 10000 mbps

Answer

Answer: 1000 mbps

QN21: In C, a Union is–

1. Memory location

2. Memory store

3. Memory screen

4. None of these

Answer

Answer: None of these

QN22: If you want to exchange two rows in a two dimensional array, the fastest way is to–

1. If you want to exchange two rows in a dimentional array, the fastest way is to–

2. Exchange the address of each element in the two rows

3. Silence the address of the rows in an array of pointer and exchange the pointer

4. None of these

Answer

Answer: Exchange the address of each element in the two rows

QN23: Study the following C program.

#include
<stdio.h>

intarr[]={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?

1. 27 29 54

2. 25 27 52

3. 27 28 53

4. 27 29 56

Answer

Answer: 25 27 52

QN24: Study the following C program.

#include
<stdio.h>

main(){inti, 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?

1. 3

2. 4

3. 2

4. None of the above

Answer

Answer: 3

QN25: Which of these is not a layer in OSI model?

1. Aplication layer

2. Network layer

3. Internet Layer

4. Data Link layer

Answer

Answer: Internet Layer

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

Options

1. :Operation code

2. Address

3. Operand

4. None of the above

Answer

Answer: Operation code

QN27: Which of the following holds the ROM, CPU, RAM and expansion cards?

1. Hard disk

2. Cache memory

3. Motherboard

4. None of the above

Answer

Answer: Motherboard

QN28: The term ‘baud’ is a measure of the–

1. speed at which the data travel over the communication line

2. Memory capacity

3. Instruction execution time

4. All of the above

Answer

Answer: speed at which the data travel over the communication line

QN29: Subtracting (1010)2 from (1101)2 using 1st complement–

1. 1100

2. 0011

3. 1001

4. 0101

Answer

Answer: 0011

QN30: Using 2’s Complement, substraction, of (1010)2 from (0011)2 is–

1. (0111)2

2. (1001)2

3. (0111)2

4. (1001)2

Answer

Answer: (1001)2

QN31: The chief reason why digital computers use complemented subtraction is that, it–

1. Simplifies their circuitry

2. Is a very process

3. can handle negative no’s easily

4. Avoids direct subtraction

Answer

Answer: can handle negative no’s easily

QN32: In ___ OS, the response time is very critical.

Options

1. :Multitasking

2. Batch

3. Online

4. Real time

Answer

Answer: Real time

QN33: The primary job of the operating system of a computer is to ___.

1. Command Resources

2. Manage resources

3. Provide Utilities

4. Be user friendly

Answer

Answer: Manage resources

QN34: A program at the time of executing is called ___.

1. Dynamic program

2. Static program

3. Binded Program p

4. A process

Answer

Answer: A process

QN35: Multiprogramming systems ___.

1. Are easier to develop than programming systems

2. Execute each job faster

3. Execute more job in same time

4. Are used only on large main frame computers

Answer

Answer: Execute more job in same time

QN36: The number of processes completed per unit time is known as ___.

1. Output

2. Throughput

3. Efficiency

4. Capacity

Answer

Answer: Throughput

QN37: Which of the following allows devices on one network to communicate with devices on another network?

1. Multiplexer

2. Gateway

3. t-switch

4. Modem

Answer

Answer: Gateway

QN38: Which of the following memories needs refresh?

1. SRAM

2. DRAM

3. ROM

4. All of above

Answer

Answer: DRAM

QN39: FDDI is a–

1. Ring network

2. Star network

3. Mesh network

4. Bus based network

Answer

Answer: Ring network

QN40: What is the central device in star topology?

1. STP server

2. HUB/switch

3. PDC

4. Router

Answer

Answer: HUB/switch

ed010d383e1f191bdb025d5985cc03fc?s=120&d=mm&r=g

DistPub Team

Distance Publisher (DistPub.com) provide project writing help from year 2007 and provide writing and editing help to hundreds student every year.