Home / Programming Fundamentals MCQs With Answers For NTS PPSC FPSC

Programming Fundamentals MCQs With Answers For NTS PPSC FPSC


Programming Fundamentals MCQs With Answers For NTS PPSC FPSC explained here at this page. You must approach the page only to get the full preparation through the final judgement. It is the way that is doing well about the paper wise perspective to deal in the best way. You as a student must exercise these questions according to the test wise perception and their appropriate question indeed through the focused way. Every test is being practice here in the way out that is perspective to deal as per the justified way out. Programming fundamentals mcqs with answers available here at this page. These questions and answers are being make over about the programming wise questions through the test paradigm as per the justified way.

Programming Fundamentals MCQs With Answers For NTS PPSC FPSC

Question 1: Which of the following are object oriented languages?
a. Java
b. Cobol
c. C++
d. C

Show Answer

C++

Question 2: In programming, a series of logically ordered steps that lead to a required result is called?
a.  a compiler
b. a program
c. a data structure
d. an algorithm

Show Answer

an algorithm

Question 3: What kind of languages are Cobol, Java, C# and Basic?
a. 1GL
b. 2GL
c.  3GL
d. 4GL

Show Answer

3GL

Question 4: Which is a typical language for programming inside Web pages?
a. JavaScript
b. HTML
c. Cobol
d. XML

Show Answer

JavaScript

Question 5: Which of the following converts source code into machine code at each runtime?
a. linker
b. compiler
c. interpreter
d. object encoder

Show Answer

interpreter

Question 6: Which of the following commonly happens to variables (in most languages)?
a. declaration
b. assignment
c. expansion
d. derivation

Show Answer

declaration

Question 7: Assuming that + and * are arithmetic operators (addition and multiplication), to what does the
expression 2 + 4 * 5 + 1 evaluate?
a. 36
b. 31
c. 26
d. 23

Show Answer

23

Question 8: Assuming that = and / are the assignment and division operators, what will be the outcome
of the following code in most programming languages:
x = 3
y = 7
z = x / (y-7)
a. runtime error
b. syntax error
c.  logic error
d. compiler error

Show Answer

runtime error

Question 9: Today is Tuesday. It is raining. Which of the following is True?
a. Raining OR Tuesday
b. Raining XOR Tuesday
c. Raining AND Tuesday
d. NOT (Raining OR Tuesday)

Show Answer

Raining OR Tuesday

Question 10: Which is a typical kind of variable for keeping an ordered set of values in memory, that can be
referenced as e.g. A[3], A[n+1] etc. ?
a. File
b. Array
c. String
d. Container

Show Answer

Array

Question 11: AND, OR and NOT are logical operators. What data type is expected for their operands?
a. integer
b. boolean
c. decimal
d. character

Show Answer

boolean

Question 12: In many programming languages, ‘otherwise’ and ‘else’ are part of which building block?
a. Loop
b. Counter
c. Selection
d. List structure

Show Answer

Selection

Question 13: Which term describes the mechanism of a function calling itself ?
a. encapsulation
b. inheritance
c.  recursion
d. polymorphism

Show Answer

recursion

Question 14: ‘Tracing’, ‘stepping’ and ‘breakpoint’ are typical terms belonging to which programming development aspect?
a. debugging
b. compilation
c. version control
d. project planning

Show Answer

debugging

Question 15: (In most programming languages), which statement would be used in the definition of a function, to indicate the resulting value when this function is called?
a. result = x
b. reply x
c. send x
d. return x

Show Answer

return x

 

Programming Fundamentals MCQs With Answers For NTS PPSC FPSC
Rate this post

More Related MCQS

Which River Crosses The Equator Twice? Question: Which River Crosses The Equator Twice? a. Amazon river b. Congo river c. Nile river d....
Memohan Line Is A Border Between? Question: Memohan Line Is A Border Between? a. Burma and India b. India and Nepal c. India and Ch...
Which Country Has No Railway Track? Question: Which Country Has No Railway Track? a. Afghanistan b. China c. Russia d. Somalia
Who Presented Pakistan Resolution In 1940? Question: Who Presented Pakistan Resolution In 1940? Maulvi A.K Fazul Haque Sardar Abdul Rau...
Which surah opens with the names of two Fruits? Question: Which surah opens with the names of two Fruits? a. Surah Imran b. Surah Yaseen c. Sur...
Students Learn More From A Teacher Who Is? Question: Students Learn More From A Teacher Who Is? a. Affectionate b. One Who Communicates His I...
What Is Local Area Network (LAN)? Question: What Is Local Area Network (LAN)? Answer: Local Area Network is a type of computer netw...
Who Was The Last Governor General Of Pakistan Question: Who Was The Last Governor General Of Pakistan? Answer: Iskandar Mirza Iskandar Mirza W...
A Batsman Scored 120 Runs Which Included 9 Boundar... Question: A Batsman Scored 120 Runs Which Included 9 Boundaries And 4 Sixes. What Percent Of His Tot...
The Book Wealth Of Nations Was Written By? Question: The Book Wealth Of Nations Was Written By? a. Adam Smith b. Eric Roll c. J. K. Marshal ...
Tarbela Dam Location Question: Tarbela Dam Location Nowshera Hasan Abdal Abbottabad Tarbela, Haripur Distri...
Liaquat Ali Khan Date Of Birth Question: Liaquat Ali Khan Date Of Birth Answer: October 1, 1895 Liaquat Ali Khan Date Of Birth ...
PMLN Candidates List For Election 2018 NA, PK, PS,... PMLN Candidates List For Election 2018 NA, PK, PS, PP, PB will be shared here at this page. Lots of ...
Which Is The Biggest Gas Field In Pakistan? Question: Which Is The Biggest Gas Field In Pakistan? a. Dhulian b. Sui c. Khand Kot d. None of ...
Who Died First Among The Sahaba? Q. Who Died First Among The Sahaba? Hazrat Hamza R.A. Hazrat Usman Bin Talha R.A. Hazrat Asad R...
Gurdwara Panja Sahib Is Located In? Question: Gurdwara Panja Sahib Is Located In? a. Hasan Abdal b. Attock c. Lahore d. Nankana Sahi...
Who Was The First Woman Ruler Of Delhi? Question: Who Was The First Woman Ruler Of Delhi? a. Chand Bibi b. Noor Jahan c. Razia Sultana d...
Mangla Dam Is Located in Which Province of Pakista... Question: Mangla Dam is Located in Which Province of Pakistan? Punjab Sindh Khyber Pakhtu...
Psychology MCQs For NTS PPSC FPSC Online Preparati... Psychology MCQs For NTS PPSC FPSC Online Preparation will be shared here at this page. These three a...
Soan And Haro Are Famous Rivers Of Which Plateau? Question: Soan And Haro Are Famous Rivers Of Which Plateau? a. Pothwhar Plateau b. Balochistan Pla...