Allfon Edge Technical and Electronics Questions
- What is Little-endian?
(a) MSB at lower address LSB at higher address
(b) LSB at lower address MSB at higher address
(c) Memory management technique
(d) None of the above
(Ans: B) - 8086 has:
(a) 16-bit data bus, 16-bit address bus
(b) 16-bit data bus, 32-bit address bus
(c) 8-bit data bus, 16-bit address bus
(d) 8-bit data bus, 8-bit address bus
(Ans: A) - What is the scheduling algorithm used in general operating systems?
(a) FCFS algorithm
(b) Highest Priority First algorithm
(c) Round-Robin algorithm
(d) None of the above
(Ans: C) - Router is present at:
(a) Physical layer
(b) Data Link Layer
(c) Network Layer
(d) None of the above
(Ans: C) - Condition for deadlock occurrence:
(a) Mutual Exclusion
(b) No preemption
(c) Hold and wait
(d) Circular wait
(e) All of the above
(Ans: D) - PCI stands for:
(a) Programmable Computer Interface
(b) Peripheral Computer Interface
(c) Programmable Control Interface
(d) Peripheral Component Interface
(Ans: D) - Toggle state in J-K flip-flop is:
(a) 0 1
(b) 1 0
(c) 1 1
(d) 0 0
(Ans: C) - Interrupt is serviced:
(a) Immediately when it occurs
(b) After the completion of the current instruction
(c) Ignored
(d) None of the above
(Ans: B) - What is the output of the following program?
```c void main() { char *mess[] = {"Have", "a", "nice", "day", "Bye"}; printf("%d \t %d", sizeof(mess), sizeof(mess[1])); } ```(a) 16 4
(b) 5 4
(c) 20 4
(d) Error
(Ans: C) - What is the output of the following program?
```c void main() { int i, count = 0; char *p1 = "abcdefghij"; char *p2 = "alcmenfoip"; for (i = 0; i <= strlen(p1); i++) { if (*p1++ == *p2++) count += 5; else count -= 3; } printf("count=%d\n", count); } ```(a) 15
(b) 6
(c) 12
(d) Compiler error
(Ans: B) - What does `main` return on successful execution?
(a) 1
(b) 0
(c) -1
(d) Nonzero
(Ans: B) - How do you declare a pointer to an array of pointers to int?
(a) int *a[5];
(b) int **a[5];
(c) int *(*a)[5];
(d) You cannot declare
(Ans: C)