0% found this document useful (0 votes)
23 views6 pages

Qna 8

The document contains a comprehensive question bank covering topics in computer networking, algorithms, flowcharts, program coding, and Java programming. It includes definitions, differentiations, application-based questions, multiple-choice questions, and fill-in-the-blank questions. The content is structured to facilitate learning and assessment in these subjects.

Uploaded by

A350fan boy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views6 pages

Qna 8

The document contains a comprehensive question bank covering topics in computer networking, algorithms, flowcharts, program coding, and Java programming. It includes definitions, differentiations, application-based questions, multiple-choice questions, and fill-in-the-blank questions. The content is structured to facilitate learning and assessment in these subjects.

Uploaded by

A350fan boy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

Question Bank on Computer Networking:

1. State the two basic need for a network.


2. Define Internet. Mention three advantages of network.
3. Differentiate between the following:
a. IP Address and DNS
b. Gateway and Router
c. Web Portal and Website
d. Mesh and Tree Topology
e. IMAP and POP3
4. Define the following terms:
a. Bandwidth
b. Topology
c. NIC
d. SMTP
e. Modem
f. TCP/IP
5. What is ISP? Give an example. How is it different from URL?
6. Discuss the different types of servers.
7. Explain the various components of a network.
8. Write a short note on Bluetooth and Wi-Fi.

Question bank of Algorithm and Flowchart


1. Define algorithm. Who is credited for the evolution of the concept of an algorithm?
2. State any four uses of an algorithm.
3. Explain effectiveness, finiteness and precision as characteristics of a good algorithm.
4. What do you understand by a flowchart? State its advantages.
5. Mention any four rules of drawing a flowchart.
6. What is the significance of flow lines?
7. Discuss the symbol and purpose of the following flowchart shapes:
 Process
 Connector
 Decision

Application based Questions:


1. Write an algorithm and draw a flowchart to create a 60-degree angle using a scale
and compass.
2. Write an algorithm and draw a flowchart to find sum, difference, product of any two
numbers.
3. Write an algorithm and draw a flowchart to swap two given numbers using a third
variable.
4. Write an algorithm and draw a flowchart to swap two numbers without using a third
variable.
5. Write an algorithm and draw a flowchart to find area perimeter of a rectangle.
6. Write an algorithm and draw a flowchart to find volume and surface area of a
cylinder.
7. Write an algorithm and draw a flowchart to calculate the simple interest for entered
principle, rate and time.
8. Write an algorithm and draw a flowchart to check if a number is positive or negative.
9. Write an algorithm and draw a flowchart to check if a user is eligible to vote.
10. Write an algorithm and draw a flowchart to check if entered number is even or odd.
11. Write an algorithm and draw a flowchart to read a number and display if it is single
digit, double digit or more.
12. Write an algorithm and draw a flowchart to compare three numbers to find the
smallest.
13. Write an algorithm and draw a flowchart to check if the entered number ends with
1 or 7.
14. Write an algorithm and draw a flowchart to find sum of digits of an entered three-
digit number.
15. Write an algorithm and draw a flowchart to check if an entered number if
palindrome or not. Assume it is a three-digit number.
16. Write an algorithm and draw a flowchart to find the discounted price on a
commodity based on the given rates:
Price Discount Rate
0 - 5000 4.5%
5001 - 10000 7.5%
10001 and above 12%

Computer Network AQAD [Question bank]


Multiple-Choice Questions (MCQs):
1. Which of the following is the most common type of network used in homes?
a. WAN b) MAN c) LAN d) PAN

2. What does "WAN" stand for in networking?


a. Wide Area Network c) World Area Network
b. Wireless Access Network d) Wide Access Network

3. Which device is used to connect different networks together?


a. Switch b) Router c) Hub d) Modem

4. What is the main purpose of a firewall in a computer network?


a. To connect different networks c) To prevent unauthorized access
b. To provide high-speed internet d) To create a wireless network

5. Which of the following is NOT an example of a network topology?


a. Star b) Ring c) Tree d) Square

6. Which protocol is used for sending emails?


a. HTTP b) FTP c) SMTP d) POP3

7. Which type of network is typically used within a single building or campus?


a. WAN b) LAN c) VPN d) SAN
8. What is the primary function of a switch in a network?
a. To send data between computers on the same network
b. To connect different networks
c. To control internet access
d. To protect the network from viruses

9. What does "IP" in IP address stand for?


a. Internet Protocol c) Information Packet
b. Integrated Program d) Internal Process

10. Which of the following is a network device that amplifies signals to extend the range
of a network?
a. Repeater b) Router c) Switch d) Firewall

Fill in the Blank Questions on Computer Network


1. A __________ is a set of rules that governs the communication between devices on a
network. **Answer:** Protocol
2. __________ topology connects all devices in a network to a central hub. **Answer:**
Star
3. The __________ layer of the OSI model is responsible for routing and forwarding
data.
Answer:** Network
4. An IP address is made up of __________ bits. **Answer:** 32
5. A __________ is a private network that uses public telecommunication services.
**Answer:** VPN (Virtual Private Network)
6. The process of breaking data into smaller packets for transmission over a network is
called__________. **Answer:** Packetization
7. __________ is a networking device that filters and forwards packets based on IP
addresses.
**Answer:** Router
8. In a __________ network, all devices are connected in a closed loop. **Answer:**
Ring
9. The __________ protocol is used to transfer files from one host to another over a
TCP-based network. **Answer:** FTP (File Transfer Protocol)
10. A __________ converts digital signals to analog signals and vice versa for
transmission over telephone lines. **Answer:** Modem

