Computer Programming (e.g., MATLAB, Python) – MCQs

50 Score: 0 Attempted: 0/50 Subscribe
1. Which of the following is a high-level, interpreted programming language widely used for data science?





2. MATLAB is primarily used for:





3. In Python, which symbol is used for comments?





4. In MATLAB, the symbol used for comments is:





5. Which Python function is used to display output?





6. Which MATLAB command is used to display output?





7. Which of the following is a mutable data type in Python?





8. In Python, immutable sequences are:





9. In MATLAB, arrays are:





10. In Python, arrays and lists are:





11. Which operator is used for exponentiation in Python?





12. Which operator is used for exponentiation in MATLAB?





13. Which Python library is commonly used for numerical computing?





14. Which MATLAB function is used to create a linearly spaced vector?





15. In Python, which library is primarily used for data visualization?





16. Which MATLAB function is used to plot data?





17. Which function in Python returns the length of a list?





18. In MATLAB, which function returns the size of a matrix?





19. Which loop is not available in Python?





20. Which loop is not available in MATLAB?





21. In Python, indentation is used to:





22. In MATLAB, code blocks are defined by:





23. Which of the following is used to read input in Python?




24. In MATLAB, how do you suppress output of a command?





25. In Python, a dictionary stores data as:





26. MATLAB primarily uses which data structure for storing values?





27. Which keyword is used to define a function in Python?





28. Which keyword is used to define a function in MATLAB?





29. Which of the following is a Python IDE?





30. Which of the following is a MATLAB IDE?





31. In Python, which symbol is used for floor division?





32. In MATLAB, element-wise multiplication is done using:





33. Which Python library is widely used for data analysis?





34. Which MATLAB command is used to clear all variables?





35. Which Python function converts a string into an integer?





36. In MATLAB, which function converts a string to a number?





37. Which Python statement is used for exception handling?





38. Which MATLAB statement is used for error handling?





39. In Python, which library is mainly used for machine learning?





40. Which of these is not a valid Python data type?





41. Which MATLAB function is used to find eigenvalues?





42. In Python, which keyword is used to exit a loop prematurely?





43. In MATLAB, which function is used for Fourier Transform?





44. Which Python module is used for regular expressions?





45. Which MATLAB function generates random numbers between 0 and 1?





46. In Python, which keyword defines a class?





47. In MATLAB, which function saves workspace data to a file?





48. In Python, which operator is used for logical AND?





49. In MATLAB, which operator is used for logical AND?





50. Which language is considered more efficient for large-scale numerical computing?





Β FOUNDATIONAL SUBJECTS (Year 1 – Year 2)

  1. Engineering Mechanics (Statics & Dynamics) – MCQs

  2. Fluid Mechanics – MCQs

  3. Thermodynamics – MCQs

  4. Computer Programming (e.g., MATLAB, Python) – MCQs

  5. Introduction to Engineering – MCQs

  6. Geology for Engineers – MCQs

  7. Technical Communication – MCQs

Β CORE PETROLEUM ENGINEERING SUBJECTS (Year 2 – Year 4)

  1. Introduction to Petroleum Engineering – MCQs

  2. Petroleum Geology – MCQs

  3. Drilling Engineering – MCQs

  4. Reservoir Engineering – MCQs

  5. Production Engineering – MCQs

  6. Petroleum Fluid Properties – MCQs

  7. Well Logging and Formation Evaluation – MCQs

  8. Petroleum Economics – MCQs

  9. Petroleum Refining and Processing – MCQs Β 

  10. Natural Gas Engineering – MCQs

  11. Enhanced Oil Recovery (EOR) – MCQs

  12. Well Testing – MCQs

  13. Reservoir Simulation – MCQs

  14. Drilling Fluids and Cementing – MCQs

  15. Offshore Petroleum Engineering – MCQs

  16. Health, Safety and Environment (HSE) – MCQs

  17. Petroleum Project Management – MCQs

  18. Corrosion Engineering – MCQs

  19. Artificial Lift Techniques – MCQs

  20. Petrophysics – MCQs

Β LABORATORIES & PRACTICALS (Theory-based MCQs can be made from these)

  1. Drilling Fluids Lab – MCQs

  2. Core Analysis Lab – MCQs

  3. Reservoir Simulation Lab – MCQs

  4. Rock and Fluid Properties Lab – MCQs

  5. Well Logging Lab – MCQs

Β ELECTIVES (Optional/Advanced)

  1. Energy Transition and Sustainability – MCQs

  2. Unconventional Resources (Shale, Tight Gas, etc.) – MCQs

  3. Data Analytics in Petroleum Engineering – MCQs

  4. Geographic Information Systems (GIS) – MCQs

  5. Petroleum Law and Policy – MCQs

  6. Pipeline Engineering – MCQs

  7. Renewable Energy Integration – MCQs