Python Programming/Code
Binary
Computer Abbreviations
Computer History/Trivia
Python Principles/Definitions
100

To comment a line in Python, you use this/these character(s).

What is a pound sign (#) ?

100

Made up of 8 bits

What is a byte?

100

WWW

What is the world wide web?

100

This search engine, founded by Larry Page and Sergey Brin in 1998, quickly became synonymous with internet searching.

What is Google?

100

A sequence of instructions designed in such a way that if the instructions are executed in the specified sequence, the desired results will be obtained.

What is an algorithm?

200

This commonly used Python data structure contains a collection of items referenced by a numeric index.

What is a list?

200
Number represented by 01101

What is 13?

200

RAM

What is random access memory?

200

Company  founded by Bill Gates and Paul Allen in 1975 which became one of the world's largest and most influential technology companies.

What is Microsoft?

200

2 standard data types in python.

What are numbers, strings, lists, tuples, dictionaries, and sets?

300

To raise the number 5 to the power of 8, you must use the power operator. This/These symbol(s) denote the power operator.

What are two asterisks (**) ?

300

The binary code for the number 34

What is 100010?

300

CPU 

What is Central Processing Unit?



300

Popular coding language, introduced in the early 1990s, named after a famous British comedy group.

What is Python?

300

Define boolean value

What is either true or false?

In Python, the two Boolean values are True and False, and the Python type is bool.

400

The output of the code below:

str = "pynative"
print (str[1:3])

What is yn?

400

The decimal result of this binary addition: 

1000 + 1010

What is 18?

400

PDF

What is a Portable Document Format?

400

Computer programming language, developed by James Gosling and his team at Sun Microsystems in the 1990s, designed to be platform-independent and object-oriented

What is Java?

400

Difference between a list and an array

Python List:

Lists are the inbuilt data structure of python. We can store elements of different types in the list. Items in the list are enclosed between square brackets and separated by commas. We can even nest lists with other data structures like lists, dictionaries, tuples, etc.

Python Array:

Arrays are not the in-built data structure readily available in Python. We must import the array from the 'array' or 'numpy' module. Array stores elements of similar types. If we try to store elements of different types, it will throw an error. We can only store elements of the same types in the array.

500

Guy The output of the code below:

var= "James Bond"
print(var[2::-1])

What is maJ?

Explanation: Pick a range of items starting in the reverse direction starting from index 2 with step 1.

500

The decimal value of this binary subtraction: 

10111 - 1101

What is 10?

500

HTML

What is Hypertext Markup Language?

500

This mathematician and logician, often regarded as one of the fathers of modern computer science, introduced the concept of a universal machine in the 1930s.

Who is Alan Turing?

500

Difference between local variable and global variable

What is:

A local variable is a variable that is defined within a specific function and is only accessible within that function. It cannot be accessed by other functions within the program.

In contrast, a global variable is a variable that is declared outside of any function, allowing it to be accessed by all functions in the program.