Computer Basics
Basics of Computer Fundamentals- An Multiple Type Multiple Questions Test for Students who want to be Succesful in Life
Questions
The number of distinct simple graphs with three nodes is
- 15
- 10
- 7
- 9
The recurrence relation that arises in relation with the complexity of Binary Search is
- T(n) = T(n/2) + k
- T(n) = 2T(n/2) + k
- T(n) = T(n/2) + log n
- T(n) = T(n/2) + n
Let A and B be any two arbitrary events then which one of the following is true?
- P(A + B) = P(A)P(B)
- P(AUB) = P(A) + P(B
- P(A|B) = P(AΩB)P(B)
- P(AΩB) ≤ P(A) + P(B)
Pascal implementations permit recursion(1) because
- They use dynamic allocation for variable
- They use static allocation for variable
- Stacks are not available on all machines
- It is not possible to implement recursion on all machine
Use of goto statement may be harmful because
- It increases the running time of programs
- It makes program verification difficult
- It increases the memory required for programs
- It results in compiler generating larger machine code
Redundancy is dangerous as it is a potential threat to data
- integrity
- consistency
- sufficiency
- None of these
Consider the following functions f1(n) and f2(n) f1(n) = n3 for 0 ≤ n < 10,000 n2 for n ≥ 1 f2(n) = n for 0 ≤ 100 n2 for n ≥ 10,000. Which of the following is true?
- f1(n) is O(f2(n))
- f1(n) is O(n3)
- f2(n) is O(f1(n))
- f1(n) is O(n)
Given a system using unplanned blocking and 80 bytes blocks. A file contains records of 20,40,25,15,35,40,35. What percentage of shape will be wasted in the blocks allocated for the file?
- 7.5%
- 9.5%
- 11.5%
- 12.5%
Consider the following set of functional dependencies on the scheme (A,B,C)
A→BC
B→C
A→B
AB→C
The conical cover for the set is
- A→BC and B→C
- A→BC and AB→C
- A→BC and A→B
- A→B and B→C
The following program
main() {*int i=100; int M(); printf(“%d“,(*M)(i));} int M(x)int x{printf(“%d”,++x);}
- prints 100
- prints 101
- prints an error message
- prints 1013
If an instruction takes time m if there is no page fault, and time n if there is a page fault. What is the effective instruction time if page faults occur once every i instructions?
- m
- (n-m)/i
- (m+(n-m))/i
- None of these
The term polling in a computer means a process by which a computer system
- Detects/corrects error
- Multiplexes the inputs and updates the memory accordingly
- Decides correct alternative by analyzing several ones
- Inquires to see if a terminal has any transaction to send
Semaphore operations are atomic because they are implemented with in the Operating System's
- shall
- kernel
- I/O
- hardware
Shift of a register by one bit to left in binary code is equivalent to
- addition of 2
- exponent of 2
- multiplication of 2
- subtraction of 2
A ROM is used to store the task for multiplication of two 8-bits unsigned integers. The size of ROM required is
- 256x16
- 64k x 8
- 4k x 16
- 64k x 16
If a windows NT-based computer is to function as a print server for the network, what will be the most critical component?
- Free disk space
- Frequent backups
- Fast process
- None of these
If the compiler runs on a computer other than the computer for which it produces object codes, is
- Self compiler
- Cross compiler
- Resident compiler
- None of these
Which of the following layer protocols are responsible for user and the application program support such as passwords, resource sharing, and file transfer and network management?
- layer 7 protocol
- ayer 6 protocol
- layer 5 protocol
- layer 4 protocol
The string 1101 does not below to set represented by
- 110*(0+1)
- 1(0+1)*101
- (10)(01)(00+11)*
- (00+(11*)0)*
While the database transfers 8-bits of data in parallel, the SID pin handles---------(numbers).
- 1 bit at a time
- 2 bit at a time
- 3 bit at a time
- 4 bit at a time
Usually, it takes 10-bits to represent one character. How many characters can be transmitted at a speed of 1200 BPS?
- 10
- 12
- 120
- 1200
What does 'dumb' terminal essentially consists of?
- Keyboards and micro-processer
- Keyboard and VDU
- Microprocessor and VDU
- None of these
The process used to set up a program once the system operational is
- Operating system
- Block box
- Boot strap
- Utility
Let f(x, y, z) = x' + y'x + xz be a switchihg function. Which of the following is valid?
- y'x is a prime implicant of f
- xz is a minterm of f
- xz is an implicant of f
- y is a prime implement of f
The Quick sort algorithm requires a maximum of ______ stack space in the worst case
- O(n)
- O(m)
- O(logn)
- None of these