logo

CuriousTab

CuriousTab

Discussion


Home Technical Questions Programming See What Others Are Saying!
  • Question
  • Write a c program for insertion sort.


  • Correct Answer
  • #include int main(){ int i,j,s,temp,a[20]; printf("Enter total elements: "); scanf("%d",&s); printf("Enter %d elements: ",s); for(i=0;i=0)){ a[j+1]=a[j]; j=j-1; } a[j+1]=temp; } printf("After sorting: "); for(i=0;i


  • More questions

    • 1. What is the type of the algorithm used in solving the 8 Queens problem ?

    • Options
    • A. Dynamic Programming
    • B. BackTracking
    • C. Branch and Bound
    • D. None
    • Discuss
    • 2. The SQL statements that take care of security and authorization are

    • Options
    • A. DDL
    • B. DML
    • C. DCL
    • D. None
    • Discuss
    • 3. ON UPDATE CASCADE ensures which of the following?

    • Options
    • A. Normalization
    • B. Data Integrity
    • C. Materialized Views
    • D. All of the above.
    • Discuss
    • 4. A DBMS that combines a DBMS and an application generator is ________ .

    • Options
    • A. Microsoft's SQL Server
    • B. Microsoft's Access
    • C. IBM's DB2
    • D. Oracle Corporation's Oracle
    • Discuss
    • 5. A goal of data mining includes which of the following?

    • Options
    • A. To explain some observed event or condition
    • B. To analyze data for expected relationships
    • C. To confirm that data exists
    • D. To create a new data warehouse
    • Discuss
    • 6. ________ is an open source DBMS product that runs on UNIX, Linux and Windows.

    • Options
    • A. MySQL
    • B. JSP/SQL
    • C. JDBC/SQL
    • D. Sun ACCESS
    • Discuss
    • 7. Which of the following is the original purpose of SQL?

    • Options
    • A. To specify the syntax and semantics of SQL data definition language
    • B. To specify the syntax and semantics of SQL manipulation language
    • C. To define the data structures
    • D. All of the above.
    • Discuss
    • 8. If no multivalued attributes exist and no partial dependencies exist in a relation, then the relation is in what normal form?

    • Options
    • A. First normal form
    • B. Second normal form
    • C. Third normal form
    • D. Fourth normal form
    • Discuss
    • 9. For what purposes are views used?

    • Options
    • A. To hide rows only
    • B. To hide columns only
    • C. To hide complicated SQL statements only
    • D. All of the above are uses for SQL views.
    • Discuss
    • 10. What are the notations used in Evaluation of Arithmetic Expressions using prefix and postfix forms?

    • Options
    • A. Polish
    • B. Reverse Polish
    • C. Both A and B
    • D. None of the above
    • Discuss


    Comments

    There are no comments.

Enter a new Comment