MCQs > IT & Programming > Programming Languages MCQs > Basic Programming Languages MCQs

Basic Programming Languages MCQ

1. By default, an image is ____.

Answer

Correct Answer: Left-aligned

Note: This Question is unanswered, help us to find answer for this one

2. In a ____ combo box, the text portion is not editable.

Answer

Correct Answer: DropDownList.

Note: This Question is unanswered, help us to find answer for this one

3. Gui programmers sometimes refer to screen space as ____.

Answer

Correct Answer: Real estate

Note: This Question is unanswered, help us to find answer for this one

4. Corona and app inventor can be used to develop ________.

Answer

Correct Answer: Mac software

Note: This Question is unanswered, help us to find answer for this one

5. An online drugstore such as drugstore.com is an example of a(n) ________.

Answer

Correct Answer: E-commerce database application

Note: This Question is unanswered, help us to find answer for this one

6. A(n) ____ in a class diagram indicates private access.

Answer

Correct Answer: Plus sign

Note: This Question is unanswered, help us to find answer for this one

7. A(n) ____ function is a nonmember function that has access to all members of the class.

Answer

Correct Answer: Protected

Note: This Question is unanswered, help us to find answer for this one

8. A multidimensional array in php is essentially ____.

Answer

Correct Answer: An array of arrays

Note: This Question is unanswered, help us to find answer for this one

9. A ____ is one of the tiny dots of light that form a grid on your screen.

Answer

Correct Answer: Pixel

Note: This Question is unanswered, help us to find answer for this one

10. A method?s name and a list of argument types together are its ____.

Answer

Correct Answer: Signature

Note: This Question is unanswered, help us to find answer for this one

11. Some programming languages allow variables to be of logical or __________ type.

Answer

Correct Answer: Expressions

Note: This Question is unanswered, help us to find answer for this one

12. The tolower function takes one parameter of type ____.

Answer

Correct Answer: Int

Note: This Question is unanswered, help us to find answer for this one

13. The contents of a text box may be cleared in visual basic code by __________.

Answer

Correct Answer: Assigning the predefined constant String.Empty to the text property

Note: This Question is unanswered, help us to find answer for this one

14. The conditional and operator in java, c++, and c# is ____.

Answer

Correct Answer: &&

Note: This Question is unanswered, help us to find answer for this one

15. Many programming languages allow you to use ____ to force an expression to evaluate first.

Answer

Correct Answer: Parentheses

Note: This Question is unanswered, help us to find answer for this one

16. _____ provide the standards, syntax, statements, and instructions for writing computer software.

Answer

Correct Answer: Programming languages

Note: This Question is unanswered, help us to find answer for this one

17. The programmer determines the fields and methods of an object and creates the ________ code.

Answer

Correct Answer: Class

Note: This Question is unanswered, help us to find answer for this one

18. The last step in a while loop is usually to ____.

Answer

Correct Answer: Increment the loop control variable

Note: This Question is unanswered, help us to find answer for this one

19. The keyword that is not included in a single-alternative selection is ____.

Answer

Correct Answer: else

Note: This Question is unanswered, help us to find answer for this one

20. The expression in an if statement is sometimes called a(n) ____.

Answer

Correct Answer: Decision maker

Note: This Question is unanswered, help us to find answer for this one

21. The data components of a class that belong to every instantiated object are the class?s ____.

Answer

Correct Answer: Instance variables

Note: This Question is unanswered, help us to find answer for this one

22. The ____ loop provides three actions in one compact statement.

Answer

Correct Answer: For

Note: This Question is unanswered, help us to find answer for this one

23. High-level object-oriented programming languages include c++, c#, java, dart, and ____.

Answer

Correct Answer: Python

Note: This Question is unanswered, help us to find answer for this one

24. A(n) ____ is a numeric variable used for adding together something.

Answer

Correct Answer: Accumulator

Note: This Question is unanswered, help us to find answer for this one

25. A ____ error occurs when an instruction does not follow the grammar of the programming language.

Answer

Correct Answer: Syntax

Note: This Question is unanswered, help us to find answer for this one

