Python3 Engineer Certification Basic Exam-Notes and Problem Trends-

Python3 Engineer Basic Certification Exam

■ Exam details

Examination date: All year round (check the examination venue as it is also held at computer schools) Application URL: http://cbt.odyssey-com.co.jp/pythonic-exam.html Examination fee: 10,000 yen (excluding tax)

■ Exam outline

Exam name: Python3 engineer certification basic exam (English name: Python 3 Certified Engineer Basic Examination) Qualification name: Python3 engineer certification basic examination passer (English name: Python 3 Basic Grammar Certification) Summary: Exams that ask the basics of grammar Number of questions: 40 questions (all selection questions: 1 question 25 points calculation) Test time: 60 minutes Pass line: 70% correct answer rate Scope of questions: O'Reilly Japan "Python Tutorial 3rd Edition" and general knowledge

■ Practice test URL

https://diver.diveintocode.jp/exam

My programming level

I'm a beginner.

■Progato ・ Ruby ・ Python

■Kaggle ・ Only touch

■Rails tutorial ・ Completed up to the final 14 chapters

Mock test content

From here, I will write the answer based on the question.

Question 1: Choose from the options to show all packages installed in your virtual environment.

Correct answer: pip list

pip is used for package management. The main thing you can do is package ・ Installation ·upgrade ・ Remove There are various other commands, some of which are summarized in the table below.

subcommand meaning
install Can be installed by specifying a package
--You can install the latest version with update
uninstall Reverse of install
freeze List of installed packages (display for install)
list View all packages installed in the virtual environment
show show Show package information by package name
Question 2: Select the output result when the following program is executed.

Correct answer: 0 1 2

num_list  = [2, 4, 6, 4, 4, 2, 6]
for i in range(num_list.count(4)):
    print(i, end=' ')

count is a method to count the number of targets. By repeating with for and entering end ='' Expressed as 0 1 2.

Question 3: Select the correct output result when the following program is executed.

Correct answer: Noro

def dive_into_code(teacher, *mentor):
    print(teacher)

dive_into_code('Noro', 'Nakao', 'Miyaoka')

The erratic positional arguments ('Nakao','Miyaoka') are collectively assigned to (* menter).

Similar problems


dic = [
    ['Noro', 'Nakao', 'Miyaoka'],
    ['Kimura', 'Miyashita', 'Shibata'],
    ['Matsumoto', 'Tanaka', 'Ivan'],
]

print(list(zip(*dic)))

Correct answer: [('Noro','Kimura','Matsumoto'), ('Nakao','Miyashita','Tanaka'), ('Miyaoka','Shibata','Ivan')]

Question 4: Select the correct output result when the following program is executed.

Mock exam questions


dive_into_code = [(1, 'Noro'), (2, 'Nakao'), (3, 'Miyaoka'), (4, 'Kimura')]
dic = dive_into_code
#1 sorts the second element in ascending order. If it is 0, the first element is sorted in ascending order.
dic.sort(key=lambda dic: dic[1]) 

print(dic)

Correct answer: [(4,'Kimura'), (3,'Miyaoka'), (2,'Nakao'), (1,'Noro')] So you sort by K → M → Na → No.

Question 5: Select the correct output result when the following program is executed.

Correct answer: xxxxCODExxxxDIVExxxxDIVE

replace.py


d = 'xxxxDIVExxxxDIVExxxxDIVE'

print(d.replace('DIVE', 'CODE', 1))

String.replace (string before replacement, string after replacement, maximum number of times)

Question 6: Select the correct output result when the following program is executed.

Correct answer: 3.142

% Overall width. Width after the decimal point f

format.py


print("Output result:")
print('Pi is%5.It is 3f.'%math.pi)

Pi is 3.142
Question 7: Select the correct output result when the following program is executed.

Correct answer: [('Noro','Kimura','Matsumoto'), ('Nakao','Miyashita','Tanaka'), ('Miyaoka','Shibata','Ivan')]

How to change list type: list to dictionary type: dictionary using zip

zip.py


dic = [
    ['Noro', 'Nakao', 'Miyaoka'],
    ['Kimura', 'Miyashita', 'Shibata'],
    ['Matsumoto', 'Tanaka', 'Ivan'],
]

print(list(zip(*dic)))

I referred to the following. https://pg-chain.com/python-dictionary-list

that's all

Recommended Posts

Python3 Engineer Certification Basic Exam-Notes and Problem Trends-
Take the Python3 Engineer Certification Basic Exam
How to pass and study the Python 3 Engineer Certification Basic Exam
python engineer certification exam
Programming beginner Python3 engineer certification basic exam record
How amateurs passed the Python 3 Engineer Certification Basic Exam
Is the Python 3 Engineer Certification Basic Exam Really Easy?
Impressions of taking the Python 3 Engineer Certification Basic Exam
Python installation and basic grammar
Python (Python 3.7.7) installation and basic grammar
Java and Python basic grammar comparison
Python Basic Course (14 Modules and Packages)
Python3 Engineer Certification Basic Exam-I tried to solve the mock exam-
A memorandum regarding the acquisition of the Python3 engineer certification basic exam
Python basic operation 3rd: Object-oriented and class
Differences between Ruby and Python (basic syntax)
How to study Python 3 engineer certification basic exam by Python beginner (passed in August 2020)
A story about a liberal arts programming amateur getting a Python 3 engineer certification basic exam
Python3 Engineer Certification Data Analysis Exam Self-made Questions
Python 3 Engineer Certification Data Analysis Exam Pre-Exam Learning
[Python / Chrome] Basic settings and operations for scraping
Basic operation of Python Pandas Series and Dataframe (1)
Basic Python writing
How an "amateur banker" passed the Python 3 Engineer Certification Basic Exam in a week
Python3 basic grammar
RF Python Basic_02
[Python] AGC043A (Problem reading comprehension and DP) [At Coder]
Basic information Write the 2018 fall algorithm problem in Python
Have passed the Python Engineer Certification Data Analysis Exam
python Basic sorting algorithm summary (Basic Information Technology Engineer Examination)
[Python3 engineer certification data analysis test] Examination / passing experience
Installing Python 3 on Mac and checking basic operation Part 1
[Qualification] I studied Python from the basics to take the python3 engineer certification basic exam (examination record)
[Qualification] I studied Python from the basics to take the python3 engineer certification basic exam (study edition)