Question bank

Filter questions by subject, topic and difficulty. Open any question to answer it and see the explanation.

7,992 questions found Show 20 · 50 per page
#QuestionSubject and topicDifficulty
2551 Which topology uses a single backbone cable with terminators at both ends? Computer Science/Informatics Practices
Network topologies
Easy
2552 How many links are needed to connect 6 computers in a fully connected mesh topology? Computer Science/Informatics Practices
Network topologies
Medium
2553 In a star network, the cable connecting one computer to the switch breaks. What is the effect? Computer Science/Informatics Practices
Network topologies
Medium
2554 A bank needs a network in which data can still reach its destination even if several links fail, and cost is … Computer Science/Informatics Practices
Network topologies
Hard
2555 How many bits are there in an IPv4 address? Computer Science/Informatics Practices
Addressing and the web
Easy
2556 Which system translates a domain name such as www.example.org into an IP address? Computer Science/Informatics Practices
Addressing and the web
Easy
2557 Which of the following is a valid IPv4 address? Computer Science/Informatics Practices
Addressing and the web
Medium
2558 Which statement best describes the difference between the Internet and the World Wide Web? Computer Science/Informatics Practices
Addressing and the web
Medium
2559 A laptop moves from the school Wi-Fi to a home Wi-Fi network. Which statement is most likely true? Computer Science/Informatics Practices
Addressing and the web
Hard
2560 In the URL https://www.school.edu.in/admission/form.html, what is "www.school.edu.in"? Computer Science/Informatics Practices
Internet applications and websites
Easy
2561 Which Internet application carries voice calls as data packets over the Internet? Computer Science/Informatics Practices
Internet applications and websites
Easy
2562 A results website shows each student only their own marks after they enter their roll number. What type of we… Computer Science/Informatics Practices
Internet applications and websites
Medium
2563 What is web hosting? Computer Science/Informatics Practices
Internet applications and websites
Medium
2564 Riya sends an email to Arun with Meena in BCC. Which statement is true? Computer Science/Informatics Practices
Internet applications and websites
Hard
2565 Which of the following is a web browser? Computer Science/Informatics Practices
Web browsers
Easy
2566 A small text file stored by a website on a user's computer to remember preferences is called a Computer Science/Informatics Practices
Web browsers
Easy
2567 A user installs a small program in the browser that blocks advertisements on all websites. This program is be… Computer Science/Informatics Practices
Web browsers
Medium
2568 Which statement about incognito (private) browsing is correct? Computer Science/Informatics Practices
Web browsers
Medium
2569 Why are third-party cookies considered a privacy risk? Computer Science/Informatics Practices
Web browsers
Hard
2570 Which exception is raised by int('abc')? Computer Science/Informatics Practices
Exceptions
Easy
2571 When does Python report a syntax error such as a missing colon after an if condition? Computer Science/Informatics Practices
Exceptions
Easy
2572 Which exception occurs when the code x = [1, 2, 3] is followed by print(x[5])? Computer Science/Informatics Practices
Exceptions
Medium
2573 What happens when the statement assert 2 > 3, "check failed" is executed? Computer Science/Informatics Practices
Exceptions
Medium
2574 Which is the correct way to define and raise a user-defined exception in Python? Computer Science/Informatics Practices
Exceptions
Hard
2575 Which block runs whether or not an exception occurs in the try block? Computer Science/Informatics Practices
try, except, else and finally
Easy
2576 When is the else block of a try statement executed? Computer Science/Informatics Practices
try, except, else and finally
Easy
2577 A try block contains print(5/0); it is followed by except ZeroDivisionError: print("Z"), else: print("E") and… Computer Science/Informatics Practices
try, except, else and finally
Medium
2578 A try block contains x = int("12"); it is followed by except ValueError: print("V"), else: print("E", x) and … Computer Science/Informatics Practices
try, except, else and finally
Medium
2579 A function has try: return "T" followed by finally: print("F"). What is printed when print(f()) is executed? Computer Science/Informatics Practices
try, except, else and finally
Hard
2580 Which mode opens a text file for adding data at the end without erasing existing content? Computer Science/Informatics Practices
Text files
Easy
2581 What does the readlines() method return? Computer Science/Informatics Practices
Text files
Easy
2582 A file contains the text PYTHON PROGRAM. After f = open(...) in read mode, s = f.read(6) is executed. What is… Computer Science/Informatics Practices
Text files
Medium
2583 For the same file containing PYTHON PROGRAM, f.seek(7) is followed by print(f.read(3)). What is printed? Computer Science/Informatics Practices
Text files
Medium
2584 A file has lines one, two and three. It is opened with 'w' mode, f.write("x") is executed and the file is clo… Computer Science/Informatics Practices
Text files
Hard
2585 Which module is used in Python to store objects such as lists in a binary file? Computer Science/Informatics Practices
Binary files
Easy
2586 Which file mode should be used to write pickled data to a new binary file? Computer Science/Informatics Practices
Binary files
Easy
2587 What is the correct form of the statement to write a dictionary d into the binary file object f? Computer Science/Informatics Practices
Binary files
Medium
2588 The process of converting a Python object into a byte stream is called Computer Science/Informatics Practices
Binary files
Medium
2589 A program writes a list and then a dictionary with two pickle.dump() calls, then reads the file with pickle.l… Computer Science/Informatics Practices
Binary files
Hard
2590 Which principle does a stack follow? Computer Science/Informatics Practices
Stack
Easy
2591 Removing an element from an empty stack is called Computer Science/Informatics Practices
Stack
Easy
2592 Starting with an empty Python list s, the operations s.append(10), s.append(20), s.pop(), s.append(30), s.app… Computer Science/Informatics Practices
Stack
Medium
2593 Which feature of a web browser is a typical application of a stack? Computer Science/Informatics Practices
Stack
Medium
2594 The characters of "CAT" are pushed one by one onto a stack and then all popped and joined in the order popped… Computer Science/Informatics Practices
Stack
Hard
2595 What is the postfix form of the infix expression A + B * C? Computer Science/Informatics Practices
Expression notation
Easy
2596 Which data structure is used to evaluate a postfix expression? Computer Science/Informatics Practices
Expression notation
Easy
2597 What is the value of the postfix expression 4 5 + 3 2 − *? Computer Science/Informatics Practices
Expression notation
Medium
2598 What is the postfix form of (A + B) * (C − D)? Computer Science/Informatics Practices
Expression notation
Medium
2599 What is the value of the postfix expression 8 2 3 * − 4 +? Computer Science/Informatics Practices
Expression notation
Hard
2600 Which principle does a queue follow? Computer Science/Informatics Practices
Queue
Easy