1. Question:What are binary trees? 

    Answer
    Binary trees are actually an extension of the concept of linked lists. A binary tree has two pointers, a left one and a right one. Each side can further branch to form additional nodes, which each node having two pointers as well.

    1. Report
  2. Question:What is a program flowchart and how does it help in writing a program? 

    Answer
    A flowchart provides a visual representation of the step by step procedure towards solving a given problem. Flowcharts are made of symbols, with each symbol in the form of different shapes. Each shape may represent a particular entity within the entire program structure, such as a process, a condition, or even an input/output phase.

    1. Report
  3. Question:Create a simple code fragment that will swap the values of two variables num1 and num2. 

    Answer
    temp = num1; 
    num1 = num2; 
    num2 = temp;

    1. Report
Copyright © 2024. Powered by Intellect Software Ltd