26. ________ happens when an input operation attempts to read data, but there is no data to read.

Answer

Correct Answer: Empty input

Note: This Question is unanswered, help us to find answer for this one

27. To indicate the end of a conditional comment, you would use ____.

Answer

Correct Answer:

Note: This Question is unanswered, help us to find answer for this one

28. ____ values are values that represent one of two states—yes (true) or no (false).

Answer

Correct Answer: Real

Note: This Question is unanswered, help us to find answer for this one

29. ____ create the menus, forms, and input screens used with a program or database.

Answer

Correct Answer: User interface (UI) builders

Note: This Question is unanswered, help us to find answer for this one

30. A ____ is a command that tells an object to perform a certain method.

Answer

Correct Answer: Message

Note: This Question is unanswered, help us to find answer for this one

31. A function can have ________ parameters, and it can have either zero or one return value(s).

Answer

Correct Answer: Zero to many

Note: This Question is unanswered, help us to find answer for this one

32. A function ________ is a statement that causes a function to execute

Answer

Correct Answer: Function call

Note: This Question is unanswered, help us to find answer for this one

33. A block is enclosed inside ________.

Answer

Correct Answer: Braces

Note: This Question is unanswered, help us to find answer for this one

34. A ________ is a program module whose purpose is to test other modules by calling them.

Answer

Correct Answer: Driver

Note: This Question is unanswered, help us to find answer for this one

35. ________ is a programming language that can be used to create a wide range of windows applications.

Answer

Correct Answer: Visual Basic

Note: This Question is unanswered, help us to find answer for this one

36. The variable r would contain the value ________ after the execution of the following statement. Declare Integer i = 12; Declare Real r; Set r = toReal (t)

Answer

Correct Answer: 12.0

Note: This Question is unanswered, help us to find answer for this one

37. The ____ function displays the elements of the $_env array and their values.

Answer

Correct Answer: Phpinfo()

Note: This Question is unanswered, help us to find answer for this one

38. A ____ table contains only text, evenly spaced on the Web page in rows and columns.

Answer

Correct Answer: Text

Note: This Question is unanswered, help us to find answer for this one

39. You should use a ____ control to provide keyboard access to a list box.

Answer

Correct Answer: Label

Note: This Question is unanswered, help us to find answer for this one

40. You can delay program execution using the ____ method.

Answer

Correct Answer: Sleep

Note: This Question is unanswered, help us to find answer for this one

41. With the ____, the statements in the loop are repeated as long as a certain condition is false.

Answer

Correct Answer: Do until structure

Note: This Question is unanswered, help us to find answer for this one

42. Array elements all have the same ____ in common.

Answer

Correct Answer: Data type

Note: This Question is unanswered, help us to find answer for this one

43. Besides making your code easier to modify, using a ____ makes the code easier to understand.

Answer

Correct Answer: Named constant

Note: This Question is unanswered, help us to find answer for this one

44. A class is a(n) _____________ that is defined by the programmer.

Answer

Correct Answer: Data type

Note: This Question is unanswered, help us to find answer for this one

45. Every program has a(n) __________ module which is where the program begins and normally ends.

Answer

Correct Answer: Main

Note: This Question is unanswered, help us to find answer for this one

46. A piece of information about a particular object is called a(n) _______.​

Answer

Correct Answer: ​attribute

Note: This Question is unanswered, help us to find answer for this one

47. An advantage of using named parameters is: ____.

Answer

Correct Answer: You can send in values through using the names of the parameters instead of having to worry about getting the exact order

Note: This Question is unanswered, help us to find answer for this one

48. Common IDEs include Visual Studio and ____.

Answer

Correct Answer: Eclipse

Note: This Question is unanswered, help us to find answer for this one

49. After a programmer plans the logic of a program, the next step is ____.

Answer

Correct Answer: Coding the program

Note: This Question is unanswered, help us to find answer for this one

50. A(n) _________ comment provides an explanation of a portion of code.

Answer

Correct Answer: Step

Note: This Question is unanswered, help us to find answer for this one

51. Binary digits can be interpreted by the computer as all of the following except __________.

Answer

Correct Answer: A character

