bphanikrishna.wordpress.com

Similar documents
Programming Fundamentals (CS 302 ) Dr. Ihsan Ullah. Lecturer Department of Computer Science & IT University of Balochistan

Features of C. Portable Procedural / Modular Structured Language Statically typed Middle level language

DEPARTMENT OF MATHS, MJ COLLEGE

C Programming Multiple. Choice

B.V. Patel Institute of Business Management, Computer & Information Technology, Uka Tarsadia University

Character Set. The character set of C represents alphabet, digit or any symbol used to represent information. Digits 0, 1, 2, 3, 9

C Language, Token, Keywords, Constant, variable

M4.1-R3: PROGRAMMING AND PROBLEM SOLVING THROUGH C LANGUAGE

Preview from Notesale.co.uk Page 6 of 52

Variables Data types Variable I/O. C introduction. Variables. Variables 1 / 14

Fundamental of C programming. - Ompal Singh

Chapter 1 & 2 Introduction to C Language

Differentiate Between Keywords and Identifiers

The component base of C language. Nguyễn Dũng Faculty of IT Hue College of Science

Chapter 1 Introduction to Computers and C++ Programming

Fundamentals of Programming

Computers Programming Course 5. Iulian Năstac

C: How to Program. Week /Mar/05

Computer Fundamentals

LESSON 1. A C program is constructed as a sequence of characters. Among the characters that can be used in a program are:

Chapter 2 - Introduction to C Programming

Fundamental of Programming (C)

Unit 3. Operators. School of Science and Technology INTRODUCTION

UNIT - I. Introduction to C Programming. BY A. Vijay Bharath

A complex expression to evaluate we need to reduce it to a series of simple expressions. E.g * 7 =>2+ 35 => 37. E.g.

Department of Computer Applications

Q1. Multiple Choice Questions

Computational Physics Operating systems

C Language Part 1 Digital Computer Concept and Practice Copyright 2012 by Jaejin Lee

BASIC ELEMENTS OF A COMPUTER PROGRAM

CHW 469 : Embedded Systems

Programming and Data Structures

P.G.TRB - COMPUTER SCIENCE. c) data processing language d) none of the above

Subject: PROBLEM SOLVING THROUGH C Time: 3 Hours Max. Marks: 100

Introduction to C Programming. Chih-Wei Tang ( 唐之瑋 ) Department of Communication Engineering National Central University JhongLi, Taiwan

I BCA[ ] SEMESTER I CORE: C PROGRAMMING - 106A Multiple Choice Questions.

Data Types and Variables in C language

Objectives. Chapter 2: Basic Elements of C++ Introduction. Objectives (cont d.) A C++ Program (cont d.) A C++ Program

Chapter 2: Basic Elements of C++

Chapter 2: Basic Elements of C++ Objectives. Objectives (cont d.) A C++ Program. Introduction

Fundamentals of C Programming

A Fast Review of C Essentials Part I


CSC 1214: Object-Oriented Programming

Introduction to C# Applications

The C language. Introductory course #1

Unit 1: Introduction to C Language. Saurabh Khatri Lecturer Department of Computer Technology VIT, Pune

Full file at C How to Program, 6/e Multiple Choice Test Bank

edunepal_info

2. C99 standard guarantees uniqueness of characters for internal names. A. 12 B. 26 C. 31 D. 48

Guide for The C Programming Language Chapter 1. Q1. Explain the structure of a C program Answer: Structure of the C program is shown below:

Fundamentals of C Programming CS Introduction to Programming

Work relative to other classes

6.096 Introduction to C++ January (IAP) 2009

8/13/ /printqp.php?heading=II BSc [ ], Semester III, Allied: COMPUTER PROGRAMMING-PERL -309C&qname=309C

UNIT IV 2 MARKS. ( Word to PDF Converter - Unregistered ) FUNDAMENTALS OF COMPUTING & COMPUTER PROGRAMMING

Sir Muhammad Naveed. Arslan Ahmed Shaad ( ) Muhammad Bilal ( )

Expressions and Data Types CSC 121 Fall 2015 Howard Rosenthal

GO - OPERATORS. This tutorial will explain the arithmetic, relational, logical, bitwise, assignment and other operators one by one.

UNIT- 3 Introduction to C++

IECD Institute for Entrepreneurship and Career Development Bharathidasan University, Tiruchirappalli 23.

Lecture 3. More About C

XSEDE Scholars Program Introduction to C Programming. John Lockman III June 7 th, 2012

C++ Programming: From Problem Analysis to Program Design, Third Edition

