Programming Languages MCQs | STS IBA FPSC BPSC SPSC PPSC Mcqs Test Preparation
Deepen your knowledge of Programming Languages with our extensive range of basic computer MCQs and computer science MCQs. Our platform provides a variety of computer MCQ online tests designed to enhance your understanding of different programming languages. Utilize our computer MCQ test online resources, which include detailed questions and answers focused on Programming Languages. We are recognized as the best MCQs portal in the world, offering top-quality resources for learning Programming Languages.
If you’re looking for the best MCQs site for computer MCQs related to Programming Languages, you’ve found the right place. Our site features a comprehensive selection of computer MCQs tailored to various programming languages. With our computer MCQ online test options, you’ll access high-quality practice materials that will help you excel in programming. Discover why we are the best MCQs site for computer MCQs and the best MCQs portal in the world for mastering Programming Languages.
In Python, which of the following is used to create an anonymous function?
A. def
B. lambda
C. func
D. anonymous
Answer: lambda
What does ‘NaN’ stand for in JavaScript?
A. Not a Number
B. Not Applicable
C. Null and Notation
D. New Array Number
Answer: Not a Number
In C, what is the correct format specifier for printing a float value?
A. %f
B. %d
C. %lf
D. %p
Answer: %f
In JavaScript, which function is used to parse a string to an integer?
A. Number()
B. parseInt()
C. parse()
D. toInt()
Answer: parseInt()
What is the size of an ‘int’ data type in Java?
A. 4 bytes
B. 8 bytes
C. 2 bytes
D. Depends on the system
Answer: 4 bytes
In Python, what is the result of `10 // 3`?
A. 3.33
B. 3
C. 0
D. 1
Answer: 3
Which of the following is a Python data type?
A. list
B. array
C. tuple
D. hashmap
Answer: tuple
In C, which function is used to find the length of a string?
A. strlen()
B. strlength()
C. size()
D. len()
Answer: strlen()
In Ruby, which method can be used to check if a key exists in a hash?
A. has_key?
B. contains?
C. find_key?
D. exist?
Answer: has_key?