The document contains a test on computer topics from chapters 2 and 9. It has multiple choice and short answer questions about C language concepts like variables, data types, operators, and assignment statements. Long answer questions ask to write a program demonstrating compound assignment and explain naming rules for C variables.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
13 views1 page
Test-2 (CH # 2,9)
The document contains a test on computer topics from chapters 2 and 9. It has multiple choice and short answer questions about C language concepts like variables, data types, operators, and assignment statements. Long answer questions ask to write a program demonstrating compound assignment and explain naming rules for C variables.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1
Test-1 Class Date Marks Time
Computer (Ch # 2,9) 2nd Year 13-02-2017 25 60 Min
Name: Compulsory Roll NO: Compulsory Q No: 1 Choose the correct answer. (5 x 1 = 5) i) Which of the following is a valid character constant a) b) A c) “b” d) ‘6’ e) = ii) Which of the following is a valid variable name a) Roll No b) Roll No. c) Roll_No d) Roll # iii) Float type variable use……… bytes in memory a) 2 b) 4 c) 8 d) 6 iv) The foreign key is found in a) Parent table b) Index table c) Dependent table d) Pivot table v) A row of relation is called a) Attribute b) Entity c) Tupel d) None Q No: 2 Answer the following short questions. (6 x 2 = 12) i) Who is data and database administrator? ii) Who is end user? iii) What are comments? iv) What is prefix and postfix decrement? v) What are logical operator? vi) What is assignment statement? Q No: 3 Answer the following long questions. (4 x 2 =8) 1) Write a program in C language to show the working of compound assignment statement. 2) What are rules for naming a variable in C language and give example.
Test-1 Class Date Marks Time
Computer (Ch # 2,9) 2nd Year 13-02-2017 25 60 Min Name: Compulsory Roll NO: Compulsory Q No: 1 Choose the correct answer. (5 x 1 = 5) i) Which of the following is a valid character constant a) A b) “b” c) ‘6’ d) = ii) Which of the following is a valid variable name a) Roll No b) Roll No. c) Roll_No d) Roll # iii) Float type variable use……… bytes in memory a) 2 b) 4 c) 8 d) 6 iv) The foreign key is found in a) Parent table b) Index table c) Dependent table d) Pivot table v) A row of relation is called a) Attribute b) Entity c) Tupel d) None Q No: 2 Answer the following short questions. (6 x 2 = 12) i) Who is data and database administrator? ii) Who is end user? iii) What are comments? iv) What is prefix and postfix decrement? v) What are logical operator? vi) What is assignment statement? Q No: 3 Answer the following long questions. (4 x 2 =8) 1) Write a program in C language to show the working of compound assignment statement. 2) What are rules for naming a variable in C language and give example.