0% found this document useful (0 votes)
27 views

Computational Thinking and Programming

Uploaded by

s78210625
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
27 views

Computational Thinking and Programming

Uploaded by

s78210625
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 9
Computational Thinking and Programming Unit-wise Short answer questions UNIT-I 1. Define Computational Thinking? 2. List the Applications of Computational Thinking. 3. List the corner stones of Computational Thinking. 4. Define Algorithm. 5. Define flow chart. 6. List the Characteristics of Algorithm. 7. List the symbols used in flow chart. 8. Write the advantages of algorithm. 9. Write the disadvantages of algorithm. 10. Compare algorithm and flow chart. 11. What is pseudocode. 12. Write the advantages of using pseudocode. 13. Define Variable. 14. List the primitive datatypes supported by C. 15. What is the purpose of Operator Precedence? 16. Why operator associativity is used. 17. Define type conversion. 18. List the type of type conversion. 19. Define Explicit type conversion. 20. Define Implicit type conversion. (co1) (co1) (co1) (co1) (co1) (co1) (co1) (co1) (co1) (co1) (co1) (co1) (co1) (co1) (co1) (co1) (co1) (co1) (co1) (co1) UNIT-II 1. List the types of loop structures. (co2) 2. Define Exit-controlled loop. (co2) 3, Define Entry-controlled loop. (co2) 4, Explain the purpose of conditional statements. (co2) 5. Explain the purpose of Looping statements. (co2) 6. What is Looping. (co2) 7. What do you mean by infinite loop. (co2) 8. Wite the purpose of Switch-case statement. (co2) 9, Differentiate switch and if-else if ladder. (c02) 10. Compare while and do statement. (co2) 11. Differentiate Exit-controlled and Entry-controlled loop. (co2) 12. Write the purpose of break and continue statement. (co2) 13. Write the syntax of using conditional operator / Ternary operator. (co2) 14, Write the syntax of using goto statement with anexample. (C02) 15. What is Iteration. (co2) 16. Write the syntax of using if-else statement. (co2) 17. Write the syntax of using nested if statement. (co2) 18. Write the syntax of using for statement. (co2) 19. Explain with an example in which scenario do statement is used. (co2) 20. With an example explain in which scenario switch-case statement is used. (co2) UNIT-III 1. Define an Array. 2. Write the disadvantages of an Array. 3. Write the syntax to declare two-dimensional array. 4. Define a function. 5. What do you mean by prototype of a function. 6. Write syntax to define a function. 7. Write syntax to declare a function. 8. What is the purpose of passing parameters in function call. 9. Define called function. 10. Define calling function. 11. Explain call by value. 12. Explain call by reference. 13. What are actual parameters. 14, What are formal parameters. 15. What do you mean by inter function communication? 16. How inter function communication possible in function 17. Explain the purpose of return statement in functions. 18. What is recursion. 19. Define Recursive function. 20. What is the purpose of storage classes? (C03) (C03) (C03) (co3) (c03) (co3) (C03) (C03) (C03) (C03) (c03) (co3) (c03) (c03) (C03) (C03) (C03) (co3) (c03) (co3) UNIT-IV 1. Define Pointer. (c04) 2. Write syntax to declare Pointer. (co4) 3. What is pointer to pointer. (co4) 4, What is void pointer. (co4) 5. List dynamic memory allocation functions. (co4) 6. Write syntax to use malloc() function. (co4) 7. Write syntax to use callaoc() function. (co4) 8. Write syntax to use realloc() function. (co4) 9. Compare and contrast malloc() and calloc() functions. (co4) 10. Write the benefits of allocating memory dynamically. (co4) 11. Define a string. (co4) 12. List string manipulation/ string handling functions. (co4) 13. Which header file is linked to make use of string handling functions. (co4) 14, Which header file if linked to make use of dynamic memory allocation functions. (co4) 15. Write the difference of getc() and getch() functions. (co4) 16. What is the disadvantage of reading string data with scanf() function. (co4) 17. When strings are compared with strcmp() function what is the return value of stremp() function. (co4) 18. Whatis the purpose of strcat() function. (co4) 19. How do you find the length of a string. (co4) 20. List string input/output functions. (co4) UNIT-V 1. Define structure. (C05) 2. Write syntax to declare structure. (cos) 3. What are the different ways to declare structure variable. (C05) 4. What is the purpose of structure variable. (cos) 5. What will be the size of a structure. (cos) 6. Write different ways to access structure members. (cos) 7. What is tagged structure. (cos) 8. What is named and typedef structure. (cos) 9. Write the syntax to declare typedef structure. (C05) 10. What is nested structure. (cos) 11, Define self-referential structure. (COs) 12. Define file. (cos) 13. List different file modes to open a text file. (COs) 14, What is text and binary file. (cos) 15. Write the syntaxes to make use of fopen(), fclose() functions. (C05) 16. List the functions used to access file randomly. (cos) 17. What is the purpose of rewind() function and write the syntax to use. (cos) 18. What is the purpose of fseek() function, write the syntax to use function. (cos) 19. Write the syntax to use ftell() function and explain the purpose of the function. (cos) 20. Write short notes on fread(), fwrite() functions. (cos) Long Answer Questions UNIT-I 1. Explain the structure of C Program with an example. (c01) 2. Explain how a C program is created and executed. (co1) 3. Explain different primitive data types with size and ranges supported in c (co1) 4. Explain the Standard Input/Output functions with syntax. (co1) 5. Explain unformatted functions with syntax and examples. (co1) 6. Explain the operators supported by C language. (co1) 7. Write the features of C Programming. (co1) 8. Explain the Operator precedence and associativity. Tabulate the operator precedence and associativity of C Operators. (co1) 9. Discuss what is type casting with a suitable example. (co1) 10. Define Computational Thinking. Explain four components/ 4 Corner stones of Computational thinking with examples. (co1) 11. Write algorithm to find GCD of two numbers. (co1) 12. Explain flowchart and symbols used in flow chart with a suitable example, (co1) 13. Write the characteristics of algorithm. Write algorithm to find whether the given number is palindrome or not. (co1) 14. Explain the pseudo code for finding maximum among two numbers. (c01) 15. Compare Algorithm, flowchart and pseudocode. (co1) UNIT-II 1. Explain the conditional statements with syntax and examples. (C02) 2. Explain the unconditional statements with syntax and examples.(C02) 3. What is Iteration? Write about all C Iterative statements with syntax and examples. (co2) 4. Write ac program to find Fibonacci series up to nth series. (co2) 5. Write a C program to find prime number series up to given n value.(CO2) 6. Write a C Program to find whether a given number is strong number or not. (co2) 7. Illustrate for statement with syntax and example. (co2) 8. Illustrate break, goto and continue statement with suitable examples. (co2) 9. Illustrate switch-case statement with a suitable example. (co2) 10. Differentiate exit and entry-controlled loops. (co2) 11. Write aC program to print triangle of stars patterns. (co2) 12. Develop a C Code to print pyramid of numbers. (co2) 13. Write aC code to find factorial of a given number. (co2) 14, Illustrate with an example to make use of if-else ifladder. (C02) 15. Write short notes on ternary operator. (co2) UNIT-III 1. Explain how an array can be created, initialized and accessed with a Suitable code. (co3) 2. Write a C program to transpose given matrix. (c03) 3. Write C Code to Multiply two matrices using functions. (c03) 4. Implement C Program to Find Determinant of a Matrix. (C03) 5. Explain the different categories of functions. (co3) 6. Explain about parameter passing techniques with suitable code. (C03) 7. Write the advantages of functions. (C03) 8. Explain the applications of functions. (c03) 9. What is recursion? Write ac program to find xn using recursion.(C03) 10. Write the limitations of recursion. (c03) 11. Differentiate iteration and Recursion. (co3) 12. Explain about storage classes of C. (co3) 13. Compare Call by value and Calll by reference. (co3) 14. Compare actual parameters and formal parameters. (C03) 15. Explain how arrays can be passed to functions with a suitable example. (C03) UNIT-IV 1. Explain pointer arithmetic with example. (co4) 2. Write a C code to declare pointer and access the value of variable by using pointer and display. (co4) 3. Illustrate with an Example pointer and functions. (co4) 4, Illustrate with an example about pointers and arrays. (co4) 5. Write short notes on dynamic memory allocation functions. (C04) 6. Explain all string handling functions. (co4) 7. Implement a C code to find whether the given string is palindrome or not. (co4) 8. Develop a C Code to copy one string to another string and display.(C04) 9. Write a C Code to find the length of a given string without using string handling function. (co4) 10. Explain string Input/ output functions. (co4) UNIT-V 1. Explain how structure is declared, initialized and accessed with a suitable code. (C05) 2. Implement a C Code to collect information of 5 albums Names. The members of structures should be Album-name, Musician-name, year-of- release, language. Initialize and display the data. (C05) 3. Explain how structures can be passed to functions using suitable example. (C05) 4, Explain Array of structures with an Example. (cos) 5. Explain about file mode and functions used to write and read the data froma file. (C05) 6. Implement a C code to merge two files into another file. (cos) 7. Write a C program to copy one file to another. (cos) 8. Write a C program to create, write data to file and then display the content of file. (C05) 9, Explain about random access file functions. (C05) 10. Compare text file and binary file. (C05)

You might also like