Programming and Problem Solving Through Python Language Theory Question
Introduction to Programming
Who developed the Pyhton Language.?
Dennis M. Ritchie
James Gosling
Guido Van Rossum
Linus Torvalds
Answer : c
Explain: Python Language was developed by Guido van Rossum in 1989 and first officially release in 1991.
Python Language written in which language ?
C
PHP
Ruby
Java
Answer : a
Explain: Python Language was written in C language and the default implementation is called CPython. C language is develop by Dennis M Ritchie in 1972.
What is the extension of the python file.
.py
.po
.python
.file
Answer :a
Explain : The Extension of python file are- .py , pyi.
Single line comment in python use ?
//
*/
#
""
Answer :c
Explain : Use # for single line comment and triple ('''-single quoted, "- double quoted) are use for multi-line comment.
Which of the following language is understood by computer ?
HL language
LL language
Machine Language
English language
Answer : C
Explain : Computer understand only machine language which is 0 or 1.
A computer programme that controls and managed computer activity ?
O.S
Compiler
Modem
Mouse
Answer : A
Explain : O.S. ( Operating System ) control computer activity.
In which year was the python 3.0 version developed ?
2000
2005
1998
2008
Answer: d
Explain : Python 3.0 was launched in 2008 ( latest version 3.11.4 in 2023 ) and pyhton 2.0 lauch in 2000.
Which is a part of user documentation.
Class Diagram
Code Comment
Use Case
Installation Guide
Answer : D
Explan : User or customer need how to instal product. They don't need code comment or other things.
Testing is known as ?
A stage of all projects
Finding broken code
Evaluating deliverable to find error
None
Answer : C
Explan : Testing is done after programming to check bugs and error in a program.
Which of following is language translator ?
Compiler
Interprater
Assembler
All of these.
Answer: d
Explain : All of them are language translator which translate source code (code written by prgrammer) into object code.
Bug in a prgram means ?
Logical Error found in program
Code run perfectly
No error in program
None of these.
Answer: a
Explain : Bug means error in program and the process of finding bug in program known as debugging.
Is Python case sensitive when dealing with identifiers?
Yes
no
in some cases
All of these.
Answer : a
Explain : Pyhton is a case senstive language. So, the name assign to indentifier must be case senstive.
Which of following is not a valid error ?
Syntax Error
Run-Time Error
Logical Error
None of these
Answer : d
Explain : All these are error in programming.
Compiler converts ?
Whole program.
line by line
word by word
half program first and then second.
Answer : a
Explain : Compiler converts whole program and interprater converts line by line.
Who wrote the first programming language ?
Ajay Bhatt
Ada Lovelace
James Ruseel
Ray Tomlinson
Answer : B
Explain : Ada Lovelace who has written the first-ever computer programming language and the year was 1883. (That's why it is difficult because of women - Just Kidding !)
Who was the father of C language ?
Dennis M. Ritchie
Guido Van Rossum
James Gosling
John Backus
Answer : A
Explain : Guido Van Rossum - found Pyhton, James Gosling found- Java and John Backus found- FORTRAN.
A set of intructions that tells the computer how to behave, what to do and derive at a solution to a particular problem is:
Algorithm
Pseudocode
Programming
Program
Answer : D
Explain : A set of instructionsthat directs a computer's hardware to perform a task is called a program.
The six stages of program development in logical order are:
Define, Analyze, Write, Test, Document, Debug
Define, Analyze, Develop, Write, Test and Debug, Document
Define, Write, Develop, Analyze, Test, Document
Define, Develop, Write, Test, Document, Debug
Answer : B
Explain : First, the problem is defined and the requirements are marked. Then, the program is analyzed to determine the best design. Next, the development process begins where the code is written. After that, testing and debugging are done to ensure the program functions correctly. At last the documentation created so for future use program can understand it.
Which of the following generations of programming language executed code faster:
4 Gen.
2 Gen.
1 Gen.
3 Gen.
Answer : C
Explain : First-generation languages were low-level languages that directly interacted with the hardware, it make it fast.
Which of the following had executes programming codes line by line, rather than the whole program :
Compiler
Interpreter
Translator
None of these
Answer : B
Explain : Interpreter converts the program line by line, where as compiler converts whole program.