Note: This Question is unanswered, help us to find answer for this one

52. ________ is the set of instructions that programmers have written in a higher-level language.

Answer

Correct Answer: Source code

Note: This Question is unanswered, help us to find answer for this one

53. You can create ____ that consist of multiple indexes or keys.

Answer

Correct Answer: Multidimensional arrays

Note: This Question is unanswered, help us to find answer for this one

54. An object's ________ is simply the data that is stored in the object's fields at any given moment.

Answer

Correct Answer: State

Note: This Question is unanswered, help us to find answer for this one

55. An object has certain ____, like the make, model, and color of a car.

Answer

Correct Answer: Attributes

Note: This Question is unanswered, help us to find answer for this one

56. _____ is used to nudge an element out of its normal position in a document flow.

Answer

Correct Answer: ​Relative positioning

Note: This Question is unanswered, help us to find answer for this one

57. A(n) ____ links each page with the pages that follow and precede it.

Answer

Correct Answer: Linear structure

Note: This Question is unanswered, help us to find answer for this one

58. A(n) ____ is any numeric variable you use to count the number of times an event has occurred.

Answer

Correct Answer: Counter

Note: This Question is unanswered, help us to find answer for this one

59. A ________ is a personal journal posted on the web

Answer

Correct Answer: Blog

Note: This Question is unanswered, help us to find answer for this one

60. The c++ function ____ calculates the largest whole number that is less than or equal to x.

Answer

Correct Answer: Floor(x)

Note: This Question is unanswered, help us to find answer for this one

61. Functions that do not have a return type are called ____ functions.

Answer

Correct Answer: Void

Note: This Question is unanswered, help us to find answer for this one

62. A(n) ____ is one instance of a class.

Answer

Correct Answer: Object

Note: This Question is unanswered, help us to find answer for this one

63. A(n) ____ is a group of similar objects.

Answer

Correct Answer: Aggregate

Note: This Question is unanswered, help us to find answer for this one

64. A ____ represents a picture or sketch of a screen the user will see when running a program.

Answer

Correct Answer: Wireframe

Note: This Question is unanswered, help us to find answer for this one

65. Data that a computer accepts and processes is called ______.

Answer

Correct Answer: Input

Note: This Question is unanswered, help us to find answer for this one

66. A function ________ contains the statements that make up the function.

Answer

Correct Answer: Definition

Note: This Question is unanswered, help us to find answer for this one

67. A function ________ includes the statements that make up the function.

Answer

Correct Answer: Definition

Note: This Question is unanswered, help us to find answer for this one

68. The ____ class access modifier means that access to the class is not limited.

Answer

Correct Answer: Public

Note: This Question is unanswered, help us to find answer for this one

69. A sorting algorithm can be used to arrange a set of ________ in ________ order.

Answer

Correct Answer: All of the above

Note: This Question is unanswered, help us to find answer for this one

70. A derived class always ____ case or instance of the more general base class.

Answer

Correct Answer: Is a

Note: This Question is unanswered, help us to find answer for this one

71. A personal experience timeline is used to help the writer _____.

Answer

Correct Answer: Generate a topic

Note: This Question is unanswered, help us to find answer for this one

72. Class templates are called ____ types.

Answer

Correct Answer: Polymorphic

Note: This Question is unanswered, help us to find answer for this one

73. By default, parameters are defined as ______________ parameters.

Answer

Correct Answer: Input

Note: This Question is unanswered, help us to find answer for this one

74. In a(n) ________ system, each step is dependent on the previous step being completed.

Answer

Correct Answer: Waterfall

Note: This Question is unanswered, help us to find answer for this one

75. A program must __________ without any errors before it can be run.

Answer

Correct Answer: Compile

Note: This Question is unanswered, help us to find answer for this one

76. A description of the program, its purpose and how to use it, is known as ________.

Answer

Correct Answer: Documentation

Note: This Question is unanswered, help us to find answer for this one

77. Writing a program in a language such as c++ or java is known as _______ the program.

Answer

Correct Answer: Coding

Note: This Question is unanswered, help us to find answer for this one

78. The procedures that the object performs are known as ________.

