Current Papers

Midterm Spring 2026
1,695 views
CS201 - CS201

08 Jun 2026 at 08:09 PM

MCQS were easy. a) char str[5] = "Hello"; cout << str[1]; cout << str; ans: eHello. b) int x = 5; int y = x++; cout << x << y; ans: 65. shorts: 1) Assume an array is dec…

MCQS were easy. a) char str[5] = "Hello"; cout << str[1]; cout << str; ans: eHello. b) int x = 5; int y = x++; cout << x << y; ans: 65. shorts: 1) Assume an array is declared as, a) int day[] ={1,2,3,4,5,6,7} tell how many elements are in this array. and if b) int day [7] = {1,2,3,4,5,6,7} tell how many elements do the have now. 2) What is meant by TWAIN ? why the twain drivers were used? longs: 1) we need to tell the output void swap( int *pa, int *pb) { int t ; t = *pa; *pa = *pb; *pb = t; } main() { int x[5] = {0,1,2,3,4,}; swap ( x+1 , x+4 ); for ( int i=0; i <5; i++) { cout << x[i] <<" "; } return 0; } output: 0 4 2 3 1 2) also need to find t

View Full Paper
Share
Shared by ?? 1 month ago
© 2026 VUCTN. All rights reserved. v1.0.0