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
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
Question 3: What kind of languages are Cobol, Java, C# and Basic?
a. 1GL
b. 2GL
c. 3GL
d. 4GL
Show Answer
Question 4: Which is a typical language for programming inside Web pages?
a. JavaScript
b. HTML
c. Cobol
d. XML
Show Answer
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
Question 6: Which of the following commonly happens to variables (in most languages)?
a. declaration
b. assignment
c. expansion
d. derivation
Show Answer
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
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
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
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
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
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
Question 13: Which term describes the mechanism of a function calling itself ?
a. encapsulation
b. inheritance
c. recursion
d. polymorphism
Show Answer
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
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