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

[efaccordion id=”01″] [efitems title=”Show Answer” text=”C++”][/efaccordion]

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

[efaccordion id=”01″] [efitems title=”Show Answer” text=”an algorithm “][/efaccordion]

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

[efaccordion id=”01″] [efitems title=”Show Answer” text=”3GL”][/efaccordion]

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

[efaccordion id=”01″] [efitems title=”Show Answer” text=”JavaScript”][/efaccordion]

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

[efaccordion id=”01″] [efitems title=”Show Answer” text=”interpreter”][/efaccordion]

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

[efaccordion id=”01″] [efitems title=”Show Answer” text=”declaration”][/efaccordion]

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

[efaccordion id=”01″] [efitems title=”Show Answer” text=”23″][/efaccordion]

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

[efaccordion id=”01″] [efitems title=”Show Answer” text=”runtime error”][/efaccordion]

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)

[efaccordion id=”01″] [efitems title=”Show Answer” text=”Raining OR Tuesday”][/efaccordion]

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

[efaccordion id=”01″] [efitems title=”Show Answer” text=”Array”][/efaccordion]

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

[efaccordion id=”01″] [efitems title=”Show Answer” text=”boolean”][/efaccordion]

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

[efaccordion id=”01″] [efitems title=”Show Answer” text=”Selection”][/efaccordion]

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

[efaccordion id=”01″] [efitems title=”Show Answer” text=” recursion”][/efaccordion]

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

[efaccordion id=”01″] [efitems title=”Show Answer” text=”debugging”][/efaccordion]

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

[efaccordion id=”01″] [efitems title=”Show Answer” text=”return x”][/efaccordion]