Answer

Correct Answer: Methods

Note: This Question is unanswered, help us to find answer for this one

79. Programming style is important, because ________.

Answer

Correct Answer: Good programming style makes a program more readable
Good programming style helps reduce programming errors

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

80. All of the following are examples of application software except ____.

Answer

Correct Answer: Programming Languages

Note: This Question is unanswered, help us to find answer for this one

81. The earliest programming languages are referred to as ____.

Answer

Correct Answer: Low- Level Languages

Note: This Question is unanswered, help us to find answer for this one

82. The class ________ starts with the word class followed by the name of the class.

Answer

Correct Answer: Definition

Note: This Question is unanswered, help us to find answer for this one

83. All objects in an object-oriented program are instantiated (created) from a ____.

Answer

Correct Answer: Class

Note: This Question is unanswered, help us to find answer for this one

84. Many programming languages include a string operation called __________.

Answer

Correct Answer: Concatenation

Note: This Question is unanswered, help us to find answer for this one

85. A function ____________________ is a function that is not fully coded.

Answer

Correct Answer: Stub

Note: This Question is unanswered, help us to find answer for this one

86. A program that tests a function is called a _____ program.

Answer

Correct Answer: Driver

Note: This Question is unanswered, help us to find answer for this one

87. In some programming languages, ___________ are implemented as arrays whose elements are characters.

Answer

Correct Answer: Strings

Note: This Question is unanswered, help us to find answer for this one

88. You use the ____ function to find the total number of elements in an array.

Answer

Correct Answer: Count()

Note: This Question is unanswered, help us to find answer for this one

89. When an object is passed as an argument, ________ is passed into the parameter variable.

Answer

Correct Answer: A reference to the object

Note: This Question is unanswered, help us to find answer for this one

90. The ________ of a local variable is the function in which that variable is created.

Answer

Correct Answer: Local

Note: This Question is unanswered, help us to find answer for this one

91. Sql is an example of a ________ category programming language.

Answer

Correct Answer: 4GL

Note: This Question is unanswered, help us to find answer for this one

92. Polymorphism means ________.

Answer

Correct Answer: That a variable of supertype can refer to a subtype object

Note: This Question is unanswered, help us to find answer for this one

93. In subquery terminology, the first query in the sql statement is known as the ____ query.

Answer

Correct Answer: Outer

Note: This Question is unanswered, help us to find answer for this one

94. In a problem statement, you can limit complexity by making ____________.

Answer

Correct Answer: Assumptions

Note: This Question is unanswered, help us to find answer for this one

95. A(n) ________ is the most fundamental set of programs on a computer.

Answer

Correct Answer: Operating system

Note: This Question is unanswered, help us to find answer for this one

96. You are least likely to have a lab test in a __________ course.

Answer

Correct Answer: Literature

Note: This Question is unanswered, help us to find answer for this one

97. A(n) ____ shows the relationship between screens in an interactive gui program.

Answer

Correct Answer: Interactivity diagram

Note: This Question is unanswered, help us to find answer for this one

98. A variable's ________ is the part of a program in which the variable may be accessed.

Answer

Correct Answer: Scope

Note: This Question is unanswered, help us to find answer for this one

99. When you write a program that stores a value in a variable, you are using ____ storage.

Answer

Correct Answer: Temporary

Note: This Question is unanswered, help us to find answer for this one

100. When a piece of data is written to a file, it is copied from a variable in ________ to the file.

Answer

Correct Answer: RAM

Note: This Question is unanswered, help us to find answer for this one

101. When a data field within a class is ____, no outside class can use it—including a child class.

Answer

Correct Answer: Private

Note: This Question is unanswered, help us to find answer for this one

102. The purpose of ____ is to set the values of data fields within the class.

Answer

Correct Answer: Set methods

Note: This Question is unanswered, help us to find answer for this one

103. Fractional numeric variables that contain a decimal point are known as ____ variables.

Answer

Correct Answer: Floating-point

Note: This Question is unanswered, help us to find answer for this one

104. Division by zero is a ________ error that is caught when the program executes

Answer

