Software MCQs
20 practice MCQs on this page Page 9 of 14
Tap an option to check your answer — the correct answer and full explanation appear after you choose.
Computer ScienceSoftware FBRID: FPP-14879
A computer is protected from viruses by which software?
- AWord processor
- BSpreadsheet
- CAntivirus software. ✓ Correct answer
- DWeb browser
✓ Correct answer: Antivirus software.
Full explanation
Antivirus software. protects a computer from viruses and other malware.
Computer ScienceSoftware ETEAID: LTP-6831
A High Level Language is much powerful programming tool than _____ language:
- AC
- BC++
- CAssembly Language ✓ Correct answer
- DNone of these
✓ Correct answer: Assembly Language
Full explanation
Assembly Language. Assembly is a low-level language close to machine code, while a high-level language is much more powerful and easier to write.
Computer ScienceSoftware ETEAID: LTP-6832
A "C" program consists of _____ function/functions:
- AOne
- BMore
- CBoth A & B ✓ Correct answer
- DNone of these
✓ Correct answer: Both A & B
Full explanation
Both A & B. A C program must contain one function, main(), and it may contain more functions besides, so it consists of one or more functions.
Computer ScienceSoftware ETEAID: LTP-6836
Which of the following is the correct way to declare an integer variable in C?
- Aint number; ✓ Correct answer
- Binteger number;
- Cvar number;
- Ddeclare int number;
✓ Correct answer: int number;
Full explanation
int number;. In C, an integer variable is declared with the keyword int followed by the variable name, ending with a semicolon.
Computer ScienceSoftware ETEAID: LTP-6837
What does the printf() function do in C?
- AReads input from the keyboard
- BDisplays output on the screen ✓ Correct answer
- CAllocates memory
- DTerminates the program
✓ Correct answer: Displays output on the screen
Full explanation
Displays output on the screen. The printf() function in C prints formatted text and values to the screen.
Computer ScienceSoftware ETEAID: LTP-6838
Which header file is needed to use printf() and scanf() in C?
- Astdio.h ✓ Correct answer
- Bconio.h
- Cmath.h
- Dstring.h
✓ Correct answer: stdio.h
Full explanation
stdio.h. The printf() and scanf() functions are declared in the standard input-output header file stdio.h.
Computer ScienceSoftware ETEAID: LTP-6840
Which of the following is a valid data type in C++?
- Areal
- Bfloat ✓ Correct answer
- Cnumber
- Ddecimal
✓ Correct answer: float
Full explanation
float. In C and C++, float is a built-in data type for decimal numbers; real, number and decimal are not keywords.
Computer ScienceSoftware ETEAID: LTP-6841
In C, which operator is used to assign a value to a variable?
- A==
- B= ✓ Correct answer
- C:=
- D=>
✓ Correct answer: =
Full explanation
The = operator assigns a value to a variable in C, while == is used only to compare two values.
Computer ScienceSoftware ETEAID: LTP-6842
Which loop in C checks the condition before executing the body?
- Ado-while loop
- Bwhile loop ✓ Correct answer
- Cgoto statement
- Dswitch statement
✓ Correct answer: while loop
Full explanation
while loop. A while loop tests its condition before each run of the body, so the body may run zero times; a do-while loop always runs once first.
Computer ScienceSoftware ETEAID: LTP-6844
Which of the following is NOT a keyword in C?
- Aint
- Breturn
- Cprint ✓ Correct answer
- Dvoid
✓ Correct answer: print
Full explanation
print. The words int, return and void are keywords in C, but print is not a keyword; output in C uses printf().
Computer ScienceSoftware ETEAID: LTP-6845
Which function is used to read a string from the user in C?
- Aputs()
- Bgets() ✓ Correct answer
- Cprintf()
- Dstrlen()
✓ Correct answer: gets()
Full explanation
gets(). The gets() function reads a whole line of text (a string) from the user, while puts() is used to display a string.
Computer ScienceSoftware ETEAID: LTP-6846
Which of the following is the correct syntax of the main function in C?
- Avoid main[]
- Bint main() ✓ Correct answer
- Cmain int()
- Dfunction main()
✓ Correct answer: int main()
Full explanation
int main(). Every C program starts execution from the main() function, written as int main() with parentheses.
Computer ScienceSoftware ETEAID: LTP-6847
Which statement creates an object named obj of class Student in C++?
- AStudent obj; ✓ Correct answer
- Bobj Student;
- Cnew Student obj;
- DStudent.new obj;
✓ Correct answer: Student obj;
Full explanation
Student obj;. In C++, an object is created by writing the class name followed by the object name, as in Student obj;.
Computer ScienceSoftware PUNJABPOLICEID: FPP-16460
Application software is designed to accomplish ______?
- AGaming tasks
- BComputer-centric tasks
- CReal-world tasks ✓ Correct answer
- DOperating system tasks
✓ Correct answer: Real-world tasks
Full explanation
Real-world tasks. Application software is designed to help users carry out real-world tasks, such as writing documents or editing photos.
Computer ScienceSoftware STSID: LTP-7036
Which of these is a type of sound file?
- A.DAT files
- B.LOG files
- C.DRV files
- D.WAV files ✓ Correct answer
✓ Correct answer: .WAV files
Full explanation
.WAV files. WAV is an audio file format; DAT, LOG and DRV files are data, log and driver files, not sound.
Computer ScienceSoftware PPSCID: LTP-7488
Which of the following is an example of utility software?
- AMS Word
- BGoogle Chrome
- CMS Excel
- DDisk Cleanup ✓ Correct answer
✓ Correct answer: Disk Cleanup
Full explanation
Disk Cleanup is an example of utility software, used to remove unneeded files from a computer.
Computer ScienceSoftware PPSCID: LTP-7490
What is the name of the program that translates high-level language code into machine code all at once?
- AInterpreter
- BDebugger
- CAssembler
- DCompiler ✓ Correct answer
✓ Correct answer: Compiler
Full explanation
A Compiler is the program that translates high-level language code into machine code all at once.
Computer ScienceSoftware PPSCID: LTP-7491
Which software is used to remove temporary files and free disk space?
- ADisk Cleanup ✓ Correct answer
- BAntivirus
- CCompiler
- DBrowser
✓ Correct answer: Disk Cleanup
Full explanation
Disk Cleanup is the software used to remove temporary files and free disk space.
Computer ScienceSoftware PPSCID: LTP-7492
What is freeware?
- ASoftware that is free to use ✓ Correct answer
- BSoftware with source code open
- CSoftware sold with a licence
- DSoftware that runs only on Linux
✓ Correct answer: Software that is free to use
Full explanation
Freeware is software that is free to use, although its source code is usually not shared.
Computer ScienceSoftware PPSCID: LTP-7493
Which of the following is a web browser developed by Apple?
- ASafari ✓ Correct answer
- BMS Excel
- CWindows 11
- DAdobe Reader
✓ Correct answer: Safari
Full explanation
Safari is a web browser developed by Apple for Mac and iPhone devices.
Practice these MCQs interactively
← Computer Science MCQs