Operators & Expressions

C LANGUAGE AND ITS DIFFERENT TYPES OF FUNCTIONS

Compiler Design. Computer Science & Information Technology (CS) Rank under AIR 100

Quiz Start Time: 09:34 PM Time Left 82 sec(s)

Java provides a rich set of operators to manipulate variables. We can divide all the Java operators into the following groups:

CS201 Latest Solved MCQs

Course Outline. Introduction to java

Expressions and Data Types CSC 121 Spring 2015 Howard Rosenthal

JAVA OPERATORS GENERAL

C++ Basic Elements of COMPUTER PROGRAMMING. Special symbols include: Word symbols. Objectives. Programming. Symbols. Symbols.

Introduction. Following are the types of operators: Unary requires a single operand Binary requires two operands Ternary requires three operands

Data Types and Variables in C language

Computer programming & Data Structures Unit I Introduction to Computers

BCA-105 C Language What is C? History of C

ANSI C Programming Simple Programs

SEQUENTIAL STRUCTURE. Erkut ERDEM Hacettepe University October 2010

Chapter 2. Lexical Elements & Operators

Reserved Words and Identifiers

The CPU and Memory. How does a computer work? How does a computer interact with data? How are instructions performed? Recall schematic diagram:

Computer Science & Information Technology (CS) Rank under AIR 100. Examination Oriented Theory, Practice Set Key concepts, Analysis & Summary

COMPUTER SCIENCE HIGHER SECONDARY FIRST YEAR. VOLUME II - CHAPTER 10 PROBLEM SOLVING TECHNIQUES AND C PROGRAMMING 1,2,3 & 5 MARKS

c) Comments do not cause any machine language object code to be generated. d) Lengthy comments can cause poor execution-time performance.

A flow chart is a graphical or symbolic representation of a process.

2/29/2016. Definition: Computer Program. A simple model of the computer. Example: Computer Program. Data types, variables, constants

Chapter 2: Overview of C++

Introduction to C Language

Presented By : Gaurav Juneja

General Announcements

Creating a C++ Program

Chapter 3: Operators, Expressions and Type Conversion

Intro to Computer Programming (ICP) Rab Nawaz Jadoon

KARMAYOGI ENGINEERING COLLEGE, Shelve Pandharpur

C-LANGUAGE CURRICULAM

9/5/2018. Overview. The C Programming Language. Transitioning to C from Python. Why C? Hello, world! Programming in C

Class B.Com. III Sem.

CSCE 110 PROGRAMMING FUNDAMENTALS

Transcription:

Which of the following is not an input device A) plotter B) scanner C) keyboard D) mouse Which of the following statement is syntactically correct [ ] A) printf( %d, &a); B) scanf( %d, a); C) scanf( %d, #a); D) scanf( %d, &a); Which of the following is not a translator program [ ] A) linker B) assembler C) interpreter D) compiler What type of errors are checked during compilation [ ] A) logical errors B) divide by zero error C) run - time errors D) syntax errors The program fragment int a=5, b=2; printf( %d,a+++++b); A) prints 7 B) prints 8 C) prints 9 D) none of the above Which of the following is not a feature of C language? [ ] A) portability B) extensibility C) structured D) case insensitive Which of the following is not a data type in C? [ ] A) int B) float C) char D) string Which of the following is an example of application software? [ ] A) DBMS B) OS C) Language Translator D) Security monitor

The function reads data from the standard input file keyboard. [ ] A) write B) printf C) read D) scanf C is which level language? A) HLL B) MLL C) LLL D) DLL Who invented the Middle level language c? A) Dennis M. Ritchie B) Niklaus Writh C) Seymour Papert D) Donald Kunth Which of the following is not real number? A) 6.23 B) -16.23 C) 40 D) 40.52 Which of the following instructions have only one operand? A) Multiply B) Add C) Shift D) Subtract C was developed in the year A) 1971 B) 1981 C) 1972 D) 1982 C is a language? A) High Level B) Low level C) Middle level D) Machine level String constants is a sequence of characters enclosed in? A) Single quotes B) Floating C) Double quotes D) None of these

In C language reading data from keyboard? A) Printf B) Scanf C) Int D) Main() In a C language && is a? A) Relational operator B) Logical operator C) Arithmetic operators D) None of these In C language ++ is? A) Arithmetic operator B) Relational operator C) Increment operators D) None of these statement is used control the flow of execution? A) If statement B) Switch statement C) Goto statement D) All of these Which of the following are scalar data types? A) Float B) Union C) Array D) Pointer Which of the following are tokens in C? A) Keywords B) Variable C) Constants D) All of above Which symbol is used as a statement terminator in C? A) Semicolon B) Hash C) Tilde D) Exlamation Mark What will be the maximum size of a float variable in c? A) 1 byte B) 2 bytes C) 4 bytes D) 8 bytes

