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

HSB - Bcom I Year C & C++

This document contains a practice test for a Programming with C & C++ course. It includes 10 multiple choice questions testing concepts like data types, operators, and functions in C. It also has 10 fill-in-the-blank questions about the history and applications of programming languages. Finally, it provides 5 short answer/program questions to further assess understanding of C concepts like variables, control flow, and basic programs. The test covers foundational knowledge needed to learn C programming.

Uploaded by

Savari Raj
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
84 views

HSB - Bcom I Year C & C++

This document contains a practice test for a Programming with C & C++ course. It includes 10 multiple choice questions testing concepts like data types, operators, and functions in C. It also has 10 fill-in-the-blank questions about the history and applications of programming languages. Finally, it provides 5 short answer/program questions to further assess understanding of C concepts like variables, control flow, and basic programs. The test covers foundational knowledge needed to learn C programming.

Uploaded by

Savari Raj
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

HSB (Hyderabad School of Business) Degree College

BCOM I Year 2nd SEM Programing with C & C++

10 X 1/2=10
Choose the Best Answer to a Question
1) Which of the following is a logical OR operator?
A-& B - && C - || D - None of the above
2) Which of the following is not a valid variable name declaration?
A. int __a3; B. int __3a; C int __A3; D. None of the mentioned

3) Which of the following special symbol allowed in a variable name?


A.* (asterisk) B.| (pipeline) C.- (hyphen) D._ (underscore)
4) All keywords in C are in ____________
A. LowerCase letters B. UpperCase letters C. CamelCase letters
D. None of the mentioned
5) Which of the following Data type to support the current Sentence “HSB College”
A.Character B.Integer C.Float D.enum

6) What is the size of char in C?


a) Each 1 Byte b) 4 Byte c) 2 or 4 Byte d) 2 Byte

7) Variable name resolution (number of significant characters for the uniqueness of variable)
depends on ___________
a) Compiler and linker implementations b) Assemblers and loaders implementations
c) C language d) None of the mentioned
8) The format identifier „%ld‟ is also used for _____ data type?
A. long B. int C. float D. double
9) The format identifier „%u‟ is also used for _____ data type?
A. char B. int C. float D. double
10) Which among the following is odd one out?

A. Printf B. fprintf C.putchar D.scanf


10 X 1/2=10
Fill In the Blanks with Suitable Answers:
1) ________ Year C was Developed.
2) ________ Group is Developed in C.
3) ____ And _____is the full form of COBOL & FORTRAN.
4) ________ is the Full Form of BASIC.
5) _____ He is the Inventor of C Language.
6) In C language for Checking Multiple Condition at a time____ Operators Will Use.
7) _______ is the Full Form of BCPL.
8) The Operating Systems is the most Common type of ______ Software.
9) _____ He is the Inventor of Basic.
10) ______& ______ is Types of Application Software.
5 X 1=5
Answer Any Three Of The Following Questions:
1. What are the different operators available in C?
2. How do you declare a variable? And Explain about all the Data types and then Identifiers.
3. Given 3 integer numbers, write a program to find the greatest, smallest of them. (use if/else)
4. Write a Program to Prepare Employee Pay Bill.
5. Write a Program To Print Student Mark List in that to read (Rollno, Name, Dept, m1, m2,
m3) and to Find Total, Average, Result, Geade of the Student.

You might also like