Correct Answer: Runtime

Note: This Question is unanswered, help us to find answer for this one

105. Arrays, unlike simple built-in types, are passed by ____.

Answer

Correct Answer: Reference

Note: This Question is unanswered, help us to find answer for this one

106. An object’s ____ are the tasks or functions the object performs

Answer

Correct Answer: Methods

Note: This Question is unanswered, help us to find answer for this one

107. A(n) ____ is a predefined procedure that you can call (or invoke) when needed.

Answer

Correct Answer: Method

Note: This Question is unanswered, help us to find answer for this one

108. A function includes its ____, which are values used by the function.

Answer

Correct Answer: Parameters

Note: This Question is unanswered, help us to find answer for this one

109. ____ are most often used to create web pages and web applications.

Answer

Correct Answer: Markup languages

Note: This Question is unanswered, help us to find answer for this one

110. ____ are the characteristics that define an object as part of a class.

Answer

Correct Answer: Abstract Data Type

Note: This Question is unanswered, help us to find answer for this one

111. A ____ defines the name and data type of program variables.

Answer

Correct Answer: Data declaration

Note: This Question is unanswered, help us to find answer for this one

112. The ________ operator performs division and returns the remainder.

Answer

Correct Answer: Modulus

Note: This Question is unanswered, help us to find answer for this one

113. A(n) ____ constructor is one that requires no arguments.

Answer

Correct Answer: Default

Note: This Question is unanswered, help us to find answer for this one

114. The ________ function does the same thing as using the mathematical ∧ operator.

Answer

Correct Answer: Pow

Note: This Question is unanswered, help us to find answer for this one

115. The _____ of a local variable is the function in which the variable is created

Answer

Correct Answer: Local scope

Note: This Question is unanswered, help us to find answer for this one

116. Sql is an example of a ________ style of programming language.

Answer

Correct Answer: 4GL

Note: This Question is unanswered, help us to find answer for this one

117. In many languages the case structure is called a ________ statement.

Answer

Correct Answer: Switch

Note: This Question is unanswered, help us to find answer for this one

118. A(n) ____ is a programmer-defined type, such as a class.

Answer

Correct Answer: Abstract data type

Note: This Question is unanswered, help us to find answer for this one