What will be the maximum size of a double variable? A) 1 byte B) 4 bytes C) 8 bytes D) 16 bytes The size of string variable is? A) 1 byte B) 8 bytes C) 16 bytes D) None of these A link is? A) A compiler B) A loader C) An assembler D) An analyzing tool in C Header file C contain? A) Complier command B) Library functions C) Header information of c programs D) Operators for files Symbolic consists can be defined using? A) #defineno B) Const C) Symbols D) A & B Which operator in C is called a ternary operator? A) if-then B) ++ C)? D) ( ) Which of the following is not a valid integer constant in C? A) 321 B) -162 C) -621.231 D) 1 Which of the following is not a valid real constant in C language? A) 426 B) 321.121 C) -621.231 D) 201.2314

Which of the following is not a valid variable? A) p_ce1 B) 1 p_ce C) p1_ce D) p_ced Which of the is following can not be used as a variable name in C? A) else B) coal C) ram D) vendy Which of the following is not a key word in C language? A) for B) pop C) if D) union Which of the following characters is allowed in variable names in C? A) comma B) dot C) blank D) underscore Which of the following is not a key word in C? A) int B) float C) return D) capital Which of the following is not a valid arithmetic statement in C? A) x=x+1 B) x=y*z C) x*y=z D) z=y/x Which of the following is not correct in C? A) 6/4 =1 B) 2/5=0 C) 2.0/5=0 D) 2.0/5.0=0.4 In C how logical AND is represented? A) B) && C) $$ D) ^^

C is which king of language? A) Machine language B) Procedural language C) Assembly Language D) Low level language Which of the following is not a keyword? A) float B) int C) volatile D) functio C language is available for which of the following operating system? A) DOS B) Unix C) Windows D) All of the above A byte represents a group of? A) 20 bits B) 2 bits C) 40 bits D) 8 bits Which is the volatile memory? A) RAM B) EEPROM C) EPROM D) ROM The result of an arithmatic and logical operations are stored in? A) Accumulator B) Instructions register C) Cache memory D) Rom Secondary storage device is needed to? A) Perform arithmatic and logical operations B) Store small volume of data C) Print output result D) Store large volume of data that exceed the capacity of main memory The input device that is closely related to touch screen is the? A) Light pen B) Keyboard C) joystick D) Mouse

Indicate which one of the following is not true about 4GL? A) 4GLs do not support a high level screen packages interaction B) A 4GL is a software tool which is written, possibly,in some third generation language C) Many data base management system packages support 4GL D) None A language translator is best described as? A) A hardware component B) A system software C) An application software D) None Indicate which one of the following best describes the term Software? A) Application programs B) System programs C) Bothno D) None The name given to a sequence of a instructions in a computer language,to get the desired result is? A) A program B) A decesion table C) A pseudocode D) An algorithm The language understood by a computer without translation is called? A) Assembly language B) High Level Language C) Command Language D) Machine Language Who is the creator of the PASCAL language? A) Niklaus Writh B) Dijkstra C) Donald Knuth D) Basic Pascal 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 ANSWER: d

Which of the following is not a valid C variable name? A) int number; B) float rate; C) int variable_count; D) int $main; ANSWER: d Which of the following is true for variable names in C? A) They can contain alphanumeric characters as well as special characters B) It is not an error to declare a variable to be one of the keywords(like goto, static) C) Variable names cannot start with a digit D) Variable can be of any length ANSWER: c The precedence of arithmetic operators is (from highest to lowest) A) %, *, /, +, - B) %, +, /, *, - C) +, -, %, *, / D) %, +, -, *, / ANSWER: a Which of the following is not an arithmetic operation? A) a *= 10; B) a /= 10; C) a!= 10; D) a %= 10; ANSWER: c Which of the following data type will throw an error on modulus operation(%)? A) char B) short C) int D) float ANSWER: d Which among the following is NOT a logical or relational operator? A)!= B) == C) D) = ANSWER: d The language understood by a computer without translation is called? A) Assembly language B) High Level Language C) Command Language D) Machine Language Who is the creator of the PASCAL language? A) Niklaus Writh B) Dijkstra C) Donald Knuth D) Basic Pascal