0% found this document useful (0 votes)
32 views8 pages

Programming Language Quiz Questions

The document contains a series of multiple-choice questions and answers related to programming concepts, languages, and practices. Topics covered include programming paradigms, variable naming conventions, data types, integrated development environments, and specific programming languages like Java, Python, C++, and PHP. It also addresses concepts such as polymorphism, error handling, and the structure of code in various programming languages.

Uploaded by

nagarajan17u
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views8 pages

Programming Language Quiz Questions

The document contains a series of multiple-choice questions and answers related to programming concepts, languages, and practices. Topics covered include programming paradigms, variable naming conventions, data types, integrated development environments, and specific programming languages like Java, Python, C++, and PHP. It also addresses concepts such as polymorphism, error handling, and the structure of code in various programming languages.

Uploaded by

nagarajan17u
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

1.

Which programming paradigm emphasizes on writing code that is easy to read and
maintain?
a) Procedural programming
b) Object-oriented programming
c) Functional programming
d) Structured programming
ANS:Object-oriented programming

[Link] is the term used for a block of code that is executed repeatedly until a
certain condition is met?
a) Function
b) Loop
c) Condition
d) Variable
ANS:Loop

[Link] programming language is used for developing Android apps?


a) Java
b) C#
c) Python
d) Swift
ANS:Java

[Link] of the following is not a valid variable name in most programming


languages?
a) myVariable
b) 123Variable
c) _myVariable
d) my_variable
ANS:123Variable

5. Which of the following is not a data type in most programming languages?


a) Integer
b) Float
c) Double
d) String
ANS: Double.

6. Which programming language is used for developing iOS apps?


a) Java
b) C#
c) Python
d) Swift
ANS: Swift.

7. Which of the following is a commonly used integrated development environment


(IDE) for Python?
a) Visual Studio Code
b) PyCharm
c) Eclipse
d) Sublime Text
ANS:PyCharm.

[Link] of the following is a commonly used programming language for game


development?
a) Java
b) Python
c) C#
d) Ruby
ANS:C#

[Link] of the following is a commonly used web development framework for PHP?
a) Laravel
b) Flask
c) Ruby on Rails
d) [Link]
ANS:Laravel

[Link] of the following is a commonly used programming language for scientific


computing?

a) Java
b) Python
c) Ruby
d) C#

Answer: b) Python.

11.47. Which of the following is a commonly used programming language for data
analysis?

a) Java
b) Python
c) Ruby
d) C++

Answer: b) Python.

[Link] language can be directly understood by the CPU?

1. Assembly language
2. Java
3. C
4. All of the above

Ans :Assembly language

[Link] type of languages can easily interact with the hardware?


1. Very high level languages
2. Middle level languages
3. High level languages
4. Low level languages

Ans :Low Level languages

[Link] codes has ____________ bits

1. 8
2. 16
3. 10
4. 24

Ans :8

[Link] of the following cannot be a variable name in C?


a) volatile
b) true
c) friend
d) export

Ans :Volatile

[Link] many number of pointer (*) does C have against a pointer variable
declaration?
a) 7
b) 127
c) 255
d) No limits

Ans : No limits

17. In C language, FILE is of which data type?


a) int
b) char *
c) struct
d) None of the mentioned

Ans :struct

18. What is meant by ‘a’ in the following C operation?

fp = fopen("[Link]", "a");
a) Attach
b) Append
c) Apprehend
d) Add

Ans : Append

19. 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>

Ans:#include “userdefined”

20. Which of the following is a correct identifier in C++?


a) VAR_1234
b) $var_name
c) 7VARNAME
d) 7var_name

Ans:VAR_1234

[Link] component is used to compile, debug and execute the java programs?
a) JRE
b) JIT
c) JDK
d) JVM

Ans :JDK

[Link] one of the following is not a Java feature?


a) Object-oriented
b) Use of pointers
c) Portable
d) Dynamic and Extensible

Ans :Use of pointers

[Link] of the following is a type of polymorphism in Java Programming?


a) Multiple polymorphism
b) Compile time polymorphism
c) Multilevel polymorphism
d) Execution time polymorphism

Ans:Compile time polymorphism

[Link] of the following is a superclass of every class in Java?


a) ArrayList
b) Abstract class
c) Object class
d) String

Ans :Object class

[Link] of these packages contains the exception Stack Overflow in Java?


