Showing 1–20 of 213

Q1.Language used in AI is called?

Hard
A Python
B Machine
C Assembly
D None of the above
Programming Basics PPSC 2026

Correct Answer: B

Q2.Which type of Artificial Intelligence designed to create new content by learning pattern from massive existing database?

Hard
A Creative AI
B Building AI
C Generative AI
D None of the above
Programming Basics PPSC 2026

Correct Answer: C

Q3.Programming language of artificial intelligence is?

Hard
A Python
B Lisp
C Assembly
D None of these
Programming Basics PPSC 2026

Correct Answer: B

Q4.AI used in Robotics to perform real time work is called?

Hard
A Embedded AI
B Restrictive AI
C Conditional AI
D None of these
Programming Basics PPSC 2026

Correct Answer: A

Q5.What does a Compiler do?

Hard
A Convert Code
B Register Code
C Process Code
D None of these
Programming Basics PPSC 2026

Correct Answer: A

Q6.Machine learning is sub area of:

Easy
A Hardware Engineering
B Artificial intelligence
C Cyber forensics
D None of these
Programming Basics CSS 2026

Correct Answer: B

Machine learning is a sub-field of Artificial Intelligence.

Q7.What is the output of the following Python code? (x + y) = 5 + 3 print(x + y)

Easy
A 5
B 8
C SyntaxError
D None of these
Programming Basics PPSC

Correct Answer: C

(x + y) = 5 + 3 is not a valid assignment in Python. The program raises a SyntaxError before execution because assignments cannot be made to expressions on the left-hand side.

Q8.Compiler is the ______?

Easy
A Name given to the computer operator
B Translator of source program to object / Translator of high-level program to machine
C Part of the digital machine to store the information
D None of these
Programming Basics PPSC

Correct Answer: B

A compiler translates a high-level source program into machine language (object code) as a whole before execution, producing files like .obj or .exe.

Q9.Which programming languages are classified as low level languages?

Easy
A Assembly languages
B BASIC, COBOL, Fortran
C C, C++
D None of these
Programming Basics PPSC

Correct Answer: A

Assembly language is classified as a low-level programming language because it is very close to machine language, using mnemonics instead of binary codes.

Q10.A computer program that translates one program instructions at a time into machine language is called?

Easy
A Interpreter
B Compiler
C CPU
D None of these
Programming Basics PPSC

Correct Answer: A

An interpreter translates and executes a high-level program's instructions line-by-line, as opposed to a compiler which translates the entire script at once.

Q11.Which of the following languages is used for webpage development?

Easy
A HTML
B FORTRAN
C C or C++
D None of these
Programming Basics PPSC

Correct Answer: A

HTML (Hypertext Markup Language) is the standard markup language used to create and structure web pages and applications.

Q12.VGA stands for _____?

Easy
A Visual Graphics Adapter
B Video Graphics Array
C Video Graphic Adapter
D None of these
Programming Basics PPSC

Correct Answer: B

VGA stands for Video Graphics Array, a display standard introduced by IBM in 1987.

Q13.In an operating system, which scheduling algorithm may suffer from starvation because shorter processes continuously receive priority?

Easy
A Shortest Job First (SJF)
B First Come, First Served (FCFS)
C Round Robin (RR)
D None of these
Programming Basics PPSC

Correct Answer: A

Shortest Job First (SJF) can lead to starvation for long processes if short processes continuously arrive and receive higher priority.

Q14.Which operator is used as the increment operator in C/C++?

Easy
A --
B ++
C +=
D **
Programming Basics PPSC

Correct Answer: B

The '++' operator is the standard increment operator in C and C++, which adds exactly 1 to its operand.

Q15.Which of the following is not a high-level programming language?

Easy
A C / C++
B Java
C Fortran / Python
D Machine Language / Assembly
Programming Basics PPSC

Correct Answer: D

Machine Language and Assembly language represent low-level programming languages that map directly to physical hardware architectures.

Q16.Which sorting algorithm has the best worst-case time complexity?

Easy
A Merge Sort
B Bubble Sort
C Selection Sort
D None of these
Programming Basics PPSC

Correct Answer: A

Merge Sort features a guaranteed time complexity of O(n log n) in its worst, average, and best cases, which is highly efficient compared to Bubble or Selection Sort (O(n²)).

Q17.Which data structure uses LIFO (Last In, First Out) principle?

Easy
A Stack
B Queue
C Linked List
D None of these
Programming Basics PPSC

Correct Answer: A

A Stack is a linear data structure that adheres to the LIFO (Last In, First Out) principle, where the last added element is the first one removed.

Q18.Which programming language is most widely used for Large Language Models (LLMs)?

Easy
A Python
B Java
C C++
D None of these
Programming Basics PPSC

Correct Answer: A

Python is the dominant language for developing and training Large Language Models (LLMs) due to its simple syntax and strong machine learning ecosystems (like PyTorch and TensorFlow).

Q19.Which of the following is the common language for Artificial Intelligence?

Easy
A LISP
B JAVA
C Python
D None of these
Programming Basics PPSC

Correct Answer: C

Python is the most common language used for AI research and development due to its rich selection of mathematical and neural network libraries (NumPy, Scikit-learn, PyTorch).

Q20.ChatGPT works on?

Easy
A Supervised Learning
B Reinforcement Learning
C Unsupervised Learning
D Genetic Algorithms
Programming Basics PPSC

Correct Answer: B

ChatGPT was developed using Reinforcement Learning from Human Feedback (RLHF) to optimize its conversational responses and follow user instructions safely.