Loading paper…
Loading questions…
Which of the following ports is used to connect external devices such as printers, scanners, and cameras to a computer?
Which type of monitor technology offers the widest viewing angles and accurate color reproduction?
Which component is responsible for providing power supply to all other components in a computer system?
What is an example of system software from the list below?
Which of the following is NOT an agile software development methodology?
Which was the first purely object-oriented programming language developed?
Which language does not allow for inheritance in all four forms?
Which programming language allows for polymorphism but not classes?
Which of the following is considered as the world's first antivirus program?
If an employee requests root access to a UNIX system in which you serve as the administrator, you shouldn't provide them access or this authority unless their job necessitates certain rights and privileges. Which cyber security notion may it be seen as an excellent example of:
After a certain amount of time, say thirty minutes, the online application, similar to banking websites, should prompt users to log in again. Which cyber security concept may it be seen as a prime example of:
Which of the following malware types does not infect others and duplicate or clone itself?
When compiled, which of the following class of statement often yields no executable code?
A high-level language compiler that runs on one computer and generates code for another is known as:
Compiler can check ____ error.
Select the correct output of the following code. #include <stdio.h> int main() { int arr[5]={10,20,30,40,50}; printf("%d", arr[5]); return 0; }
When we attempt to add the eleventh element to a stack with a size of 10, we encounter a circumstance known as:
Regarding Binary Trees, which of the following is true?
What is the name of a linear collection of data components where the linear node is provided by a pointer?
How much time would it take to add an element to the linked list asymptotically?
(a) Discuss the future of Information Technology (IT) in Pakistan and its huge impact on all our daily lives. (b) Discuss the difference between a computer virus a trojan and a worm? (c) Discuss the pros and cons of LaTeX in comparison to other document processors.
(a) Write a program that prompts the user to enter a letter grade A, B, C, D, or F and displays its corresponding numeric value 4, 3, 2, 1, or 0. (b) Write pseudocode OR C-language script for the following expression. (c) Write a version of Breadth First Search (BFS) that finds the distances from the start node to each of the others, rather than the actual paths.
(a) Write a program that displays the area and perimeter of a rectangle with the width of 4.5 and height of 7.9 using the following formula: area = width * height. (b) Write a program that reads a Celsius degree from the console, then converts it to Fahrenheit and displays the result. The formula for the conversion is as follows: Fahrenheit = (9 / 5) * Celsius + 32. (c) Write a program that prompts the user to enter the month and year and displays the number of days in the month. For example, if the user entered month 2 and year 2024, the program should display that February 2024 had 29 days. If the user entered month 3 and year 2015, the program should display that March 2015 had 31 days.
(a) Show the output of the following code? public class Test { public static void main(String[] args) { Double x = 3.5; System.out.println(x.intValue()); System.out.println(x.compareTo(4.5)); } } (b) Illustrate the difference between overriding and overloading by the piece of pseudocode or program. (c) How do you prevent a class from being extended? How do you prevent a method from being overridden? Exemplify with simple piece of code.
(a) For the following data sets, which sorting algorithms would work well, and which would not? a. 10 floating-point values b. 1,000 integers c. 1,000 names d. 100,000 integers with values between 0 and 1,000 e. 100,000 integers with values between 0 and 1 billion f. 100,000 names g. 1 million floating-point values h. 1 million names i. 1 million integers with uniform distribution j. 1 million integers with non-uniform distribution (b) Write an algorithm that implements binary search recursively. Does this version have any advantages or disadvantages compared to the non-recursive version? (c) Write an algorithm that deletes a specified cell from a doubly linked list. Draw a picture that shows the process graphically.