Question Bank on Program Coding:


1. Define a Computer Program. Explain its types with example.
2. Why is Java terms as a platform independent language?
3. How is a class and object related to each other?
4. Discuss and three features of Java.
5. Define IDE. Give examples of IDE used for java coding.
6. State four naming rules of naming identifiers.
7. Define the following terms: identifiers, keyword, literals
8. How are character literals different from string literals?
9. Arrange the data types in ascending order of their byte size: double, byte,
char,int
10. Explain the various types of comments used in Java programming.
11. What is the significance of unary operators?
12. What are argument values?
Application based Questions:
1. Write a program to find sum, difference, product of any two numbers.
2. Write a program to swap two given numbers using a third variable.
3. Write a program to swap two numbers without using a third variable.
4. Write a program to find area perimeter of a rectangle.
5. Write a program to find volume and surface area of a cylinder.
6. Write a program to calculate the simple interest for entered principle,
rate and time.
7. Write a program to find the total billing amount, read the cost per unit
and number of units from the user.
8. Write a program to calculate the loss and loss percentage based on the
read cost price and selling price.
9. Write a program to calculate the profit and profit percentage based on
the read cost price and selling price.

Computer Network AQAD [Question bank]


Multiple-Choice Questions (MCQs):
1. What is the correct way to declare a variable in Java?
a. int 1number b) int number1 c) number1 int d) int number 1
2. Which of the following is not a Java primitive data type?
a. int b) String c) char d) Boolean
3. Which keyword is used to create a class in Java?
a. Define b) class c) object d) create
4. What will be the output of the following code: System.out.println(5 + 3);
a. 8 b) 53 c) 5 + 3 d) 3 + 5
5. Which symbol is used to indicate a comment in Java?
a. // b) /* */ c) # d) Both a
and b
6. What is the default value of an int variable in Java?
a. 0 b) 1 c) null d)
undefined

Fill in the Blank Questions


1. In Java, a __________ is a blueprint for creating objects. Answer:
class
2. The __________ data type can hold a single character in Java. Answer:
char
3. The keyword __________ is used to define a constant value in Java. Answer:
final
4. The __________ operator is used to compare two values for equality in Java.
Answer: ==
5. To create an instance of a class, we use the __________ keyword. Answer:
new
Question Bank on Program Coding:
1. Define a conditional statement.
2. How is if statement different from if else statement?
3. Explain the purpose of an if-else-if statement.
4. Explain the different types of errors
Application based Questions:
1. Write a program to check if a number if positive or negative.
2. Write a program to check if a number if even or odd.
3. Write a program to check if a number is divisible by 7 or 3.
4. Write a program to check if the number id single digit, double digit number or
more.
5. Write a program to check a three-digit number is a palindrome or not.
6. Write a program to check if an entered year is a leap year or not.
7. Write a program to check if a number is neon number or not. A neon number is a
number that is either divisible by 9 or ends with 9.
8. Write a program to calculate the profit or loss based on the read cost price and
selling price.
9. Write a program to calculate a 10% discount if the amount is above 10000 else a
discount of 7.5%. Display the discount received and the final billing amount to be
paid.
10. Write a program in java to read three numbers and display the largest of the three
numbers
11. Write a program to read two numbers and display the smallest of the two.
12. Write a program to read a number and a character. If the character is ‘S’ display
the square of the number. If the character is ‘C’ then display the cube of the
number.
13. Write a program to read two numbers. If both numbers are even then display their
sum else display their product.
14. Write a program to read a character and check if the character is a vowel or a
consonant.
15. Write a program to read two numbers and a Boolean value. For Boolean true
display the area and perimeter of a rectangle assuming the two numbers are the
length and width. For a Boolean false calculate and display the surface area and
volume of a cylinder assuming the parameters as height and radius of the cylinder.

Computer Network AQAD [Question bank]


Multiple-Choice Questions (MCQs):
1. Which of the following is the correct syntax for an if statement in Java?
a. if (condition) { } b) if condition { } c) if { condition } d) if (condition) then { }

2. What will be the output of the following code?


int x = 10;
if (x < 5) {
System.out.println("Small");
} else {
System.out.println("Large");}
a) Small b) Large c) Error d) No output

3. Which of the following is used to check multiple conditions in Java?


a. if-else b) switch-case c) for-loop d) break

4. What type of error is caused by a missing semicolon in Java?


a. Logical error b) Syntax error c) Runtime error d) Compilation error

5. Which of the following will cause a runtime error in Java?


a. int x = "Hello"; b) int x = 10 / 0; c) int x = 5; d) String name = "Java";

Fill-in-the-Blank Questions
1. The if statement is used in Java to execute a block of code only if a specific ________
is true. Answer: condition
2. In Java, the else statement is used to provide an alternative action when the ________
condition of an if statement is false. Answer: if
3. An error that occurs when the program cannot compile due to incorrect syntax, such
as a missing parenthesis, is known as a ________. Answer: syntax error
4. The ________ statement in Java allows you to execute a block of code multiple times
based on a condition. Answer: while or for
5. A ________ error occurs in Java when the program runs but produces an unexpected
result, often caused by incorrect logic. Answer: logical

You might also like