Final Exam-Programming Language
Final Exam-Programming Language
Final Exam-Programming Language
COLLEGE OF SCIENCE
Programming Language
Name: Course:
Date: Score:
___________________________________________________________________________________
Multiple Choice. Select the best answer of your choice. Encircle the letter of the correct answer.
Test I.
1. A statically-typed programming language developed by JetBrains. *
a) Java
b) Assembly Language
c) Kotlin
d) Javascript
a) Steve Jobs
b) James Gosling
c) Dennis Ritchie
d) Rasmus Lerdorf
1
7/18/23, 2:14 Final Exam on Programming Language-BSCS3C
PM
2
7/18/23, 2:14 Final Exam on Programming Language-BSCS3C
PM
a) int number;
b) float rate;
c) int variable_count;
d) int $main;
7. It is the place where the computer stores temporary data like the variables in a program.
a) Stack Values
b) Memory Values
c) Register Values
d) None of the choice
a) 1970
b) 1983
c) 1900
d) 1978
3
7/18/23, 2:14 Final Exam on Programming Language-BSCS3C
PM
9. What is C++?
a) C++ is an object-oriented programming language
b) C++ is a procedural programming language
c) C++ supports both procedural and object-oriented programming language
d) C++ is a functional programming language
10. An operator in kotlin that is used to provide a default value when a nullable object is null.
a) Bitwise Operator
b) Elvis Operator
c) Nullability Operator
d) Logical Operator
11. Which of the following is the correct syntax of including a user defined header files in C++?
a) #include [userdefined]
b) #include “userdefined”
c) #include <userdefined.h>
d) #include <userdefined>
https://docs.google.com/forms/d/1lOKzt-WwNND4gCZ3U00rwArINh26v0eH4tSw8D3NYdY/edit?pli=1&pli=1#settings 4
7/18/23, 2:14 Final Exam on Programming Language-BSCS3C
PM
12. Which of the following option leads to the portability and security of Java? *
13. A programming language that was developed by Brad Cox and Tom Love in the early 1980s.
a) C language
b) Objective-C
c) Kotlin
d) C++
a) .java
b) .kot
c) .kt
d) .lin
https://docs.google.com/forms/d/1lOKzt-WwNND4gCZ3U00rwArINh26v0eH4tSw8D3NYdY/edit?pli=1&pli=1#settings 5
7/18/23, 2:14 Final Exam on Programming Language-BSCS3C
PM
a) Dynamic Architecture
b) Neutral
c) Use of pointers
d) Object-oriented
16. The first line of the program #import <Foundation/Foundation.h> is a preprocessor command for which
programming language?
a) C
b) C++
c) Objective C
d) Java
a) /* comment */
b) / comment */
c) / comment
d) both / comment or /* comment */
https://docs.google.com/forms/d/1lOKzt-WwNND4gCZ3U00rwArINh26v0eH4tSw8D3NYdY/edit?pli=1&pli=1#settings 6
7/18/23, 2:14 Final Exam on Programming Language-BSCS3C
PM
18. C++ is a statically type programming language thatruns on the Java Virtual Machine (JVM) and can be
compiled to JavaScript or native code.
a) True
b) False
a) Integer
b) Real
c) String
d) All of the above
a) Bill Gates
b) Steve Jobs
c) Blaise Pascal
d) Niklaus Wirth
21. In Assembly language, the instructions like MOV or ADD are called as *
a) OP-Code
b) Commands
c) Operators
d) None of the mentioned
https://docs.google.com/forms/d/1lOKzt-WwNND4gCZ3U00rwArINh26v0eH4tSw8D3NYdY/edit?pli=1&pli=1#settings 7
7/18/23, 2:14 Final Exam on Programming Language-BSCS3C
PM
a) Integer
b) Real
c) String
d) Float
24. In Assembly language, the extension file that is must for a file to be accepted by the LINK as a valid object file
is?
a) .OBJ file
b) .MASM file
c) .EXE file
d) DEBUG file
https://docs.google.com/forms/d/1lOKzt-WwNND4gCZ3U00rwArINh26v0eH4tSw8D3NYdY/edit?pli=1&pli=1#settings 8
7/18/23, 2:14 Final Exam on Programming Language-BSCS3C
PM
a) JVM
b) JRE
c) JDK
d) JDB
26. Evaluate the following Java expression, if x=3, y=5, and z=10: ++z + y - y + z + x++
a) 24
b) 23
c) 20
d) 25
27. Which of the following user-defined header file extension used in c++?
a) hg
b) cpp
c) h
d) hf
https://docs.google.com/forms/d/1lOKzt-WwNND4gCZ3U00rwArINh26v0eH4tSw8D3NYdY/edit?pli=1&pli=1#settings 9
7/18/23, 2:14 Final Exam on Programming Language-BSCS3C
PM
a) double
b) float
c) int
d) bool
a) array{10};
b) array array[10];
c) int array;
d) int array[10];
a) assembler
b) compilers
c) interpreter
https://docs.google.com/forms/d/1lOKzt-WwNND4gCZ3U00rwArINh26v0eH4tSw8D3NYdY/edit?pli=1&pli=1#settings 10
7/18/23, 2:14 Final Exam on Programming Language-BSCS3C
PM
a) Null
b) Symbol
c) Object
d) Undefined
https://docs.google.com/forms/d/1lOKzt-WwNND4gCZ3U00rwArINh26v0eH4tSw8D3NYdY/edit?pli=1&pli=1#settings 11
7/18/23, 2:14 Final Exam on Programming Language-BSCS3C
PM
a) To declare a variable
b) To assign a value to a variable
c) To read input from the user
d) To output a value to the console
35. Programming language in which there is a very strong correspondence between the language and the
architecture's machine code instructions is termed as;
a) machine language
b) assembly language
c) high level language
d) medium language
https://docs.google.com/forms/d/1lOKzt-WwNND4gCZ3U00rwArINh26v0eH4tSw8D3NYdY/edit?pli=1&pli=1#settings 12
7/18/23, 2:14 Final Exam on Programming Language-BSCS3C
PM
38. Which class in Java is used to take input from the user? *
a) Scanner
b) Input
c) Readln
d) Scanf
https://docs.google.com/forms/d/1lOKzt-WwNND4gCZ3U00rwArINh26v0eH4tSw8D3NYdY/edit?pli=1&pli=1#settings 13
7/18/23, 2:14 Final Exam on Programming Language-BSCS3C
PM
40. Which of the following is the correct syntax to create a variable in Java? *
a) var name;
b) int name;
c) var name int;
d) All of these
a) #macro
b) #define
c) macro
d) define
https://docs.google.com/forms/d/1lOKzt-WwNND4gCZ3U00rwArINh26v0eH4tSw8D3NYdY/edit?pli=1&pli=1#settings 14
7/18/23, 2:14 Final Exam on Programming Language-BSCS3C
PM
a) Basic
b) Cobol
c) C++
d) B
https://docs.google.com/forms/d/1lOKzt-WwNND4gCZ3U00rwArINh26v0eH4tSw8D3NYdY/edit?pli=1&pli=1#settings 15
7/18/23, 2:14 Final Exam on Programming Language-BSCS3C
PM
a) Unknown values
b) Static or constant values
c) Dynamic variable values
d) All of the above
a) Hex code
b) Mnenonics
c) ASCII code
d) Option 4
https://docs.google.com/forms/d/1lOKzt-WwNND4gCZ3U00rwArINh26v0eH4tSw8D3NYdY/edit?pli=1&pli=1#settings 16
7/18/23, 2:14 Final Exam on Programming Language-BSCS3C
PM
a) Function
b) def
c) Fun
d) Define
Page 1 of 17
Programming Language