Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

L. Single Choice Questions (2-10-20%) 1. Which of the following variable name is not correct in C language? A. welcome_to C. welcome2to B. welcome to

image text in transcribed
L. Single Choice Questions (2-10-20%) 1. Which of the following variable name is not correct in C language? A. welcome_to C. welcome2to B. welcome to D. welcomto 2. Which of the following statement is correct for reading data from a file? A. scanf(file1,%d",&a); C. fscanf(file1,%d",&a); 3. What is the result of the following statement: printf("where\b is") A. where\b is B. fscanf(file 1,%d",a); D. scanf(file1,"%d",a); B. wher is D. none of above C. whereb is ( ) 4. What is the result of the following statement: printf(%.3f", 6.72); B. 6.72 A. 6.720 D. 6.00 C. 6.7. 5. How to print a character "a"? ( ) A. getche(a) C. getchar(a) 6. Which of the following statement is not correct for initializing an array? A. double record[5]={1,20,31}; B. putchar('a') D. none of above ( B. float a5[]={11,22,33 }; D. int a={33,67,93}; ) C. int aa[1+1]={12,22}; 7. What is the scope of the variable if it is active only within the function in which it was defined A. file scope B. function scope 8. int i=2, score[] = {1,2,3,4,5}, what is the value of the a[i++]++? ( C. prototype scope D. block scope %3D A. 4 B. 5 C. 3 D. 6 Page L

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Basics Computer EngineeringInformation Warehouse Basics From Science

Authors: Odiljon Jakbarov ,Anvarkhan Majidov

1st Edition

620675183X, 978-6206751830

More Books

Students also viewed these Databases questions

Question

How have social technologies changed e-commerce?

Answered: 1 week ago