C# banner

Computer Fundamentals Multiple Choice Questions (MCQs) and Answers

Master Computer Fundamentals with Practice MCQs. Explore our curated collection of Multiple Choice Questions. Ideal for placement and interview preparation, our questions range from basic to advanced, ensuring comprehensive coverage of Computer Fundamentals. Begin your placement preparation journey now!

Q91

Q91 What does the term "HTTP" stand for in web technologies?

A

HyperText Transfer Protocol

B

Hyperlink Text Transfer Protocol

C

Hyperlink Transfer Protocol

D

HyperText Transfer Port

Q92

Q92 What is the role of a DNS (Domain Name System) server?

A

To store website data

B

To host websites

C

To translate domain names into IP addresses

D

To manage internet connections

Q93

Q93 Which of the following HTML tags is used to create a hyperlink?

A

<a>

B

<link>

C

<href>

D

<img>

Q94

Q94 Which CSS property is used to change the text color of an element?

A

font-style

B

color

C

text-color

D

background-color

Q95

Q95 Which of the following JavaScript functions can be used to update the content of an HTML element?

A

document.write()

B

innerHTML

C

updateHTML()

D

setContent()

Q96

Q96 A user reports that a website is not loading, and the browser displays a "404 Not Found" error.
What could be the issue?

A

The server is down

B

The page has been moved or deleted

C

The user’s internet connection is slow

D

The website is using too much memory

Q97

Q97 A website is loading slowly.
What could be a potential cause?

A

Large images or media files

B

Incorrect HTML tags

C

Too many CSS files

D

Invalid JavaScript syntax

Q98

Q98 What is the primary purpose of a programming language?

A

To design hardware

B

To create programs that perform specific tasks

C

To browse the internet

D

To store large amounts of data

Q99

Q99 Which of the following is an example of a high-level programming language?

A

Assembly

B

C++

C

Binary

D

Machine Language

Q100

Q100 What does the term "algorithm" refer to in programming?

A

A step-by-step procedure to solve a problem

B

A programming language

C

A type of hardware

D

A network protocol

Q101

Q101 What is the main difference between a compiled language and an interpreted language?

A

Compiled languages are faster

B

Interpreted languages are more efficient

C

Compiled languages are converted into machine code before execution, while interpreted languages are executed line by line

D

There is no difference

Q102

Q102 Which of the following describes a variable in programming?

A

A fixed value

B

A placeholder for storing data that can change

C

A type of error

D

A programming language

Q103

Q103 What is the output of the following Python code:
print(2 + 3 * 4)?

A

20

B

14

C

24

D

10

Q104

Q104 Which of the following is the correct syntax for a for loop in Python?

A

for i = 0 to 5:

B

for i in range(5):

C

for (i = 0; i < 5; i++)

D

for (i = 1 to 5)

Q105

Q105 What does the following Java code snippet print?
System.out.println("Hello" + "World");

A

Hello World

B

Hello

C

World

D

HelloWorld

Q106

Q106 What will be the output of the following code in C++?
int x = 5;
x += 3;
cout << x;

A

8

B

5

C

3

D

10

Q107

Q107 A programmer is receiving a syntax error while compiling their code.
What could be a likely cause?

A

Incorrect variable name

B

Missing semicolon

C

Insufficient memory

D

Hardware failure

Q108

Q108 A program runs but produces incorrect results.
What type of error is this most likely?

A

Syntax error

B

Logic error

C

Runtime error

D

Compilation error

Q109

Q109 A Python program crashes with a "TypeError."
What could be a potential cause?

A

Using a variable before it is declared

B

Using an operator on incompatible data types

C

Infinite loop

D

Accessing a variable out of scope

Q110

Q110 What is the primary goal of Agile software development?

A

To eliminate testing

B

To create detailed documentation

C

To deliver working software quickly

D

To use a single programming language

Q111

Q111 Which of the following best describes the Waterfall model?

A

Iterative development

B

A linear sequential approach

C

A flexible approach

D

A method for testing software

Q112

Q112 What is a characteristic of the Scrum methodology?

A

No defined roles

B

Short, time-boxed iterations called sprints

C

No documentation

D

Focus on coding only

Q113

Q113 In software development, what is a "user story"?

A

A detailed technical specification

B

A description of a feature from the user's perspective

C

A method of testing

D

A coding standard

Q114

Q114 What is the main advantage of the DevOps approach in software development?

A

Reduces the need for developers

B

Eliminates testing requirements

C

Increases collaboration between development and operations teams

D

Focuses solely on coding

Q115

Q115 In version control systems like Git, which command is used to create a new branch?

A

git commit

B

git push

C

git branch

D

git merge

Q116

Q116 Which command in Git is used to combine changes from one branch into another?

A

git branch

B

git pull

C

git merge

D

git reset

Q117

Q117 Which of the following commands is used in Git to discard local changes to a file?

A

git checkout

B

git revert

C

git reset

D

git clean

Q118

Q118 A developer encounters a merge conflict in Git.
What is the best course of action?

A

Ignore the conflict

B

Manually resolve the conflict

C

Revert all changes

D

Delete the branch

Q119

Q119 During a sprint, a team realizes they cannot complete all the user stories.
What should they do?

A

Extend the sprint

B

Drop the stories without discussion

C

Discuss and reprioritize the remaining stories with the Product Owner

D

Work overtime to finish

Q120

Q120 What is the main goal of Artificial Intelligence (AI)?

A

To replace all human workers

B

To simulate human intelligence in machines

C

To control all digital devices

D

To increase data storage

ad verticalad vertical
ad