Programming Concepts & Python – Previous Year Questions
38 questions from past HTET PGT Computer Science papers, each with the correct answer. Open any question for its explanation.
- In Python .......... function returns the number of characters in string argument.
- Which programming pays more attention on data rather than functions?
- .......... refers to the procedure of representing essential features without including the background details.
- In Python Dictionaries organize the information by ........, not position.
- In Python "==" operator returns true if :
- A .......... is the specification of legal values for variable of the type.
- In Python .......... operator is used to determine the element's presence or absence in list.
- In Python, .......... is the type of sequence that resembles a list, except that, unlike a list, it is immutable.
- .......... is a set of rules for carrying out some calculation either by hand or by machine.
- Which procedure is characterized by the fact that the procedure calls itself again and again till the base condition is met?
- If a class contains at least one pure virtual function, it is called as ............. class.
- Tuples in Python are :
- In python elements of the list are written inside :
- Pictorial representation of an algorithm is called as :
- In Python dictionary key value pairs are separated by :
- In Python instance methods use ........... as first default parameter.
- Step by step description of how to arrive at a solution to a given problem is known as :
- This module converts the python source file into .pyc file :
- The software containing an interpreter that converts the byte code into machine code where the python program runs is called as :
- Which of the following constructor related concept is non-relevant in C++ ?
- In C++, which of the following is not a derived container under STL ?
- In C++, an overloaded unary operator defined as a member function requires how many variables to be passed as function argument ?
- How many times 'save trees' will be displayed by C++ loop ? do { cout << "save trees"; } while(0);
- Consider Column-I and Column-II in context of C++ : Column-I Column-II i. Private a. Data type modifier ii. Sizeof b. Visibility specifier iii. Static c. Operator iv. Long d. Storage class Match of Column-I and Column-I…
- Choose true statements about virtual functions in C++ : I : The virtual functions must be member of some class. II : They cannot be static members. III: A virtual function can be a friend of another class.
- In context of C++, which of the following is a valid statement ?
- In C file handling equivalent to scanf("%d",&val); is :
- A variable declared within the block {} has the following scope :
- What is a copy constructor ?
- In the given declaration of an array : float height[50];