a) [Link]
b) [Link]
c) [Link]
d) [Link]

Ans:[Link]

[Link] of these keywords are used for the block to be examined for exceptions?
a) check
b) throw
c) catch
d) try

Ans:try

[Link] one of the following is not an access modifier?


a) Protected
b) Void
c) Public
d) Private

Ans:Void

28. Which keyword is used for function in Python language?


a) Function
b) def
c) Fun
d) Define

Ans:def

[Link] of the following functions can help us to find the version of python that
we are currently working on?
a) [Link](1)
b) [Link](0)
c) [Link]()
d) [Link]
Ans:[Link]

30. What will be the output of the following Python code snippet if x=1?

x<<2
a) 4
b) 2
c) 1
d) 8

Ans:4

[Link] does pip stand for python?


a) Pip Installs Python
b) Pip Installs Packages
c) Preferred Installer Program
d) All of the mentioned

Ans:Preferred Installer program

[Link] of the following functions is a built-in function in python?


a) factorial()
b) print()
c) seed()
d) sqrt()

Ans :print()

33. Which of the following is not a core data type in Python programming?
a) Tuples
b) Lists
c) Class
d) Dictionary

Ans :Class

[Link] is the right way of declaring a variable in PHP?


a) $3hello
b) $_hello
c) $this
d) $5_Hello

Ans: $_hello

35.A function in PHP which starts with __ (double underscore) is known as


__________
a) Default Function
b) User Defined Function
c) Inbuilt Function
d) Magic Function

Ans :Magic Function

[Link] one of the following PHP function is used to determine a file’s last
access time?
a) filetime()
b) fileatime()
c) fileltime()
d) filectime()

Ans :fileatime()

[Link] developers of PHP deprecated the safe mode feature as of which PHP version?
a) PHP 5.3.1
b) PHP 5.3.0
c) PHP 5.1.0
d) PHP 5.2.0

Ans :PHP 5.3.0

38What does PDO stand for?


a) PHP Database Orientation
b) PHP Data Orientation
c) PHP Data Object
d) PHP Database Object

Ans:PHP Data object

[Link] of the following is correct about JavaScript?


a) JavaScript is an Object-Based language
b) JavaScript is Assembly-language
c) JavaScript is an Object-Oriented language
d) JavaScript is a High-level language

Ans : Javascript is an Object-Based language

[Link] event handlers is needed in JS?


a) Allows JavaScript code to alter the behaviour of windows
b) Adds innerHTML page to the code
c) Change the server location
d) Performs handling of exceptions and occurrences

Ans: Allows JavaScript code to alter the behaviour of windows

[Link] will be the output of the following Python code snippet?

for i in [1, 2, 3, 4][::-1]:


print (i)
a) 4 3 2 1
b) error
c) 1 2 3 4
d) none of the mentioned

Ans : 4 3 2 1

[Link] will be the output of the following Python statement?

>>>"a"+"bc"
a) bc
b) abc
c) a
d) bca

Ans:abc

[Link] is meant by a polymorphism in C++?


a) class having only single form
b) class having four forms
c) class having many forms
d) class having two forms

Ans:class having many forms

44. Which of the following is not an error in JavaScript?


a) Missing of Bracket
b) Division by zero
c) Syntax error
d) Missing of semicolons

Ans :Division by zero

45. C# is a programming language, developed by ___.

a) Oracle
b) Microsoft
c) GNU project
d) Google
Answer: B) Microsoft

46.C# runs on the ___.

a) .NET Framework
b) Java Virtual Machine
c) Both A. and B.
d) None of the above
Answer: A) .NET Framework

47. C# programming language is used to develop -

a) Web apps
b) Desktop apps
c) Mobiles apps
d) All of the above
Answer: D) All of the above

48. CLR stands for ___.

a) Common Type System


b) Common Language Specification
c) Common Language Runtime
d) Java Virtual Machine
answer: C) Common Language Runtime

49. .Net CLR is equivalent to?

a)Common Type System


b) Common Language Specification
c) Common Language Runtime
d) Java Virtual Machine
Answer: D) Java Virtual Machine

50. Which symbols are used to mark the beginning and end of a code block?

a) Square brackets []
b) Curly braces {}
c) Round brackets ()
d) Double-quotes ""
Answer: B) Curly braces {}

You might also like