119. Class dClass: bClass{//class members list}; The class dclass is derived from the class bclass using the ____ type of inheritance.

Answer

Correct Answer: Private

Note: This Question is unanswered, help us to find answer for this one

120. The ____ operator can be used to return the address of a private data member of a class.

Answer

Correct Answer: Address of

Note: This Question is unanswered, help us to find answer for this one

121. The ________ of recursion is the number of times a recursive function calls itself.

Answer

Correct Answer: Depth

Note: This Question is unanswered, help us to find answer for this one

122. The static method ________ of class string returns a formatted string.

Answer

Correct Answer: Format.

Note: This Question is unanswered, help us to find answer for this one

123. The public constructors and methods of a class form the public _____ of the class

Answer

Correct Answer: Interface

Note: This Question is unanswered, help us to find answer for this one

124. The length of the string "hello there. " is ____.

Answer

Correct Answer: 13

Note: This Question is unanswered, help us to find answer for this one

125. The header file is also known as the ____________________.

Answer

Correct Answer: Interface file

Note: This Question is unanswered, help us to find answer for this one

126. The expression "java" + 1 + 2 + 3 evaluates to ________.

Answer

Correct Answer: Java 123

Note: This Question is unanswered, help us to find answer for this one

127. The declare statement allocates __________ storage locations to the array named photos[23].

Answer

Correct Answer: 23

Note: This Question is unanswered, help us to find answer for this one

128. The code int *p; declares p to be a(n) ____ variable.

Answer

Correct Answer: Pointer

Note: This Question is unanswered, help us to find answer for this one

129. The ____ object allows you to change to a new web page from within javascript code.

Answer

Correct Answer: Location

Note: This Question is unanswered, help us to find answer for this one

130. The ____ event fires when a form is submitted.

Answer

Correct Answer: Submit

Note: This Question is unanswered, help us to find answer for this one

131. ____ is a valid char value.

Answer

Correct Answer: 'A'

Note: This Question is unanswered, help us to find answer for this one

132. The sql command that lets you select attributes from rows in one or more tables is ____.

Answer

Correct Answer: SELECT

Note: This Question is unanswered, help us to find answer for this one

133. The sql command that lets you insert rows into a table is ____.

Answer

Correct Answer: INSERT

Note: This Question is unanswered, help us to find answer for this one

134. The process of ____ is used to create an object from a class.

Answer

Correct Answer: Instantiation

Note: This Question is unanswered, help us to find answer for this one

135. The main method header is written as ________.

Answer

Correct Answer: Public static void main(String[] args)

Note: This Question is unanswered, help us to find answer for this one

136. The capability to inherit from more than one class is called ____.

Answer

Correct Answer: Multiple inheritance

Note: This Question is unanswered, help us to find answer for this one

137. Inheritance enables a ____ to derive one or more of its attributes from a parent.

Answer

Correct Answer: Child

Note: This Question is unanswered, help us to find answer for this one

138. If you do not provide an access specifier for a class field, its access is ____ by default.

Answer

Correct Answer: Private

Note: This Question is unanswered, help us to find answer for this one

139. Pointers are variables that contain __________ as their values.

Answer

Correct Answer: Memory addresses

Note: This Question is unanswered, help us to find answer for this one

140. The length of the string ""computer science"" is ____.

Answer

Correct Answer: 16

Note: This Question is unanswered, help us to find answer for this one

141. ____ enables an object to derive one or more of its attributes from another object.

Answer

Correct Answer: Inhertitance

Note: This Question is unanswered, help us to find answer for this one

142. In a class method, the ____ reference can be used only with identifiers that are field names.

Answer

Correct Answer: This

Note: This Question is unanswered, help us to find answer for this one

143. Virtualization is the process by which ________.

Answer

Correct Answer: One computer hosts the appearance of many computers

Note: This Question is unanswered, help us to find answer for this one

144. Two researchers suggested in the 1960s that ____ may have been the first informational molecule.

Answer

Correct Answer: RNA

Note: This Question is unanswered, help us to find answer for this one

145. Today, people working in cyberspace must deal with new and constantly evolving ________.

Answer

Correct Answer: Risks

Note: This Question is unanswered, help us to find answer for this one

146. The number of elements an array will hold is known as the ____ of the array.

Answer

Correct Answer: Size

Note: This Question is unanswered, help us to find answer for this one

147. According to aristotle, democracy is the _____ form of government by _____.

Answer

Correct Answer: Corrupt; many

Note: This Question is unanswered, help us to find answer for this one

148. A variable listed in a header is known as a(n) ____ parameter.

Answer

Correct Answer: Formal

Note: This Question is unanswered, help us to find answer for this one

149. ________ are applications that incorporate data from multiple providers into a new application.

Answer

Correct Answer: Mashups

Note: This Question is unanswered, help us to find answer for this one

150. Function is another name for ________.

Answer

Correct Answer: Module

Note: This Question is unanswered, help us to find answer for this one

151. A(n) ____ represents a real person, place, event, or transaction.

Answer

Correct Answer: Object

Note: This Question is unanswered, help us to find answer for this one

152. A(n) ____ is a specific member of a class.

Answer

Correct Answer: Instance

Note: This Question is unanswered, help us to find answer for this one

153. A program written in assembly language is called the ____ program.

Answer

Correct Answer: Source

Note: This Question is unanswered, help us to find answer for this one

154. ____ resemble verbs that describe what and how an object does something.

Answer

Correct Answer: Methods

Note: This Question is unanswered, help us to find answer for this one

155. After programs are put into production, making necessary changes is called ____.

Answer

Correct Answer: Maintenance.

Note: This Question is unanswered, help us to find answer for this one

156. Object attributes are often called ____ to help distinguish them from other variables you might use

Answer

Correct Answer: Fields

Note: This Question is unanswered, help us to find answer for this one

157. When a function is called by its name, then it is _____.

Answer

Correct Answer: Executed

Note: This Question is unanswered, help us to find answer for this one